Questions tagged [suspend]

computer low-power mode, including suspend-to-RAM and suspend-to-disk

494 questions
165
votes
2 answers

How to disable auto suspend when I close laptop lid?

I'm using archlinux. It never auto-suspend before a recent system upgrade(maybe I updated the kernel?). I think it is related to laptop-mode or acpid, so I stop them: /etc/rc.d/laptop-mode stop /etc/rc.d/acpid stop I also edit…
heiz
  • 1,803
  • 2
  • 12
  • 7
64
votes
19 answers

Ubuntu 18.04 won't wake after screen lock and blank / suspend / sleep

I am trying to run Ubuntu 18.04 on a laptop with an AMD A12 processor and Radeon R7 graphics. I am having nothing but problems and am very discouraged with Ubuntu though I used 12.04 for years without such problems. I have two problems that are…
ubuntu_user7
  • 761
  • 1
  • 6
  • 4
54
votes
3 answers

How to disable USB autosuspend on kernel 3.7.10 or above?

I've updated my HTPC from kernel 3.7.10 to 3.10.7 and it seems CONFIG_USB_SUSPEND is now gone from the kernel options and included in PM. The main problem I'm facing is that I have an external HDD and when suspending and waking up the HTPC, it…
Peter
  • 541
  • 1
  • 5
  • 6
42
votes
5 answers

GNOME: disable sleep on lid close

Is it possible to stop my laptop going to sleep when I close the lid? GNOME 3.20, Fedora 24. My laptop does not reliably wake from sleep. (It happens to be a hardware issue... I think I basically killed it while trying to replace a wifi card. But…
sourcejedi
  • 48,311
  • 17
  • 143
  • 296
34
votes
6 answers

How do I make my laptop sleep when it reaches some low battery threshold?

I'm using Ubuntu, but I have i3 as my window manager instead of a desktop environment. When my battery reaches 0%, the computer will just abruptly shut down, no warning or anything. Is there a simple script or configuration I can set up so that it…
o_o_o--
  • 775
  • 1
  • 7
  • 9
29
votes
4 answers

suspend AND lock screen on closing lid in arch/systemd

what is the most straightforward way to lock the screen AND suspend when closing the lid? I'm using event hooks in /etc/systemd/logind.conf and successfully suspend upon closing the lid. However I'm lost when it comes to the locking part - am I…
pldimitrov
  • 393
  • 1
  • 3
  • 5
27
votes
4 answers

Suspend/resume single process to/from disk

On occasion, we would like to suspend memory-intensive processes on our Ubuntu and OS X servers to temporarily free up some RAM for other jobs. If all we were worried about was CPU usage, a simple Ctrl-Z would work. However, we need to be able to…
Mike Covington
  • 1,178
  • 1
  • 9
  • 8
26
votes
2 answers

What is the purpose of the bash `suspend` builtin command?

I typed help suspend and got this short explanation: suspend: suspend [-f] Suspend shell execution. Suspend the execution of this shell until it receives a SIGCONT signal. Unless forced, login shells cannot be suspended. Options: …
sharkant
  • 3,560
  • 10
  • 30
  • 46
25
votes
1 answer

How can tasks "refuse to freeze" on suspend?

Yesterday, when closing my laptop, it did not go into standby mode immediately. According to the logs, it was trying to, but a tasks refused to freeze: Freezing of tasks failed after 20.005 seconds (1 tasks refusing to freeze, wq_busy=0): This went…
piegames
  • 797
  • 1
  • 9
  • 21
23
votes
2 answers

How to run systemd user service to trigger on sleep (aka. suspend, hibernate)?

Based on various sources I have cobbled together ~/.config/systemd/user/screenlock.service: [Unit] Description=Lock X session Before=sleep.target [Service] Environment=DISPLAY=:0 ExecStart=/usr/bin/xautolock…
l0b0
  • 50,672
  • 41
  • 197
  • 360
22
votes
1 answer

pm-suspend vs systemctl suspend?

For Linux distributions using systemd, is there a practical difference between these two commands? systemctl suspend pm-suspend Which should I use or prefer?
Evan Carroll
  • 28,578
  • 45
  • 164
  • 290
19
votes
5 answers

How to debug a suspend problem?

I used to have Fedora 14 installed on this HP Compaq 610, and the suspend feature worked fine. Now that I've installed Scientific Linux 6.1 suspend doesn't work anymore. How do I debug/fix it?
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
18
votes
5 answers

KDE5 After resume from suspend I have corrupted labels under icons

I'm using KDE neon distribution (Ubuntu 16.04 LTS + latest KDE5 DE). Suspend+resume looks to be mostly working on my notebook, but the labels under icons (I have "folder view" set up as background in plasma shell) are corrupted, like this: On the…
Ped7g
  • 283
  • 1
  • 2
  • 7
18
votes
4 answers

how to run a user script after systemd wakeup?

When my debian jessie desktop box wakes up from sleep (via the new shiny systemd) my mouse settings are returned to their defaults, having reset my customisation xinput set-prop 12 'Device Accel Constant Deceleration' 2.5 which runs when I log…
fommil
  • 623
  • 1
  • 5
  • 14
18
votes
2 answers

How to lock my session in Xfce?

I am looking a simple way to lock my session in Xfce (Debian Unstable). I don't want to have to write my password at every wake-up but I want to be able to press to a shortcut (which launches a commandline) which asks for identification. The usage…
ppr
  • 1,887
  • 7
  • 23
  • 40
1
2 3
32 33