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
-2 votes
0 answers
52 views

How to specify a system be considered "active" or "inactive" while a specific shell script is running? (Linux Mint power management)

I want to write a script that will keep running even if Linux Mint Cinnamon machines would normally suspend during script execution. In other words, even if a user has set a machine to suspend after X ...
End Anti-Semitic Hate's user avatar
0 votes
0 answers
10 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,248
0 votes
0 answers
54 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
  • 143
0 votes
1 answer
26 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
25 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
17 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
33 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
  • 192
0 votes
1 answer
65 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
77 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
  • 192
2 votes
0 answers
42 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
188 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
224 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
151 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
83 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
  • 11
1 vote
3 answers
1k 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
131 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
234 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
115 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,635
0 votes
0 answers
175 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
74 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
156 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
151 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
57 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
  • 102k
0 votes
1 answer
91 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
87 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
51 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,351
3 votes
0 answers
76 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,698
3 votes
2 answers
562 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
  • 723
1 vote
0 answers
332 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
  • 485
0 votes
0 answers
83 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
2k 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
92 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
  • 867
0 votes
0 answers
184 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
224 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
60 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
0 votes
0 answers
40 views

Manual vs automatic suspend: If there are differences, how can I investigate them?

Are there any differences in the way suspend functions automatically (such as clicking lock and the computer suspending after a while) compared to manually (such as actively clicking the suspend ...
Johan's user avatar
  • 399
1 vote
0 answers
129 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
  • 429
0 votes
0 answers
62 views

High temperatures after Ubuntu upgrade

I upgraded my Lenovo T590 to Ubuntu 22.04 from Ubuntu 18.04. Since the upgrade, I've noticed that the temperatures are higher than before when the laptop is connected into AC power. Additionally, I've ...
LVC Λ's user avatar
1 vote
0 answers
118 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
0 votes
0 answers
488 views

Dynamic refresh rate for 120Hz displays to save battery life?

I moved to a laptop with integrated AMD Radeon 680M graphics and a 120Hz display currently running Kernel 6.1. In Windows 10 or later there's a feature called Dynamic Refresh Rate, which downgrades ...
lmoly's user avatar
  • 407
1 vote
1 answer
610 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
92 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
0 votes
0 answers
155 views

rtx 3070 mobile not working properly in xorg 11 -- dynamic boost not engaging to increase Power Limit, changing resolution black screen, menu lag

Computer Type: laptop, nuc x15, Intel NUC X15 Laptop Kit LAPKC71F Product Specifications GPU: RTX 3070 max-q CPU: Intel® Core™ i7-11800H Processor (24M Cache, up to 4.60 GHz) , no overclock ...
JTR777's user avatar
  • 1
1 vote
1 answer
389 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
312 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
99 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
  • 681
0 votes
1 answer
96 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,531
1 vote
0 answers
31 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
103 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

1
2 3 4 5
12