码迷,mamicode.com
首页 > 系统相关 > 详细

修改ubuntu按下关机键触发的事件

时间:2016-09-29 13:45:05      阅读:435      评论:0      收藏:0      [点我收藏+]

标签:

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

参考链接:http://askubuntu.com/questions/430776/how-can-i-modify-the-power-button-behaviour

修改ubuntu按下关机键触发的事件

标签:

原文地址:http://www.cnblogs.com/wangzhigang/p/5919549.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!