On 2024-02-13 00:13, -pj via openSUSE Users wrote:
On 02-12-2024 02:43PM, Carlos E. R. wrote:
On 2024-02-12 21:27, -pj via openSUSE Users wrote:
Maybe the machine keeps the keyboard powered (so that you can press a key to awake it) and this requires the PSU to run in another state. So perhaps disable keyboard wake up.
Thank you for your advice. I proceeded to review this website for more information in my search for an answer. https://shallowsky.com/blog/linux/kernel/no-mouse-kbd-wakeup.html
I then opened Konsole and passed the following command: cat /proc/acpi/wakeup
Device S-state Status Sysfs node LAN S5 *enabled pci:0000:00:19.0 ... KBC0 S4 *enabled pnp:00:06 *enabled serio:serio0 MSE0 S4 *disabled PWRB S3 *enabled platform:PNP0C0C:00
I see KBC0 listed as enabled above and passed: Thinkcentre-M57p:~ # echo KBC0 >/proc/acpi/wakeup
Suspend works well now with machine PSU shut off and only a flashing monitor and machine case power button light! Unsuspend works by only depressing the machines power button now also. :]
Nice :-)
When I powercycle and complete login, attempting to suspend the machine again results into a semi-failure suspend state as prior.
My question for you now is which file to modify in openSUSE Tumbleweed in order to get this wonderful command persistent between boots and upgrades? Am I able to modify a certain file by inserting just "echo KBC0 >/proc/acpi/wakeup" in it?
Certainly.
/etc/rc.local is not shown in the current filesystem, maybe because it was system IV related.
It would be "/etc/init.d/", and there I still have: after.local boot.localhw boot.local Not sure if they still work, and I am on Leap. you can create your own systemd service to do things. Mine (calls a script): Telcontar:~ # cat /etc/systemd/system/helloworld.service [Unit] Description=Plays a welcome sound when target multi-user is reached After=multi-user.target # graphical.target - multi-user.target [Service] Type=oneshot RemainAfterExit=true StandardOutput=tty ExecStart=-/root/ThingsNeededForBoot/helloworld [Install] WantedBy=multi-user.target WantedBy=graphical.target Telcontar:~ # -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)