Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to force gdm use 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
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 289

PostPosted: Sat Jul 27, 2019 10:59 am    Post subject: How to force gdm use wayland? Reply with quote

I'm using gnome-base/gdm-3.30.3-r3 with USE flag "wayland" set:
Code:
fpemud-notepad /var/log/gdm # equery uses gdm
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for gnome-base/gdm-3.30.3-r3:
 U I
 - - accessibility   : Add support for accessibility (eg 'at-spi' library)
 - - audit           : Enable support for Linux audit subsystem using sys-process/audit
 - - bluetooth-sound : Allow loading of bluetooth sound modules. This may be necessary for accessibility screen readers, but may cause bluetooth
                       sound issues for users logging in.
 - - branding        : Enable Gentoo specific branding
 - - elogind         : Use sys-auth/elogind for session management
 - - fprint          : Enables experimental fingerprint authentication using sys-auth/fprintd
 + + introspection   : Add support for GObject based introspection
 - - ipv6            : Add support for IP version 6
 - - plymouth        : Enable support for smooth transition from sys-boot/plymouth
 - - smartcard       : Enable smartcard support
 + + systemd         : Enable use of systemd-specific libraries and features like socket activation or session tracking
 + + tcpd            : Add support for TCP wrappers
 - - test            : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled
                       independently)
 + + wayland         : Enable dev-libs/wayland backend
 - - xinerama        : Add support for querying multi-monitor screen geometry through the Xinerama API


But gdm still choose to use Xorg:
Code:
-- Logs begin at Thu 2019-07-27 02:57:08 CST, end at Sat 2019-07-27 18:52:58 CST. --
Jul 27 02:57:21 fpemud-notepad systemd[1]: gdm.service: About to execute: /usr/libexec/gdm-wait-for-drm
Jul 27 02:57:21 fpemud-notepad systemd[1]: gdm.service: Forked /usr/libexec/gdm-wait-for-drm as 290
Jul 27 02:57:21 fpemud-notepad systemd[1]: gdm.service: Changed dead -> start-pre
Jul 27 02:57:21 fpemud-notepad systemd[1]: Starting GNOME Display Manager...
Jul 27 02:57:21 fpemud-notepad systemd[290]: gdm.service: Executing: /usr/libexec/gdm-wait-for-drm
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: Child 290 belongs to gdm.service.
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: Control process exited, code=exited, status=0/SUCCESS
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: Got final SIGCHLD for state start-pre.
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: Passing 0 fds to service
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: About to execute: /usr/sbin/gdm
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: Forked /usr/sbin/gdm as 292
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: Changed start-pre -> start
Jul 27 02:57:22 fpemud-notepad systemd[292]: gdm.service: Executing: /usr/sbin/gdm
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: D-Bus name org.gnome.DisplayManager now registered by :1.2
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: Changed start -> running
Jul 27 02:57:22 fpemud-notepad systemd[1]: gdm.service: Job 65 gdm.service/start finished, result=done
Jul 27 02:57:22 fpemud-notepad systemd[1]: Started GNOME Display Manager.
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]: X.Org X Server 1.20.5
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]: X Protocol Version 11, Revision 0
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]: Build Operating System: Linux 5.1.15-unstable x86_64 Gentoo
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]: Current Operating System: Linux fpemud-notepad 5.1.15-unstable #1 SMP PREEMPT Wed Jul 3 01:31:10 CST>
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]: Kernel command line: BOOT_IMAGE=/boot/kernel-x86_64-5.1.15-unstable
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]: Build Date: 01 July 2019  05:55:09AM
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]: 
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]: Current version of pixman: 0.38.4
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]:         Before reporting problems, check http://wiki.x.org
Jul 27 02:57:26 fpemud-notepad gdm-Xorg-:0[324]:         to make sure that you have the latest version.
...


Why gdm choose to use Xorg? how to make it use waylang?


Last edited by fpemud on Sat Jul 27, 2019 1:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23553
Location: here

PostPosted: Sat Jul 27, 2019 11:04 am    Post subject: Reply with quote

I don't know gdm but maybe this can help
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5439

PostPosted: Sat Jul 27, 2019 5:39 pm    Post subject: Reply with quote

xorg is hard dep for gdm, see ebuild and bug #295686
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 289

PostPosted: Sun Jul 28, 2019 2:01 am    Post subject: Reply with quote

Quote:
I don't know gdm but maybe this can help


Yes, I have a custom built initramfs.
But I'm curious why initramfs relates to this?
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 427
Location: /home

PostPosted: Sun Jul 28, 2019 5:22 am    Post subject: Reply with quote

There's a flag to enable wayland somewhere in gdm's config, check /etc/gdm/ and what you can find from there.

You can also log in to wayland session from TTY, to see if your wayland is working at all.
Back to top
View user's profile Send private message
nvaert1986
n00b
n00b


Joined: 05 May 2019
Posts: 56

PostPosted: Tue Jul 30, 2019 9:33 am    Post subject: Reply with quote

What graphics card do you have and what driver are you using? If you're using a hybrid setup or nvidia-drivers, gdm forces a xorg-x11 due to stability reasons.

You can disable this by editing: '/lib/udev/rules.d/61-gdm.rules' and commenting out:DRIVER=="nvidia", RUN+="/usr/libexec/gdm-disable-wayland", but this will very likely crash your setup (as it did with mine; I used recovery mode to revert it) as it's simply crashed.
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