Skip to main content

Questions tagged [power-management]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

screen doesn't wake up after resume from suspend

I'm have installed Devuan Daedalus in my friend's computer. It is a HP laptop with AMD RYZEN 3 and Radeon Graphics. As expected, all the function keys don't work. That is alright. After suspend, when ...
vrgovinda's user avatar
  • 279
0 votes
1 answer
207 views

Disable or remap my laptop's power button in Wayland [Hyprland]

Tapping the power button causes the system to power off, which isn't very convenient since it's right next to the delete button. I tried binding it in the hyprland.conf file to archlinux-logout but it ...
guttermonk's user avatar
1 vote
0 answers
43 views

USB autosuspend is enabled when TLP is automatically started on AC mode?

I'm using Debian 12 (bookworm) with KDE Plasma Wayland on a Thinkpad T470s (i5-7300u), and I've noticed that when I boot my laptop while plugged in, the USB autosuspend is enabled (while TLP seems to ...
ccfoo03's user avatar
  • 45
0 votes
0 answers
23 views

When waking from standby the display prior to sleep is shown for a few seconds on Debian12/KDE --- how to debug if it's fully going to Sleep?

I mentioned this issue here in a question about the built-in keyboard being turned off since recently when waking from sleep and this problem is probably linked to that. When resuming from standby the ...
mYnDstrEAm's user avatar
  • 4,388
0 votes
0 answers
62 views

Is there a way to immediately shut down without "sd X: Stopping Disk" on Linux

The sysrq+o is known to immediately shut down a Linux machine, and known for being similar to physically removing power source. It actually does so on small setups where there are not many ATA devices....
melonfsck's user avatar
0 votes
1 answer
31 views

Monitor power control on touchscreen monitor

I have a computer (Ubuntu) connected to a touchscreen monitor via a single USB-C cable. It provides video output, touchscreen abilities, and power. My goal is to have a systemd service use xset or ...
Some Guy's user avatar
  • 101
0 votes
2 answers
29 views

How to keep OS working when the laptop's lid is closed for Peppermint?

For Peppermint 11.6 bullseye - which it is based on Debian - for 32 bits I want to reach the following behavior: When the laptop's lid is closed, the OS still working (but with the screen as black). ...
Manuel Jordan's user avatar
0 votes
0 answers
19 views

Manually Assigning C-states to CPUs for Energy Optimization

Is it possible to manually set specific C-states for CPUs, similar to how we select processor frequencies, for energy optimization purposes? I'm interested in tools or methods that allow such granular ...
sako's user avatar
  • 1
0 votes
1 answer
71 views

hibernate mode not listed by xfce although "allowed"

Hibernate is not listed as a logout option in xfce4: The XFCE doc suggests to check xfce4-power-manager, but there seems to be no problem: >xfce4-power-manager --no-deamon --debug TRACE[xfpm-...
Joce's user avatar
  • 212
0 votes
1 answer
342 views

systemd-logind sees power button press but does not handle it

I am using Ubuntu Server 20.04.6 LTS over ssh. My packages are updated. If there is any other config info that would help, let me know. I have been trying for hours to get my power button to shut off ...
taurous's user avatar
  • 11
0 votes
1 answer
169 views

Cannot write into `/sys/power/mem_sleep` in debian

When using sudo tee or sudoedit, I am getting an Invalid argument error. sudoedit: unable to write to /sys/power/mem_sleep: Invalid argument sudoedit: contents of edit session left in /var/tmp/...
Joce's user avatar
  • 212
2 votes
0 answers
57 views

Can I simulate power supply getting offline using udev or in other ways under Linux?

I have created the rule /etc/udev/rules.d/80.power.rules: SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="/root/test.sh" Then I execute the command ...
JenyaKh's user avatar
  • 346
1 vote
0 answers
416 views

USB-C Power Delivery charging not working on Linux

I recently had my laptop serviced, and the motherboard was replaced. I run a dual boot setup with Fedora Linux and Windows. Before the servicing, the USB-C port supported charging on Linux via Power ...
LCZ's user avatar
  • 111
2 votes
1 answer
528 views

How to control laptop lid behaviour in Debian 12 in XFCE

I have recently installed Debian 12 amd64 on a Lenovo IdeaPad 100s. There seem to be a problem with the laptop lid, in paricular I do not find where the behaviour the system should take is set. In ...
Rho Phi's user avatar
  • 319
1 vote
1 answer
401 views

Losing network connectivity when laptop lid is cloed

I have a debian 12 installation in my ASUS ROG G15 laptop. I wanted to configure it so that it doesn't suspend when the laptop lid is closed. The method I tried the first was this which worked. I got ...
Kavishka Gihan's user avatar
4 votes
2 answers
6k views

Why is Ubuntu power consumption lower than non-free Debian?

This website measures the power consumption on default Ubuntu server vs default Debian server, which finds that Ubuntu consumes about 8 watts, while Debian consumes 14. Since Debian includes non-free ...
Capybara's user avatar
1 vote
0 answers
125 views

How to run a task running during sleep mode (modern standby/S0ix/S2Idle)

The modern standby exists so Windows can keep network connectivity even when the laptop is in sleep mode, but Linux doesn't seem to do anything similar. How can I make use of such feature and run some ...
123's user avatar
  • 21
1 vote
3 answers
2k views

How to disconnect and reconnect USB devices on the command line?

I want to find out what gnome-disk is doing, how to do the same on the command line and how to undo whatever gnome-disk does. (It can not undo all it does itself.) I have already experimented a little ...
Robert Siemer's user avatar
1 vote
0 answers
186 views

How to reduce power consumption of old laptop turned into linux server

I'd like to turn some an old laptop into a linux server and reduce consumption while idle. I've installed xubuntu and it works perfectly. I've already check the BIOS and there is no WakeOnLan or Boot ...
Oscar's user avatar
  • 111
0 votes
1 answer
531 views

How can I deactivate the lock screen on Linux Mint 21.2 Cinnamon?

I am just setting up a media center based on Linux Mint 21.2 Cinnamon and have created a user with restricted rights. As the system is to be controlled during operation, it should not go into sleep ...
Harry's user avatar
  • 5
1 vote
2 answers
130 views

Monitor won't stay off

I have a computer that runs both as a server, and also as a workstation, and this means that it should not sleep, but also have a graphical desktop enabled. To achieve this, I set the following values ...
user000001's user avatar
  • 3,655
0 votes
0 answers
245 views

ThinkPad Edge E540 with `pending-charge` battery state after few months of not using, how to fix that on Ubuntu 18.04 LTS?

I turn on my old notebook - Lenovo ThinkPad Edge E540 yesterday and it didn't turn on after few months of being inactive. I thought that maybe battery is discharged to zero and I need power adapter to ...
Marcin's user avatar
  • 101
0 votes
0 answers
84 views

when I put laptop to sleep, and close the lid, it immediately wakes up

I have new ThinkPad T14s Gen 4, AMD. when I put the laptop to sleep: echo mem > /sys/power/state it goes to sleep, but as soon as I close thew lid, it wakes up. When I boot Debian Live CD, then ...
Martin Vegter's user avatar
0 votes
0 answers
197 views

What is the minimum swap size for hibernation?

Consider the following scenario: I'm running a Linux system with a large amount of RAM. Swap is disabled, except for hibernation. When hibernating, let's assume that RAM data can not be compressed ...
programonkey's user avatar
0 votes
1 answer
194 views

Is it risky to use hibernation in Ubuntu?

I've read that hibernation often causes trouble in Linux environments, e.g. system fails to wake-up or freezes and sometimes even refuses booting after reset. I really like the idea of hibernating the ...
programonkey's user avatar
0 votes
1 answer
67 views

"Linux 3.19 and onwards, we should look at `/sys/class/power_supply/BAT1/`"?

https://askubuntu.com/a/309146/ says: Now we are encouraged to use -> /sys/class/power_supply/BAT0. UPDATE: Linux 3.19 and onwards, we should look at the following directory -> /sys/class/...
Tim's user avatar
  • 103k
0 votes
1 answer
108 views

How does the `acpi` command calculate the battery life when `charge_now` and other files are not present?

I am writing a C program that calculates the remaining battery life or charge time, depending on if the battery is charging. The way I do this is by reading some files in /sys/class/power_supply/BAT0. ...
Amarakon's user avatar
  • 333
0 votes
1 answer
106 views

Does stopping bluetooth service powers it off as well?

Other things being equal, which of the three computers (after executing respective commands on them) would use the most energy? Which the least amount of energy? 1. bluetoothctl power off 2. ...
John Smith's user avatar
0 votes
0 answers
64 views

How to query power supply voltage?

I use two distinct power supplies for my laptop. One is a standard one and I build the other myself. I want to run an application depending on the power supply connected. May I get the voltage ...
ceremcem's user avatar
  • 2,361
3 votes
0 answers
100 views

Display linux sleep state

I have built up a new AlmaLinux 9 system which has a power LED that is normally on (constant). After a while I notice the power led slow blinks. According to what I found online this indicates the ...
TSG's user avatar
  • 1,768
3 votes
2 answers
807 views

How do I keep the screen on a console-only Raspberry Pi?

Buildroot for RPi3 B+ without X server (console only). Monitor connected on HDMI. I want to keep the monitor on. After 10 minutes (if I'm not wrong) of no keyboard activity the screen turns off. From ...
Mark's user avatar
  • 733
1 vote
0 answers
429 views

What is the intended way to set `cpupower` on boot?

Running cpupower frequency-set -g powersave is a one-shot. I could think of a number of ways to make this happen on boot (rc.local, systemd one-shot, etc)... Question: Is there a "correct" ...
KJ7LNW's user avatar
  • 495
0 votes
0 answers
85 views

Battery plug-in detection latency

I am writing a python script that needs to know when battery is inserted. I use pyudev for that. The problem: The laptop is powered on with only AC power adapter inserted. When I run ls /sys/class/...
ibrahem's user avatar
  • 111
9 votes
1 answer
3k views

Keep the PC in low power, but not sleeping

I am trying to use my old notebook to monitor some things, and I really don't need it to run past its lowest frequency, since it will only gather data every few minutes or so and relay it. But the ...
Magician's user avatar
  • 193
1 vote
0 answers
94 views

`md(4)` command turns screen on when it starts or stops checking the arrays

Every time md (or is it mdcheck?) performs a RAID check or pauses/continues it, the screen of my device turns on. These are the relevant syslog entries, the screen turned on at 6:15: Jul 4 06:11:25 ...
Daniel F's user avatar
  • 887
0 votes
0 answers
247 views

Find workaround for display not resuming from deep sleep

How can I activate the screen if it doesn't turn on after resuming from the S3 deep sleep state (suspend to RAM)? The test for suspending to RAM appears to be successful. # echo core > /sys/power/...
Roman Riabenko's user avatar
2 votes
0 answers
251 views

How to find out what is causing decreased performance when USB-C power delivery is plugged in on a laptop running linux

I searched around and could not find an answer to this issue. For context: I am running ArchLinux on my Tuxedo InfinityBook 14 gen7 with RTX 3050 TI, the regular power adapter that came with the ...
Joao Paulo Farias's user avatar
0 votes
1 answer
64 views

Command to know if electricity went down? or to trigger an action when power electricity went out?

I have an old laptop where the battery passed away - because is not possible buy a new or certificated compatible battery, it because the model is about 10 years ago - therefore when the power ...
Manuel Jordan's user avatar
1 vote
0 answers
136 views

Wakeup from touchscreen does NOT work in embedded Linux

I am working on an embedded Linux (kernel-5.10.24) and there is a GT911 based touchscreen. The touchscreen is working well now. Then I tried to test the suspend/resume in this system. There is an RTC ...
wangt13's user avatar
  • 443
1 vote
0 answers
125 views

Running "grep MH /proc/cpuinfo" - most CPUs Mhz are maxed on Fedora/Redhat

After running: $ lscpu | grep MH My 1280p Intel Processor running on Fedora 38 retunrs back: CPU(s) scaling MHz: 91% CPU max MHz: 1800.0000 CPU min MHz: ...
mikol-vlandisky88's user avatar
1 vote
1 answer
690 views

Monitor goes into power saving after a minute or so after upgrading to Fedora 38

I've upgraded to Fedora 38 from 37 and noticed that when my computer is inactive for exactly 30 seconds, the monitors go into power saving mode (presumably because the graphics card (Nvidia RTX 2060, ...
orange's user avatar
  • 187
0 votes
1 answer
98 views

How to save battery power for every Linux system so that you could use your laptop longer without charging?

I'm looking for a general solution for this problem. Because I need to do the coding outside. Sometimes the outside env doesn't have power supply.
yingshao xo's user avatar
1 vote
1 answer
479 views

How to properly poweroff external HDD in HDD rack

I got Pi4 4Gb running rasbian (similar to Debian) and Orico 4bay HDD rack connected with USB3. Earlier with same host and one HDD in separate enclosure I was able to power off disk using: sudo ...
garik f's user avatar
  • 11
1 vote
0 answers
353 views

For the SDDM login screen, how do I change the behavior when my laptop lid is closed?

I have Fedora KDE 37 installed on my laptop. I use NoMachine to connect to the laptop remotely from my Windows 10 desktop, so I typically leave the lid closed. I was able to configure my normal ...
Dave F's user avatar
  • 573
1 vote
1 answer
117 views

Why is MaxPower for internal root hubs 0mA?

Out of pure curiosity, I'm trying to figure out how USB power delivery is handled in Linux. What I'm seeing is that MaxPower for external devices is set to reasonable numbers depending on the device; ...
azernik's user avatar
  • 691
0 votes
1 answer
104 views

How can I find out when the computer monitor's inactivity timeout is triggered and what process triggers it?

I want to use slock to lock the screen when the screen's inactivity timeout switches the monitor off or into standby and want to know what process triggers it, or how it is notified to the system. Is ...
vfclists's user avatar
  • 7,619
1 vote
0 answers
33 views

Monitors not going into powersave

I have a recent install of F37, which was putting my monitors into power save mode after locking the screen. It recently stopped doing that, but I don’t know when it started. Running KDE I’ve ...
AlexH's user avatar
  • 23
3 votes
0 answers
117 views

how to choose which battery to discharge from in linux / manjaro?

so im facing an issue with my t440s , it has 2 batteries and it discharges from the second battery till 0 percent and that damages my battery . im on linux/manjaro nad i want to switch to the second ...
alireza's user avatar
  • 31
0 votes
0 answers
809 views

Thinkpad T480 Linux Battery performance

I recently bought a used Thinkpad T480. It has two batteries. New version of this laptop are supposed to have an 17-hour battery life. I don't expect Linux to necessarily match that, but even still I'...
C.D.'s user avatar
  • 101
1 vote
0 answers
115 views

Stuck at shutdown after an ssd upgrade

I have replaced my sata ssd with an nvme one and after I installed the current stable debian 11, it turns out that my laptop doesn't shutdown. What happens is I can see the systemd output saying that ...
Paweł Wójcik's user avatar

1
2 3 4 5
12