Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thorben T.
pmaports
Commits
a8913f72
Commit
a8913f72
authored
1 month ago
by
Thorben T.
Browse files
Options
Downloads
Patches
Plain Diff
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
1 month ago
Stage: lint
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
device/testing/device-samsung-crownlte/initfs-hook.sh
+15
-0
15 additions, 0 deletions
device/testing/device-samsung-crownlte/initfs-hook.sh
with
15 additions
and
0 deletions
device/testing/device-samsung-crownlte/initfs-hook.sh
+
15
−
0
View file @
a8913f72
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment