配置文件:/etc/systemd/logind.conf详细配置参考 HandlePowerKey=ignore 管理按键的行为
/etc/systemd/logind.conf
HandlePowerKey=ignore