Questions tagged [power-management]

Systems to manage power consumption, such as system suspension and hibernation, CPU speed adjustment, disk spindown, battery usage monitoring, …

40
votes
2answers
59k views

Eject / safely remove vs umount

I'm using Ubuntu 12.04, and when I rigth click on a my flash drive icon (in the Unity left bar) I get two options that have me confused: eject and safely remove. The closer I came to an answer was ...
15
votes
4answers
44k views

Ubuntu Server Continuously “goes to sleep”

I am running a web server at home using Ubuntu 11.4 (maybe? I can't 100% recall) on an older AMD 2400+ desktop with 1 or 2 GB of RAM. Sorry I can't recall the details 100%. Anyway, I have a KVM ...
23
votes
5answers
9k 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 instead of a desktop environment. When my battery reaches 0%, the computer will just abruptly shut down, no warning or anything. Is there a ...
15
votes
8answers
19k views

Gnome 3: how to set power button to shutdown instead of suspend?

I am using GNOME 3.18.1 on Arch Linux 4.2.5-1-ARCH x86_64 on a Dell E6530 laptop. Since I installed this OS years ago, the power button on my laptop has always led my OS to completely power down. ...
27
votes
12answers
22k views

How can I get an alert when my battery is about to die in Linux Mint?

This happens to me more than I'd like to admit, but sometimes I don't notice the power getting low since it only shows up in my status bar, then the computer just quits. I'd like a big alert that ...
26
votes
5answers
30k views

Get power consumption of a USB device

Is there a way to check how much power a USB device requires? Why do I need this? I need to connect an LTE USB stick to my Raspberry Pi, and don't know how much power it needs. We got it quite ...
26
votes
3answers
12k views

Return value of current watt consumption on command line

Is there a way to return the current watt consumption on the command line? I have found about the powertop program, but have not seen a way to return the Watt consumption as a value to the command ...
26
votes
2answers
67k views

Turning off power to usb port. Or turn off power to entire usb subsystem

I have a usb lamp which I specifically bought in order to turn it off programmatically at a certain time, thus I need to remove the power to its usb port. I believe I have a usb-hub at usb6. The lamp ...
11
votes
4answers
5k views

NetworkManager: disabled network when sending system to sleep

When I suspend my notebook, NetworkManager disables the wireless network (in nm-manager.c:do_sleep_wake). However, I'd love to still use the network for a very short time (to unmount cifs mounts, ...
25
votes
3answers
3k views

Why are some Intel family 6 CPU models (Core 2, Pentium M) not supported by intel_idle?

I've been tuning my Linux kernel for Intel Core 2 Quad (Yorkfield) processors, and I noticed the following messages from dmesg: [ 0.019526] cpuidle: using governor menu [ 0.531691] clocksource: ...
8
votes
3answers
8k 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 ...
5
votes
1answer
601 views

card reading killing my battery, on macbook pro running Debian

I am currently using a macbook pro but the operating system is debian 8.2 not os x I am using a macbook pro but there's this one device that's just draining a lot of power. This USB device: Card ...
10
votes
1answer
458 views

Screen doesn't always shut off on its own

It seems like when I have certain web pages focused, my screensaver will kick in, but the screen won't turn itself off. Does anyone have any ideas why this might be? Is there a way to disable whatever ...
5
votes
1answer
135 views

How to restrict/cut power output to a USB client?

...or, how not to charge my phone when I'm using it as a GSM modem in USB tether mode? I can use it as WiFi tether modem, but it wastes battery both of the netbook it supplies connectivity to, and on ...
3
votes
0answers
2k views

MacBook Pro Retina: huge power consumption

I'm currently running Debian/Jessie on a MacBook Pro Retina 10,1 15" (early-2103). Everything is going well (ethernet, WiFi, retina, etc.) but I worry about its power consumption. laptop-mode manages ...
2
votes
0answers
1k views

power management of USB-enclosed hard drives [closed]

With a typical USB hard drive enclosure, is the full range of drive power management functionality available? edit: moved this into a separate question: In what may be an unrelated matter: is it ...
2
votes
2answers
1k views

Check if display is powered on in Linux

Is there a way to check if a display is powered on in Linux? I tried xrandr and xset but neither of these two gives me any information about monitor power. Using xrandr I can identify if the vga cable ...
1
vote
1answer
1k views

HDDs won't spin down with hdparm command

I am using Debian Jessie on a HP Proliant Microserver Gen8 with two Western Digital Red 3TB. No RAID or anything else. I wanted the HDDs to automatically spin down after two hours. Triggering it ...
1
vote
0answers
259 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 ...
0
votes
1answer
647 views

How to disable fade to black for the fullscreen console

After a while of inactivity the fullscreen console fades to black until I press a key. I want to disable the fade to black on my fullscreen console running in a VirtualBox. I'm running Debian 8 ...
31
votes
1answer
61k views

Setting CPU governor to on demand or conservative

I'm struggling with cpupower on ArchLinux. I want to set governor to ondemand or even to conservative. First if I do $ sudo cpupower frequency-info --governors, I only get performance powersave. So ...
17
votes
3answers
58k views

How to Reset/Cycle Power to a PCIe Device?

I have a PCIe device that only works correctly when the computer is fully powered off then on again. Issuing a simple reboot or reboot -p command does not appear to cycle the power to the PCIe card, ...
10
votes
5answers
11k views

How can I run an hdparm command after boot and resume on Fedora 19?

I bought a new HD(WD5000BPVT) which unfortunately tries to sleep every 5-8 seconds. Not only is the clicking noise quite audible, the 1-second spinup time adds very noticeable latency in day-to-day ...
13
votes
7answers
16k views

Screen turns on automatically (xset dpms force off)

I am using xset dpms force off to manually turn my screen off to save power. However, it turns back on after some time (20 - 40 seconds). Distro: Ubuntu-Lucid Graphics: Intel 4500 MHD Trying ...
29
votes
7answers
12k views

OS X: how to keep the computer from sleeping during a ssh session

When I ssh into a OS X computer on my network the session lasts until the OS X goes into sleep mode. Is there a way to prevent this from happening during my SSH session, apart from physically bumping ...
8
votes
2answers
16k views

How to avoid powering down certain USB devices when a machine is suspended

I'd like to maintain power supply to a USB-powered drive when the system goes into suspend (AKA S3 or "suspend-to-RAM") mode. Normally the power is cut while the machine is suspended, which causes it ...
13
votes
5answers
7k views

How to stop the screen from blanking / blacking out?

I have re-installed Debian 7 (Wheezy) after a while. For the first time, I am using the open-free Nvidia drivers (not nouveau) and vesafb for virtual consoles. I cannot, for the life of me, stop the ...
7
votes
2answers
2k views

Explanation of file - org.freedesktop.login1.policy

I am using Ubuntu 16.04. There is a file located at /usr/share/polkit-1/actions/org.freedesktop.login1.policy which seems to control the permissions regarding shutdown/suspend/hibernate options. ...
7
votes
3answers
3k 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 ...
7
votes
1answer
2k views

pm-utils: No network in suspend scripts?

I'd like to put a script in /etc/pm/suspend.d/ that needs network access (for a very short time) before allowing the system to suspend. However, even with scripts named "001_something" in /etc/pm/...
5
votes
2answers
995 views

Linux Mint: How to Avoid Suspending While Music is Playing

I have a simple problem: I would like my computer to avoid suspending when music is playing on a desktop application on my computer -- I want to do better than a script that keeps my computer awake ...
11
votes
1answer
2k views

Lenovo T440s battery status unknown, but charging?

I'm trying to configure my Lenovo on arch linux. The last thing I need to do is get the battery 100% working. Right now it appears that the main battery's state is unknown: ...
11
votes
3answers
7k views

How can I set power button (on computer case) to power off system with `systemd`?

How can I set the power button (on my computer case, not keyboard) to power off the system with systemd (without acpid)?
8
votes
2answers
4k views

How to prevent my screens from dimming (going black) from the command line

In KDE, there was a system setting where you could specifically set the monitors to never go black. Now I've switched to dwm and (it might not be related) my screens dim after about 10 minutes. How ...
6
votes
2answers
1k views

Preventing battery from charging

I'm running on UPS power and would like to prevent the laptop's battery from charging, to increase the amount of power available to other devices. Is there a way to do this? update: The machine is a ...
5
votes
1answer
5k views

Setting CPU frequency guidelines

I'm changing my CPU frequency because of noisy fan. I used sudo cpufreq-selector -g powersave for this purpose, but I replaced my Linux system Xubuntu with Lubuntu because it utilizes better ...
5
votes
2answers
643 views

Suspend to RAM not working

I get following error when I try to suspend my laptop: failed to check authorisation: GDBus.Error:org.freedesktop.DBus.Error.Service.Unknown: The name org.freedesktop.PolicyKit1 was not provided by ...
5
votes
5answers
8k views

NMI received for unknown reason 20 — Do you have a strange power saving mode enabled?

I am using Debian GNU/Linux 7.8 (wheezy). While running my MATLAB program today, I got this message in terminal. Message from syslogd@sas21 at Jul 18 16:40:49 ... kernel:[1747708.091929] Uhhuh. NMI ...
3
votes
1answer
5k views

How to get ondemand governor on fedora

In Ubuntu 13.10 on my (Dual Core i5 Lenovo G570) laptop, I recently discovered the wonders of indicator-cpufreq, so I can extend my battery life dramatically by setting it to 'ondemand' or 'powersave' ...
1
vote
1answer
293 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 ...
1
vote
3answers
399 views

How to Distribute Computing of `tar czf` for Longer Time?

My systems go under heavy load when I run sudo tar czf /media/masi/ntfsDisc/backup_home.tar.gz $HOME/ Fans goes to max etc. I would like to find a better balance between computing and power ...
0
votes
1answer
3k views

How to reduce temperature on a Dell XPS (L502X)?

Problem My Laptop is running quite hot (sensors reports ~50-60°C) during normal usage. In my opinion this is too high to work comfortably over long periods. Especially the region where I rest my ...
0
votes
1answer
875 views

How to Improve Power Management in Zenbook UX303UA?

Situation: to improve the power management of the zenbook when I need computation power, especially when the zenbook is in AC I am experimenting about 3 hour battery life without any computation, ...
7
votes
1answer
12k views

What is kondemand?

I have searched the web for the answer of this question but couldn't find a clear answer. Best answer I found was as follows: kondemand is a kernel thread that belongs to the ondemand governor of ...
5
votes
2answers
1k views

Power management hook for running scripts on wake

I'm looking for a way to run an arbitrary script every time my laptop wakes up.
3
votes
0answers
210 views

Suspend / resuming with a loopback swap file (required by btrfs)

I have a small SSD and want to be able to dynamically tune the size of my swap (swappiness=1, my intention is to use it for suspend to disk only) btrfs does not support using a swap file unless it is ...
3
votes
1answer
1k views

Power consumption monitoring problem

I used powertop v.2.1 under Ubuntu 12.04 but it missed the power est. column.It's the same situation as described https://bugzilla.redhat.com/show_bug.cgi?id=796068‎ and that bug is supposed to be ...
3
votes
0answers
214 views

How to prevent applications from causing Powerfail when power management is configured to suspend at 10% battery

When my laptop attempts to suspend itself to avoid powerfail, instead of successfully suspending, I get a popup from xfce4-power-manager: "Are you sure you want to hibernate the system? An application ...
2
votes
2answers
2k views

Prevent Mint from suspending while playing music in Spotify

In Linux Mint 17 I have Suspend when inactive for under Power Management set to 10 minutes. The problem is that the system suspends even when I'm listening to music using Spotify. Is there any way ...
2
votes
2answers
115 views

Mint + Kernel 4.5.4: laptop loses suspend state when unplugged

I'm using Linux Mint 17.3 on a newish Asus laptop with Mate desktop. To get the Nvidia graphics and Elan touchpad both to work, I installed the 4.5.4 Linux kernel. I've pretty much got everything ...