On 02-12-2024 02:43PM, Carlos E. R. wrote:
On 2024-02-12 21:27, -pj via openSUSE Users wrote:
I have openSUSE Tumbleweed running on this machine. I had attached a USB wireless HP keyboard to the machine and suspend worked well from what I could tell (the machine went to sleep and resumed when asked). The issue is the keyboard is/was not taking keystrokes correctly, quite alot of the time. It became very very frustrating for me to use. It seems sometimes freshly charged Panasonic Eneloop batteries may help a little but is unknown for certain still.
When an older HP PS/2 style keyboard is attached to the machine. It’s solid and never misses a keystroke.
:~> /usr/sbin/hwinfo --keyboard 25: PS/2 00.0: 10800 Keyboard [Created at input.226] Unique ID: nLyy.+49ps10DtUF Hardware Class: keyboard Model: "AT Translated Set 2 keyboard" Vendor: 0x0001 Device: 0x0001 "AT Translated Set 2 keyboard" Compatible to: int 0x0211 0x0001 Device File: /dev/input/event0 Device Files: /dev/input/event0, /dev/input/by-path/platform-i8042-serio-0-event-kbd Device Number: char 13:64 Driver Info #0: XkbRules: xfree86 XkbModel: pc104 Config Status: cfg=no, avail=yes, need=no, active=unknown :~>
This keyboard now is preventing suspend from working fully. Yes, suspend does shut off the monitor but it leaves the machine in a running state (power supply fan still spinning). I have investigated the bios settings and can not find anything pertaining to the PS/2 style keyboard in there. There is a feature option in the machines bios for PS/2 style mouse though.
What can I do to try to get the sleep/suspend feature to work correctly with the PS/2 style keyboard attached now? Suspend working normally on this setup is machine goes into a sleep state, quiet, with flashing power button. Resume activates by pressing the power button. As I do not have hibernation configured.
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 USB4 S3 *enabled pci:0000:00:1a.0 USB5 S3 *enabled pci:0000:00:1a.1 USB7 S3 *enabled pci:0000:00:1a.2 ESB2 S3 *enabled pci:0000:00:1a.7 EXP1 S4 *disabled EXP2 S4 *disabled EXP3 S4 *disabled EXP4 S4 *disabled EXP5 S4 *disabled EXP6 S4 *disabled USB1 S3 *enabled pci:0000:00:1d.0 USB2 S3 *enabled pci:0000:00:1d.1 USB3 S3 *enabled pci:0000:00:1d.2 USB6 S3 *disabled ESB1 S3 *enabled pci:0000:00:1d.7 PCIB S5 *disabled pci:0000:00:1e.0 COM1 S4 *disabled pnp:00:02 COM2 S4 *disabled pnp:00:03 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. :] 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? /etc/rc.local is not shown in the current filesystem, maybe because it was system IV related. -Thanks