~onigino


#27 greetd doesn't properly handle logind TTY variable 2 years ago

Comment by ~onigino on ~kennylevinsen/greetd

I agree with ~rovertmueller2 i think this issue should be clarified downstream, for example, Gentoo, currently installs the full seatd when you install sway, it doesn't specify in any manor that if systemd-logind is running / exists don't start seatd, i'll file a bug report request more options be added to install the libseat components without installing seatd be an option

#27 greetd doesn't properly handle logind TTY variable 2 years ago

Comment by ~onigino on ~kennylevinsen/greetd

thanks all, adding export LIBSEAT_BACKEND=logind to my run-sway script fixed my issue

#27 greetd doesn't properly handle logind TTY variable 3 years ago

Comment by ~onigino on ~kennylevinsen/greetd

Here is my current run-sway wrapper that i'm using

#!/bin/sh

# Session
eval $(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway

systemd-cat --identifier=sway sway $@

despite this i am still getting Type=tty

loginctl show-session 34
Id=34
User=1000
Name=grey
Timestamp=Wed 2021-10-20 21:09:54 PDT
TimestampMonotonic=52962780670
VTNr=5
Seat=seat0
TTY=tty5
Remote=no
Service=login
Scope=session-34.scope
Leader=62570
Audit=34
Type=tty
Class=user
Active=yes
State=active
IdleHint=yes
IdleSinceHint=1634455784414391
IdleSinceHintMonotonic=0
LockedHint=no

also swayidle returns the following error on start

Failed to send sleep inhibit signal: Permission denied
Failed to send SetIdleHint signal: Idle hint control is not supported on non-graphical sessions.

Thanks for taking the time to help me through this.

#27 greetd doesn't properly handle logind TTY variable 3 years ago

Comment by ~onigino on ~kennylevinsen/greetd

ok i think im missing something i followed your suggestion of a shell wrapper and my local shells in sway show the correct XDG_SESSION_TYPE=wayland

however when i run loginctl show-session x i still see a TTY=ttyX

i tried this with both gtkgreet wlgreet and tuigreet

gino

#27 greetd doesn't properly handle logind TTY variable 3 years ago

Ticket created by ~onigino on ~kennylevinsen/greetd

Session registered with login should be registered with TTY=wayland not shell TTY that is currently asserted TTY=tty2

without proper TTY registration, swayidle idlehint functionality refuses to work.