Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

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.

0
votes
0answers
23 views

How to determine if guest OS is suspended when running as virtual machine

Running CentOS 7 and in need to do some network related commands when suspended and resumed by the VMWare. Thus far all the solutions I have seen, is connected to pm-utils. But nothing appears to ...
6
votes
1answer
665 views

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?
1
vote
1answer
48 views

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, /...
0
votes
1answer
346 views

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? ...
1
vote
0answers
234 views

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 ...
1
vote
0answers
35 views

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 ...
1
vote
1answer
280 views

What's the relation between ACPI, udev, HAL and pm-utils

I'm trying to figure out how the power management in achieved in Linux because I want to fix some issues in my laptop. I have found thoughtful documentation about these elements separately. In other ...
0
votes
2answers
498 views

occurrence of a string in multiple file

I have two files input.txt keyword.txt input.txt has contents like: .src_ref 0 "call.s" 24 first 0x000000 0x5a80 0x0060 BRA.l 0x60 .src_ref 0 "call.s" 30 first 0x000002 ...
5
votes
0answers
360 views

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-...
1
vote
0answers
2k views

Where are pm-powersave settings on OpenSUSE 13.2, and are they used?

I am trying to sort out powersaving for OpenSUSE 13.2 running on a laptop. I found this guide: https://en.opensuse.org/Powersaving for understanding Powersaving on OpenSUSE. However, it appears to ...
4
votes
1answer
1k views

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. ...
2
votes
1answer
546 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 # 00screensaver-...
2
votes
1answer
1k views

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 ...
3
votes
0answers
2k views

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

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

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: ...
8
votes
4answers
3k 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, #!/bin/...