Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 30/07/2021, à 09:15

alius

La mise en veille ne fonctionne plus

Bonjour tout le monde,

J'ai un petit souci depuis quelques temps. Lorsque je mets le PC en veille, quelque soit la procédure (bouton clavier ou par le lanceur d'applications) l'affichage disparaît, mais l'ordinateur ne s'arrête pas et revient au bout de quelques secondes sur l'écran de connexion. Si je me reconnecte, ma session a disparue.
C'est assez embêtant car je ne peux plus mettre la machine en veille entre midi et deux et le soir, je suis obligé de l'éteindre complètement.
J'ai l'impression que ce problème est apparue depuis la mise à jours des drivers nvidia 475 et cuda 11.4, mais c'est peut être une coïncidence, car autrement tout fonctionne bien.

Je suis sur Kubuntu 20.04, aucune modification particulière sur le système à part l'installation du toolkit CUDA, mais tout fonctionnait bien avant ça.

Avez vous une idée du problème ou des solutions à me proposer ?

Merci d'avance


Alius

Hors ligne

#2 Le 03/08/2021, à 18:06

alius

Re : La mise en veille ne fonctionne plus

Je joins ici les logs issus de journalctl au cas où quelqu'un sache ce qu'il en retourne.

-- Logs begin at Wed 2021-05-26 12:03:41 CEST, end at Tue 2021-08-03 08:42:40 CEST. --
août 03 08:42:21 aurora PackageKit[1625]: daemon quit
août 03 08:42:21 aurora systemd[1]: packagekit.service: Succeeded.
août 03 08:42:28 aurora rtkit-daemon[1312]: Supervising 9 threads of 2 processes of 2 users.
août 03 08:42:28 aurora rtkit-daemon[1312]: Successfully made thread 2508 of process 2396 owned by '120' RT at priority 5.
août 03 08:42:28 aurora rtkit-daemon[1312]: Supervising 10 threads of 2 processes of 2 users.
août 03 08:42:28 aurora acpid[1010]: client connected from 2460[0:0]
août 03 08:42:28 aurora acpid[1010]: 1 client rule loaded
août 03 08:42:28 aurora rtkit-daemon[1312]: Supervising 9 threads of 2 processes of 2 users.
août 03 08:42:28 aurora rtkit-daemon[1312]: Successfully made thread 2510 of process 2396 owned by '120' RT at priority 5.
août 03 08:42:28 aurora rtkit-daemon[1312]: Supervising 10 threads of 2 processes of 2 users.
août 03 08:42:31 aurora sddm[2371]: Message received from greeter: Suspend
août 03 08:42:31 aurora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
août 03 08:42:31 aurora NetworkManager[1023]: <info>  [1627972951.8094] manager: sleep: sleep requested (sleeping: no  enabled: yes)
août 03 08:42:31 aurora NetworkManager[1023]: <info>  [1627972951.8095] device (eno1): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
août 03 08:42:31 aurora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
août 03 08:42:31 aurora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
août 03 08:42:31 aurora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
août 03 08:42:31 aurora NetworkManager[1023]: <info>  [1627972951.8442] device (wlp5s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
août 03 08:42:31 aurora wpa_supplicant[1061]: nl80211: deinit ifname=p2p-dev-wlp5s0 disabled_11b_rates=0
août 03 08:42:31 aurora NetworkManager[1023]: <info>  [1627972951.8474] device (p2p-dev-wlp5s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
août 03 08:42:31 aurora NetworkManager[1023]: <info>  [1627972951.8475] manager: NetworkManager state is now ASLEEP
août 03 08:42:31 aurora systemd-logind[2436]: Error during inhibitor-delayed operation (already returned success to client): Unit nvidia-resume.service is masked.
août 03 08:42:31 aurora NetworkManager[1023]: <info>  [1627972951.8488] manager: sleep: wake requested (sleeping: yes  enabled: yes)
août 03 08:42:31 aurora sddm[2371]: Greeter stopping...
août 03 08:42:31 aurora sddm[2371]: Socket server stopping...
août 03 08:42:31 aurora sddm[2371]: Socket server stopped.
août 03 08:42:31 aurora sddm[2371]: Display server stopping...
août 03 08:42:31 aurora NetworkManager[1023]: <info>  [1627972951.8489] device (eno1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
août 03 08:42:31 aurora sddm-greeter[2479]: The X11 connection broke (error 1). Did the X11 server die?
août 03 08:42:31 aurora kernel: Generic FE-GE Realtek PHY r8169-400:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-400:00, irq=IGNORE)
août 03 08:42:31 aurora sddm-helper[2476]: [PAM] Closing session
août 03 08:42:31 aurora sddm-helper[2476]: pam_unix(sddm-greeter:session): session closed for user sddm
août 03 08:42:31 aurora sddm-helper[2476]: pam_systemd(sddm-greeter:session): Failed to release session: Message recipient disconnected from message bus without replying
août 03 08:42:31 aurora sddm-helper[2476]: [PAM] closeSession: Cannot make/remove an entry for the specified session
août 03 08:42:31 aurora upowerd[1321]: Could not acquire inhibitor lock: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
août 03 08:42:31 aurora sddm-helper[2476]: [PAM] Ended.
août 03 08:42:31 aurora ModemManager[1115]: <warn>  [sleep-monitor] inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
août 03 08:42:31 aurora systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
août 03 08:42:31 aurora systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
août 03 08:42:31 aurora systemd[1]: session-11.scope: Succeeded.
août 03 08:42:31 aurora systemd[1]: systemd-logind.service: Scheduled restart job, restart counter is at 3.
août 03 08:42:31 aurora systemd[1]: Stopped Login Service.
août 03 08:42:31 aurora systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
août 03 08:42:31 aurora systemd[1]: Starting Login Service...
août 03 08:42:31 aurora systemd-logind[2517]: New seat seat0.
août 03 08:42:31 aurora systemd-logind[2517]: Failed to add user by file name 120, ignoring: Invalid argument
août 03 08:42:31 aurora systemd-logind[2517]: Failed to add user by file name 1000, ignoring: Invalid argument
août 03 08:42:31 aurora systemd-logind[2517]: User enumeration failed: Invalid argument
août 03 08:42:31 aurora systemd-logind[2517]: User of session 11 not known.
août 03 08:42:31 aurora systemd-logind[2517]: User of session 8 not known.
août 03 08:42:31 aurora systemd-logind[2517]: User of session 9 not known.
août 03 08:42:31 aurora systemd-logind[2517]: User of session 7 not known.
août 03 08:42:31 aurora systemd-logind[2517]: User of session 3 not known.
août 03 08:42:31 aurora systemd-logind[2517]: Session enumeration failed: No such file or directory
août 03 08:42:31 aurora systemd-logind[2517]: Watching system buttons on /dev/input/event1 (Power Button)
août 03 08:42:31 aurora systemd-logind[2517]: Watching system buttons on /dev/input/event0 (Power Button)
août 03 08:42:32 aurora systemd-logind[2517]: Watching system buttons on /dev/input/event5 (Dell KB216 Wired Keyboard)
août 03 08:42:32 aurora systemd-logind[2517]: Watching system buttons on /dev/input/event6 (Dell KB216 Wired Keyboard System Control)
août 03 08:42:32 aurora kernel: r8169 0000:04:00.0 eno1: Link is Down
août 03 08:42:32 aurora NetworkManager[1023]: <info>  [1627972952.1566] device (wlp5s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
août 03 08:42:32 aurora acpid[1010]: client 2460[0:0] has disconnected
août 03 08:42:32 aurora rtkit-daemon[1312]: Supervising 9 threads of 2 processes of 2 users.
août 03 08:42:32 aurora sddm[2371]: Display server stopped.
août 03 08:42:32 aurora sddm[2371]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
août 03 08:42:32 aurora rtkit-daemon[1312]: Successfully made thread 2522 of process 2396 owned by '120' RT at priority 5.
août 03 08:42:32 aurora rtkit-daemon[1312]: Supervising 10 threads of 2 processes of 2 users.
août 03 08:42:32 aurora sddm[2371]: Greeter stopping...
août 03 08:42:32 aurora sddm[2371]: QProcess: Destroyed while process ("/usr/lib/x86_64-linux-gnu/sddm/sddm-helper") is still running.
août 03 08:42:32 aurora wpa_supplicant[1061]: nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
août 03 08:42:32 aurora NetworkManager[1023]: <info>  [1627972952.5013] device (p2p-dev-wlp5s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
août 03 08:42:32 aurora NetworkManager[1023]: <info>  [1627972952.5015] manager: NetworkManager state is now DISCONNECTED
août 03 08:42:32 aurora systemd[1]: Started Login Service.
août 03 08:42:32 aurora sddm[2371]: Adding new display on vt 1 ...
août 03 08:42:32 aurora sddm[2371]: Loading theme configuration from ""
août 03 08:42:32 aurora sddm[2371]: Display server starting...
août 03 08:42:32 aurora sddm[2371]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{7cf8294f-cc54-4f76-88da-c38e73dff6ec} -background none -noreset -displayfd 17 -seat seat0 vt1
août 03 08:42:32 aurora NetworkManager[1023]: <info>  [1627972952.5460] sup-iface[0x5652b47a73c0,wlp5s0]: supports 5 scan SSIDs
août 03 08:42:32 aurora NetworkManager[1023]: <info>  [1627972952.5462] device (wlp5s0): supplicant interface state: starting -> ready
août 03 08:42:32 aurora NetworkManager[1023]: <info>  [1627972952.5462] device (p2p-dev-wlp5s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
août 03 08:42:32 aurora NetworkManager[1023]: <info>  [1627972952.5463] device (wlp5s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
août 03 08:42:32 aurora kernel: Lockdown: Xorg: raw io port access is restricted; see man kernel_lockdown.7
août 03 08:42:32 aurora acpid[1010]: client connected from 2544[0:0]
août 03 08:42:32 aurora acpid[1010]: 1 client rule loaded
août 03 08:42:33 aurora rtkit-daemon[1312]: Supervising 9 threads of 2 processes of 2 users.
août 03 08:42:33 aurora rtkit-daemon[1312]: Successfully made thread 2548 of process 2396 owned by '120' RT at priority 5.
août 03 08:42:33 aurora rtkit-daemon[1312]: Supervising 10 threads of 2 processes of 2 users.
août 03 08:42:33 aurora sddm[2371]: Setting default cursor
août 03 08:42:33 aurora sddm[2371]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
août 03 08:42:33 aurora sddm[2371]: Display server started.
août 03 08:42:33 aurora sddm[2371]: Socket server starting...
août 03 08:42:33 aurora sddm[2371]: Socket server started.
août 03 08:42:33 aurora sddm[2371]: Loading theme configuration from "/usr/share/sddm/themes/ubuntu-theme/theme.conf"
août 03 08:42:33 aurora sddm[2371]: Greeter starting...
août 03 08:42:33 aurora sddm[2371]: Adding cookie to "/var/run/sddm/{7cf8294f-cc54-4f76-88da-c38e73dff6ec}"
août 03 08:42:33 aurora sddm-helper[2560]: [PAM] Starting...
août 03 08:42:33 aurora sddm-helper[2560]: [PAM] Authenticating...
août 03 08:42:33 aurora sddm-helper[2560]: [PAM] returning.
août 03 08:42:33 aurora sddm-helper[2560]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
août 03 08:42:33 aurora systemd-logind[2517]: New session 12 of user sddm.
août 03 08:42:33 aurora systemd[1]: Started Session 12 of user sddm.
août 03 08:42:33 aurora sddm[2371]: Greeter session started successfully
août 03 08:42:33 aurora sddm-greeter[2563]: High-DPI autoscaling not Enabled
août 03 08:42:33 aurora sddm-greeter[2563]: Reading from "/usr/share/xsessions/plasma.desktop"
août 03 08:42:33 aurora sddm-greeter[2563]: Loading theme configuration from "/usr/share/sddm/themes/ubuntu-theme/theme.conf"
août 03 08:42:33 aurora sddm-greeter[2563]: Connected to the daemon.
août 03 08:42:33 aurora sddm[2371]: Message received from greeter: Connect
août 03 08:42:33 aurora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
août 03 08:42:33 aurora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
août 03 08:42:33 aurora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
août 03 08:42:33 aurora sddm-greeter[2563]: Loading file:///usr/share/sddm/themes/ubuntu-theme/Main.qml...
août 03 08:42:33 aurora sddm-greeter[2563]: QObject: Cannot create children for a parent that is in a different thread.
                                             (Parent is QGuiApplication(0x7ffc17027390), parent's thread is QThread(0x55c3f3e121e0), current thread is QThread(0x55c3f4170c70)
août 03 08:42:33 aurora sddm-greeter[2563]: QObject: Cannot create children for a parent that is in a different thread.
                                             (Parent is QGuiApplication(0x7ffc17027390), parent's thread is QThread(0x55c3f3e121e0), current thread is QThread(0x55c3f4170c70)
août 03 08:42:33 aurora sddm-greeter[2563]: QObject: Cannot create children for a parent that is in a different thread.
                                             (Parent is QGuiApplication(0x7ffc17027390), parent's thread is QThread(0x55c3f3e121e0), current thread is QThread(0x55c3f4170c70)
août 03 08:42:33 aurora sddm-greeter[2563]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
août 03 08:42:34 aurora sddm-greeter[2563]: Adding view for "HDMI-0" QRect(0,0 1920x1080)
août 03 08:42:34 aurora sddm-greeter[2563]: Message received from daemon: Capabilities
août 03 08:42:34 aurora sddm-greeter[2563]: Message received from daemon: HostName
août 03 08:42:34 aurora ModemManager[1115]: <info>  Couldn't check support for device '/sys/devices/pci0000:00/0000:00:01.3/0000:02:00.2/0000:03:00.0/0000:04:00.0': not supported by any plugin
août 03 08:42:34 aurora ModemManager[1115]: <info>  Couldn't check support for device '/sys/devices/pci0000:00/0000:00:01.3/0000:02:00.2/0000:03:01.0/0000:05:00.0': not supported by any plugin
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3873] policy: auto-activating connection 'Freebox-40E562' (61ce5024-c37a-410b-8e6b-f723112a0399)
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3875] device (wlp5s0): Activation: starting connection 'Freebox-40E562' (61ce5024-c37a-410b-8e6b-f723112a0399)
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3876] device (wlp5s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3878] manager: NetworkManager state is now CONNECTING
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3879] device (wlp5s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3881] device (wlp5s0): Activation: (wifi) access point 'Freebox-40E562' has security, but secrets are required.
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3881] device (wlp5s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3882] sup-iface[0x5652b47a73c0,wlp5s0]: wps: type pbc start...
août 03 08:42:37 aurora NetworkManager[1023]: <warn>  [1627972957.3887] device (wlp5s0): no secrets: No agents were available for this request.
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3887] device (wlp5s0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3889] manager: NetworkManager state is now DISCONNECTED
août 03 08:42:37 aurora NetworkManager[1023]: <warn>  [1627972957.3893] device (wlp5s0): Activation: failed for connection 'Freebox-40E562'
août 03 08:42:37 aurora NetworkManager[1023]: <info>  [1627972957.3895] device (wlp5s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
août 03 08:42:40 aurora acpid[1010]: client 2544[0:0] has disconnected

Alius

Hors ligne

#3 Le 06/08/2021, à 11:51

alius

Re : La mise en veille ne fonctionne plus

Petite mise à jour.

J'ai essayé comme indiqué dans ce post de passer la variable du kernel à mem_default_sleep=deep dans la config de GRUB, mais ça ne corrige en rien le problème.

Du coup j'ai fouillé un peu dans les pages du manuel de systemctl, de systemd-suspend.service et systemd-sleep.conf, c'était très instructif. J'ai donc supposé qu'il me fallait modifier le fichier de conf /etc/systemd/sleep.conf pour mettre les variables SuspendState=mem qui était sur freeze, mais ça n'a rien changé.

Puis en creusant j'ai compris que pour lancer la mise en veille systemd va écrire la requête dans un fichier du sysfs monté sur /sys.

J'ai fini par trouvé un moyen de mettre la machine en veille :
Il faut pour cela toucher aux fichiers /sys/power/state et /sys/power/mem_sleep.
Dans mon cas, pour mettre la machine en veille il me faut modifier deux fichiers (en root) et au moment ou le fichier state est modifié la machine se met instantanément en veille :

echo "deep" > /sys/power/mem_sleep
echo "mem" > /sys/power/state

J'ai appris qu'il existe plusieurs modes de mise en veille : suspend-to-idle, standby et suspend-to-RAM. Les possibilités dépendent de la machine est sont définie à la compilation (plus d'info à ce sujet ici ).


Pour l'instant c'est le seul moyen que j'ai trouvé de contourner ce bug. En attendant de trouver une vraie solution...


Alius

Hors ligne