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
170ed869
Commit
170ed869
authored
2 months ago
by
Thorben T.
Browse files
Options
Downloads
Patches
Plain Diff
samsung-crownlte: workaround for touchscreen not working when booted by plugging charger
parent
53da3e2a
No related branches found
No related tags found
No related merge requests found
Pipeline
#215918
passed
2 months ago
Stage: lint
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
device/testing/device-samsung-crownlte/APKBUILD
+2
-2
2 additions, 2 deletions
device/testing/device-samsung-crownlte/APKBUILD
device/testing/device-samsung-crownlte/initfs-hook.sh
+14
-0
14 additions, 0 deletions
device/testing/device-samsung-crownlte/initfs-hook.sh
with
16 additions
and
2 deletions
device/testing/device-samsung-crownlte/APKBUILD
+
2
−
2
View file @
170ed869
# Reference: <https://postmarketos.org/devicepkg>
pkgname
=
device-samsung-crownlte
pkgdesc
=
"Samsung Galaxy Note 9"
pkgver
=
2
pkgver
=
3
pkgrel
=
0
url
=
"https://postmarketos.org"
license
=
"MIT"
...
...
@@ -56,7 +56,7 @@ x11() {
sha512sums
=
"
0df96b3af577611b461d80142ae6a12f1c859b16d33c6450a2faabfe6f4b10eeeda82b3aaaaebdd579ffec176cf84d030e5cae6030d157ed3ae83a04547f7f3d deviceinfo
c
ec
13a1cb076a249eb94d11fb122b1f6b0c3e9558a2ed3c8da3e73a8e2db633131ec8ce838e62da8f53b5500dcb77c6f4adf3c1d2f1cda6fd23cb2ca1ccf6abc
initfs-hook.sh
ec
698b3de66b051987c5442e41309398966dfc2ad5c717940e442f67fd48f5faa6e8a0b84de1aad499e3f36747cb82b7055e2c0eda9bc3a3aa49d14d8b7fa823
initfs-hook.sh
29c2f8fbd67f6aa95a34fc465798be71dc360087b4e4fddbcdc9b43a628de384f48c1b9e6a7b3d41c93954baee3b88f08972f0a827d663b0279b06a4b2908bd2 stylus.conf
70c4d3b7af9e58729b5caca87c6c0032675c4adfd3852b0e3fc1f866675d503c4f08d3edaf1b1949bf15344840222c1a7ba00384c290fa5e1b7742e1198855a8 hciattach
58f72bb12532ce23782389bf9e9eb8eb8afe004dd46d11d48b21b6da6a84660846f79d528d9968a1c1be57716577035fd0da59b3fcda4f197599e92f243dbb45 10-hciattach.rules
...
...
This diff is collapsed.
Click to expand it.
device/testing/device-samsung-crownlte/initfs-hook.sh
+
14
−
0
View file @
170ed869
...
...
@@ -3,3 +3,17 @@
# 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 if 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"
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, unlike 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