修改ubuntu按電源鍵觸發效果

GUI內終端執行以下指令,或者加入開機啓動腳本內hibernate

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

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

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

Available options are:plugin

  • 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
相關文章
相關標籤/搜索