Questions tagged [power-management]

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

This tag is about issues, procedures, and problems related to power aspect of the *nix system from power save, system idle time, hibernate, auto-shutdown and other related acpi subjects.

562 questions
85
votes
4 answers

How to turn off Wireless power management permanently

In Linux Mint 17.3 / 18 iwconfig says the power management of my wireless card is turned on. I want to turn it off permanently or some workaround on this issue. sudo iwconfig wlan0 power off works, until I reboot the laptop. Also, if I randomly…
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
75
votes
4 answers

How to find power draw in watts?

I've been asked to estimate the power consumption of the servers I run for my laboratory. I thought that I'd ask if there was some handy Linux commandline to get the power consumption of the server. It looks like powertop is useful for minimizing…
speciousfool
  • 897
  • 1
  • 6
  • 6
58
votes
2 answers

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 this forum thread, which concludes that (for a…
LGenzelis
  • 701
  • 1
  • 6
  • 8
54
votes
3 answers

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 and when suspending and waking up the HTPC, it…
Peter
  • 541
  • 1
  • 5
  • 6
49
votes
13 answers

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 warns me before this happens. Is there any way for it…
Travis Reeder
  • 853
  • 2
  • 8
  • 11
49
votes
2 answers

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 is connected to one of the ports in this…
user84207
  • 871
  • 2
  • 14
  • 19
47
votes
5 answers

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 easily on Windows, but haven't found a way to do it on…
TheMeaningfulEngineer
  • 5,735
  • 15
  • 64
  • 113
46
votes
4 answers

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, which causes it not to work after the reboot. Is…
zachd1_618
  • 561
  • 1
  • 5
  • 6
45
votes
7 answers

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 line. I'm thinking of some file that I can cat or…
please delete me
  • 2,419
  • 5
  • 28
  • 28
38
votes
7 answers

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 the mouse or typing keys, or manually disabling…
Stefan
  • 24,830
  • 40
  • 98
  • 126
37
votes
2 answers

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 I look for available modules like this ls -1…
lviggiani
  • 3,549
  • 7
  • 35
  • 67
35
votes
5 answers

Shutdown my (backup) hard disk on Linux when I don't use it

I have a hard disk in my computer that I use to make backups of my data. I do not use this disk otherwise. How can I stop this disk from spinning once my backup is finished? Also how would I make it spin back up again before the backup takes place…
Totor
  • 19,302
  • 17
  • 75
  • 102
34
votes
6 answers

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 simple script or configuration I can set up so that it…
o_o_o--
  • 775
  • 1
  • 7
  • 9
32
votes
10 answers

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 steps in this solution (Turning off screensaver or…
crodjer
  • 443
  • 1
  • 4
  • 9
32
votes
2 answers

How to get current CPUPower governor

I want to get the current CPUPower governor. When I type cpupower frequency-info I get a lot of information. I just want to get the governor, just like "ondemand" with no more information, to use its value in a program.
user3379482
  • 562
  • 1
  • 6
  • 12
1
2 3
37 38