Problème : l'écran ne s’éteint plus quand je le rabat. Par contre il s'éteint une demi-seconde quand je l'ouvre !
J'ai beau chercher, je ne vois pas bien où je pourrais régler ça. Si quelqu'un a une idée, ca m’intéresse fortement !

Code : Tout sélectionner
HandleLidSwitch=ignore
Code : Tout sélectionner
LidSwitchIgnoreInhibited=no
Code : Tout sélectionner
#!/bin/bash
###Pour vérifier que le script est lancé
sudo echo "lid closed">/dev/tty2 ;
###Pour éteindre l'écran
sudo xset dpms force off
Code : Tout sélectionner
# 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
HandleRebootKey=reboot
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
Code : Tout sélectionner
HandleLidSwitch=suspend
Ca incluais le wiki anglaissushi a écrit :J'ai testé les différentes méthodes de configuration proposées sur les wikis, sans succès.
Résolu, merci à tous.button/lid)
case "$3" in
close)
logger 'LID closed'
sudo xset dpms force off -display :0
;;