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

相关文章:

  • 2021-08-05
  • 2021-09-27
  • 2021-12-07
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2021-12-28
  • 2021-11-14
  • 2022-12-23
  • 2022-01-28
相关资源
相似解决方案