Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4421

Laptop with Ubuntu 22.04.5 LTS not going into sleep mode anymore

$
0
0

My laptop (Dell Inspiron 16 5620) with Ubuntu 22.04.5 LTS does not go into sleep mode anymore. I noticed this, since the battery was empty the next day after closing the lid. This might be related to a distribution upgrade to Ubuntu 24.04.1 LTS, since I think this occurred the first afterwards. Before everything worked perfectly fine and it still works on the Windows partition on the same device. Reinstalling Ubuntu 22.04.5 LTS again did not solve the problem.

I already read a lot in forums, so here is a list of what I have tried already:

  1. Setting

HandleLidSwitch=suspend

or

HandleLidSwitch=hibernate

in /etc/systemd/logind.conf did not change anything. As usual, the screen turns off when closing the lid, but the laptop still consumes a lot of power.

  1. The deep entry in /sys/power/mem_sleep is missing, but I cannot just fix it, since

echo deep > mem_sleep

as root user results in

bash: echo: write error: Invalid argument

  1. A colleague told me that he once had a similar problem where the touchpad kept waking up the computer, so I tried to disable it in /proc/acpi/wakeup. I do not know how to identify the touchpad but I have to tried to disable every option in that file and even disabled all options at the same time but I could still wake up my computer via the touchpad. Also disabling it in the Ubuntu settings just disabled it in the unlocked mode, so the waking up still works.

Also just running

sudo systemctl suspend

did have the same result, so it seems that the sleep mode does not work in general.

I surely missed some points I tried as well but these should be the most important ones. I hope that someone can help me! Thank you very much in advance!

UPDATE:

A friend tried to help me and asked me for the output of sudo dmesg after running sudo systemctl suspend and there we found the line

Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7

Trying sudo systemctl hibernate instead results in the error message

Failed to hibernate system via logind: Sleep verb "hibernate" not supported

This brought me to this question. I tried out the first answer but it unfortunately did not change anything.

Does nobody have an idea?


Viewing all articles
Browse latest Browse all 4421

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>