On 05/15/2018 05:00 AM, Peter Suetterlin wrote:
David C. Rankin wrote:
All,
I'm looking for the openSuSE way to configure my laptop power-button to suspend instead of power-off. Is there a yast module or some similar app for tweaking ACPI config that avoids writing a custom event-handler from scratch? Is there a current event-handler that can be tweaked? I would like the power-button to activate suspend just like lid-close does.
Not really sure, but check /etc/systemd/logind.conf. It has
#HandlePowerKey=poweroff #PowerKeyIgnoreInhibited=no
Peter - you are an Evil Genius! $ sudo vi /etc/systemd/login.conf /PowerKey yy $ p x :s/poweroff/suspend :wq result: $ grep HandlePowerKey /etc/systemd/logind.conf #HandlePowerKey=poweroff HandlePowerKey=suspend $ sudo systemctl daemon-reload (close xterm; logout; login) press powerbutton -- crap still shuts down (reboot probably required) ...box reboots...login to desktop... press powerbutton -- WHOOP -- Success -- suspended perfectly Thank you Peter -- know we know systemd is your interface to the acpica config! -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org