修改ubuntu按电源键触发效果

GUI内终端执行如下指令,或者加入开机启动脚本内

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

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

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

Available options are:

  • 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
上一篇:Windows Server 2008 R2 报错事件ID:10之WMI报错


下一篇:Win7系统出现提示: “Windows已遇到关键问题,将在一分钟后自动重新启动。”