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


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM