Re: Power switch to actually turn off my computer
- From: "Jasper St. Pierre" <jstpierre mecheye net>
- To: "Charles T. Smith" <cts private yahoo gmail com>
- Cc: "desktop-devel-list gnome org" <desktop-devel-list gnome org>
- Subject: Re: Power switch to actually turn off my computer
- Date: Thu, 10 Apr 2014 10:31:39 -0700
During a user session, gnome-settings-daemon enforces the policy for the shutdown.
There's multiple cases for "nobody is logged in". If you're running a display manager like gdm, gnome-settings-daemon is also running, which enforces the policy for shutdown. gdm runs as a special gdm user, which has its own dconf profile, so you have to configure the dconf setting for the gdm user separately at that case.
If you're at a traditional console login, or at a console in general, the current session active doesn't have a registered inhibitor, so it's controlled by /etc/systemd/logind.conf.
If you're curious how systemd knows when the power button is pressed, it's actually just like any other keyboard key. logind listens on every keyboard, and looks for key presses on the Power, Sleep, and Suspend keys.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]