New answers tagged

0 votes

How can I tell Ubuntu to do nothing when I close my laptop lid?

Adding an solution not previously listed: For me, I want my laptop to stay on, but only when it's on A/C or docked. If there's no external power, I want the laptop to suspend as expected when the lid ...
Samveen's user avatar
  • 180
1 vote

How to change lid close behavior to do nothing?

When you edited /etc/systemd/logind.conf did you remove the hash (#) before the lines where you added "ignore"? – John Carter I realized I did not, and it fixed my problem. Silly mistake ...
Moksh Chitkara's user avatar
0 votes
Accepted

Ubuntu 22.04 freezes trying to enter suspend mode

My problem ended up being something related to Keybase, perhaps the same thing as this issue. After restarting the Keybase service (keybase ctl restart followed by run_keybase), the problem went away ...
Dave Yarwood's user avatar
0 votes

How to change lid close behavior to do nothing?

Use this command: gsettings get org.gnome.settings-daemon.plugins.power lid-close-ac-action If the printed reply is not nothing then use this command: gsettings set org.gnome.settings-daemon.plugins....
WinEunuuchs2Unix's user avatar
0 votes

How to change lid close behavior to do nothing?

Edit this line in /etc/UPower/UPower.conf: IgnoreLid to be: IgnoreLid=true And then restart the Upower service by: service upower restart This seems to have worked for some people who were trying ...
John Carter's user avatar
1 vote

Ubuntu won't work after turning off from pressing the power button

The problem is with no session desktop files installed. To get the desktop sessions back, you can run the following: sudo apt reinstall ubuntu-desktop sudo apt reinstall ubuntu-session I found the ...
Daniel T's user avatar
  • 4,574
1 vote

Shutdown Computer if UPS Battery is Low 22.04

I found the answer here: https://ubuntuhandbook.org/index.php/2019/07/change-battery-critical-low-action-ubuntu-18-04/ I know the link says 18.04 but has been updated for 22.04. I'll summarize it ...
Ron Smith's user avatar
  • 121
1 vote
Accepted

Why is my laptop screen dim after resume from screen-lock, sleep, or suspend?

I was able to solve my problem by switching from the open-source nouveau driver to the proprietary nvidia-driver-535. This can be installed from either the command line or through the GUI. I chose to ...
mpboden's user avatar
  • 1,334
0 votes

Ubuntu 22.04 LTS screen blank does not respect settings

In the comments, the OP disabled the bad PPA ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu/jammy main and ran sudo apt-get update sudo apt-get dist-upgrade. dconf/gsettings didn't work. Now the ...
0 votes

Why is my laptop screen dim after resume from screen-lock, sleep, or suspend?

It seems like your Nvidia driver isn't remembering the backlight value even though your GNOME does. Let's work around this with a sleep hook: Paste the following into /etc/systemd/system/nvidia-...
Daniel T's user avatar
  • 4,574
0 votes

Laptop goes to sleep right after boot with lid closed and external monitor connected

I was able to address this problem on my Thinkpad W520, running Kubuntu 22.04.4, by editing /etc/systemd/logind.conf as root: sudo su nano /etc/systemd/logind.conf Uncomment and update the values for ...
synapse's user avatar
1 vote

Intel CPU Cannot go deeper than Package C3 state in low power suspend (causing battery drain)

This question comes up often, and I do not think anything is actually wrong, nor is this the source of excessive power consumption. For Intel processors, the idle state names are the default ACPI ...
Doug Smythies's user avatar
0 votes

Power profiles and TLP conflict

If installing TLP from the Ubuntu release-specific official repositories, then removing it afterwords shouldn't result in what you describe ... However, installing it from a none-official unsupported ...
Raffa's user avatar
  • 31.9k

Top 50 recent answers are included