Questions tagged [logind]

A daemon that manages user logins and seats. It is part of systemd.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

where can I find the explanation for logind exit codes?

I tried executing the following command, which fails and I get a return code of -6. I have looked up in the systemd/logind documentation, but couldnt find anything helpful in this regard. It only ...
0
votes
0answers
17 views

xss-lock NoSessionForPIU and XDG_SESSION_ID empty

Some time ago (unfortunately, I didn't look into it right away), my screen locker stopped working. When I start xss-lock I get this error: Error getting current session: GDBus.Error:org.freedesktop....
4
votes
1answer
136 views

Is it possible to run a script on power button press with systemd?

I looked around and didn't found anything on this, for what I've seen, people always have been satisfied with what logind.conf is offering, here is the interesting part of man logind.conf: ...
2
votes
1answer
122 views

How can I run a script on keyboard power key press with systemd?

I have a power key on my keyboard, and I want to run a script when it's pressed. I looked around and didn't found anything on this, for what I've seen, people always have been satisfied with what ...
0
votes
1answer
37 views

lid close and suspend to ram: Which software is involved?

In order to fix some reliability issues with suspend-to-ram (upon laptop lid being closed), I want to inquire which software is involved with this. So that I can resolve the following issues: "...
0
votes
1answer
497 views

ssh & ftp time out. Activation of org.freedesktop.systemd1 timed out

I have a relatively old debian server running Jessie 8.11 uname -a Linux debian 3.16.0-6-amd64 #1 SMP Debian 3.16.57-2 (2018-07-14) x86_64 GNU/Linux Recently after restarting my machine I cannot ...
1
vote
1answer
284 views

NIS users sessions are incomplete after upgrade to Debian 10

I have recently upgraded the workstations from Debian 9 to Debian 10. With the old version people have been able to mount USB drives and play and record sound (for video conferences). After the update ...
0
votes
0answers
54 views

systemd-logind: `Image lacks .osrel section, refusing` in journalctl

Here's the output of journalctl -b -u systemd-logind.service -- Logs begin at Wed 2019-05-15 12:38:02 CEST, end at Sat 2019-06-08 18:04:57 CEST. -- Jun 08 17:04:33 ArchLinux systemd[1]: Starting ...
2
votes
2answers
81 views

Differentiate internal and external monitors

I am looking for a consistant way of getting the name of the built-in monitor in a laptop. To be exact, I am looking for the name of the monitor that will be turned off when the lid is closed. I was ...
4
votes
1answer
511 views

What does logind.conf `IdleAction=kexec` do exactly?

The logind.conf man page says: IdleAction= Configures the action to take when the system is idle. Takes one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-...
1
vote
1answer
184 views

Systemd user service not starting at boot even though lingering is enabled (user via NIS)

Lingering has been enabled with loginctl enable-linger However, the user services do not start before logging in with the user. The services remain active when logging out again. Is something extra ...
0
votes
0answers
815 views

What is a “Systemd login session”?

I read https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825394#221, but I wonder what a "systemd login session" is? Is it called more frequently as a "systemd logind session"? Is it some process? (...
1
vote
1answer
65 views

Setting up VM login instead of Local login [closed]

I had a question earlier, it is tied into this, that one was looking for the proper procedure, this one is looking how to implement. If you need a backstory refer to My first question I have a local ...
2
votes
1answer
891 views

Shutdown, suspend require authentication when scheduled in at

I'd like to suspend my laptop using at: echo "systemctl suspend" | at now + 5 minutes Suspension does not happen, instead I find a mail from at in /var/spool/mail/me: Failed to set wall message, ...
3
votes
0answers
4k views

can't boot Linux due to Login service failing to start

I am having a bit of trouble with my linux mint 18.3 (based on Ubuntu 16.04) since I can't manage to properly boot it on my computer. I have a dual-boot and windows launch properly, so there is that. ...
2
votes
1answer
116 views

Why does systemd *not* have `/dev/dri/…` open?

Right now my system is doing disk IO when I switch from a text console on tty6 to GNOME on tty3. 1.4GB of swap is in use. On tty6, I ran sudo lsof -p 1 | grep dev, to check if it was a similar issue ...
1
vote
1answer
449 views

Does the current version of Xorg listen for the systemd-login session being closed?

Xorg integrates with systemd-logind, allowing it to effectively open the devices it needs without being run as the super-privileged root user. When the systemd-logind session ends, systemd-logind ...
5
votes
1answer
1k views

How to lock screen on lid closing using systemd?

I am running Sway on Fedora 26 and want my laptop to be locked when I close my screen. I changed HandleLidSwitch to lock in /etc/systemd/logind.conf and ran systemctl restart systemd-logind after that....
1
vote
0answers
125 views

Does anyone assign significance to the `Leader` process in a systemd-logind session?

The first process in a pam_systemd session is called the Leader. E.g. it can be killed with loginctl --kill-who=leader kill-session SESSION_ID. pam_systemd puts the leader in a session scope unit. ...
1
vote
2answers
694 views

Why is a systemd user manager used in desktop sessions e.g. GNOME?

Desktops such as GNOME have moved processes from the per-session scope, into the per-user systemd manager (systemd --user). This includes GUI apps such as GNOME Terminal. What does GNOME use the ...
0
votes
0answers
74 views

run command before/while systemd-logind

I'd like to run a command, i.e. archhey3 just before or rather while logind is prompting for username and password at the virtual console. Can someone point me in the right direction? checked the arch-...
1
vote
1answer
979 views

loginctl doesn't show anything

I have an headless Raspbian Jessie on a Raspberry Pi. I've set it up as read-only root to prevent SD card corruption. When I try to use loginctl on it, it doesn't show any active sessions. But as I ...
3
votes
1answer
1k views

Where does the pam_systemd.so line come from in system-auth and password-auth?

After converting a server to use SSSD for authentication the following line in /etc/pam.d/system-auth and /etc/pam.d/password-auth caused very long (10-20 second) hangs when SSHing into the server: -...
8
votes
3answers
41k views

Cannot login: Failed to start Login Service

I've got a VirtualBox instance of Oracle Linux 7.2 which won't start because of Failed to start Login Service. On the booting sequence the process hangs on this message and doesn't continue, so I can'...
2
votes
1answer
1k views

Centos7 on NUC suspends when power button is pressed

Platform: Intel NUC NUC5CPYH OS: Centos 7 with 3.10.0-327.22.2.el7.x86_64 When I press the chassis power button, the system goes in to suspend mode instead of the expected poweroff. This seems ...
4
votes
1answer
918 views

Lightdm Won't Start in Test Mode With OpenRC

I have a funtoo installation and I recently did sudo emerge x11-misc/lightdm which appeared to work fine, but attempting to start lightdm in test mode with sudo lightdm --test-mode gives this: ** (...
2
votes
1answer
553 views

Give specific user permission to kill other users with logind?

Is it possible to give one user (the "main user") the permission to kill other users using logind/loginctl?
5
votes
2answers
3k views

How does the Linux login work? [duplicate]

I am wondering how the login actually works. It certainly is not part of the kernel, because I can set the login to use ldap for example, or keep using /etc/passwd; but the kernel certainly is able to ...
7
votes
1answer
2k views

How do I tell systemd-logind that the session is not idle, without using a desktop environment or session manager?

I want to use logind for power management. After 30 minutes of inactivity, I would like the computer to suspend. Problem is, right now, it suspends after 30 minutes, even when I am active with mouse ...
12
votes
4answers
2k views

Is there a way to set permissions so a process could use a specific device?

As you can read, for instance here, logind, which is a part of systemd, can set permissions to some devices for user sessions. There's also a vid showing how this kind of behavior works in practice. ...
1
vote
0answers
195 views

Fedora 21 VT Change Hangs

On Fedora 21, I have LightDM and i3 installed. When I switch to tty2 and do a bit of work then switch back, my laptop hangs. I am using Intel HD Graphics 4600. Thanks UPDATE now it sometimes ...
1
vote
1answer
4k views

Changing systemd HandleLidSwitch setting during run-time?

The setting HandleLidSwitch is defined in /etc/systemd/logind.conf as follows: HandleLidSwitch=<hibernate,ignore,...> The setting is applied successfully on boot. However, I would like to ...
4
votes
1answer
5k views

How do I get Debian to use systemd-logind for user session control?

I have one Debian Sid system that uses logind for its user sessions. It is odd that that system is not even running systemd. The logind sessions are independent of X and are in effect for the tty ...
2
votes
1answer
1k views

How to preserve the logind session in Arch Linux?

I got audio working in Arch Linux without problems yesterday, but at some point it stopped working again: $ alsamixer cannot open mixer: No such file or directory $ vlc foo.mp4 ... [0x7f1388006be8] ...
0
votes
1answer
152 views

Gajim, gtalk, and logind

Since the Google talk outage earlier this month, I keep not being able to connect using gajim. I tried deleting all the configuration, updated to the latest development version, and tried in different ...