修改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
相关文章
相关标签/搜索