device-qcom-msm8953: add wakeup keys for Lenovo ThinkSmart View

This forces the volume keys to wake up the screen.

For now, this device has no other method of waking up the screen if no
external input methods are attached.

On the vendor's Android OS the proximity sensor wakes up
the screen, but it doesn't work on pmOS yet.

The touchscreen is disabled when the screen is blanked, so we cannot use
it to wake up the device.

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6832
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Felix Kaechele 2025-07-27 14:25:01 -04:00 committed by Pablo Correa Gómez
parent b0542f4161
commit cee82ca962
No known key found for this signature in database
GPG key ID: 7A342565FF635F79
2 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,18 @@
###########################################################
# Lenovo
###########################################################
# Lenovo ThinkSmart View (CD-18781Y)
# This device has no other keys but the volume keys.
# As there currently is no other method of waking up the screen,
# ensure that these keys can be used to wake up the display.
#
# This can possibly be removed when the proximity sensor works and can
# be used to wake up the screen, like is done on the vendor's
# Android OS.
gmobile:name:gpio-keys:dt:lenovo,cd-18781y*
GM_WAKEUP_KEY_115=1
gmobile:name:pm8941_resin:dt:lenovo,cd-18781y*
GM_WAKEUP_KEY_114=1

View file

@ -6,7 +6,7 @@
pkgname=device-qcom-msm8953
pkgdesc="Generic device package for various Qualcomm MSM8953/SDM450/SDM632-based devices"
pkgver=6
pkgver=7
pkgrel=0
url="https://postmarketos.org"
license="MIT"
@ -30,6 +30,7 @@ source="
deviceinfo
modules-initfs
90-device-xiaomi-daisy.rules
61-gmobile-wakeup-lenovo-cd18781y.hwdb
"
build() {
@ -38,6 +39,7 @@ build() {
package() {
devicepkg_package $startdir $pkgname
install -Dm644 61-gmobile-wakeup-lenovo-cd18781y.hwdb -t "$pkgdir/usr/lib/udev/hwdb.d/"
}
xiaomi_daisy_fake_goodix() {
@ -49,4 +51,5 @@ sha512sums="
7a0f4358d041c9bdb24c1018d13d390b111d823316d7d4b94f7c41aada97d9d94162ef7610226332ec3122e04108d7e08f8a844769b262caefbe97e92df1b39d deviceinfo
0cf2749f1241a817e79425d8996d2c8b18f0468c4a2808ecee168bd04384c48f8950a0da18b01651cd12a90dd18f5c0d0286bcd07e70df5106a070ce696d9f8d modules-initfs
a2608b01b7b6e2dade694af355ff4f0f26cad49cf54bc332c77eb75d19fdc985f7f996fedb72753de447be0391deabf5fcea52406791d1e6e0d165703b63f145 90-device-xiaomi-daisy.rules
17af1dabd211ec942bd8cbe63743c874ef87f0613ae08b8de3f77bdb87962eae402eee2b6604d6040700d4e7ae1b898cb67c1b01f2b86db23af31435953eaa51 61-gmobile-wakeup-lenovo-cd18781y.hwdb
"