mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
system-utils: enable input.service on RK3326
The whole power-button fake-suspend chain was dead code: input.service (input_sense) is the only thing that turns KEY_POWER presses into archr-fake-suspend calls, the R33S and RG351 dpad-volbright quirks even restart it when active, but no package ever enabled it, so the power key fell through to logind's kernel suspend, which locks up on px30. Enable it for RK3326. Hardware test note: input_sense also reacts to KEY_VOLUME events, so watch for double-stepping volume on the rocker; if it doubles, the second handler needs to yield. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -46,3 +46,14 @@ makeinstall_target() {
|
||||
cp ${PKG_DIR}/sources/config/fancontrol.conf ${INSTALL}/usr/config/fancontrol.conf.sample
|
||||
}
|
||||
|
||||
|
||||
post_install() {
|
||||
# input_sense owns the power-button path on RK3326 (KEY_POWER from the
|
||||
# rk817 pwrkey drives archr-fake-suspend) and the R33S/RG351 quirks
|
||||
# already assume the unit is running, yet nothing ever enabled it, so
|
||||
# the power button only reached logind's (broken) kernel suspend.
|
||||
# Scoped to RK3326 until other platforms verify their key handling.
|
||||
if [ "${DEVICE}" = "RK3326" ]; then
|
||||
enable_service input.service
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user