PC Immediately Wakes Up After Suspend After Replacing Button Battery
1 Attachment(s)
I replaced the CMOS battery on my Dell Optiplex motherboard yesterday and now the PC wakes up immediately after I try to put it in suspend. My OS is Ubuntu 20.04.4LTS
I used the following command to find out what is inhibiting suspend mode: systemd-inhibit --list --mode=block The inhibitor is shown in the attached screenshot below. Can you tell me how to disable this inhibitor? Thank you! |
Did you go into the BIOS after installing the new battery and validate the BIOS setting are correct; including the hardware time of day clock?
Systems do strange things with wrong TOD clock settings. |
Time Reset in Bios but Suspend still not working
I checked bios and reset the time but suspend still isn't working.
|
Screenshots of Output After Attempting Sleep Mode
3 Attachment(s)
A user at Stackexchange suggested a command showing the output after attempting a failed suspend. I've attached the screenshots below. I had difficulty showing everything. Can you tell me what is blocking my PC from going into suspend? Thanks.
|
^ Please can you simply copy-paste the text here? I haver difficulty reading this.
Assuming the problematic behavior occured less than 5min ago, try Code:
sudo journalctl --since "-5 minutes" > journal.txt Quote:
|
Terminal Output
The output was too long to paste in this post (60,002 characters) so I pasted a copy in pastebin: https://pastebin.com/gmGXbKzg
I haven't done this before so I'm hoping you can access it. Thanks. |
It looks like your machine simply wakes 5s up after you put it to sleep without any obvious error.
Sounds familiar... a quick web search yields some interesting results: https://askubuntu.com/questions/1303...-after-suspend https://forums.linuxmint.com/viewtopic.php?t=313164 https://www.reddit.com/r/linuxquesti...epsuspend_due/ HTH |
Found a temporary solution
This post helped:
https://askubuntu.com/questions/5982...conds-of-sleep As a temporary solution I'm using echo EHC1 | sudo tee /proc/acpi/wakeup but I have to keep the terminal open for suspend to work. I wasn't able to determine how to make this permanent. Can you tell me how? Thanks. |
Quote:
Why did you choose a 7 year old solution instead of one of the links I posted? |
So it looks like the culprit is EHC1 but I don't want to have to open a terminal and enter the command each time so I can put my PC in suspend. In the posting I mentioned, it said that you can add this to your /etc/rc.local to make the change permanent. Do you know how to do that? Thanks.
|
Quote:
Is it enough to issue that command once after every boot? |
All times are GMT -5. The time now is 07:28 PM. |