Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GDM/Gnome problem with Wayland
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
Unb0rn
n00b
n00b


Joined: 12 Jun 2012
Posts: 63

PostPosted: Wed Jan 11, 2017 10:58 am    Post subject: GDM/Gnome problem with Wayland Reply with quote

Hello!
I am having a hard time running Gnome 3.22 on Wayland.
1)GDM(3.22) does not show any Wayland sessions at all. I've tried to install Weston, just to try running it from gdm.
2)Tried installing SDDM(latest available)-it sees wayland sessions. It can run Weston, but gnome still does not start(screen returns to terminal for a second and then returns to sddm)

Previously I've used laptop of exactly the same model with Gnome/Wayland on Gentoo. Enabling "wayland" USE flag globally was enough.
Should I report it as a bug? Should I downgrade Gnome to 3.20?
Also, I've installed gnome-base/gnome-light, instead of gnome-base/gnome. Could it be related to it?

Thanks!

Upd. Looks like it's a bug. After updating to the latest version of gnome-session it shows me "Gnome" and "Gnome-Xorg" both are starting but "Gnome" which is set by default to Wayland leaves an error in logs - Can't initialize KMS backend: could not find drm kms device. Which strange, because DRI and kms are working in X (accordnig to logs) and Weston is starting too(from SDDM). Should I report this bug in Gentoo bugzilla or to the Gnome one?
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 480
Location: Estonia

PostPosted: Fri Jan 13, 2017 10:51 am    Post subject: Reply with quote

To have GDM use a wayland session and be able to launch wayland sessions, it needs to be built with USE=wayland.
To have a GNOME wayland session, you need to have gnome-session and more with USE=wayland (but gnome-session should make it show up, just if it's missing in a few other places it'll fail later).
In 3.22 the upstream default changed from X11 to wayland, so if you have USE=wayland globally or in relevant packages, it'll swap you over to using Wayland by default without user intervention. This can be problematic if you have e.g 3.22 gdm, but still 3.20 gnome-session.
We are not sure how we end up with regards to this prior to 3.22 stabilization, as there are some issues still lurking, mainly bug 604110, but also I have seen some mutter freezes (currently suspecting xwayland related, to will have to work on getting xorg-server-1.19 unmasked). We might try to keep the "default" to X11 sessions and move over for 3.24. Though for us it's actually a bit easier, because if you don't have USE=wayland, there's no magic flipping to its session or whatever, so that's an argument to keep things is and just not advise to use USE=wayland yet.
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
Unb0rn
n00b
n00b


Joined: 12 Jun 2012
Posts: 63

PostPosted: Fri Jan 13, 2017 12:10 pm    Post subject: Reply with quote

Leio wrote:
To have GDM use a wayland session and be able to launch wayland sessions, it needs to be built with USE=wayland.
To have a GNOME wayland session, you need to have gnome-session and more with USE=wayland (but gnome-session should make it show up, just if it's missing in a few other places it'll fail later).
In 3.22 the upstream default changed from X11 to wayland, so if you have USE=wayland globally or in relevant packages, it'll swap you over to using Wayland by default without user intervention. This can be problematic if you have e.g 3.22 gdm, but still 3.20 gnome-session.
We are not sure how we end up with regards to this prior to 3.22 stabilization, as there are some issues still lurking, mainly bug 604110, but also I have seen some mutter freezes (currently suspecting xwayland related, to will have to work on getting xorg-server-1.19 unmasked). We might try to keep the "default" to X11 sessions and move over for 3.24. Though for us it's actually a bit easier, because if you don't have USE=wayland, there's no magic flipping to its session or whatever, so that's an argument to keep things is and just not advise to use USE=wayland yet.


Thanks! The problem was much simpler. Wayland needed VGA arbiter in kernel, even in laptop with single adapter. Now wayland works.
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 480
Location: Estonia

PostPosted: Fri Jan 13, 2017 11:04 pm    Post subject: Reply with quote

I guess we have some documentation to write and kernel checks to add somewhere then?
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
michael371
n00b
n00b


Joined: 17 May 2016
Posts: 11

PostPosted: Mon Apr 17, 2017 11:08 am    Post subject: Reply with quote

Hi guys,

Got a strange problem here with wayland and gnome 3.22.

I can't start a wayland session from gdm, its not an option in the gearbox menu.

When i run XDG_SESSION_TYPE=wayland dbus-run-session gnome-session with my regular user account, nothing happens. It just drops me back to the command prompt.

With root however i can start a wayland session from the command line, so it looks to be a rights related problem.

Does anyone of you has a clue how to solve this?

Any help would be greatly appreciated!
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 480
Location: Estonia

PostPosted: Mon Apr 17, 2017 11:20 am    Post subject: Reply with quote

Maybe you are hitting bug 613222? gdm needs to be using wayland itself to be able to show and launch wayland sessions - is it?
ps ax |grep gdm (when gdm is running going to some free console to check perhaps) should show gdm-wayland-session for example, instead of gdm-x-session.
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
michael371
n00b
n00b


Joined: 17 May 2016
Posts: 11

PostPosted: Mon Apr 17, 2017 12:14 pm    Post subject: Reply with quote

Hey Leio,

Thanks for your quick reply!

Gdm is not using wayland, thats why i tried to start a session from the command line.

the output of

Quote:
ps ax |grep gdm


is

Quote:
2855 ? Ssl 0:00 /usr/sbin/gdm
2931 ? Sl 0:00 gdm-session-worker [pam/gdm-launch-environment]
2955 tty7 Ssl+ 0:00 /usr/libexec/gdm-x-session gnome-session --autostart /usr/share/gdm/greeter/autostart
2959 tty7 Sl+ 0:00 /usr/bin/X vt7 -displayfd 3 -auth /run/user/115/gdm/Xauthority -background none -noreset -keeptty -verbose 3
2971 tty7 Sl+ 0:00 /usr/libexec/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
3070 ? Sl 0:00 gdm-session-worker [pam/gdm-password]
3100 tty3 Ssl+ 0:00 /usr/libexec/gdm-x-session --run-script gnome-session
3104 tty3 Sl+ 0:01 /usr/bin/X vt3 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
3740 pts/0 S+ 0:00 grep --colour=auto gdm


I've had similar problems with gnome 3.20, but it seemed that a lot more people where having this problem at that time. So i decided to wait for gnome 3.22.
When it is not possible to use wayland with gnome 3.22 with gentoo, i'll wait for it to become ready.

But it seems to be strange to me that i am able to start a gnome session with wayland as root from the command line.
Back to top
View user's profile Send private message
michael371
n00b
n00b


Joined: 17 May 2016
Posts: 11

PostPosted: Mon Apr 17, 2017 12:21 pm    Post subject: Reply with quote

I tried to run

Code:
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session --debug


As my regular user account it gives the following output

Code:
gnome-session-binary[3601]: DEBUG(+): Enabling debugging
gnome-session-binary[3601]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
gnome-session-binary[3601]: DEBUG(+): Using systemd for session tracking
gnome-session-binary[3601]: DEBUG(+): GsmManager: setting client store 0x3ad00007b90
gnome-session-binary[3601]: DEBUG(+): GsmXsmpServer: SESSION_MANAGER=local/workstation:@/tmp/.ICE-unix/3601,unix/workstation:/tmp/.ICE-unix/3601

gnome-session-binary[3601]: DEBUG(+): emitting SessionIsActive
gnome-session-binary[3601]: DEBUG(+): fill: *** Getting session 'gnome'
gnome-session-binary[3601]: DEBUG(+): fill: *** Looking if /home/michael/.config/gnome-session/sessions/gnome.session is a valid session file
gnome-session-binary[3601]: DEBUG(+): Cannot use session '/home/michael/.config/gnome-session/sessions/gnome.session': non-existing or invalid file.
gnome-session-binary[3601]: DEBUG(+): fill: *** Looking if /etc/xdg/gnome-session/sessions/gnome.session is a valid session file
gnome-session-binary[3601]: DEBUG(+): Cannot use session '/etc/xdg/gnome-session/sessions/gnome.session': non-existing or invalid file.
gnome-session-binary[3601]: DEBUG(+): fill: *** Looking if /usr/local/share/gnome-session/sessions/gnome.session is a valid session file
gnome-session-binary[3601]: DEBUG(+): Cannot use session '/usr/local/share/gnome-session/sessions/gnome.session': non-existing or invalid file.
gnome-session-binary[3601]: DEBUG(+): fill: *** Looking if /usr/share/gnome-session/sessions/gnome.session is a valid session file
gnome-session-binary[3601]: DEBUG(+): fill: *** Checking required components
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking for file 'org.gnome.Shell.desktop'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.config/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/local/share/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gdm/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/etc/xdg/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.local/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/local/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gdm/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: found in XDG dirs: '/home/michael/.local/share/applications/org.gnome.Shell.desktop'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking for file 'gnome-settings-daemon.desktop'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.config/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/local/share/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gdm/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/etc/xdg/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.local/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/local/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gdm/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: found in XDG dirs: '/etc/xdg/autostart/gnome-settings-daemon.desktop'
gnome-session-binary[3601]: DEBUG(+): fill: *** Done checking required components
gnome-session-binary[3601]: DEBUG(+): fill: *** Adding required components
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking for file 'org.gnome.Shell.desktop'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.config/gnome-session/saved-session'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.config/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/local/share/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gdm/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/etc/xdg/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.local/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/local/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gdm/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: found in XDG dirs: '/home/michael/.local/share/applications/org.gnome.Shell.desktop'
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /home/michael/.local/share/applications/org.gnome.Shell.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App1 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: adding required app org.gnome.Shell.desktop
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking for file 'gnome-settings-daemon.desktop'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.config/gnome-session/saved-session'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.config/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/local/share/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gdm/gnome/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/etc/xdg/autostart'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/home/michael/.local/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/local/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: Looking in '/usr/share/gdm/applications'
gnome-session-binary[3601]: DEBUG(+): GsmUtil: found in XDG dirs: '/etc/xdg/autostart/gnome-settings-daemon.desktop'
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/gnome-settings-daemon.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App2 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: adding required app gnome-settings-daemon.desktop
gnome-session-binary[3601]: DEBUG(+): fill: *** Done adding required components
gnome-session-binary[3601]: DEBUG(+): GsmManager: *** Adding autostart apps for /home/michael/.config/gnome-session/saved-session
gnome-session-binary[3601]: DEBUG(+): GsmManager: *** Adding autostart apps for /home/michael/.config/autostart
gnome-session-binary[3601]: DEBUG(+): GsmManager: *** Adding autostart apps for /usr/local/share/gnome/autostart
gnome-session-binary[3601]: DEBUG(+): GsmManager: *** Adding autostart apps for /usr/share/gnome/autostart
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /usr/share/gnome/autostart/libcanberra-login-sound.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App3 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: *** Adding autostart apps for /usr/share/gdm/gnome/autostart
gnome-session-binary[3601]: DEBUG(+): GsmManager: *** Adding autostart apps for /etc/xdg/autostart
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/at-spi-dbus-bus.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App4 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/gnome-keyring-pkcs11.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App5 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/gnome-keyring-secrets.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App6 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/gnome-keyring-ssh.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App7 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App8 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/caribou-autostart.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App9 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/gsettings-data-convert.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App10 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/Gentoo-print-applet.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App11 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/pulseaudio.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App12 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/gnome-settings-daemon.desktop
gnome-session-binary[3601]: DEBUG(+): GsmManager: not adding app: app-id 'gnome-settings-daemon.desktop' already exists
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/evolution-alarm-notify.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App14 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/nm-applet.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App15 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/user-dirs-update-gtk.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App16 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/tracker-miner-fs.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App17 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/tracker-miner-apps.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App18 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/tracker-miner-user-guides.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App19 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/tracker-store.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App20 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/tracker-extract.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App21 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/nautilus-autostart.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App22 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: read /etc/xdg/autostart/firewall-applet.desktop
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/App23 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: GSM starting to manage
gnome-session-binary[3601]: DEBUG(+): GsmManager: App startup summary
gnome-session-binary[3601]: DEBUG(+): GsmManager: Phase EARLY_INITIALIZATION
gnome-session-binary[3601]: DEBUG(+): GsmManager: Phase PRE_DISPLAY_SERVER
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App5   app-id:gnome-keyring-pkcs11.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App6   app-id:gnome-keyring-secrets.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App7   app-id:gnome-keyring-ssh.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager: Phase DISPLAY_SERVER
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App1   app-id:org.gnome.Shell.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager: Phase INITIALIZATION
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App2   app-id:gnome-settings-daemon.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App4   app-id:at-spi-dbus-bus.desktop   is-disabled:0   is-conditionally-disabled:1
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App10   app-id:gsettings-data-convert.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App12   app-id:pulseaudio.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager: Phase WINDOW_MANAGER
gnome-session-binary[3601]: DEBUG(+): GsmManager: Phase PANEL
gnome-session-binary[3601]: DEBUG(+): GsmManager: Phase DESKTOP
gnome-session-binary[3601]: DEBUG(+): GsmManager: Phase APPLICATION
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App18   app-id:tracker-miner-apps.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App19   app-id:tracker-miner-user-guides.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App21   app-id:tracker-extract.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App22   app-id:nautilus-autostart.desktop   is-disabled:0   is-conditionally-disabled:1
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App3   app-id:libcanberra-login-sound.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App8   app-id:polkit-gnome-authentication-agent-1.desktop   is-disabled:0   is-conditionally-disabled:1
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App9   app-id:caribou-autostart.desktop   is-disabled:0   is-conditionally-disabled:1
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App11   app-id:Gentoo-print-applet.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App20   app-id:tracker-store.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App14   app-id:evolution-alarm-notify.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): app /org/gnome/SessionManager/App15 is not for the current desktop
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App15   app-id:nm-applet.desktop   is-disabled:1   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App16   app-id:user-dirs-update-gtk.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App17   app-id:tracker-miner-fs.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager:   ID: /org/gnome/SessionManager/App23   app-id:firewall-applet.desktop   is-disabled:0   is-conditionally-disabled:0
gnome-session-binary[3601]: DEBUG(+): GsmManager: starting phase EARLY_INITIALIZATION

gnome-session-binary[3601]: DEBUG(+): GsmManager: ending phase EARLY_INITIALIZATION
gnome-session-binary[3601]: DEBUG(+): GsmManager: starting phase PRE_DISPLAY_SERVER

gnome-session-binary[3601]: DEBUG(+): GsmManager: starting app '/org/gnome/SessionManager/App5'
gnome-session-binary[3601]: DEBUG(+): Starting app: /org/gnome/SessionManager/App5
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: starting gnome-keyring-pkcs11.desktop: command=/usr/bin/gnome-keyring-daemon --start --components=pkcs11 startup-id=10180f0be8e8c3b761149242293765575600000036010004
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: started pid:3623
gnome-session-binary[3601]: DEBUG(+): GsmManager: starting app '/org/gnome/SessionManager/App6'
gnome-session-binary[3601]: DEBUG(+): Starting app: /org/gnome/SessionManager/App6
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: starting gnome-keyring-secrets.desktop: command=/usr/bin/gnome-keyring-daemon --start --components=secrets startup-id=10180f0be8e8c3b761149242293765592600000036010005
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: started pid:3625
gnome-session-binary[3601]: DEBUG(+): GsmManager: starting app '/org/gnome/SessionManager/App7'
gnome-session-binary[3601]: DEBUG(+): Starting app: /org/gnome/SessionManager/App7
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: starting gnome-keyring-ssh.desktop: command=/usr/bin/gnome-keyring-daemon --start --components=ssh startup-id=10180f0be8e8c3b761149242293765611400000036010006
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: started pid:3626
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: (pid:3623) done (status:0)
gnome-session-binary[3601]: DEBUG(+): App gnome-keyring-pkcs11.desktop exited successfully
gnome-session-binary[3601]: DEBUG(+): GsmManager: RegisterClient 10180f0be8e8c3b761149242293765575600000036010004
gnome-session-binary[3601]: DEBUG(+): GsmManager: Adding new client 10180f0be8e8c3b761149242293765575600000036010004 to session
gnome-session-binary[3601]: DEBUG(+): uid = 1000
gnome-session-binary[3601]: DEBUG(+): pid = 3627
gnome-session-binary[3601]: DEBUG(+): exporting client to object path: /org/gnome/SessionManager/Client1
gnome-session-binary[3601]: DEBUG(+): exporting dbus client to object path: /org/gnome/SessionManager/Client1
gnome-session-binary[3601]: DEBUG(+): GsmStore: Adding object id /org/gnome/SessionManager/Client1 to store
gnome-session-binary[3601]: DEBUG(+): GsmManager: Client added: /org/gnome/SessionManager/Client1
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: (pid:3626) done (status:0)
gnome-session-binary[3601]: DEBUG(+): App gnome-keyring-ssh.desktop exited successfully
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: (pid:3625) done (status:0)
gnome-session-binary[3601]: DEBUG(+): App gnome-keyring-secrets.desktop exited successfully
gnome-session-binary[3601]: DEBUG(+): GsmManager: ending phase PRE_DISPLAY_SERVER
gnome-session-binary[3601]: DEBUG(+): GsmManager: starting phase DISPLAY_SERVER

gnome-session-binary[3601]: DEBUG(+): GsmManager: starting app '/org/gnome/SessionManager/App1'
gnome-session-binary[3601]: DEBUG(+): Starting app: /org/gnome/SessionManager/App1
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: starting org.gnome.Shell.desktop: command=gnome-shell startup-id=10180f0be8e8c3b761149242293765306900000036010000
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: started pid:3635
gnome-session-binary[3601]: DEBUG(+): GsmAutostartApp: (pid:3635) done (status:1)
gnome-session-binary[3601]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
gnome-session-binary[3601]: DEBUG(+): GsmManager: disposing manager
gnome-session-binary[3601]: DEBUG(+): GsmStore: Clearing object store
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5a2700
gnome-session-binary[3601]: DEBUG(+): GsmClient: disposing /org/gnome/SessionManager/Client1
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/Client1
gnome-session-binary[3601]: DEBUG(+): GsmStore: Clearing object store
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5a9130
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5a9210
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5a93d0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5a94b0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5890e0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5891c0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5892a0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced589380
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced589460
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced589540
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced589620
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced589700
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced59e120
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced59e200
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced59e2e0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced59e3c0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5a92f0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced59e580
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced59e4a0
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced59e660
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced59e740
gnome-session-binary[3601]: DEBUG(+): GsmStore: Unreffing object: 0x2ced5a9590
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App23
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App17
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App16
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App15
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App14
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App20
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App12
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App11
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App10
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App9
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App8
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App7
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App6
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App5
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App4
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App3
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App2
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App1
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App22
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App21
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App19
gnome-session-binary[3601]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App18
gnome-session-binary[3601]: DEBUG(+): GsmStore: Clearing object store
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 480
Location: Estonia

PostPosted: Tue Apr 18, 2017 3:57 pm    Post subject: Reply with quote

I haven't gathered any experience with launching gnome wayland from command line really, only via gdm. Out of the last output, this is suspect:

WARNING: App 'org.gnome.Shell.desktop' exited with code 1

I would look into why gdm isn't working via a wayland session, should be running like:

ps axf:
  311 ?        Ssl    0:00 /usr/sbin/gdm
  400 ?        Sl     0:00  \_ gdm-session-worker [pam/gdm-launch-environment]
  429 tty7     Ssl+   0:00  |   \_ /usr/libexec/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
  432 tty7     S+     0:00  |       \_ dbus-daemon --print-address 3 --session
  438 tty7     Sl+    0:00  |       \_ /usr/libexec/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
  446 tty7     Sl+    0:04  |           \_ /usr/bin/gnome-shell
  486 tty7     S+     0:00  |           |   \_ /usr/bin/Xwayland :1024 -rootless -noreset -listen 4 -listen 5 -displayfd 6
  528 tty7     Sl+    0:00  |           \_ /usr/libexec/gnome-settings-daemon


For this gdm itself needs to be with USE=wayland and gnome-shell itself also be able to run in wayland (gdm itself also uses gnome-shell).

A known bug I referenced happens when the system boots up so fast that some KMS stuff seems to not be properly initialized yet, so that gdm-wayland-session on first try fails, then gdm falls back to Xorg and then it isn't capable of launching Wayland sessions (and so GNOME on Wayland in case of 3.22 isn't showing up). If that's the case, then from VT1 console you can just "systemctl restart gdm;logout" as root or something and then gdm should succeed into wayland. I need to debug this issue, but haven't managed yet, but it's easy to check if you have the same issue, or something else here.
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
Moonboots
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2006
Posts: 117

PostPosted: Tue Nov 07, 2017 9:48 am    Post subject: Reply with quote

Leio wrote:
A known bug I referenced happens when the system boots up so fast that some KMS stuff seems to not be properly initialized yet, so that gdm-wayland-session on first try fails, then gdm falls back to Xorg and then it isn't capable of launching Wayland sessions (and so GNOME on Wayland in case of 3.22 isn't showing up). If that's the case, then from VT1 console you can just "systemctl restart gdm;logout" as root or something and then gdm should succeed into wayland. I need to debug this issue, but haven't managed yet, but it's easy to check if you have the same issue, or something else here.


After a new installation, I too have encountered the same problem of the KMS device not initialized when the wayland session starts.
I have a rx560 graphics card using amdgpu driver (Kernel module) without a bootloader , efi stub which boots very rapidly to gdm login screen.
Using your suggestion i can login into a wayland session, but it's a pain to do that every time.
Has there been any advance with type of problem ? Perhaps adding a timer delay to the gdm.service ?

PS I'm using Gnome 3.24
Back to top
View user's profile Send private message
Moonboots
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2006
Posts: 117

PostPosted: Sat Nov 11, 2017 8:38 am    Post subject: Reply with quote

Problem solved by building amdgpu in to the kernel , which resulted in marginally slower boot to gdm screen.
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