-
Notifications
You must be signed in to change notification settings - Fork 684
Turn Off Screen after boot
execute: unchroot getevent
press power button on your device
you'll get something like this - it depends on device
/dev/input/event0: 0001 0074 00000001
/dev/input/event0: 0000 0000 00000000
/dev/input/event0: 0001 0074 00000000
0074 is hex - convert to decimal
add following commands to a startup service script within your linux system
unchroot sendevent /dev/input/event0 1 116 1
unchroot sendevent /dev/input/event0 0 0 0
unchroot sendevent /dev/input/event0 1 116 0
unchroot sendevent /dev/input/event0 0 0 0
--> screen goes off, but also after a while devices cant traceroute to the android linux machine / or ping any more.
Better way seams
unchroot su -c "am start -n ru.meefik.linuxdeploy/.activity.MainActivity"
unchroot echo 0 > /sys/class/leds/lcd-backlight/brightness
unchroot ping -i 1 192.168.0.1 1>/dev/null &
- have keep screen always on activated in the app, and in android powermanagement /app settings make sure linuxdeloy isnt marked as powersaved app *