Upowerd consuming CPU/Debian does not shutdown normally

Kernels & Hardware, configuring network, installing services

Upowerd consuming CPU/Debian does not shutdown normally

Postby LavaPoNada » 2020-06-15 19:14

Hello! I created the same topic for both problems because I thing they're related.

So, since I connected my phone to my laptop a few days ago (don't know if it's related, probably just a coincidence), I've noticed that my upowerd keeps using way more CPU than it used to, something like 25%. I've searched the Internet a few times to see what could be causing it and I read that I should run upower -m to see what's going on. So, here's the general output:

Code: Select all
[16:40:44.515]   device added:     /org/freedesktop/UPower/devices/battery_BAT0
[16:40:44.715]   device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[16:40:50.199]   device added:     /org/freedesktop/UPower/devices/battery_BAT0
[16:40:50.379]   device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[16:40:55.983]   device added:     /org/freedesktop/UPower/devices/battery_BAT0
[16:40:56.047]   device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[16:41:01.716]   device added:     /org/freedesktop/UPower/devices/battery_BAT0
[16:41:01.716]   device removed:   /org/freedesktop/UPower/devices/battery_BAT0


And it just keeps doing that forever and ever. I find some similar stuff when I check /var/log/messages:

Code: Select all
Jun 15 16:42:48 joshua upowerd[1091]: treating change event as add on /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0
Jun 15 16:42:53 joshua upowerd[1091]: treating change event as add on /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0
Jun 15 16:42:59 joshua upowerd[1091]: treating change event as add on /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0
Jun 15 16:43:05 joshua kernel: [ 8428.556697] atkbd serio0: Unknown key pressed (translated set 2, code 0x8d on isa0060/serio0).
Jun 15 16:43:05 joshua kernel: [ 8428.556704] atkbd serio0: Use 'setkeycodes e00d <keycode>' to make it known.
Jun 15 16:43:05 joshua upowerd[1091]: treating change event as add on /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0
Jun 15 16:43:10 joshua upowerd[1091]: treating change event as add on /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0


The same messages appear in /var/log/syslog and when I run "journalctl -b". I've tried disabling upowerd through "systemctl disable upowerd", it runs without error, but doesn't change a thing.

Also, since then, my system doesn't shutdown normally. My ordinary shutdown screen shows up, but it stays stuck at "reboot: power down", so I have to press the power button. I've read in a forum that that might be the cause of the upowerd taking up that much CPU, so I put them here together. I've tried "poweroff", "systemctl poweroff" and "shutdown -h now", none of which made any difference. I can't seem to find anything abnormal relating to that in the files I already mentioned here, and "systemctl --failed" only shows "0 loaded units listed". I've tried adding "acpi=force" to /etc/default/grub, but to no effect too.

I've tried upgrading everything to see if that makes a difference too: it didn't change a thing.

My laptop is a Dell Inspiron 1453, in case that matters, and my battery has been dead for years now, but that never gave me a problem. My version of the kernel is 4.19.0-6-amd64, and I run Debian 10. So, any ideas on how to fix that?
LavaPoNada
 
Posts: 1
Joined: 2020-06-15 17:27

Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable