Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No lock screen after suspend from ayatana indicator #315

Open
stephematician opened this issue Oct 24, 2024 · 7 comments
Open

No lock screen after suspend from ayatana indicator #315

stephematician opened this issue Oct 24, 2024 · 7 comments

Comments

@stephematician
Copy link

stephematician commented Oct 24, 2024

Expected behaviour

Screen/session should be locked after awaking from suspend

Actual behaviour

Session is unlocked.

Steps to reproduce the behaviour

  1. UbuntuMATE 24.04.1 clean install or live boot.
  2. Select ⏻ -> Suspend
  3. Wake up laptop.

MATE general version

mate-desktop: 1.26.2-1.1build3

Package version

mate-session-manager: 1.26.1-2build2
ayatana-indicator-session: 24.2.0-1build2

Linux Distribution

Ubuntu MATE 24.04.1

Link to bugreport of your Distribution (requirement)

https://bugs.launchpad.net/ubuntu-mate/+bug/2085580
AyatanaIndicators/ayatana-indicator-session#101

@lukefromdc
Copy link
Member

This implies the applet itself may be having trouble communicating with the screensaver. It might have to be fixed there. If mate-panel's built-in "shutdown" panel applet is able to suspend the session and trigger the screensaver's lock screen function but the indicator cannot, the problem is in the indicator.

Can you add the "shutdown" applet to the panel, suspend from there, and report back what happens? I don't know much about the screensaver code but this could determine if the problem is here or in the indicator, and if the problem also occurs with the shutdown button's suspend function it could help someone else here to work on it.

@stephematician
Copy link
Author

The shutdown applet does work. Similarly, from the indicator, you can get the correct behaviour by selecting 'Shutdown...' which also launches the Shutdown applet.

@lukefromdc
Copy link
Member

OK, that tells me the indicator probably is not communicating fully with the session manager, or with the screensaver. I do not know if the screensaver's lock screen is invoked by the session manager or is invoked directly, but in either case it looks like the indicator's the problem and we cannot fix it here

@stephematician
Copy link
Author

The indicator invokes the suspend here: https://github.com/AyatanaIndicators/ayatana-indicator-session/blob/dff9e06e57069e3095f1289fa640124010554be8/src/backend-dbus/actions.c#L474

  login1_manager_call_suspend (p->login1_manager,
                               FALSE,
                               p->login1_manager_cancellable,
                               NULL,
                               NULL);

Unfortunately, I'm really out of my depth as to what happens between that call and this session manager.

@lukefromdc
Copy link
Member

lukefromdc commented Nov 8, 2024 via email

@stephematician
Copy link
Author

I don't think it's calling gnome session manager for suspend (and its not installed on my system anyway yet the suspend does 'work' other than not locking). From what I can see in my dbus-monitor output, it calls org.freedesktop.login1, which is the d-bus interface for systemd-logind.

mc  1732151682.842798   159 :1.79   :1.11   /org/freedesktop/login1 org.freedesktop.login1.Manager  Suspend

So, if I understand, this means that when ayatana-indicator-session builds its menu, the 'Suspend' item will totally bypass the session manager?

@lukefromdc
Copy link
Member

lukefromdc commented Nov 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants