Screen saver wakes during night

Forum rules
Before you post please read how to get help
Post Reply
mellobob
Level 3
Level 3
Posts: 115
Joined: Wed Aug 14, 2013 1:20 pm

Screen saver wakes during night

Post by mellobob » Thu Nov 23, 2017 1:42 pm

I've found that the screen saver is occasionally waking up during the middle of the night on my computers.

At first this was happening on my main computer which was running cinnamon. I originally thought it might be due to backintime running, but stopped that and it continued. So, then I figured it might be plex-media-server. Stopped that as well ... but the computer kept waking up in the night. So, I changed from cinnamon to mate and all has been fine since.

But, the last few days has another computer in my house (the one my wife uses) doing the same thing. And this one has always run Mate. It dutifully goes to sleep around 11PM when the last check of facebook is done. But, it seems to wake up around 1 or 2am (don't know exactly since I'm supposed to be sleeping as well).

On this computer the only things running are a grive update at 1:30am and backintime at 3am. I'm pretty sure the wake up is happening around 2am, but not sure. And these cron items have been running for months without issue.

Oh, and no cats to walk over keyboards either :)

Anyone else with similar issues? Anyway to track what is happening to cause the wake?

I'm running Linux Mate 18.2 with kernel 4.10.0-35.39~16.04.1-generic 4.10.17.

Thanks.

User avatar
Spearmint2
Level 15
Level 15
Posts: 5705
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Screen saver wakes during night

Post by Spearmint2 » Thu Nov 23, 2017 5:01 pm

go into BIOS and turn off WOL (wake on LAN). If that doesn't and you have pets, then also turn off the other "wake on" functions.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

mellobob
Level 3
Level 3
Posts: 115
Joined: Wed Aug 14, 2013 1:20 pm

Re: Screen saver wakes during night

Post by mellobob » Fri Nov 24, 2017 1:08 pm

Thanks for the suggestion. Never consider the WOL as a culprit.

I turned it off yesterday on the misbehaving machine and it did sleep the night. We'll monitor for a bit longer before we give the problem a <solved> label.

But, question: Is this a bug in the BIOS, kernel or what? I've run machines for years with WOL enabled (even though I have never used the function) and never had this issue before. And even if the port does get a magic packet telling it to wake, should it not go back to sleep after the set timeout? Inquiring minds want to know :)

User avatar
Spearmint2
Level 15
Level 15
Posts: 5705
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Screen saver wakes during night

Post by Spearmint2 » Fri Nov 24, 2017 3:11 pm

mellobob wrote:Thanks for the suggestion. Never consider the WOL as a culprit.

I turned it off yesterday on the misbehaving machine and it did sleep the night. We'll monitor for a bit longer before we give the problem a <solved> label.

But, question: Is this a bug in the BIOS, kernel or what? I've run machines for years with WOL enabled (even though I have never used the function) and never had this issue before. And even if the port does get a magic packet telling it to wake, should it not go back to sleep after the set timeout? Inquiring minds want to know :)
To have it go back to sleep after a while you need to set that in the power settings, which you probably have set to NEVER. Windows co-opts the ACPI from the BIOS, but not sure if Linux does the same. Good questions!
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

mellobob
Level 3
Level 3
Posts: 115
Joined: Wed Aug 14, 2013 1:20 pm

Re: Screen saver wakes during night

Post by mellobob » Fri Nov 24, 2017 8:55 pm

I usually have the <put computer to sleep> to NEVER and the <put display to sleep> to 30 minutes.

So, what you are saying is that WOL will wake the computer (which mine wasn't) and as a result of that the display gets woken as well? Perhaps the display waking is a side effect of the computer waking (even if it isn't sleeping). And then the computer doesn't know to turn the screen off again?

All very confusing. Plus, where is that darned WOL magic coming from? Maybe Facebook is sending this out just because :)

User avatar
Spearmint2
Level 15
Level 15
Posts: 5705
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Screen saver wakes during night

Post by Spearmint2 » Fri Nov 24, 2017 9:02 pm

That's it. If you change power settings to sleep after 30-40 minutes, you should be OK in both situations.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
all41
Level 12
Level 12
Posts: 4181
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Screen saver wakes during night

Post by all41 » Fri Nov 24, 2017 9:26 pm

fwiw:
I use WOL on my network and have never had a rude or unexpected awakening.
WOL will turn remote computers on, wake them from suspend, or wake them from hibernate.
WOL does not effect computers when their screensaver is running in any manner
Proud to be a supporter and monthly contributor to Mint.

mellobob
Level 3
Level 3
Posts: 115
Joined: Wed Aug 14, 2013 1:20 pm

Re: Screen saver wakes during night

Post by mellobob » Fri Nov 24, 2017 10:02 pm

Spearmint2 wrote:That's it. If you change power settings to sleep after 30-40 minutes, you should be OK in both situations.
Yes, but putting the computer to sleep ... doesn't that stop things like cron and other midnight tasks from running?

User avatar
all41
Level 12
Level 12
Posts: 4181
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Screen saver wakes during night

Post by all41 » Fri Nov 24, 2017 10:25 pm

Suspend (to ram) and Hibernate (suspend to disk) differ from Screensaver.
So this may just be terminology.
Screensaver only blanks the screen, or substitutes alternate graphics, but the entire system is still operational under full power.
Suspend copies the entire system to ram for later recall and retains only enough power to keep those ram memories intact.
Hibernate copies the entire system to the HD and shuts the computer entirely off.
In your bios settings under Power settings is your system perhaps set to resume after power failure?
Proud to be a supporter and monthly contributor to Mint.

User avatar
trytip
Level 6
Level 6
Posts: 1439
Joined: Tue Jul 05, 2016 1:20 pm

Re: Screen saver wakes during night

Post by trytip » Fri Nov 24, 2017 10:47 pm

why not just turn off the computer before you bed. no sense in it sleeping and consuming power unless you want to keep somethings in sync.
Image

sgtor
Level 2
Level 2
Posts: 85
Joined: Sat May 13, 2017 9:39 pm

Re: Screen saver wakes during night

Post by sgtor » Sat Nov 25, 2017 1:35 am

In the summer time when I had a fan running very far away from the computer during sleep it would actually move the mouse just enough to wake the computer. And I mean a miniscule amount so be sure to check things like that if it keeps happening, even a breeze from an open window.

I started turning the mouse off, problem went away.

User avatar
Spearmint2
Level 15
Level 15
Posts: 5705
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Screen saver wakes during night

Post by Spearmint2 » Sat Nov 25, 2017 2:30 am

sgtor wrote:In the summer time when I had a fan running very far away from the computer during sleep it would actually move the mouse just enough to wake the computer. And I mean a miniscule amount so be sure to check things like that if it keeps happening, even a breeze from an open window.

I started turning the mouse off, problem went away.
That can happen if the battery in mouse is low too, because it pops up a warning and can wake computer up.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

mellobob
Level 3
Level 3
Posts: 115
Joined: Wed Aug 14, 2013 1:20 pm

Re: Screen saver wakes during night

Post by mellobob » Sat Nov 25, 2017 12:43 pm

Just a bit of summary:

- mouse is not moving. The room has no windows or even a heat vent.
- I too had WOL enabled for years. This is a new problem on 2 different computers.
- computer 1 solution was to switch from Cinnamon to Mate
- computer 2 solution was to disable WOL
- both computers have blank screen set for 20 minutes and "sleep" never.
- turn off the computer at night? Really? People do that?

Anyway, it seems to be okay now. If the little guy starts to wake up again I'll have a serious chat with it and let you folks know.

User avatar
Spearmint2
Level 15
Level 15
Posts: 5705
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Screen saver wakes during night

Post by Spearmint2 » Sat Nov 25, 2017 4:51 pm

Speaking of nightime. Puts a button at end of URL toolbar, only needs a clk to change between day and night mode. Works in FF57.

https://addons.mozilla.org/en-US/firefo ... e/?src=api

what it looks like on this forum.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

sgtor
Level 2
Level 2
Posts: 85
Joined: Sat May 13, 2017 9:39 pm

Re: Screen saver wakes during night

Post by sgtor » Sun Nov 26, 2017 6:42 pm

Spearmint2 wrote:
sgtor wrote:In the summer time when I had a fan running very far away from the computer during sleep it would actually move the mouse just enough to wake the computer. And I mean a miniscule amount so be sure to check things like that if it keeps happening, even a breeze from an open window.

I started turning the mouse off, problem went away.
That can happen if the battery in mouse is low too, because it pops up a warning and can wake computer up.
I actually never would of thought of that, thanks for the tip. :)

mellobob
Level 3
Level 3
Posts: 115
Joined: Wed Aug 14, 2013 1:20 pm

Re: Screen saver wakes during night

Post by mellobob » Sun Nov 26, 2017 8:07 pm

So, learned one thing: It's not a problem with WOL. The miscreant woke up last night.

Next thing to try: I've installed (well, plugged in!) a different keyboard. We'll see how this manages.

BTW, I've got no fans blowing, no batteries in my keyboard or mouse. The computer is plugged into UPS.

Is there a logging I could enable or examine which lists time and event for wake?

sgtor
Level 2
Level 2
Posts: 85
Joined: Sat May 13, 2017 9:39 pm

Re: Screen saver wakes during night

Post by sgtor » Mon Nov 27, 2017 2:01 am

mellobob wrote:So, learned one thing: It's not a problem with WOL. The miscreant woke up last night.

Next thing to try: I've installed (well, plugged in!) a different keyboard. We'll see how this manages.

BTW, I've got no fans blowing, no batteries in my keyboard or mouse. The computer is plugged into UPS.

Is there a logging I could enable or examine which lists time and event for wake?
Actually give this a try.

Code: Select all

journalctl | grep -i wake | less
I'm not sure how informative it will be but it's all I can think of off the top of my head.

The crazy thing is I used to have this problem in windows and every time I would turn off the wake settings for the culprit program or device it would get set to wake again after an update etc, etc.

With some research I found a command to run in dos that showed anything that could wake the computer and if it was set to wake or not.
There must be some way to do that in Linux but I don't know how since I've never had to research it since I've switched to linux.
Maybe someone else knows how.

Edit:
Actually now that I think of it you should run dmesg. that should give you some good info too if you run it as soon as you see the computer has woken up.

mellobob
Level 3
Level 3
Posts: 115
Joined: Wed Aug 14, 2013 1:20 pm

Re: Screen saver wakes during night

Post by mellobob » Mon Nov 27, 2017 2:58 pm

Okay ... it's not the keyboard.

I'm just going to leave this for a few more days until I get updated to 18.3. Hopefully that will help :roll:

One thing I have discovered is that the timing seems to be connected to the running of backintime. Looking at the syslog I see that it does a:

backintime (val/1): INFO: Inhibit Suspend started. Reason: take snapshot

at the start of a run and

mellownet backintime (val/1): INFO: Release inhibit Suspend

at the end. Makes sense to inhibit suspend while doing a backup, and I don't know if there is a connection between releasing this and X screen displays.

Post Reply

Return to “MATE”