Skip to content
Snippets Groups Projects
Commit a8913f72 authored by Thorben T.'s avatar Thorben T.
Browse files

samsung-crownlte: workaround for touchscreen not working when booted by plugging charger

parent 1d732b5a
No related branches found
No related tags found
No related merge requests found
Pipeline #215683 failed
......@@ -3,3 +3,18 @@
# blank and unblank for pmOS splash screen
echo 1 > /sys/class/graphics/fb0/blank
echo 0 > /sys/class/graphics/fb0/blank
if
# phone booted by plugging in charger,
# touchscreen will not work of we continue booting
grep -q androidboot.mode=charger /proc/cmdline
then
# allow for some charging to avoid infinite bootloop if critically low,
# "poor man's charging-sdl",
# will actually continue to show samsung's charging graphic
if grep -qx 0 /sys/class/power_supply/battery/capacity ; then sleep 24 ; fi
# a reboot suffices to get the phone working normally,
# this will show the samsung splash, unlik the initial boot
reboot -ff
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment