Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] 3.12, gdm fails to give slave programs access to...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
raddaqii
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2005
Posts: 102
Location: Berlin, Old Europe

PostPosted: Mon Apr 28, 2014 10:11 am    Post subject: [SOLVED] 3.12, gdm fails to give slave programs access to... Reply with quote

Narf. This is unnverving. Had a fine Gnome 3.12 setup, logged in via GDM, until a few weeks ago. Then following an update GDM displayed the uninformative "Oh no!" message. Been coping without Gnome using a host that runs mobaxterm and forwards X, so have a working setup.

Kernel 3.14, Acer notebook, Intel HD 3000 GPU. Worked fine with xf86-video-intel.

By anecdote, I now use a firefox via X-forward displayed on a win host attached external screen, and am SSHed into the host with dysfunctional GDM. I have all linux shell amenities, but it just feels too weird to use gentoo this way over weeks now. =)

So things were not working any longer after that update. Xorg.n.log showed a few errors, I fixed them, now ran out of wits. Last issues remaining:

Code:

# journalctl -xn
-- Logs begin at Di 2014-03-04 12:42:03 CET, end at Mo 2014-04-28 11:00:26 CEST. --
Apr 28 10:36:22 beetham /usr/bin/dbus-launch[11575]: libGL error: failed to load driver: i965
Apr 28 10:36:22 beetham /usr/bin/dbus-launch[11575]: libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Apr 28 10:36:22 beetham /usr/bin/dbus-launch[11575]: gnome-session-is-accelerated: No hardware 3D support.
Apr 28 10:36:22 beetham /usr/bin/dbus-launch[11575]: gnome-session-check-accelerated: Helper exited with code 256
Apr 28 10:36:27 beetham /usr/bin/dbus-launch[11575]: gnome-session-is-accelerated: No hardware 3D support.
Apr 28 10:36:27 beetham /usr/bin/dbus-launch[11575]: gnome-session-check-accelerated: Helper exited with code 256
Apr 28 10:36:27 beetham /usr/bin/dbus-launch[11575]: ** (process:11575): WARNING **: software acceleration check failed
Apr 28 11:00:26 beetham systemd[1]: Received SIGCHLD from PID 11597 (less).
Apr 28 11:00:26 beetham systemd[1]: Got SIGCHLD for process 11597 (less)
Apr 28 11:00:26 beetham systemd[1]: Child 11597 died (code=exited, status=0/SUCCESS)



Can't remember if I saw that error about no hardware acceleration before. Chipset is well known, and should work. If I was using this machine without hardware acceleration before I'd be fine without it just to get it work again. Yes, I have rebuild @x11-module-rebuild and xorg-drivers and xorg-server with the new kernel.

GDM gives "Oh no!" and:

Code:
# systemctl status -l gdm
gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib64/systemd/system/gdm.service; enabled)
   Active: active (running) since Mo 2014-04-28 10:36:21 CEST; 1h 8min ago
 Main PID: 11553 (gdm)
   CGroup: /system.slice/gdm.service
           ├─11553 /usr/sbin/gdm
           ├─11556 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Displays/_0
           └─11560 /usr/bin/Xorg :0 -background none -verbose -auth /run/gdm/auth-for-gdm-TL9YiL/database -seat seat0 -nolisten tcp vt7

Apr 28 10:36:21 beetham systemd[1]: About to execute: /usr/sbin/gdm
Apr 28 10:36:21 beetham systemd[1]: Forked /usr/sbin/gdm as 11553
Apr 28 10:36:21 beetham systemd[1]: gdm.service changed dead -> start
Apr 28 10:36:21 beetham systemd[11553]: Executing: /usr/sbin/gdm
Apr 28 10:36:21 beetham systemd[1]: gdm.service's D-Bus name org.gnome.DisplayManager now registered by :1.95
Apr 28 10:36:21 beetham systemd[1]: gdm.service changed start -> running
Apr 28 10:36:21 beetham systemd[1]: Job gdm.service/start finished, result=done
Apr 28 10:36:21 beetham systemd[1]: Started GNOME Display Manager.
Apr 28 10:36:21 beetham gdm[11553]: Failed to give slave programs access to the display. Trying to proceed.
Apr 28 10:36:22 beetham gdm-launch-environment][11571]: pam_systemd(gdm-launch-environment:session): Unknown parameter 'kill-session-processes=1', ignoring


Key seems to be "Failed to give slave programs access to the display. Trying to proceed." for which I find numerous references but none of the hacks or workarounds found worked for me.

I can manually invoke X applications on the laptops own screen doing this, being SSHed into the host:

Code:

DISPLAY=:0.0 xterm


So all I see is the Oh no! message screen which is using X obviously. /var/log/messages is this:

Code:

beetham ~ # tail -n 60 /var/log/messages
Apr 28 12:06:25 localhost systemd[1]: Received SIGCHLD from PID 12357 (n/a).
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost systemd[1]: gdm.service's D-Bus name org.gnome.DisplayManager no longer registered by :1.122
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.Get() on /org/freedesktop/systemd1/unit/gdm_2eservice
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost systemd[1]: gdm.service's D-Bus name org.gnome.DisplayManager now registered by :1.128
Apr 28 12:06:25 localhost systemd[1]: gdm.service changed start -> running
Apr 28 12:06:25 localhost systemd[1]: Job gdm.service/start finished, result=done
Apr 28 12:06:25 localhost systemd[1]: Started GNOME Display Manager.
Apr 28 12:06:25 localhost systemd[1]: Closed jobs progress timerfd.
Apr 28 12:06:25 localhost systemd[1]: Closed idle_pipe watch.
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local
Apr 28 12:06:25 localhost gdm[12329]: GLib-GObject: g_object_ref: assertion 'object->ref_count > 0' failed
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost dbus-daemon[879]: dbus[879]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.128" (uid=0 pid=12374 comm="/usr/sbin/gdm ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.129" (uid=0 pid=12377 comm="/usr/libexec/gdm-simple-slave --display-id /org/gn")
Apr 28 12:06:25 localhost dbus[879]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.128" (uid=0 pid=12374 comm="/usr/sbin/gdm ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.129" (uid=0 pid=12377 comm="/usr/libexec/gdm-simple-slave --display-id /org/gn")
Apr 28 12:06:25 localhost gdm[12374]: Child process 12381 was already dead.
Apr 28 12:06:25 localhost gdm[12374]: GLib-GObject: g_object_ref: assertion 'object->ref_count > 0' failed
Apr 28 12:06:25 localhost gdm[12374]: GLib-GObject: g_object_unref: assertion 'object->ref_count > 0' failed
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost gdm[12374]: GdmDisplay: display lasted 0,037999 seconds
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:25 localhost dbus-daemon[879]: dbus[879]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.128" (uid=0 pid=12374 comm="/usr/sbin/gdm ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.130" (uid=0 pid=12382 comm="/usr/libexec/gdm-simple-slave --display-id /org/gn")
Apr 28 12:06:25 localhost dbus[879]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.128" (uid=0 pid=12374 comm="/usr/sbin/gdm ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.130" (uid=0 pid=12382 comm="/usr/libexec/gdm-simple-slave --display-id /org/gn")
Apr 28 12:06:25 localhost gdm[12329]: GLib-GObject: g_object_unref: assertion 'object->ref_count > 0' failed
Apr 28 12:06:25 localhost systemd[1]: Received SIGCHLD from PID 12332 (gdm-simple-slav).
Apr 28 12:06:25 localhost systemd[1]: Got SIGCHLD for process 12332 (gdm-simple-slav)
Apr 28 12:06:25 localhost systemd[1]: Child 12332 died (code=exited, status=0/SUCCESS)
Apr 28 12:06:25 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:26 localhost gdm[12374]: Failed to give slave programs access to the display. Trying to proceed.
Apr 28 12:06:26 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:26 localhost gdm-launch-environment]: pam_systemd(gdm-launch-environment:session): Unknown parameter 'kill-session-processes=1', ignoring
Apr 28 12:06:26 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:26 localhost systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Manager.StartTransientUnit() on /org/freedesktop/systemd1
Apr 28 12:06:26 localhost systemd[1]: Failed to load configuration for session-c5.scope: No such file or directory
Apr 28 12:06:26 localhost systemd[1]: Trying to enqueue job session-c5.scope/start/fail
Apr 28 12:06:26 localhost systemd[1]: Installed new job session-c5.scope/start as 4123
Apr 28 12:06:26 localhost systemd[1]: Enqueued job session-c5.scope/start as 4123
Apr 28 12:06:26 localhost systemd[1]: Starting Session c5 of user gdm.
Apr 28 12:06:26 localhost systemd-logind[870]: New session c5 of user gdm.
Apr 28 12:06:26 localhost systemd[1]: session-c5.scope changed dead -> running
Apr 28 12:06:26 localhost systemd[1]: Job session-c5.scope/start finished, result=done
Apr 28 12:06:26 localhost systemd[1]: Started Session c5 of user gdm.
Apr 28 12:06:26 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:26 localhost systemd[1]: Got D-Bus request: org.freedesktop.DBus.NameOwnerChanged() on /org/freedesktop/DBus
Apr 28 12:06:26 localhost /usr/bin/dbus-launch[12401]: libGL error: failed to load driver: i965
Apr 28 12:06:26 localhost /usr/bin/dbus-launch[12401]: libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Apr 28 12:06:26 localhost /usr/bin/dbus-launch[12401]: gnome-session-is-accelerated: No hardware 3D support.
Apr 28 12:06:26 localhost /usr/bin/dbus-launch[12401]: gnome-session-check-accelerated: Helper exited with code 256
Apr 28 12:06:28 localhost systemd[1]: Received SIGCHLD from PID 12353 (dbus-launch).
Apr 28 12:06:28 localhost systemd[1]: Got SIGCHLD for process 12353 (dbus-launch)
Apr 28 12:06:28 localhost systemd[1]: Child 12353 died (code=exited, status=0/SUCCESS)
Apr 28 12:06:31 localhost /usr/bin/dbus-launch[12401]: gnome-session-is-accelerated: No hardware 3D support.
Apr 28 12:06:31 localhost /usr/bin/dbus-launch[12401]: gnome-session-check-accelerated: Helper exited with code 256
Apr 28 12:06:31 localhost /usr/bin/dbus-launch[12401]: ** (process:12401): WARNING **: software acceleration check failed: Child process exited with code 1


So X is working indeed, but GDM just would not hand over. At one point I tried x11-misc/slim as well, ending up in a login loop without getting a Gnome desktop similarly described already, but without the success.

Also checked apparently related issues for encodings, permissions, and whatnot. Must have missed something. Any pointers?


Last edited by raddaqii on Tue May 27, 2014 3:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
raddaqii
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2005
Posts: 102
Location: Berlin, Old Europe

PostPosted: Tue May 27, 2014 3:05 pm    Post subject: Reply with quote

I'm afraid I don't know exactly how I fixed this, but I did. With a little help from these threads:

- https://forums.gentoo.org/viewtopic-t-973454-start-0.html
- https://forums.gentoo.org/viewtopic-p-7319152.html
- http://wiki.gentoo.org/wiki/Intel

TL;DR:

- trick mesa by building it with VIDEO_CARDS=i965, even though I have an HD3000 with i915 chipset, wtf
- enabling uxa USE flag for x11-drivers/xf86-video-intel

Code:
# emerge -q x11-drivers/xf86-video-intel
# VIDEO_CARDS="i965" emerge media-libs/mesa && emerge -q --with-bdeps=y `equery depends mesa | awk '{print " ="$1}'`


This is what got rebuilt:

Code:

Calculating dependencies... done!
[ebuild   R    ] virtual/opengl-7.0-r1
[ebuild   R    ] app-emulation/emul-linux-x86-opengl-20140406
[ebuild   R    ] x11-libs/cairo-1.12.16
[ebuild   R    ] x11-apps/mesa-progs-8.1.0
[ebuild   R    ] x11-base/xorg-server-1.15.0
[ebuild   R    ] dev-qt/qtgui-4.8.5-r1
[ebuild   R    ] media-libs/gst-plugins-bad-1.2.3
[ebuild   R    ] x11-libs/gtk+-3.10.8
[ebuild   R    ] media-libs/cogl-1.16.2
[ebuild   R   ~] mail-client/thunderbird-24.5.0
[ebuild   R    ] net-libs/webkit-gtk-2.2.6-r200
[ebuild   R   ~] www-client/firefox-29.0.1
[ebuild   R    ] x11-libs/glamor-0.6.0
[ebuild   R    ] gnome-base/gnome-shell-3.10.4-r2
[ebuild   R    ] net-libs/webkit-gtk-2.2.6


Finally, no need to use X forward to a foreign machine any longer. This works:

Code:

# systemctl restart gdm


brings up the well known login manager.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum