Vous êtes sur la page 1sur 1

O seguinte o segredo está no /etc/systemd/logind.

conf e trocar o HandlePowerKey=poweroff


por HandlePowerKey=ignore para que o desligar seja ignorado e volte o bom e velho
"Perguntar" e o mesmo para fechamento da tampa do Laptoop HandleLidSwitch=suspend
por HandleLidSwitch=ignore e o que mais desejar mudar e depois reiniciar.
Abaixo está minha configuração:
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# See logind.conf(5) for details

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=lock
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes

Depois, reinicie o serviço:


sudo restart systemd-logind

Vous aimerez peut-être aussi