From a0a45889f4da5f4dfb704813a8b48c0bf83be15d Mon Sep 17 00:00:00 2001 From: Douglas Teles Date: Tue, 7 Jul 2026 19:23:05 -0300 Subject: [PATCH] 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 --- .../ArchR/packages/sysutils/system-utils/package.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/projects/ArchR/packages/sysutils/system-utils/package.mk b/projects/ArchR/packages/sysutils/system-utils/package.mk index c8c98fde96..3095509d29 100644 --- a/projects/ArchR/packages/sysutils/system-utils/package.mk +++ b/projects/ArchR/packages/sysutils/system-utils/package.mk @@ -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 +}