Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
9 views

Run script when monitor enter power save or wake up [on hold]

I have been googling for a while already looking for a way to run bash script when monitor is going into power save mode. I found only on askubuntu a dirty script that query xset in loop and check for ...
1
vote
2answers
49 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-...
0
votes
0answers
25 views

How can I make my computer power of while later return to same state?

So recently while I'm browsing the internet, I've accidentally press some keys (originally wants to press ctrl+t). And suddenly my computer (hardware) powers off (I mean you can hear the sound that ...
8
votes
5answers
1k 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
33 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
35 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
28 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
26 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
111 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
38 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 ...
0
votes
0answers
28 views

Check the times of the DPMS power-saving setting

I'm using i3-gaps and a problem that i have when watching videos is that the screen gets powered off after i set the time using DPMS on my shell rc. So, to solve the problem, i had the idea to make a ...
1
vote
1answer
340 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
10 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
42 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
211 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 ...
2
votes
0answers
192 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
111 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
56 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
32 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
469 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 ...
5
votes
2answers
610 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
184 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
32 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
155 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
89 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
39 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
266 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
79 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
125 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 (...
2
votes
2answers
1k 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
197 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
44 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 ...
0
votes
0answers
273 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
90 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 ...
0
votes
1answer
22 views

CentOS hibernate state expires?

I can successfully put my CentOS system in hibernate state. After a few minutes when I power up, all is as expected. Desktop and running apps are preserved. Honkey-dory. After a few hours of ...
3
votes
0answers
66 views

How can I stop my USB hub from crashing my computer when it gets un-plugged?

Every time the power goes out or I blow a fuse, my system crashes. That would be normal for a desktop, but I have a laptop with a fully-working battery. In fact, I can unplug my laptop without issue ...
0
votes
0answers
45 views

modify fan temperature zones

I just cleaned up my fan and heat sink and noticed that my CPU is still very hot, usually running around 70C. The fan only kicks in at max power around 80C but this worries me a bit, I think is a bit ...
1
vote
0answers
209 views

Reduce high power consumption by keyboard and trackpad

I am running Fedora 27 on a 2014 11 inch MacBook Air, using GNOME 3.26. I only average about 5 hours on battery instead of the 9 hours this model would last running Mac OS. I know getting the 9 hours ...
0
votes
1answer
64 views

Laptop doesn't turn on at all after installing Linux Mint [closed]

Long story short, my buddy was running Windows 8 on Lenovo G510 for 4 years, and was always complaining how it was lagging. I suggested to switch to Linux, he tried Linux Mint Live CD for a few hours, ...
1
vote
1answer
868 views

Controlling USB-C Power Delivery on a HP ProBook G5 laptop

Question: I want to look at parameters under /sys/class/typec, but on my laptop, this doesn't show up. When I load the typec module manually, the directory appears but it is empty. After loading tcpm ...
0
votes
0answers
153 views

Any way to prevent cpu frequency and governor being restored to default after waking Ubuntu from suspension?

In the past, I have been bothered by the problem of cpu frequency and governor that have been changed by me are automatically restored to default after waking Ubuntu from suspension. I have posted ...
1
vote
0answers
103 views

Sony docking station crashes GUI on unsuspend

I have a Sony Vaio (2012) SVS13a with a full docking station which the notebook clips into. I run Debian Testing and have the latest updates installed as of writing this question. When I have the ...
0
votes
0answers
25 views

Main screen does not go to sleep after pressing Win+L, mouse pointer still appears

I am currently using Fedora 27 with GNOME3 and I have a problem. I use my system with three displays, and unfortunately, when I press Win+L to lock my current session, my displays on the sides go to ...
1
vote
1answer
1k views

Computer won't wake from sleep after suspend [xfce, debian testing]

So, ever since I switched to xfce, I have been having some issues with suspending my system. My system wakes from sleep normally most of the time, but every once in a while, my computer will turn on, ...
0
votes
2answers
355 views

Prevent hard drive spinup

I have a webserver being idle most the time. This causes the main hard drive to spin down after a few minutes, all the other hard drives are already spun down. This is a wanted behavior, since I want ...
4
votes
2answers
132 views

Unable to set kernel module parameters

I recently updated from the 4.9 kernel to 4.14 only to find my speakers have a constant buzzing sound. I've narrowed the problem down to the power_save parameter of the snd_hda_intel module. When ...