Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Debian goes to sleep, how to disable
Debian goes to sleep, how to disable
Hello,
I have been using Debian(stable) for years now, but just noticed a curious thing. Since recent I have been leaving my setup turned on, but it somehow enters a form of sleep. It translates to me moving the mouse and it will freeze and be sluggish for a few minutes, even with all the gnome power options set to never interrupt anything.
Seen in dmesg https://paste.debian.net/hidden/075af845/ line 1029 until 1161 you see it going into deep sleep, disabling all CPUs(I find that hard to believe) and turns everything off. How do I disable this? The device is not inactive (not a heavy load) but still doing some tasks I specified. This interferes with that.
NOTE: If you read the entire dmesg you notice the usb devices get unplugged and plugged, this is me. Also the network links going up and down is a known issue, my router is on the verge of death.
Can anyone shed some light on this? Thanks in advance,
EarlGrey
I have been using Debian(stable) for years now, but just noticed a curious thing. Since recent I have been leaving my setup turned on, but it somehow enters a form of sleep. It translates to me moving the mouse and it will freeze and be sluggish for a few minutes, even with all the gnome power options set to never interrupt anything.
Seen in dmesg https://paste.debian.net/hidden/075af845/ line 1029 until 1161 you see it going into deep sleep, disabling all CPUs(I find that hard to believe) and turns everything off. How do I disable this? The device is not inactive (not a heavy load) but still doing some tasks I specified. This interferes with that.
NOTE: If you read the entire dmesg you notice the usb devices get unplugged and plugged, this is me. Also the network links going up and down is a known issue, my router is on the verge of death.
Can anyone shed some light on this? Thanks in advance,
EarlGrey
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Debian goes to sleep, how to disable
Can you
Then use this instead:
https://wiki.debian.org/Suspend
Code: Select all
# apt purge pm-utils
Code: Select all
systemctl suspend
deadbang
Re: Debian goes to sleep, how to disable
The package "pm-utils" wasn't installed.Head_on_a_Stick wrote:Can youThen use this instead:Code: Select all
# apt purge pm-utils
https://wiki.debian.org/SuspendCode: Select all
systemctl suspend
The systemctl did suspend my desktop, but that is what I never want to have happen. Should I still use 'sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target' to disable the machine to go into suspend?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Debian goes to sleep, how to disable
No, don't do that.EarlGrey wrote:Should I still use 'sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target' to disable the machine to go into suspend?
Can we see
Code: Select all
systemd-inhibit
deadbang
Re: Debian goes to sleep, how to disable
I *believe* acpi_fakekey should be able to simulate a keyboard interrupt. Haven used it for hat purpose though...
A simple script sending an \255 (or whatever) every minute or ten *might* work.
also
https://askubuntu.com/questions/288114/ ... oard-input
A simple script sending an \255 (or whatever) every minute or ten *might* work.
also
https://askubuntu.com/questions/288114/ ... oard-input
Re: Debian goes to sleep, how to disable
There may be BIOS settings for PowerManagement.
If you see anything set to S5 change it to S3
S5 = Deep Suspend/Sleep
S1 = Suspend/Sleep off
All mobo manufacutures word there BIOS features differently
so a good idea to check the mobos' BIOS docs
If you see anything set to S5 change it to S3
S5 = Deep Suspend/Sleep
S1 = Suspend/Sleep off
All mobo manufacutures word there BIOS features differently
so a good idea to check the mobos' BIOS docs
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
Re: Debian goes to sleep, how to disable
I actually did did the systemctl thing, but unmaksed it now. What does it do exactly?Head_on_a_Stick wrote:No, don't do that.EarlGrey wrote:Should I still use 'sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target' to disable the machine to go into suspend?
Can we seeCode: Select all
systemd-inhibit
The systemd-inhibit:
Code: Select all
Who: GNOME Shell (UID 1000/EarlGrey, PID 2752/gnome-shell)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: Debian-gdm (UID 117/Debian-gdm, PID 2176/gnome-settings-)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: ModemManager (UID 0/root, PID 1694/ModemManager)
What: sleep
Why: ModemManager needs to reset devices
Mode: delay
Who: EarlGrey (UID 1000/EarlGrey, PID 2847/gnome-settings-)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Who: Debian-gdm (UID 117/Debian-gdm, PID 2176/gnome-settings-)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Who: NetworkManager (UID 0/root, PID 1691/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: Telepathy (UID 1000/EarlGrey, PID 2800/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: EarlGrey (UID 1000/EarlGrey, PID 2847/gnome-settings-)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
8 inhibitors listed.
That is a solution, but I want to know/learn how to properly deal with this.millpond wrote:I *believe* acpi_fakekey should be able to simulate a keyboard interrupt. Haven used it for hat purpose though...
A simple script sending an \255 (or whatever) every minute or ten *might* work.
also
https://askubuntu.com/questions/288114/ ... oard-input
I will check for the mobo settings, thanks.llivv wrote:There may be BIOS settings for PowerManagement.
If you see anything set to S5 change it to S3
S5 = Deep Suspend/Sleep
S1 = Suspend/Sleep off
All mobo manufacutures word there BIOS features differently
so a good idea to check the mobos' BIOS docs
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Debian goes to sleep, how to disable
I just think that hamstringing your machine's ability to suspend sounds like an awful hack, there must be a better way.EarlGrey wrote:I actually did did the systemctl thing, but unmaksed it now. What does it do exactly?
I can't see anything apart from GNOME controlling the suspend mechanism so it must be the firmware ("BIOS").
deadbang
Re: Debian goes to sleep, how to disable
I haven't checked bios yet, but doing that systemctl thing and undoing it, seems to have fixed the issue. I will check the BIOS anyway.Head_on_a_Stick wrote:I just think that hamstringing your machine's ability to suspend sounds like an awful hack, there must be a better way.EarlGrey wrote:I actually did did the systemctl thing, but unmaksed it now. What does it do exactly?
I can't see anything apart from GNOME controlling the suspend mechanism so it must be the firmware ("BIOS").
edit: All the power settings et cetera in the BIOS are already disabled, so it must be software related.
Re: Debian goes to sleep, how to disable
Yeah everything on a computer is software related, but that doesn;t mean a hardware solution doesn't exist.EarlGrey wrote:I haven't checked bios yet, but doing that systemctl thing and undoing it, seems to have fixed the issue. I will check the BIOS anyway.Head_on_a_Stick wrote:I just think that hamstringing your machine's ability to suspend sounds like an awful hack, there must be a better way.EarlGrey wrote:I actually did did the systemctl thing, but unmaksed it now. What does it do exactly?
I can't see anything apart from GNOME controlling the suspend mechanism so it must be the firmware ("BIOS").
edit: All the power settings et cetera in the BIOS are already disabled, so it must be software related.
This, from your dmesg is a new one on me, did you look it up?
"Broke affinity for irq"
p.s. maybe some hardware details will help others figure out what's going on.
what's this?
[ 3.112376] spl: loading out-of-tree module taints kernel.
resigned by AI ChatGPT
Re: Debian goes to sleep, how to disable
could it be related to the xserver?EarlGrey wrote:Seen in dmesg https://paste.debian.net/hidden/075af845/ line 1029 until 1161 you see it going into deep sleep, disabling all CPUs(I find that hard to believe) and turns everything off. How do I disable this? The device is not inactive (not a heavy load) but still doing some tasks I specified. This interferes with that.EarlGrey
check the Xorg.0.log
After a reboot the log will be named something else ie: Xorg.1.log or Xorg.0.log.old etc.
At the off chance it is related to DRMSETMASTER that should show up somewhere near the end of the log.
The symptoms you describe look vaguely familiar...
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Debian goes to sleep, how to disable
The OP appears to be using zfs (dirty boy!), which necessitates a non-GPL module.bw123 wrote:what's this?[ 3.112376] spl: loading out-of-tree module taints kernel.
deadbang
Re: Debian goes to sleep, how to disable
On Mate here I have an applet at the top bar which enables or disables sleep, and works well:
Power Manager Inhibit Applet
Power Manager Inhibit Applet
Re: Debian goes to sleep, how to disable
I have the same problem. One solution I've found is to keep me (as an admin) always logged in (and with locked screen), in which case it does not go to sleep.