Monday, April 29, 2024
94
rated 0 times [  94] [ 0]  / answers: 1 / hits: 198555  / 1 Year ago, tue, february 28, 2023, 2:05:40

When I press the power button a dialog opens, but I want to shutdown the system without receiving "Do you really really want to shutdown?". How can I choose a direct shutdown action on a pressed power button?



I had the same problem with the 11.04 version, but I don't remember the solution and yesterday I upgraded to Ubuntu 11.10.


More From » power-management

 Answers
6

Lid Close Action



To set up the Laptop Lid Close Action you have to install Advanced Setting (or the Gnome Tweak Tool). It is in the USC (Ubuntu Software Center) under either tweak or Advanced Settings. If installed press the super button and type in tweak or advanced and choose the Advanced Settings. When it opens choose the shell tab;



Advanced Settings Before



Press the arrows and choose you desired on both on AC and on battery;



Advanced Setting After



Default buttons behavior



Install dconf-tools:



sudo apt-get install dconf-tools


Press alt+f2 and open dconf-editor (or in a terminal type dconf-editor)



Navigate to org.gnome.settings-daemon.plugins.power and set your default button-power action there:



enter image description here



On some systems you will also need to mark the item suppress-logout-restart-shutdown.


[#42991] Tuesday, February 28, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
darpose

Total Points: 424
Total Questions: 99
Total Answers: 121

Location: Jersey
Member since Fri, Oct 1, 2021
3 Years ago
;