Welcome to Ubuntu-MM Q&A, Ubuntu Linux ႏွင့္ ပတ္သက္သမွ် သိခ်င္တာ ေမးပါ။ မေမးခင္ ေမးၿပီးသား ရွိမရွိ ရွာပါ။ အေမးရွိၿပီး အေျဖမရွိေသးပါက ေမးခြန္းကို Vote ေပးခဲ့ပါ။

Categories

0 like 0 dislike
It is not too difficult to shutdown by clicking shutdown button from U.I

Sometime, we have urgently, then by pressing 1 click to power button then soft shutdown occurs, it will be nice .

I ready test some solutions, but I didn't feel comfortable,

Plz give me a hand if you already tested and have best solution, thank you
asked in Beginner by (840 points)

1 Answer

1 like 0 dislike
  1. System Settings
  2. Keyboard
  3. Shortcuts tab
  4. Custom Shortcuts
  5. Then the little + icon.

You can give it the name "Shutdown", and the command gnome-session-quit --power-off --force, then apply whatever keyboard shortcut you want to it.

From "http://askubuntu.com/questions/91501/are-there-any-keyboard-shortcuts-to-shutdown"

answered by (640 points)
yes, thank Vence! it will be fast step by using short cut, what i meant is hardware power button , i got it by using this:
1)sudo vim /etc/acpi/powerbtn.sh
2)search '[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-funcs'
3)comment it by use #
like that
#[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-funcs
4)past it
 /sbin/shutdown -h now
exit 0
thank you

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
0 answers
2 like 0 dislike
1 answer
asked Jun 24, 2015 in Beginner by Sanjay Arya (150 points)
0 like 0 dislike
1 answer
...