coastalwhite / lemurs

A customizable TUI display/login manager written in Rust 🐒
Apache License 2.0
768 stars 34 forks source link

Freeze when resuming from suspension #156

Open Fabiosilvero opened 1 year ago

Fabiosilvero commented 1 year ago

OS : Arch linux up to date WM : budgie-desktop up to date Lemurs : 0.3.1

Hello !

I have issues when resuming from suspension : the budgie lock screen isn't responding to keyboard inputs. I can't even switch to a TTY, and I have no choice than to force power off.

I assume it's on lemurs side or something around it, because when I switch to lightdm, I can suspend and resume just fine (the keystrokes are registering, the lock wallscreen is displaying properly).

I did a backup of the whole /var/log folder between the switches from lemurs to lightdm, so I can provide any logs that will help.

Here are the Xorg.0.log, one with lemurs used and the other with lightdm used :

Xorg-lemurs.0.log lemurs.client.log lemurs.log lemurs.xorg.log

Xorg-lightdm.0.log

Xinitrc script (not a .txt on the folder) : budgie.txt

And the file used by it :

$ cat /etc/X11/xinit/xinitrc.d/*

#!/bin/sh

case "${DESKTOP_SESSION-}" in
  gnome*) # Done by gnome-settings-daemon
  ;;
  *)
    # Extra check in case DESKTOP_SESSION is not set correctly
    if [ -z "${GNOME_DESKTOP_SESSION_ID-}" ]; then
      GTK_MODULES="${GTK_MODULES:+$GTK_MODULES:}canberra-gtk-module"
      export GTK_MODULES
    fi
  ;;
esac

#!/bin/sh
#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  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.

systemctl --user import-environment DISPLAY XAUTHORITY

if command -v dbus-update-activation-environment >/dev/null 2>&1; then
    dbus-update-activation-environment DISPLAY XAUTHORITY
fi

#!/bin/bash
# This file is sourced by xinit(1) or a display manager's Xsession, not executed.

if [ -z "$GTK3_MODULES" ] ; then
    GTK3_MODULES="xapp-gtk3-module"
else
    GTK3_MODULES="$GTK3_MODULES:xapp-gtk3-module"
fi

export GTK3_MODULES

Please let me know if I can help with debug informations.

coastalwhite commented 1 year ago

Thank you for the report.

There is a similar issue when triggering certain applications that trigger polkit. It does resolve itself eventually, 5–10 minutes of waiting, but that is, of course, unacceptable. I am not 100% sure what is causing this behavior, it might have something to do with pam configuration.