Questions tagged [pm-utils]

pm-utils is a suspend and powerstate setting framework. It is designed to replace such scripts as those provided by the powersave package.

32 questions
19
votes
2 answers

Correct way to execute a script on resume from suspend

Ubuntu 20.04 I have done a number of searches for ways to execute a script or command on resume from suspend, and come up with several different methods for doing this, such as what is described here - none of which worked for me. The first method I…
Tracy
  • 495
18
votes
3 answers

How can I automatically hibernate cloud storage servers?

I have cloud storage data centers running Ubuntu 16.04 LTS and NextCloud/OwnCloud that have no need to be available 24/7 and need power management solutions. Servers are Dell PowerEdge 1950 Gen II and Dell PowerEdge 2950 Gen II Overall…
Fab
  • 405
6
votes
1 answer

Ubuntu 15.04 Suspend doesn't run `pm-suspend`

After upgrading to Ubuntu GNOME 15.04 (from 14.10), I noticed my pm-utils hooks in /etc/pm/sleep.d aren't running anymore on suspend/resume. I have a custom script which saves the brightness before suspend and restores it after resume. If I…
Sir_FZ
  • 390
6
votes
2 answers

Ubuntu 15.04, pm-utils do not look into /etc/pm/power.d/ anymore, what instead?

Since upgrade from 14.10 to 15.04 my custom script which I used to setup proper thermal profile mode for my laptop ceased to work, which I believe is because pm-utils do not respond to AC/BAT switching. Now, if that is new intended behavior of the…
dilettant
  • 483
4
votes
1 answer

$TERM set to "dumb" causes problems with suspend

I've just upgraded from 11.04 to 11.10. So far I love it, everything seems just so much snappier. Now I just have one minor issue. When I try to suspend my laptop, it doesn't work - instead it fades out the screen, blocks it and then instantly wakes…
4
votes
2 answers

Have PM utils power.d scripts run all the time

The pm util power saving scripts only work when a laptop is on battery, not when it is plugged in to AC. Is there a way to make pm utils run all the time, regardless of whether the laptop is connected to a power outlet or not?
3
votes
1 answer

Openbox - How to automatically suspend on idle?

Environment: Ubuntu 14.04 bare minimal + Openbox I have installed pm-utils. Specfically, pm-suspend works great on my laptop. However, I have to run it manually. I am wondering if there is a way to set Openbox to automatically suspend after, say,…
Peter
  • 513
3
votes
1 answer

Why hybrid sleep mode(systemctl hybrid-sleep) has default of shutting down?

System Info $ cat /etc/issue Ubuntu 20.04.3 LTS \n \l $ uname -r 5.11.0-27-generic From the official document shown on http://manpages.ubuntu.com/manpages/groovy/man8/pm-action.8.html, pm-suspend-hybrid Hybrid-suspend is the process where the…
3
votes
0 answers

Set pm-suspend as default

Because the command systemctl suspend doesn't work on my computer while pm-suspend apparently works correctly and the device enters sleep mode. I would like to make the last one as default, that is, when the computer automatically enters sleep…
3
votes
3 answers

How can I make UPower and the power subsystem recognize that the power supply is plugged in?

I'm using Xfce4, and it has the xfce4-power-manager for visual cues and upower as one of the core support packages (and I see an /usr/lib/upower/upowerd running in ps aux output). Besides that there's also pm-utils installed, and in the logs I see…
Csaba Toth
  • 1,498
3
votes
1 answer

Another question about Hibernate in 18.04 (not a duplicate)

I have a fresh install of 18.04 on a brand-new high-end laptop. Hibernate works using sudo pm-hibernate By "works" I mean that it saves the system to disk, and powers down. Upon reboot, the session is resumed at exactly the point I left, including…
2
votes
0 answers

Power saving control of CPU

My notebok is Asus U36SD and I've upgraded from 12.04 to 16.04. There was the Jupiter program in Ubuntu 12.04 which was able to drastically change the computer performance - when set to powersave, the machine was notably slow, probably lowering…
pepa.dvorak
  • 121
  • 3
2
votes
1 answer

Set Ubuntu Server 14.04 to go into suspend-hybrid when idle

I have a headless server running Ubuntu Server Edition 14.04. I have tested pm-suspend-hybrid and it works. I am able to manually put the server into suspend-hybrid through command line. I am also successfully able to resume the server through WoL…
2
votes
2 answers

how to make hibernate work on 14.04?

My Ubuntu is 14.04 on Thinkpad T400. I try to run the following command for hibernation: sudo pm-hibernate It flashes and then return back to normal. Running pm-suspend-hybrid also flashes and return back to normal. only sudo pm-suspend will…
Tim
  • 26,107
2
votes
1 answer

Resume from hibernation (pm-hibernate) randomly reboots

I'm using Ubuntu 14.04 with Gnome as primary window manager (not Ubuntu Gnome, just installed Gnome after Ubuntu). I often tend to use pm-hibernate to get into hibernation, but when I boot again the resume sometimes, but not always, fails and the…
DanielB
  • 145
1
2 3