Bug#895292: Restart, Suspend, Hibernate, Shut Down all greyed out in lightdm

2018-04-25 Thread Michael Biebl
Am 10.04.2018 um 02:15 schrieb Vincent Lefevre:
> On 2018-04-09 20:41:55 +0200, Michael Biebl wrote:
>> Not reproducible with a default GNOME / systemd as init installation.
>>
>> Please investigate, if this issue is specific to sysvinit, xfce or some
>> other custom modification (like special kernel parameters)
> 
> I'd say that it is specific to sysvinit. I have two other machines
> with similar configuration but with systemd as the init system instead
> of sysvinit, and I haven't seen any such problem on them.

See
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893819
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895418

I guess this is about the same underlying issue.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#895292: Restart, Suspend, Hibernate, Shut Down all greyed out in lightdm

2018-04-10 Thread Vincent Lefevre
On 2018-04-10 12:45:51 +0200, Michael Biebl wrote:
> Do you use hidepid for /proc?

No, I don't.

> > Apr  9 15:33:25 ypig dbus-daemon[2930]: [system] Successfully activated 
> > service 'org.freedesktop.ConsoleKit'
> 
> Please uninstall/purge consolekit. It's not only useless when logind is
> used, but actively harmful:
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92

Done. But this doesn't solve the problem.

I get in /var/log/syslog:

[...]
Apr 10 15:06:46 ypig dbus-daemon[2968]: [system] Activating service 
name='org.freedesktop.login1' requested by ':1.4' (uid=0 pid=3014 
comm="/usr/sbin/lightdm ") (using servicehelper)
Apr 10 15:06:47 ypig dbus-daemon[2968]: [system] Activating service 
name='org.freedesktop.systemd1' requested by ':1.5' (uid=0 pid=3160 
comm="/lib/systemd/systemd-logind ") (using servicehelper)
Apr 10 15:06:47 ypig dbus-daemon[2968]: [system] Successfully activated service 
'org.freedesktop.login1'
Apr 10 15:06:47 ypig dbus-daemon[2968]: [system] Successfully activated service 
'org.freedesktop.systemd1'
Apr 10 15:06:59 ypig dbus-daemon[3338]: [session uid=124 pid=3336] Activating 
service name='org.a11y.Bus' requested by ':1.0' (uid=124 pid=3324 
comm="/usr/sbin/lightdm-gtk-greeter ")
Apr 10 15:06:59 ypig dbus-daemon[3338]: [session uid=124 pid=3336] Successfully 
activated service 'org.a11y.Bus'
Apr 10 15:07:08 ypig dbus-daemon[2968]: [system] Activating service 
name='org.freedesktop.PolicyKit1' requested by ':1.5' (uid=0 pid=3160 
comm="/lib/systemd/systemd-logind ") (using servicehelper)
Apr 10 15:07:08 ypig polkitd[3361]: started daemon version 0.105 using 
authority implementation `local' version `0.105'
Apr 10 15:07:08 ypig dbus-daemon[2968]: [system] Successfully activated service 
'org.freedesktop.PolicyKit1'

The lightdm.log diff:

ypig:~> logdiff -u lightdm.log-237 lightdm.log-238
[... identical lines except pid's ...]
 DEBUG: Activating VT 7
-DEBUG: Activating login1 session c1
-DEBUG: Seat seat0 changes active session to c1
-DEBUG: Session c1 is already active
 DEBUG: Greeter connected version=1.18.3 resettable=false
[... identical lines except pid's ...]

In seat0-greeter.log for systemd 237, I have:

** Message: 15:24:55.160: Starting lightdm-gtk-greeter 2.0.4 (Feb 21 2018, 
10:34:28)
** Message: 15:24:55.247: [Configuration] Reading file: 
/usr/share/lightdm/lightdm-gtk-greeter.conf.d/01_debian.conf
** Message: 15:24:55.255: [Configuration] Reading file: 
/etc/lightdm/lightdm-gtk-greeter.conf

** (lightdm-gtk-greeter:3321): WARNING **: 15:24:57.408: [PIDs] Failed to 
execute command: upstart
[...]

In seat0-greeter.log for systemd 238, I have:

** (process:3321): WARNING **: 15:06:56.930: Failed to open CK session: 
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.ConsoleKit was not provided by any .service files
** Message: 15:06:58.135: Starting lightdm-gtk-greeter 2.0.4 (Feb 21 2018, 
10:34:28)
** Message: 15:06:58.206: [Configuration] Reading file: 
/usr/share/lightdm/lightdm-gtk-greeter.conf.d/01_debian.conf
** Message: 15:06:58.214: [Configuration] Reading file: 
/etc/lightdm/lightdm-gtk-greeter.conf
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: nouveau

** (lightdm-gtk-greeter:3324): WARNING **: 15:07:00.342: [PIDs] Failed to 
execute command: upstart
[...]

So, it seems that with systemd 238, the login1 session is not
activated (and as a consequence, it tries to open a CK session,
which does not work, but this is not the issue here).

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#895292: Restart, Suspend, Hibernate, Shut Down all greyed out in lightdm

2018-04-10 Thread Michael Biebl
Am 10.04.2018 um 02:15 schrieb Vincent Lefevre:
> On 2018-04-09 20:41:55 +0200, Michael Biebl wrote:
>> Not reproducible with a default GNOME / systemd as init installation.
>>
>> Please investigate, if this issue is specific to sysvinit, xfce or some
>> other custom modification (like special kernel parameters)
> 
> I'd say that it is specific to sysvinit. I have two other machines
> with similar configuration but with systemd as the init system instead
> of sysvinit, and I haven't seen any such problem on them.
> 
> The only other major difference between my machines is that the one
> with sysvinit uses the nouveau driver instead of the nvidia one for
> the two other machines, but I doubt very much that this has an
> influence.

Do you use hidepid for /proc?


> Apr  9 15:33:25 ypig dbus-daemon[2930]: [system] Successfully activated 
> service 'org.freedesktop.ConsoleKit'

Please uninstall/purge consolekit. It's not only useless when logind is
used, but actively harmful:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#895292: Restart, Suspend, Hibernate, Shut Down all greyed out in lightdm

2018-04-09 Thread Vincent Lefevre
On 2018-04-09 20:41:55 +0200, Michael Biebl wrote:
> Not reproducible with a default GNOME / systemd as init installation.
> 
> Please investigate, if this issue is specific to sysvinit, xfce or some
> other custom modification (like special kernel parameters)

I'd say that it is specific to sysvinit. I have two other machines
with similar configuration but with systemd as the init system instead
of sysvinit, and I haven't seen any such problem on them.

The only other major difference between my machines is that the one
with sysvinit uses the nouveau driver instead of the nvidia one for
the two other machines, but I doubt very much that this has an
influence.

I've also checked the logs at startup. With systemd 238 (for which the
problem occurs):

[...]
Apr  9 15:33:17 ypig dbus-daemon[2930]: [system] Activating service 
name='org.freedesktop.login1' requested by ':1.4' (uid=0 pid=2987 
comm="/usr/sbin/lightdm ") (using servicehelper)
Apr  9 15:33:17 ypig dbus-daemon[2930]: [system] Activating service 
name='org.freedesktop.systemd1' requested by ':1.6' (uid=0 pid=3115 
comm="/lib/systemd/systemd-logind ") (using servicehelper)
Apr  9 15:33:17 ypig dbus-daemon[2930]: [system] Successfully activated service 
'org.freedesktop.login1'
Apr  9 15:33:18 ypig dbus-daemon[2930]: [system] Successfully activated service 
'org.freedesktop.systemd1'
Apr  9 15:33:25 ypig dbus-daemon[2930]: [system] Activating service 
name='org.freedesktop.ConsoleKit' requested by ':1.9' (uid=0 pid=3287 
comm="lightdm --session-child 17 20 ") (using servicehelper)
Apr  9 15:33:25 ypig dbus-daemon[2930]: [system] Activating service 
name='org.freedesktop.PolicyKit1' requested by ':1.12' (uid=0 pid=3291 
comm="/usr/sbin/console-kit-daemon --no-daemon ") (using servicehelper)
Apr  9 15:33:25 ypig polkitd[3358]: started daemon version 0.105 using 
authority implementation `local' version `0.105'
Apr  9 15:33:25 ypig dbus-daemon[2930]: [system] Successfully activated service 
'org.freedesktop.PolicyKit1'
Apr  9 15:33:25 ypig dbus-daemon[2930]: [system] Successfully activated service 
'org.freedesktop.ConsoleKit'
Apr  9 15:33:27 ypig dbus-daemon[3376]: [session uid=124 pid=3374] Activating 
service name='org.a11y.Bus' requested by ':1.0' (uid=124 pid=3369 
comm="/usr/sbin/lightdm-gtk-greeter ")
Apr  9 15:33:28 ypig dbus-daemon[3376]: [session uid=124 pid=3374] Successfully 
activated service 'org.a11y.Bus'
[...]

After downgrading to systemd 237:

[...]
Apr  9 15:45:28 ypig dbus-daemon[3024]: [system] Activating service 
name='org.freedesktop.login1' requested by ':1.2' (uid=0 pid=3059 
comm="/usr/sbin/lightdm ") (using servicehelper)
Apr  9 15:45:28 ypig dbus-daemon[3024]: [system] Activating service 
name='org.freedesktop.systemd1' requested by ':1.4' (uid=0 pid=3131 
comm="/lib/systemd/systemd-logind ") (using servicehelper)
Apr  9 15:45:28 ypig dbus-daemon[3024]: [system] Successfully activated service 
'org.freedesktop.login1'
Apr  9 15:45:29 ypig dbus-daemon[3024]: [system] Successfully activated service 
'org.freedesktop.systemd1'
Apr  9 15:45:40 ypig dbus-daemon[3315]: [session uid=124 pid=3313] Activating 
service name='org.a11y.Bus' requested by ':1.0' (uid=124 pid=3308 
comm="/usr/sbin/lightdm-gtk-greeter ")
Apr  9 15:45:40 ypig dbus-daemon[3315]: [session uid=124 pid=3313] Successfully 
activated service 'org.a11y.Bus'
[...]

I assume that the ConsoleKit one can see with systemd 238 is a
fallback due to some issue with login1.

I could try again with systemd 238 and look at the lightdm debug
logs (I no longer have them right now since I rebooted twice) to
see if there's any error.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#895292: Restart, Suspend, Hibernate, Shut Down all greyed out in lightdm

2018-04-09 Thread Michael Biebl
Control: severity -1 normal
Control: tags -1 moreinfo unreproducible

Am 09.04.2018 um 16:22 schrieb Vincent Lefevre:
> Control: reassign -1 systemd 238-4
> Control: retitle -1 Restart, Suspend, Hibernate, Shut Down all greyed out in 
> lightdm
> 
> On 2018-04-09 15:10:47 +0200, Vincent Lefevre wrote:
>> After the upgrade to policykit-1 0.105-20, the Restart, Suspend,
>> Hibernate, Shut Down menu entries are all greyed out.
>>
>> Note: lightdm and lightdm-gtk-greeter have not changed.
> 
> This is actually an issue due to the upgrade of systemd from 237-4
> to 238-4, from a previous upgrade (I thought that 238-4 was OK, but
> I now remember that I didn't test after the previous upgrade due to
> a freeze of the X server in lightdm).

Not reproducible with a default GNOME / systemd as init installation.

Please investigate, if this issue is specific to sysvinit, xfce or some
other custom modification (like special kernel parameters)


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#895292: Restart, Suspend, Hibernate, Shut Down all greyed out in lightdm

2018-04-09 Thread Vincent Lefevre
Control: reassign -1 systemd 238-4
Control: retitle -1 Restart, Suspend, Hibernate, Shut Down all greyed out in 
lightdm

On 2018-04-09 15:10:47 +0200, Vincent Lefevre wrote:
> After the upgrade to policykit-1 0.105-20, the Restart, Suspend,
> Hibernate, Shut Down menu entries are all greyed out.
> 
> Note: lightdm and lightdm-gtk-greeter have not changed.

This is actually an issue due to the upgrade of systemd from 237-4
to 238-4, from a previous upgrade (I thought that 238-4 was OK, but
I now remember that I didn't test after the previous upgrade due to
a freeze of the X server in lightdm).

Downgrading to 237-4 makes these menu entries work again (and
policykit-1 0.105-20 is OK with this).

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)