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

Questions tagged [power-management]

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

0
votes
1answer
20 views

AC power connection not recognized, but battery doesn't drain

Just bought a new laptop acer predator helios 500 with AMD Ryzen CPU. Installed linux with a recent kernel (4.19) and it seems it’s not able to detect when the power cable is connected to the laptop. ...
0
votes
1answer
21 views

Power off video card until reboot from command line?

I have "headless" machine with video card, I use very rarely, only if I want physical access to it. The cooler of this video card became old and started to produce bad noise. Can I disable this video ...
2
votes
3answers
91 views

Who turned on my Ubuntu box?

I have turned off my Ubuntu PC with sudo poweroff. After several days I found it is running back. How to know, which event turned it on? Computer has no keyboard and mouse attached, and power button ...
0
votes
0answers
17 views

How can I stop suspend mode from draining my battery?

My battery drains completely after about 8 hours of sleep in suspend mode. It seems a lot like this bug, from the Lenovo forums. I've tried changing the sleep mode to "deep," but then it doesn't wake ...
0
votes
0answers
40 views

Ubuntu 16.04.5 Ruining Monitors By Never Turning Them Off

I've seen, on two occasions, where Ubuntu 16.04.5 has completely ruined laptop monitors by never turning them off. These were laptops my Uncle owned, where he left them on all the time. I'm now ...
0
votes
1answer
95 views

“Dim screen when inactive” purpose?

In gnome-control-center’s power saving settings there are amongst others: a “Dim screen when inactive” toggle a “Blank screen” drop-down list However “Dim screen when inactive” does nothing. As long ...
0
votes
0answers
27 views

linuxmint 19.1: power button inserts letters (works fine on linuxmint 18.3)

I recently did a clean install of LinuxMint 19.1 (MATE edition) on my laptop. Since then, pressing the power button inserts a long row of dddddddddddddddddddddddddddddddddddd until I press it again, ...
0
votes
0answers
5 views

Linux LXDE - Power Management app doesn't work

When I open Power management application, I get error "invalid desktop element „/home/username/.local/share/applications/tlpower.desktop”. Any ideas?
1
vote
0answers
25 views

systemd sleep.conf: perform IdleAction only on battery

When I'm running on battery power, I'd like to have IdleAction=suspend-then-hibernate. However, if mains power is connected, I'd like to have IdleAction=ignore. How would I go about setting this up?
0
votes
0answers
10 views

Triggering “lid closed” when changing dock / external power connection

I want my laptop to respond as follows whenever the lid is closed: Docking - ignore Connecting external power - lock Otherwise - suspend-then-resume In my sleep.conf I have: HandleLidSwitchDocked=...
-1
votes
1answer
9 views

NVIDIA DevBox with Ubuntu 16.04 and 4.4.0-137-generic kernel randomly reboots and automatically shuts down overnight

I've recently stated using an NVIDIA DevBox that has an ASUS bios, with ther kernel version and ubuntu version mentioned above. For some reasons the machine can't really be left on overnight, as it is ...
0
votes
1answer
66 views

Standard event messages for Shutdown, power lost on Linux

We are developing a small battery, based on capacitor, which can keep the machine ON for 2 minutes once the AC Power is lost. We are going to write a Linux device driver for the module, it provides ...
3
votes
1answer
34 views

Stop spinning down internal disk

My laptop has a WDC WD10JPCX-24UE4T0. It spins down after 5 seconds of idle. That is pretty annoying. How can I change the spindown time? I have tried: /usr/bin/gnome-disks hdparm -S 200 /dev/sda ...
0
votes
0answers
45 views

How to resume the USB device after selective suspend configuration in Ubuntu host

I have Linux based development board on which DWC3 USB controller driver is present. I have implemented Link Power Management(L2 state) in the usb driver. Ubuntu is the host which on which my ...
0
votes
0answers
56 views

Output the beginning and length/end of no keyboard and mouse use intervals

Gnome keeps track of intervals of no keyboard and mouse use. Xorg also needs this for its Option "BlankTime" option in /etc/X11/xorg.conf. What is a shell command to return such intervals (beginning ...
1
vote
2answers
191 views

Ubuntu 18.04 doesn't lock when I close the lid

Here's what I did: I created a file /etc/acpi/events/lm_lid and wrote into it: event=button/lid.* action=/etc/acpi/lid.sh I created a file /etc/acpi/lid.sh and wrote into it: #!/bin/sh gnome-...
8
votes
5answers
2k views

How to poweroff when there's no systemd/init (e.g. using init=/bin/bash)?

poweroff complains that it can't connect to systemd via DBus (of course, it's not alive). I did sync followed by kill $$, thinking that pid 1 dying would cue the kernel to poweroff, but that caused a ...
0
votes
1answer
60 views

What may cause the screen to turns off after few minutes without option to turn it on again

I've just installed Fedora 29 XFce on Dell laptop (Inspiron 15) and it turn off after few minutes, moving a mouse o pressing any key don't turn it on. To turn it on I've needed to hold down power ...
0
votes
1answer
43 views

How to add a delay to the power button for accidental bumps

I have a miniature PC here with a large and prominent power button on the front which is easy to bump accidentally. The system is running CentOS 7 with systemd. I already know that I can set ...
0
votes
1answer
39 views

Gnome3 can not set energy saving properties

Neither using the Settings application nor the command: gsettings set org.gnome.desktop.session idle-delay 120 Does have any affect on turning the monitor idle.
1
vote
0answers
42 views

TLP and graphics card performance

I have a laptop with two graphics cards: an integrated Intel, and an RX 550. When I enable TLP for power-management, the performance of the RX 550 is cut in half, making it even worse than the ...
1
vote
1answer
278 views

Intermittent PCIe Bus Errors on startup (Arch Linux)

Since April when I built my computer with Arch Linux OS, I have been getting some errors that seem to point to the ASPM control of some USB 3.1 on my ASUS "ROG STRIX Z370-E GAMING" motherboard. I ...
0
votes
0answers
66 views

Screen goes blank if I turn it off and then on without X server

I'm in the process of running some Machine Learning algorithm that needs all my GPU. As such I want to leave it running during the night with X server off as to let all the GPU RAM available to my ML ...
1
vote
1answer
696 views

Turn off screen when laptop lid is closed

My laptop does not turn off the screen when the lid is closed. This is already present when booted from the Arch install stick. The event itself is properly recognized since the system logs: systemd-...
0
votes
0answers
12 views

Deactivating discrete GPU during battery operation?

GPU can provide a performance boost to some operations such as web browsing, but can increase power consumption significantly. For this reason, I would like to deactivate it temporarily while the ...
0
votes
0answers
44 views

Configure Linux to tolerate power being cut?

I would like to put a Linux computer in my car, but one challenge is that normally when the ignition is turned off, power is cut. This is bad for Linux which wants to go through a shutdown process ...
1
vote
0answers
400 views

Problem with external monitor plugged to notebook

My case: At work, I use my own laptop (Xiaomi Mi Pro). When I connect it to an external monitor, I want to be able to just close the lid and leave without the laptop and have the laptop suspend. When ...
4
votes
0answers
276 views

How can I put a PCIe device into the D3 cold power state?

How do I transition an arbitrary PCIe device from the D0 state (powered on) to the D3 cold state (no current to the device) using common utilities on a Linux system? Presumably this involves writing ...
2
votes
0answers
163 views

Power saving with Optimus

Some context before I ask this question: I thought I understood how Optimus works, until I encountered this https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1765363 issue, with the prime ...
0
votes
1answer
77 views

Allow DPMS to turn off screen with force when the screen is locked?

I discover that command xset dpms 300 which turn off the screen for example after 5 minutes (300s), and it wonderfully doesn't turn off the screen if a youtube video is actually playing even in a ...
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: ...
0
votes
1answer
35 views

Is it possible to restrict the amperage of an USB port? [duplicate]

I have a phone attached to my laptop using an USB so that it shares the internet connection over the wire without using Wi-Fi hotspot (it draws a lot of power). But it draws a lot of power from the ...
2
votes
1answer
632 views

Troubleshooting tips for Suspend-to-RAM

I am seeking advice regarding proper kernel command line options and/or BIOS settings for a Supermicro X10DAL-i system (with dual Xeon CPUs) for proper suspend-to-RAM under recent Linux kernels. I am ...
6
votes
2answers
822 views

Disabling Chromium XFCE Power Management Inhibition

For a long time I've been having problems with my Screen Saver not working properly, now it seems it tells me the problem in the XFCE4 Panel's Power Manager Plugin Captain reads /usr/lib/chromium-...
1
vote
1answer
202 views

Keeping display on when lid closed

I have an integrated colourimeter on the palm rest of my ThinkPad W520 running Debian 9 and it requires the lid to be closed during the calibration so it can "see" the screen. I would like to know ...
0
votes
0answers
34 views

Power management for old laptop running Linux

Recently I went through boxes of old stuff and discovered a few very old laptops (early 2000's) full of dust. Instead of throwing them away I decided to install a very light system SparkyLinux onto ...
3
votes
0answers
184 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
0answers
108 views

Time of Last Power Cycle

I know how to use uptime To see how long the OS has been running, and last reboot To see a log of recent OS reboots. Is there an easy way to see when the box was last power cycled? The ...
0
votes
0answers
48 views

User Suspend in Slackware 14.2 w KDE

What is the preferred way to implement suspend (sleep/hibernate) so that a user may suspend a desktop from the KDE kickstart menu. The underlying distribution is Slackware 14.2 The intent is to have ...
0
votes
0answers
6 views

QBEX Atlas mobile 5000 turns-off after resuming suspend

I've got a install of Linux Mint 18 Cinnamon on a QBEX Atlas mobile 5000, using the kernel 4.4.0-53-generic. I haven't changed any default options. Whenever I suspend the machine, either by closing ...
0
votes
0answers
22 views

Device tree - defining peripherials switched off at boot

I have a board with i2c device(accelerometer) connected to mcu. I inserted the device node to my device tree file and everything works fine - device is detected, i can read measurements etc. However,...
0
votes
0answers
292 views

Laptop power button not recognized

I'm running Linux Mint 18.3 on an Acer Swift 3 laptop. My OS doesn't recognize when I press the power button on my laptop. Here's what I've checked: acpi and acpi-support are installed per this ...
1
vote
1answer
107 views

asix driver becomes unresponsive after a while

My ethernet adapter goes dead every once in a while, and I am trying to debug. I am using factory drivers with kernel 4.4.126-48-default on OpenSUSE Leap 42.3 . Here are the symptomps, The USB ...
1
vote
1answer
137 views

Disabling/Re-enabling cores via kernel in Threadripper/EPYC systems [closed]

As part of my current research, I've been doing tests where I disable/re-enable cores by echoing 0 or 1 to /sys/devices/system/cpu/cpuN/online to simulate vertical scaling. With Kernel v4.4.0 (...
3
votes
2answers
2k views

What are the implications of setting the CPU governor to “performance”?

I recently read that I can eke more performance out of my CPU by setting the governor to "performance" instead of "powersave". According to the Arch wiki, this will "run the CPU at the maximum ...
0
votes
0answers
23 views

How shall we set up to run a command automatically once no user activity for a specified amount of time?

Is there some way to set up to run a command (e.g. pm-suspend or any other command) automatically, whenever there is no user activity (mainly no user input from keyboard, touchpad, mouse, maybe except ...
1
vote
0answers
225 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
1answer
47 views

What is “C sort order” in pm-action manpage? [duplicate]

From manpage pm-action(8): /etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d Programs in these directories (called hooks) are combined and executed in C sort order before suspend and hibernate ...
1
vote
0answers
375 views

X11 - How can I determine what is preventing DPMS from suspending my display?

[Note: Noticed a similar question but it never received a response.] I am using i3 on archlinux. I have setup DPMS to suspend my display after 2 minutes of inactivity (xset dpms 0 120 180). However, ...
0
votes
0answers
96 views

Disabling Bluetooth USB Host Controller

In Powertop I see 1.96 W 100.0% USB device: Bluetooth USB Host Controller (Apple Inc.) This seems unnecessary, seeing as I don't use Bluetooth. Is there any way to disable this device so ...