Skip to content

Instantly share code, notes, and snippets.

@liejuntao001
Last active October 17, 2023 06:56
Show Gist options
  • Save liejuntao001/ea69affcc497ee0cc580018001e931f2 to your computer and use it in GitHub Desktop.
Save liejuntao001/ea69affcc497ee0cc580018001e931f2 to your computer and use it in GitHub Desktop.
High CPU from kworker/0:x-kacpi_notify
Ubuntu 20.04 LTS
Update: this problem is fixed after I did "apt dist-upgrade" on 9/21/2020
Update again: Acutally not fixed. It happened again after unplug/plug the usb-c hub.
I recently got a USB-C Hub (Targus ACA958USZ). When it's plugged in, the laptop gives high cpu from process
I've found a few USB-C hubs from various manufactures with the same problem. I think they are of the same chipset.
1071993 root 20 0 0 0 0 I 11.6 0.0 0:10.20 kworker/0:2-kacpi_notify
Reference:
https://superuser.com/questions/1477106/acpi-interrupts-causes-high-cpu-usage-from-kworker
$ grep . -r /sys/firmware/acpi/interrupts | grep -v " 0"
/sys/firmware/acpi/interrupts/sci:30750706
/sys/firmware/acpi/interrupts/gpe6E: 89394 EN enabled unmasked
/sys/firmware/acpi/interrupts/gpe69:30662925 EN STS enabled unmasked
/sys/firmware/acpi/interrupts/gpe30: 32 EN enabled unmasked
/sys/firmware/acpi/interrupts/gpe_all:30752375
/sys/firmware/acpi/interrupts/sci_not: 12
/sys/firmware/acpi/interrupts/gpe6F: 1 EN enabled unmasked
/sys/firmware/acpi/interrupts/gpe6D: 5 EN enabled unmasked
/sys/firmware/acpi/interrupts/gpe61: 17 EN enabled unmasked
Need disable interrupt gpe69
Run as root:
$ echo "disable" > /sys/firmware/acpi/interrupts/gpe69
@AlexKay28
Copy link

AlexKay28 commented Sep 25, 2021

it works! thank you!

my case

$ grep . -r /sys/firmware/acpi/interrupts | grep -v "  0"
/sys/firmware/acpi/interrupts/sci:14580082
/sys/firmware/acpi/interrupts/gpe69:14579841     STS enabled      unmasked
/sys/firmware/acpi/interrupts/gpe0C:       2  EN     enabled      unmasked
/sys/firmware/acpi/interrupts/gpe_all:14580088
/sys/firmware/acpi/interrupts/sci_not:       1
/sys/firmware/acpi/interrupts/gpe43:     241  EN     enabled      unmasked
/sys/firmware/acpi/interrupts/gpe6D:       4  EN     enabled      unmasked

$ sudo su
[sudo] password for ***: 

$ echo "disable" > /sys/firmware/acpi/interrupts/gpe69

@cteckwee
Copy link

The above method doesn't work if the usb-c device is unplugged and plug in again or when machine is restarted. A permanent way to solve this is to add acpi mask during boot up by updating GRUB:

GRUB_CMDLINE_LINUX_DEFAULT="acpi_mask_gpe=0x69 quiet splash"

Specific instruction:
Add acpi_mask_gpe=0x69 to /etc/default/grub line GRUB_CMDLINE_LINUX_DEFAULT, then run update-grub and reboot.

Reference:
[1] https://askubuntu.com/questions/1275749/acpi-event-69-made-my-system-unusable
[2] https://askubuntu.com/questions/1029745/ubuntu-18-04-w-macbook-pro-kworker-keeps-hogging-up-my-cpu

@tarn-jihas
Copy link

echo "disable" > /sys/firmware/acpi/interrupts/gpe69 worked like a charm. I'm on Ubuntu 23.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment