Keyboard off after resuming from suspend when CPU is underclocked

I have an unusual situation when I underclock my CPU, my keyboard is not turning back on after resuming from suspend. I have to unplug and plug it back in to get it to work. Everything works fine when I have my CPU overclocked (i3 3770k@4.8GHz), but when I disable boost in BIOS and set max clock to 2.5 GHz to shave off the electric bill, my keyboard does not turn back on. When I dual boot into windows and try suspending there in either setup, the keyboard works fine after resuming. The mouse is coming back on, and when I plug in my second keyboard that also comes back on after suspending. Would be grateful for any help on this, it’s annoying to have to replug it every time.

inxi -Fazy (I tried with atkbd.reset=1, i8042.nomux=1, i8042.reset=1 combinations on line 5 but nothing works):

System:
  Kernel: 6.6.44-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/vmlinuz-6.6-x86_64
    root=UUID=6bb0f422-04df-45b8-953c-2d25b8276f0a rw quiet atkbd.reset
    apparmor=1 security=apparmor udev.log_priority=3
  Desktop: i3 v: 4.23 with: i3bar tools: xautolock avail: i3lock vt: 7
    dm: LightDM v: 1.32.0 Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: P8P67 PRO v: Rev 1.xx
    serial: <superuser required> part-nu: SKU uuid: <superuser required>
    BIOS: American Megatrends v: 3207 date: 04/13/2012
CPU:
  Info: model: Intel Core i7-3770K bits: 64 type: MT MCP arch: Ivy Bridge
    gen: core 3 level: v2 built: 2012-15 process: Intel 22nm family: 6
    model-id: 0x3A (58) stepping: 9 microcode: 0x21
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 1768 high: 2500 min/max: 1600/2500 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 1689 2: 1600 3: 2500
    4: 1600 5: 1953 6: 1606 7: 1600 8: 1600 bogomips: 40010
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: conditional; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds status: Vulnerable: No microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP102 [GeForce GTX 1080 Ti] vendor: eVga.com. driver: nvidia
    v: 550.107.02 alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current
    (as of 2024-06; EOL~2026-12-xx) arch: Pascal code: GP10x process: TSMC 16nm
    built: 2016-2021 pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1b06 class-ID: 0300
  Device-2: Microsoft LifeCam Cinema driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.1:3
    chip-ID: 045e:075d class-ID: 0102
  Display: x11 server: X.Org v: 21.1.13 compositor: Picom v: git-89c2c
    driver: X: loaded: modesetting,nouveau,nvidia alternate: fbdev,nv,vesa
    gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 92 s-size: 1237x393mm (48.70x15.47")
    s-diag: 1298mm (51.1")
  Monitor-1: DP-3 pos: left res: 1920x1080 hz: 60 dpi: 96
    size: 510x287mm (20.08x11.3") diag: 585mm (23.04") modes: N/A
  Monitor-2: DP-4 pos: primary,right res: 2560x1440 hz: 165 dpi: 93
    size: 700x390mm (27.56x15.35") diag: 801mm (31.55") modes: N/A
  Monitor-3: None-1-1 size-res: N/A modes: N/A
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:1c20 class-ID: 0403
  Device-2: NVIDIA GP102 HDMI Audio vendor: eVga.com. driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:10ef class-ID: 0403
  Device-3: Microsoft LifeCam Cinema driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.1:3
    chip-ID: 045e:075d class-ID: 0102
  API: ALSA v: k6.6.44-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.2.2 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: MEDIATEK MT7921K Wi-Fi 6E 80MHz driver: mt7921e v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 14c3:0608
    class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-1.5:3 chip-ID: 0e8d:0608
    class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
    status: discoverable: no pairing: no
Drives:
  Local Storage: total: 2.8 TiB used: 874.86 GiB (30.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Intel model: SSDSA2CW080G3
    size: 74.53 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 0302 scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 870 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 2B6Q scheme: MBR
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital model: WD10EALX-009BA0
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    tech: N/A serial: <filter> fw-rev: 1H15 scheme: MBR
  ID-4: /dev/sdd maj-min: 8:48 vendor: Samsung model: SSD 870 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 3B6Q scheme: MBR
Partition:
  ID-1: / raw-size: 74.03 GiB size: 72.31 GiB (97.68%) used: 37.88 GiB (52.4%)
    fs: ext4 dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 119.2 MiB (23.3%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 292.97 GiB size: 287.31 GiB (98.07%)
    used: 172.31 GiB (60.0%) fs: ext4 dev: /dev/sdb2 maj-min: 8:18
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 34.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB available: 31.31 GiB used: 3.87 GiB (12.3%)
  Processes: 286 Power: uptime: 11m states: freeze,standby,mem,disk
    suspend: deep avail: s2idle,shallow wakeups: 1 hibernate: platform
    avail: shutdown, reboot, suspend, test_resume image: 12.52 GiB
    services: upowerd,xfce4-power-manager Init: systemd v: 256
    default: graphical tool: systemctl
  Packages: 1506 pm: nix-default pkgs: 0 pm: nix-sys pkgs: 0 pm: nix-usr
    pkgs: 0 pm: pacman pkgs: 1496 libs: 440 tools: pamac,yay pm: flatpak pkgs: 10
    Compilers: gcc: 14.1.1 Shell: Bash v: 5.2.26 running-in: alacritty
    inxi: 3.3.35

mesg:

[   41.280789] ata2.00: Entering standby power mode
[   42.106836] ACPI: EC: interrupt blocked
[   42.142884] ACPI: PM: Preparing to enter system sleep state S3
[   42.143237] ACPI: EC: event blocked
[   42.143238] ACPI: EC: EC stopped
[   42.143238] ACPI: PM: Saving platform NVS memory
[   42.143282] Disabling non-boot CPUs ...
[   42.145220] smpboot: CPU 1 is now offline
[   42.147119] smpboot: CPU 2 is now offline
[   42.149465] smpboot: CPU 3 is now offline
[   42.151441] smpboot: CPU 4 is now offline
[   42.153370] smpboot: CPU 5 is now offline
[   42.155274] smpboot: CPU 6 is now offline
[   42.157180] smpboot: CPU 7 is now offline
[   42.159594] ACPI: PM: Low-level resume complete
[   42.159618] ACPI: EC: EC started
[   42.159619] ACPI: PM: Restoring platform NVS memory
[   42.160029] Enabling non-boot CPUs ...
[   42.160207] smpboot: Booting Node 0 Processor 1 APIC 0x2
[   42.165834] CPU1 is up
[   42.166041] smpboot: Booting Node 0 Processor 2 APIC 0x4
[   42.171678] CPU2 is up
[   42.171882] smpboot: Booting Node 0 Processor 3 APIC 0x6
[   42.177541] CPU3 is up
[   42.177751] smpboot: Booting Node 0 Processor 4 APIC 0x1
[   42.180782] CPU4 is up
[   42.180969] smpboot: Booting Node 0 Processor 5 APIC 0x3
[   42.183882] CPU5 is up
[   42.184064] smpboot: Booting Node 0 Processor 6 APIC 0x5
[   42.187077] CPU6 is up
[   42.187242] smpboot: Booting Node 0 Processor 7 APIC 0x7
[   42.190192] CPU7 is up
[   42.193580] ACPI: PM: Waking up from system sleep state S3
[   42.194315] ACPI: EC: interrupt unblocked
[   42.196211] ACPI: EC: event unblocked
[   42.197705] serial 00:06: activated
[   42.502146] ata7: SATA link down (SStatus 0 SControl 300)
[   42.503755] ata9: SATA link down (SStatus 0 SControl 300)
[   42.506214] ata8: SATA link down (SStatus 0 SControl 300)
[   42.544703] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[   42.547501] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.SPT4._GTF.DSSP], AE_NOT_FOUND (20230628/psargs-330)
[   42.547511] ACPI Error: Aborting method \_SB.PCI0.SAT0.SPT4._GTF due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[   42.551342] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.SPT4._GTF.DSSP], AE_NOT_FOUND (20230628/psargs-330)
[   42.551353] ACPI Error: Aborting method \_SB.PCI0.SAT0.SPT4._GTF due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[   42.551363] ata5.00: configured for UDMA/133
[   42.552326] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[   42.552333] ata2.00: Entering active power mode
[   42.552615] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   42.552622] ata1.00: Entering active power mode
[   42.552753] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.SPT1._GTF.DSSP], AE_NOT_FOUND (20230628/psargs-330)
[   42.552761] ACPI Error: Aborting method \_SB.PCI0.SAT0.SPT1._GTF due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[   42.552831] ata2.00: supports DRM functions and may not be fully accessible
[   42.553097] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.SPT0._GTF.DSSP], AE_NOT_FOUND (20230628/psargs-330)
[   42.553107] ACPI Error: Aborting method \_SB.PCI0.SAT0.SPT0._GTF due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[   42.553201] sd 0:0:0:0: [sda] Starting disk
[   42.553531] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.SPT0._GTF.DSSP], AE_NOT_FOUND (20230628/psargs-330)
[   42.553539] ACPI Error: Aborting method \_SB.PCI0.SAT0.SPT0._GTF due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[   42.553585] ata1.00: configured for UDMA/133
[   42.553765] ata1.00: Enabling discard_zeroes_data
[   42.557399] sd 1:0:0:0: [sdb] Starting disk
[   42.557696] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.SPT1._GTF.DSSP], AE_NOT_FOUND (20230628/psargs-330)
[   42.557706] ACPI Error: Aborting method \_SB.PCI0.SAT0.SPT1._GTF due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[   42.557758] ata2.00: supports DRM functions and may not be fully accessible
[   42.562545] ata2.00: configured for UDMA/133
[   42.562701] ata2.00: Enabling discard_zeroes_data
[   42.664040] ata10: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[   42.664050] ata10.00: Entering active power mode
[   42.664687] ata10.00: supports DRM functions and may not be fully accessible
[   42.670470] sd 9:0:0:0: [sdd] Starting disk
[   42.670805] ata10.00: supports DRM functions and may not be fully accessible
[   42.676924] ata10.00: configured for UDMA/133
[   42.677122] ata10.00: Enabling discard_zeroes_data
[   42.750086] firewire_core 0000:07:03.0: rediscovered device fw0
[   42.854719] pci_bus 0000:07: Allocating resources
[   42.854733] pci 0000:06:00.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 07] add_size 200000 add_align 100000
[   42.854745] pci 0000:06:00.0: BAR 15: assigned [mem 0xf2400000-0xf25fffff 64bit pref]
[   42.854837] OOM killer enabled.
[   42.854839] Restarting tasks ... done.
[   42.858634] random: crng reseeded on system resumption
[   42.859688] PM: suspend exit
[   42.875508] atkbd serio0: keyboard reset failed on isa0060/serio0
[   42.939671] atkbd serio1: keyboard reset failed on isa0060/serio1
[   45.475486] wlp2s0: authenticate with 7a:98:a0:cd:22:5d
[   45.487640] wlp2s0: send auth to 7a:98:a0:cd:22:5d (try 1/3)
[   45.493944] wlp2s0: authenticated
[   45.498427] wlp2s0: associate with 7a:98:a0:cd:22:5d (try 1/3)
[   45.509183] wlp2s0: RX AssocResp from 7a:98:a0:cd:22:5d (capab=0x411 status=0 aid=1)
[   45.515681] wlp2s0: associated
[   47.307116] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   47.307129] ata6.00: Entering active power mode
[   48.313234] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.SPT5._GTF.DSSP], AE_NOT_FOUND (20230628/psargs-330)
[   48.313253] ACPI Error: Aborting method \_SB.PCI0.SAT0.SPT5._GTF due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[   48.334828] sd 5:0:0:0: [sdc] Starting disk
[   48.336816] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.SPT5._GTF.DSSP], AE_NOT_FOUND (20230628/psargs-330)
[   48.336830] ACPI Error: Aborting method \_SB.PCI0.SAT0.SPT5._GTF due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[   48.337059] ata6.00: configured for UDMA/133
[   51.671088] usb 1-1.3: USB disconnect, device number 4
[   54.693966] usb 1-1.3: new full-speed USB device number 5 using ehci-pci
[   54.794609] usb 1-1.3: New USB device found, idVendor=04d9, idProduct=a232, bcdDevice= 2.02
[   54.794618] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   54.794621] usb 1-1.3: Product: USB-HID Keyboard
[   54.794624] usb 1-1.3: Manufacturer: HOLTEK
[   54.795845] input: HOLTEK USB-HID Keyboard as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:04D9:A232.0008/input/input23
[   54.850406] hid-generic 0003:04D9:A232.0008: input,hidraw0: USB HID v1.11 Keyboard [HOLTEK USB-HID Keyboard] on usb-0000:00:1d.0-1.3/input0
[   54.851657] hid-generic 0003:04D9:A232.0009: hiddev96,hidraw1: USB HID v1.11 Device [HOLTEK USB-HID Keyboard] on usb-0000:00:1d.0-1.3/input1
[   54.853420] input: HOLTEK USB-HID Keyboard Mouse as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:04D9:A232.000A/input/input24
[   54.853724] input: HOLTEK USB-HID Keyboard System Control as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:04D9:A232.000A/input/input25
[   54.910007] input: HOLTEK USB-HID Keyboard Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:04D9:A232.000A/input/input26
[   54.910197] input: HOLTEK USB-HID Keyboard as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:04D9:A232.000A/input/input27
[   54.910398] input: HOLTEK USB-HID Keyboard as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:04D9:A232.000A/input/input28
[   54.910809] hid-generic 0003:04D9:A232.000A: input,hiddev97,hidraw2: USB HID v1.11 Mouse [HOLTEK USB-HID Keyboard] on usb-0000:00:1d.0-1.3/input2
[   54.911900] hid-generic 0003:04D9:A232.000B: hiddev98,hidraw3: USB HID v1.11 Device [HOLTEK USB-HID Keyboard] on usb-0000:00:1d.0-1.3/input3
[   69.477732] warning: `ThreadPoolForeg' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
type or paste code here

The holtek lines at the end are me unplugging and plugging it back in.

At least there is a BIOS Update: 3602
https://www.asus.com/us/supportonly/p8p67_pro/helpdesk_bios/

2.Enhance compatibility with some USB devices.

Seems there are known problems with usb devices on firmware level.

Either way try to disable this: https://linrunner.de/tlp/settings/usb.html#usb-autosuspend

1 Like

Thanks, I’ll try updating BIOS but don’t have my hopes up. Like I said, it works when CPU is running fast and also in Windows as well. It almost feels like a race condition somewhere in the code. I’ve also tried your other suggestion and disabled usb autosuspend but it didn’t fix this issue.

[edit] I’ve checked it at default clocks, with things like EPU power save disabled and keyboard doesn’t turn on. Only when I have it oc’ed does it turn on when resumed.

I’ve solved it - I have to have PLL overvoltage enabled, even at stock clocks, which is unusual because this is only necessary to o/c the chip past stock turbo. Must be a bug somewhere in linux because like I said, it works fine in windows either way.

Or Linux does what it is supposed to but Windows ignores the firmware when it deem it flawed ?

decades ago people complained - Linux mess up my hardware - while it was actually exposing the flaws

:grin:

1 Like

True, come to think of it that is very likely.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.