LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2022, 03:55 PM   #1
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Rep: Reputation: Disabled
PC Immediately Wakes Up After Suspend After Replacing Button Battery


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!
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2022-02-27 13-44-42.png
Views:	21
Size:	97.6 KB
ID:	38474  
 
Old 02-28-2022, 08:28 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.
 
1 members found this post helpful.
Old 02-28-2022, 09:00 PM   #3
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
Time Reset in Bios but Suspend still not working

I checked bios and reset the time but suspend still isn't working.
 
Old 02-28-2022, 11:46 PM   #4
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
Screenshots of Output After Attempting Sleep Mode

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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2022-02-28 19-06-16.jpg
Views:	11
Size:	265.0 KB
ID:	38489   Click image for larger version

Name:	Screenshot from 2022-02-28 19-06-36.jpg
Views:	10
Size:	248.7 KB
ID:	38490   Click image for larger version

Name:	Screenshot from 2022-02-28 19-06-53.jpg
Views:	8
Size:	172.0 KB
ID:	38491  
 
Old 03-01-2022, 01:51 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ 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
Then paste the content of journal.txt here (in CODE tags, see my signature), or upload it to a pastebin.

Quote:
Originally Posted by larrymeditates View Post
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?
It does not look like this inhibitor is actually keeping your system from suspending.
 
Old 03-01-2022, 11:11 PM   #6
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-04-2022, 01:17 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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
 
Old 03-06-2022, 11:51 AM   #8
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-08-2022, 01:04 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by larrymeditates View Post
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.
Terminal open? That seems unlikely.

Why did you choose a 7 year old solution instead of one of the links I posted?
 
Old 03-08-2022, 11:08 PM   #10
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-08-2022, 11:23 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by larrymeditates View Post
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?
On Ubuntu? Might work to simply add the line there (no sudo), but you'll be better off making a systemd service.
Is it enough to issue that command once after every boot?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Narrow down reasons that monitor takes longer to resume after laptop wakes from "suspend" LenHoff Linux - Software 6 11-09-2021 09:15 PM
Kubuntu 20.04 - System never wakes up after suspend / sleep jaspreet.lall Ubuntu 0 07-11-2020 08:45 AM
Trouble with Rosa 17.3 upgrade | Seems OK until it wakes up from 'suspend' Ifeyegnuhow Linux Mint 21 03-19-2016 10:50 AM
sleep does not return after machine wakes from suspend kwhitefoot Linux - Laptop and Netbook 1 02-13-2016 05:04 AM
Standby/Sleep immediately wakes up again bsander Linux - Laptop and Netbook 2 05-07-2005 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration