修改ubuntu按下關機鍵觸發的事件

gsettings set org.gnome.settings-daemon.plugins.power button-power shutdownubuntu

will change your the behaviour of the power button of your system from interactive (default) to immediate normal shutdown.hibernate

The command is gsettings set org.gnome.settings-daemon.plugins.power button-power <option>code

Available options are:orm

  • Blank: does nothing
  • Suspend: makes your system suspend
  • Shutdown: starts a normal issued shutdown procedure
  • Hibernate: hibernates your system
  • Nothing: does nothing
  • Log out: log your user out

參考連接:http://askubuntu.com/questions/430776/how-can-i-modify-the-power-button-behaviourio

相關文章
相關標籤/搜索