The tag has no wiki summary.

learn more… | top users | synonyms

26
votes
1answer
20k views

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 ...
10
votes
4answers
401 views

In bash, what are potential negative consequences of pausing a process with control-z?

Using bash, one can pause a process with control-z. However, are there any general circumstances or guidelines to beware of where a process would not behave well with being paused? My specific ...
10
votes
1answer
891 views

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. Under i3, when my battery reaches 0%, the computer will just abruptly shut down, no warning or anything. Is there a simple script or ...
10
votes
4answers
3k views

How can I debug a Suspend-to-RAM issue on Linux?

I'm hoping to get experience-based suggestions on how to go about debugging suspend-to-RAM issue. Advice specific to my situation(detailed below) would be great, but I am also interested in general ...
9
votes
3answers
258 views

Is there a risk of data corruption if suspended laptop runs out of battery?

I often tend to just put my laptop on suspend using xfce4-power-manager, and although usually the battery is sufficiently charged up until the next time (when I plug in the charger), sometimes I ...
8
votes
2answers
5k views

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 ...
8
votes
3answers
815 views

Samsung Ultra book won't wake up after hibernate and suspend on Crunchbang

I've been struggling for a few hours to get suspend and hibernate working on my Samsung ATIV BOOK 9 Lite. When I try to resume the screen power led goes on, but screen stays black. The capslock led ...
8
votes
2answers
551 views

System-wide power management policy on debian-based distros?

I would like to put idle machines in our lab (running Mint Debian edition) on standby after a timeout. I have tried pm-suspend and it puts the machines on standby and wakes up fine. Does anybody know ...
7
votes
2answers
3k views

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?
7
votes
1answer
303 views

Auto-Mounting CIFS Shares on Laptop

I've seen questions similar to this asked before in several variations, but I have yet to locate a satisfactory answer. Here's what I have: A highly mobile Debian laptop that switches networks ...
6
votes
1answer
427 views

Is it possible to automatically wake from suspend?

Here's my problem: I have a laptop running Arch that I just keep on at home. It's got a good 4 hour battery life, but sometimes my daughter is playing near where it's kept and ends out pulling the ...
5
votes
4answers
2k views

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 ...
5
votes
1answer
580 views

How to stop application from being suspended by Ctrl+z?

Currently I'm running dvtm inside a terminal, and vim inside dvtm. When I press Ctrl+z intending to suspend vim, dvtm got suspended instead. I didn't have this problem with screen or tmux, so I think ...
5
votes
3answers
424 views

Suspending my laptop breaks ethernet over firewire, are there commands which can fix it?

As mentioned in this question I am using a firewire cable to provide a private network between my laptop and my desktop, because it makes using the screen sharing program synergy much nicer than using ...
5
votes
3answers
844 views

Where to put scripts that run when computer is resumed?

I need to lock the screen when my computer is waken up from memory suspend, So I tried to put the following script to /usr/lib/pm-utils/sleep.d and /etc/pm/sleep.d, but it never got executed, ...
4
votes
3answers
94 views

A way for saving running state of a program

I have a program that will perform a lengthy calculation which may take several days to be completed. Is there a way to save the program's running state; so I will be able to turn off the computer ...
4
votes
2answers
1k views

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 ...
4
votes
1answer
2k views

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 ...
4
votes
2answers
773 views

How do I prevent GNOME suspending while I finish a compilation job

I am trying to build a custom kernel for my machine which is taking a long time to build (as expected). Is it possible to stop my GNOME desktop from suspending the machine until the compilation has ...
4
votes
1answer
1k views

Run a script after lid is opened

I would like to run a script after my laptop lid is opened. is there anything like rc.local that is run after the laptop wakes up after suspending? I use Ubuntu 12 (I need it because some of the ...
4
votes
1answer
659 views

“Memory corruption detected in low memory” kernel messages?

I have some memory corruption detected in low memory messages. I have read about it here, but I'm afraid I can't really make anything out of the discussion. It does indeed happen when I ...
4
votes
1answer
893 views

Where is the log for ACPI events?

Running Mint 14. Sometimes I can suspend fine, but after my computer is on for a while, it no longer suspends. It wakes up after a second or so without any external inputs. My guess is that I'm ...
4
votes
1answer
30 views

How can I tell what woke my laptop from suspend? [duplicate]

On other operating systems, there are ways to see what process or event woke them from suspend. I leave my laptop often for multiple days in suspend, sometimes to find that it has woken itself up and ...
4
votes
1answer
416 views

Suspending laptop fails ~50% of the time

Running ArchLinux and GNOME 3 on a Thinkpad X220. When I suspend my laptop it goes into sleep mode and the LED ring around the power button fades in and out. When a suspend fails, the LED ring and ...
4
votes
2answers
554 views

Laptop does not power off after it has been suspended to ram

I suspend my laptop using echo mem > /sys/power/state. That works fine and it resumes nicely. Once I try to power it off, it shuts down fine until i see the message Power down. (or similar). ...
3
votes
2answers
456 views

Determine time of last suspend(-to-ram)

I have a backup script that is run each night. If my (Linux-) host is suspended it is woken up by another host before the script runs. I would like to be able to suspend my host again after the ...
3
votes
3answers
58 views

How to find reason a notebook wakes up?

I'm having a problem with my notebook suspending, but then waking up when I don't want it to (either immediately, or much later when in the bag - I may have two issues to solve here). But for the ...
3
votes
3answers
54 views

Intelligently switch between multiple BASH processes

Say you're in a directory and you want to check something in another directory, so you type bash to spawn a new shell so you can cd and check that thing and then type exit to get out and go back to ...
3
votes
1answer
706 views

Debian wake up from suspend password

I am using Debian Squeeze. When I suspend my laptop and wake it up again later, it doesn't ask for the system password. How do I fix this?
3
votes
1answer
316 views

Graphics dim, but mouse cursor not dim

When I resume from suspend-to-ram often the graphics on my internal screen is dim (around 30-50% intensity). Initially I thought it might be the backlight, but the mouse cursor is not dimmed - only ...
3
votes
2answers
216 views

Auto restart ssh session after sleep

I have an active ssh session to a remote server that it would be nice to be able to restart upon waking from sleep/hibernate (ubuntu), and seamlessly restore tunnels. The Gnome Terminal window is ...
3
votes
2answers
290 views

How to encrypt my system such that suspend to RAM works and is also encrypted

How can I encrypt my system (at best using lvm + dm-crypt/luks) such that suspend to RAM works and that everything is in an encrypted state when suspended to RAM?
3
votes
1answer
126 views

Turn on PC speaker after resume

After resuming from suspend my PC speaker becomes silent. I need to run alsamixer and arbitrarily adjust its volume either up or down for it to come back again. But if I suspend and then resume a ...
3
votes
1answer
369 views

Kubuntu doesn't reconnect to Wifi after waking up from sleep

I just installed Kubuntu on my laptop and it's working fine so far, except the wireless connection is not switched on after waking up from sleep. I do have to click "Enable wireless" so that it ...
3
votes
0answers
40 views

Play sound when suspending and resuming

I'm trying to get my sound theme all working how I want it. Reading the sound naming spec by freedesktop, it has an entry "suspend-start" and "suspend-end", which is supposed to fire when the ...
3
votes
0answers
91 views

How to prevent the Linux kernel from waking a secondary HDD from sleep

Is there a way to instruct the (Linux) kernel not to wake up a secondary hdd after a system sleep/wake-up cycle? I'm asking because in my laptop I have an SSD as a primary drive containing the system ...
3
votes
0answers
131 views

how to stop Clementine playback on suspend using systemd

As the title says, I'm trying to stop Clementine playback using DBus before entering suspend mode. Here is my service file right now: [Unit] Description=Stop Clementine playback before suspend ...
3
votes
0answers
167 views

Sleep key stops working after some time

I've got a "Sleep" key on my keyboard that I use to suspend the system when I'm away from the computer for a longer time. This works fine, at least for a while after I've turned the computer on. ...
3
votes
1answer
501 views

openSUSE 11.4 doesn't wake up from suspend to ram, sometimes doesn't logout

I have openSUSE 11.4 on a vaio S series laptop, using KDE, and it is nearly up-to-date. Everything was fine but after an update (whose details I can't remember), these problems appeared: Nearly ...
3
votes
0answers
1k views

Make laptop to wake up by keyboard and mouse

The only way I can wake up my laptop (HP Elitebook 8460p) from suspend is by pressing the power button. Neither the built-in keyboard/mouse nor the external ones (connected via USB) wake the laptop ...
3
votes
3answers
3k views

Ubuntu won't Hibernate

With my new built computer Ubuntu 10.4 lucid won't hibernate or suspend. It's a custom-built Core i7 on the Gigabyte X58A-UD3R motherboard. Hibernate is enabled in the bios. Running sudo hibernate ...
2
votes
2answers
2k views

Fedora auto suspend

I am using Fedora 13 and for shutting down and rebooting automatically, we have the following commands: # shutdown -h/-r now Similarly, if I want to make my system go into suspend mode after ...
2
votes
1answer
414 views

Not wake up after suspension

My OS is Ubuntu 12.04 on my laptop Lenovo T400. I had been using it quite well until this week. After suspending Ubuntu, whenever I lift the laptop lid (if the lid is closed), or press "Fn" key (if ...
2
votes
2answers
997 views

Removing supend and hibernate privileges

On OpenSUSE 12.1 x86_64, Gnome 3.2 . I want to remove the suspend and hibernate options from the Gnome (Shell) menu as suspend makes no sense IMO for a desktop hibernate has a slight tendency to ...
2
votes
2answers
4k views

ACPI wakeup from keyboard/mouse via /proc/acpi/wakeup after suspend. How to find the correct device?

I'd like to wakeup my system via keyboard or mouse. This can be done via /proc/acpi/wakeup and a simple echo DEVNAME > /proc/acpi/wakeup my wakeup file looks like this Device S-state ...
2
votes
1answer
18 views

Suspend from console without leaving authenticated terminam on wake up

I want to suspend my computer from terminal (one obtained by CTR+ALT+F1). If I call: # echo -n mem > /sys/power/state after wakeup I'm leaving authenticated console with (possibly) root ...
2
votes
1answer
91 views

Locking console when computer suspends/hibernates

In X I've used the following script (from here) to lock the computer with i3lock each time pm-suspend or pm-hibernate are invoked. /etc/pm/sleep.d/00screensaver-lock: #!/bin/sh # ...
2
votes
1answer
584 views

LinuxMint15: Suspend to RAM not working

I just installed LinuxMint15 on an Acer Aspire V3-771G-73638G500Maii. Hibernation works. But suspend to RAM does not. When clicking suspend: After a few seconds the screen goes grey and then off. ...
2
votes
2answers
301 views

command not running in cron (systemctl suspend)

I have this cronjob set : * * * * * /usr/bin/systemctl suspend And it is not working. But I can run it in a shell and it works. I don't understand what could be not working. EDIT Redirecting error ...
2
votes
1answer
70 views

Can e2fsck be suspended?

I have a large hard disk partition. I would like to launch e2fsck on it so that i shall suspend its progress, be able to reboot and resume e2fsck from where it was suspended.