Questions tagged [pm-utils]

several utilities and script useful for power management tasks. Questions about how to use, create and administrate the provided shell or scripts.

19 questions
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
9
votes
4 answers

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, #!/bin/sh case "$1" in hibernate|suspend) …
daisy
  • 53,527
  • 78
  • 236
  • 383
8
votes
1 answer

Linux Mint: Hibernate does not work

I have tried hibernate multiple times on my Linux Mint 14. It does not seem to work. I have added some log which I think may be useful. Can someone help me diagnose the problem? laptop model: I: TOSHIBA Satellite R630/Portable PC, BIOS Version…
rag
  • 1,246
  • 2
  • 19
  • 31
6
votes
0 answers

Running script before suspending while using dbus

I have a file: /etc/pm/sleep.d/85rmNvidiaModule. In it I have: #!/bin/bash case $1 in suspend) echo "Oh, this time we are doing a suspend to RAM. Cool!" sudo modprobe -r nvidia-uvm; optirun true ;; *) echo "Not…
amir
  • 161
  • 2
4
votes
1 answer

hibernate / suspend problems

Problem The Fn-F4 function key combination does not result in hibernating, instead it resets the internet connection instead Symptoms pm-hibernate and pm-suspend just reset the connection. hibernate works, as does s2both. Setup Lenovo X230, updated…
denten
  • 400
  • 1
  • 11
3
votes
0 answers

Why does resume from hibernation pause/hang?

I used suspend (to ram) for a long time, and it worked flawlessly. Recently, I started using hibernate (to disk) - not-quite-flawlessly. Hibernate-to-disk works (from the terminal, so far - as pm-hibernate), and resume almost works. I see…
hunter2
  • 397
  • 1
  • 3
  • 15
3
votes
2 answers

simplest way to enable user (non-root) to suspend laptop

My laptop has suspend capability: # cat /sys/power/state freeze mem and indeed I can suspend as root: echo -n mem > /sys/power/state This works fine. But what would be a minimalist way to enable user (non-root) to suspend ? I am using Debian…
400 the Cat
  • 819
  • 4
  • 37
  • 85
2
votes
1 answer

Resume from hibernate fails after image restoration

I've been trying to get hibernation to work, and am having problems. The system seems to go into hibernation just fine, but when I try to restore from disk, the process stops just after a message saying "Image restoration successful". This is…
hunter2
  • 397
  • 1
  • 3
  • 15
2
votes
1 answer

What kinds of scripts go to which of `/etc/pm/sleep.d` and `/usr/lib/pm-utils/sleep.d`?

In Ubuntu 16.04, the scripts under /etc/pm/sleep.d and /usr/lib/pm-utils/sleep.d are run upon suspension/hibernation and resuming/thawing. If I create a script, can I place it under either directory? Is there some convention of what kinds of scripts…
Tim
  • 98,580
  • 191
  • 570
  • 977
2
votes
1 answer

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 # 00screensaver-lock: lock workstation on hibernate or suspend …
MajorBriggs
  • 1,191
  • 5
  • 12
  • 23
2
votes
1 answer

Wake on LAN through PHY and unicast only works in the first ~30 seconds after pm-suspend

I'm having some trouble with Wake on LAN through PHY and unicast. I'm able to wake the system by pinging or sshing the shut down machine, but only within the first ~30 seconds. Why's that, what could be the cause? I put a script 70wol into…
JohnnyFromBF
  • 3,476
  • 10
  • 32
  • 42
1
vote
0 answers

pm-suspend vs systemctl suspend in Ubuntu 22.04

Currently, suspend does not work on my Thinkpad running ubuntu 22.04. I installed pm-utils (sudo apt install pm-utils) and when I run sudo pm-suspend everything works fine. What is the best way to change the default behaviour of the GUI suspend…
George
  • 11
  • 1
  • 2
1
vote
1 answer

Is it a good practice to make different configuration files as symlinks to some scripts under the same directory?

I was wondering if it is a good practice to make the following configuration files as symlinks to some scripts under a directory e.g. ~/program_files/configurations/. The scripts /etc/rc.local, /etc/profile, ~/.profile, ~/.bash_profile, ~/.bashrc…
Tim
  • 98,580
  • 191
  • 570
  • 977
1
vote
0 answers

Why are there these differences between suspension by the DEs and by pm-utils?

I found some differences between running pm-suspend and clicking "Suspend" menu item in LXDE on Ubuntu 16.04 In both cases I can wake up Ubuntu by pushing the power button on my laptop, but in the way by "Suspend" menu item in LXDE, I have to…
Tim
  • 98,580
  • 191
  • 570
  • 977
1
vote
0 answers

Linux tool for managing pm-utils

I just discovered the pm-utils for suspending and hibernating my laptop. they work great. And I'm about to write a little program that invokes hibernation, in case the battery is low, and: invokes suspend-hybrid whenever there was no user input via…
Anton Harald
  • 283
  • 3
  • 10
1
2