Outils pour utilisateurs

Outils du site


Panneau latéral

FOLLOW ...

Linux, freeBSD

Python

Plugins WP

Informatique et robotique

En classe
KTURTLE
Arduino

Shell/php scripts

php-bash:suspend

Suspend aléatoires

Votre système lance des suspend de façon aléatoire, pour une raison ou une autre ?

Voici une astuce qui permet de contourner ce soucis :

cat /etc/systemd/logind.conf
#  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.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
 
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

Il s'agit du comportement par défaut de systemd et des actions associées.

Repérer les lignes les lignes avec les valeurs [b][u]suspend[/u][/b] et remplacer les par [b][u]ignore[/u][/b]

#HandleLidSwitch=suspend
#HandleSuspendKey=suspend

Devient

HandleLidSwitch=ignore
HandleSuspendKey=ignore

Cela peut être utile en cas de matériel défaillant ou susceptible ;)

php-bash/suspend.txt · Dernière modification : 2020/03/06 21:40 de crust