157
votes
How do I disable my system from going to sleep?
On Ubuntu 16.04 LTS, I successfully used the following to disable suspend:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
And this to re-enable it:
sudo ...
118
votes
Accepted
How to set custom lock screen time in Ubuntu 18.04
Open Terminal and run:
gsettings set org.gnome.desktop.session idle-delay 1800
to set the "Blank screen" delay to 30 minutes or 1800 seconds (or set any value in seconds). You can use $((30*60)) to ...
72
votes
Accepted
Ubuntu 20.04: Why does turning off "wi-fi can be turned off to save power" turn my wi-fi off?
That's not what it means. Turning that off turns the WI-FI off, not the computer's ability to turn Wi-Fi off. It has the "turning Wi-Fi off can save power" subtitle to tell you why you might ...
71
votes
How can I tell Ubuntu to do nothing when I close my laptop lid?
Ubuntu 15.10 - Ubuntu 20.04
TL;DR: Add IgnoreLid=true to /etc/UPower/UPower.conf
Open a terminal and run:
sudoedit /etc/UPower/UPower.conf
Change IgnoreLid to IgnoreLid=true
Save and exit the ...
67
votes
How to change critically low battery value?
Looks like Gnome moved the settings. Critically low battery is now handled by UPower. Instead of using gsettings, you should now edit the file /etc/UPower/UPower.conf
UsePercentageForPolicy=true
...
67
votes
Setting to High Performance
To view available speed governors use this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
If you do have more than one governor you can check ...
60
votes
Ubuntu 17.10 and later: Don't suspend when lid is closed, just lock screen
To disable suspend on lid-close
Install Tweaks (gnome-tweak-tool) by running
sudo apt-get install gnome-tweak-tool
Launch Tweaks, go to the "Power" section and disable suspend on lid-close.
To ...
57
votes
Accepted
How to go automatically from Suspend into Hibernate?
In Ubuntu 18.04 and newer it much more easier. In systemd is available a new mode suspend-then-hibernate. To start using this function you need to create a file /etc/systemd/sleep.conf with the next ...
40
votes
How can I prevent iwconfig power management from being turned on?
Type iwconfig and look at the output. You should see the name of your chip-set as well as the whether power management is off or on. If it doesn't say, it is probably off.
To turn off power ...
38
votes
Accepted
With Ubuntu 16.04 laptop doesn't suspend when lid is closed
I stumbled across an answer that seems to have worked. Too bad there is not a cleaner way to do this than to alter the default settings. Would rather the System Settings|Power setting worked.
I ...
36
votes
How to set custom lock screen time in Ubuntu 18.04
The timeout for locking the screen after it goes blank can be achieved via GUI.
When using Ubuntu 18.04 open Settings. There select the Privacy settings tab. Now the Screen Lock option will be ...
35
votes
Battery not charging but detected
The following steps fixed my battery charging on a Carbon X1 5th gen. Your BIOS might be a bit different, but the principle might be the same:
shut down notebook
go to BIOS (to enter the BIOS, I ...
32
votes
Ubuntu 18.04 battery life
This is how I get the best battery life with my Dell XPS 15 9570 (nvidia graphics) on any Ubuntu 18.04+ based system (Elementary OS, Mint, etc.)
Install packages:
sudo apt-get install tlp powertop
...
30
votes
Accepted
Battery Monitor for Ubuntu 20.04
I have Ubuntu Budgie 20.04 and this worked for me:
cd /etc/UPower
sudo nano UPower.conf
If you set UsePercentageForPolicy=true then edit the percentage lines to your liking, such as:
PercentageLow=50
...
29
votes
How can I control HDD spin down time?
Find your disk's UUID.
sudo lsblk --output NAME,FSTYPE,LABEL,UUID,MODE
Edit /etc/hdparm.conf
sudo -H gedit /etc/hdparm.conf # Be careful from now on
Look for spindown-time or your disk settings ...
29
votes
Is there any way to make a hotkey turn the screen off?
Custom shortcuts to do this with newer versions of Ubuntu (e.g. 16.04) seems to require a delay from pressing the key combination to running the command. The simplest solution is to modify the ...
29
votes
Find the power supply hardware information for a PC using Ubuntu's command-line
You can't. The plug between the power supply and the mainboard follows the ATX specification, which regulates which signals and which voltages shall be present.
Com is common, or ground. The rest of ...
28
votes
Logs of Ubuntu going into Sleep and waking up?
In case your Ubuntu is using systemd, you can use:
journalctl | grep systemd-sleep
You should get something like:
Jul 31 16:02:51 johndoe systemd-sleep[5958]: Suspending system...
Aug 01 15:34:03 ...
26
votes
Find the power supply hardware information for a PC using Ubuntu's command-line
To find the power supply information, use following command:
sudo dmidecode --type 39
The below command outputs a lot status and statistical information about the battery. The /org/... path can be ...
25
votes
How to turn off screen (DPMS) together with locking session in KDE?
Confirmed: running the command: /bin/sleep 1 ; /usr/bin/xset dpms force off within the screen locked notification works for Plasmashell 5.10.
Go to: System Settings > Notifications > Event source "...
25
votes
How to permanently set CPU power management to the powersave governor?
For 16.04 there's one more step to add to Jayen's answer. The complete set of steps are
sudo apt-get install cpufrequtils
echo 'GOVERNOR="powersave"' | sudo tee /etc/default/cpufrequtils
sudo update-...
25
votes
Accepted
Disable sleep on laptop lid close in tty1
Try to edit the /etc/systemd/logind.conf file and modify the line:
#HandleLidSwitch=suspend
to
HandleLidSwitch=ignore
Then reboot.
24
votes
Accepted
tlp-stat and power indicator show different battery levels
I'd say both are:
since it says Capacity 90% and Charge 95.9% I would guess the menu bar shows you
Charge * Capacity = RealCharge
95.9% * 90% = 86.3%
Capacity is the maximum capacity that your ...
23
votes
How to control fan speed?
For several Dell computers you can install i8kutils package:
sudo apt install i8kutils
If you have a non-tested Dell (like Dell XPS 14z, Dell XPS 15 9550 or even Alienware M15 R4), you might have to ...
23
votes
How will Ubuntu handle battery replacement in a laptop?
Yes. The battery is 100% hardware related.
The only thing the operating system does is probe for the current state of the battery. Nothing more.
22
votes
How can I tell Ubuntu 18.04 to do nothing when I close my laptop lid?
Install gnome-tweaks
sudo apt-get install gnome-tweaks
and invoke it with
gnome-tweaks
Under the menu Power you can disable Suspend when laptop lid is closed.
21
votes
How to set custom lock screen time in Ubuntu 18.04
There are 2 different settings, one for blank screen and second for locking screen after blank.
1. Set timeout of "Blank Screen"
In GUI: Settings → Power → Power Saving → Blank screen
In ...
20
votes
Accepted
Stop monitor from going to sleep in ubuntu 16.04
You can use gsettings for enabling and disabling monitor from going to sleep:
Disable turning off screen
gsettings set org.gnome.desktop.session idle-delay 0
Enable turning off screen with 5 min ...
20
votes
Accepted
Is there an Ubuntu alternative for Windows' Battery Report?
There is already an app that can show you graphical report of battery status. It is called Gnome Power Statistics and can be started via terminal as gnome-power-statistics or via searching Unity Dash. ...
20
votes
Lenovo X1 Thinkpad battery not charging in 17.04
Same situation here, but my battery died completely and I could not turn laptop on at all. Called Lenovo tech support and their awesome rep (Joshua) instructed me to do a "static reset." Steps are:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
power-management × 2801battery × 794
suspend × 699
laptop × 363
shutdown × 226
hibernate × 180
18.04 × 163
20.04 × 153
16.04 × 147
14.04 × 127
dell × 98
nvidia × 96
12.04 × 89
gnome × 89
cpu × 85
22.04 × 85
usb × 79
lenovo × 77
acpi × 77
boot × 72
kernel × 71
xubuntu × 69
thinkpad × 66
overheating × 65
indicator × 64