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, …

1
vote
1answer
22 views

Laptop does not enter suspend state when lid is closed

I installed Manjaro 18.0.4 (Gnome) on my Lenovo P50. After setting the NVidia graphics card as the primary card and removing all drivers for the onboard intel GPU, the laptop does not suspend when I ...
0
votes
0answers
38 views

Why system energy is equal to 1/f? [migrated]

I am studying Intel speed shift. I see a slide: Reference I don't understand, why the green line 1/f means system energy, I think more performance should need more energy as the red line (compute ...
1
vote
0answers
20 views

Is there a power manager for text consoles?

I use XFCE on my laptops. When I'm working inside X11, xfce4-power-manager works well, and the system goes to sleep after 15 minutes of inactivity. But when I switch to a Linux text VT (i.e. by ...
0
votes
0answers
19 views

Switch to second (build in) laptop battery if capacity is under 20%?

I got my new Lenovo T480 laptop which has two batteries: one internal and one external. The used Linux is Arch Linux. If I use the battery the behavior is that the first battery is used down to 5% ...
0
votes
0answers
72 views

KDE: Power management configuration module could not be loaded

I use KDE 5.15.3 on the latest KDE Neon, and recall this problem happened with Linux Mint 19 + an older version of KDE (don't recall which) as well. Intermittently, after booting I don't have the ...
3
votes
1answer
99 views

How can I minimize damage when programmatically cutting power before a proper shutdown? [closed]

Situation The computer (running Ubuntu 14.04) is connected to a networked device which controls the power supply to the computer itself. On receiving a certain signal A, the computer must send a ...
1
vote
0answers
20 views

Manjaro KDE does not redraw the screen unless forced to after it falls asleep

I recently installed Manjaro KDE on my machine and from what little I've seen I'm liking it so far. My one complaint is that recently, after the screen falls asleep and wakes back up (i.e. leave the ...
2
votes
0answers
40 views

My laptop AC adapter is not found when plugged in

Three different Linux OS installed on my Acer Predator Helios 500 PH517-61-R0GX say the AC adapter is "off-line". Unplugging and re-plugging does not change the status. My laptop thinks it is on ...
0
votes
1answer
42 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
24 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
99 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
21 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
41 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
110 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
34 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
8 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
32 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
19 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
11 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
68 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 ...
4
votes
1answer
39 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
78 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
60 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
274 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
77 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
44 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
48 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
49 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
440 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
77 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
821 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
13 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
426 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
305 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
177 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
84 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
36 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
714 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
905 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
212 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
37 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
198 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
120 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
51 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 ...
-1
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
296 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
118 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 ...