power-management

How can I turn off a USB Lamp in Ubuntu?

How can I turn off a USB Lamp in Ubuntu? I bought a USB lamp that I want to turn ON/OFF using commands (my purpose is to setup some CRON jobs to turn it ON at certain times). I researched several answers, but none worked. I tried outputting to /sys/bus/usb/drivers/usb/unbind, /sys/bus/usb/devices/usb1/power/level, the uhubctl tool, using …

Total answers: 1

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

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 my old notes I did the following: echo …

Total answers: 2

Remember /sys/power/mem_sleep setting after reboot

Remember /sys/power/mem_sleep setting after reboot I had this solution for the question Macbook takes 20 seconds to wake up where I had to run echo s2idle | sudo tee -a /sys/power/mem_sleep in order to set /sys/power/mem_sleep to [s2idle] deep But after some update that change is not remembered after reboot, and that setting is reverted …

Total answers: 1

C-states not fuctioning on Ubuntu Server 22.04. Please help

C-states not fuctioning on Ubuntu Server 22.04. Please help I’m putting together a home server running Ubuntu 22.04 LTS and I’m having a hell of a time with the c-states. Current power draw of the system is 33 watts but I’d like to lower that as far as possible. At the moment I can only …

Total answers: 1

Why are new writes to files not surviving a power loss

Why are new writes to files not surviving a power loss I have a similar type of issue to: Raspberry Pi: Filesystem writes files, but after reboot the old data is back but not quite the same. I am using Armbian_23.02.2_Orangepizero_jammy_current_5.15.93 running on an OrangePi with an SD card for storage. I built a race …

Total answers: 3

Keep the PC in low power, but not sleeping

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 problem is, I don’t want it …

Total answers: 1

CPU overloads with fans running high speed when laptop is plugged in to the power

CPU overloads with fans running high speed when laptop is plugged in to the power I have a MONSTER TULPAR T7 V20.5 laptop(a foreign brand). I have Ubuntu 23.04 installed with the kernel version of 6.2.0-20-generic x86_64. The problem is CPU overload when the laptop is plugged into the power. The fans run so fast …

Total answers: 1

Battery problems with Ubuntu 22.04.2 LTS

Battery problems with Ubuntu 22.04.2 LTS I am having little issue with battery or UI. I am having dual boot Windows/Ubuntu on my HP Elitebook. On UI it shows me that battery isn’t charging but its on 98% for 5 hours now. When I run: upower -i /org/freedesktop/UPower/devices/battery_BAT0 this is what I get: battery present: …

Total answers: 2

Using Ubuntu desktop as server (Pi-Hole), what if user enters suspend mode?

Using Ubuntu desktop as server (Pi-Hole), what if user enters suspend mode? I have setup a machine for guests and for home use when we need a quick web browsing. This machine is infrequently used. Most of the time it is on suspend mode (consuming 2 watts). I would like to run Pi-Hole on this …

Total answers: 1

"Performance" power mode not available on one of my laptops

"Performance" power mode not available on one of my laptops In one of my laptops, I don’t have the option to select "performance" power mode, since it doesn’t show up on the options available (just balanced and power saver). Now, I understand that this happens with some hardware and I could accept that my machine …

Total answers: 1

How to permanently disable EEE (Energy Efficient Ethernet) on Ethernet card?

How to permanently disable EEE (Energy Efficient Ethernet) on Ethernet card? I am looking for a kernel parameter that I could use in the GRUB config to disable EEE (Energy Efficient Ethernet, wikipedia) permanently on my LAN (wired Ethernet) card of my newish laptop: Basic info: OS: Linux Mint 21.1 "Vera" Cinnamon # ethtool -i …

Total answers: 1

How does the kernel know it's resuming from hibernation, not booting?

How does the kernel know it's resuming from hibernation, not booting? When a Linux system hibernates and resumes from hibernation, I think that the kernel needs to know that it’s resuming, not booting. Otherwise, the kernel will start the usual boot process, and will not load the swapped data. How does the kernel know it’s …

Total answers: 1

Laptop slow, missing Performance Power Mode & unable to change cpu governor

Laptop slow, missing Performance Power Mode & unable to change cpu governor I recently noticed one of my Ubuntu Laptops had started to run very slow. After doing some searching here for tools to check CPU status and comparing with another PC with the same version I can see the slow laptop is only running …

Total answers: 1

Laptop hangs when I don't touch it for few seconds

Laptop hangs when I don't touch it for few seconds I noticed that when my laptop is on battery mode, when I don’t interact with it (like moving my mouse – both external and trackpad, or pressing any key) for couple of seconds, it freezes. Then after I move the mouse or press a key, …

Total answers: 2

Freeze if Thunderbolt 3 dock is unplugged while suspended

Freeze if Thunderbolt 3 dock is unplugged while suspended If I unplug the Thunderbolt 3 dock while Ubuntu is suspended, Ubuntu freezes with a black screen when I next try to resume. Can this be fixed? There are some errors and a stack trace in syslog: pcieport 0000:03:02.0: can’t change power state from D3hot to …

Total answers: 1

Understanding power_supply files

Understanding power_supply files It is a very simple question, but I think that in its simplicity it has aqua output. the case is I am interested in better understanding the files that are hosted in /sys/class/power_supply, and that manage the battery monitoring of the system. In my case I use a laptop with a battery, …

Total answers: 1

No Power Options on Upgrade to 22.04

No Power Options on Upgrade to 22.04 I just upgraded to 22.04 LTS, and I noticed that there are no power performance options like people have been saying in the top menu that has WiFi, Bluetooth, Logout, etc. For me, this is all I have: And other people seem to have this: And also, there’s …

Total answers: 1

Cannot write into /sys/power/mem_sleep in Fedora 36

Cannot write into /sys/power/mem_sleep in Fedora 36 Since I failed to find a way to tell systemctl to go to sleep in a one-time specified mode (see previous question), I decided to write some script to change whether the system goes to sleep in shallow or deep mode by writing directly into /sys/power/mem_sleep. Available values …

Total answers: 1

What does this command do (echo deep | sudo tee -a /sys/power/mem_sleep)?

What does this command do (echo deep | sudo tee -a /sys/power/mem_sleep)? I have solved the problem of my laptop waking in 20 seconds like this – see links there. I would like to understand how this works. That solution is to somehow modify a variable in /sys/power/mem_sleep, namely s2idle to deep. Looking at that …

Total answers: 1