Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GDM login loop
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
KShots
Guru
Guru


Joined: 09 Oct 2003
Posts: 593
Location: Florida

PostPosted: Tue Sep 05, 2023 3:58 pm    Post subject: GDM login loop Reply with quote

After an update several months back, I haven't been able to use GDM to login to my machine. I figured it was the update's fault back then and decided to wait for a solution... today, it's still a problem.

I can log into gnome using SDDM, but I lose some basic items (no screen lock). I've been able to use SDDM and x11, GDM was using wayland until the update.

Looking at my logs, GDM appears to be attempting to run X now (even though it has been told to use wayland) and runs into an error:
Code:
...
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (II) NVIDIA(0): MetaMode "NULL":
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (II) NVIDIA(0):     Size: 640 x 480
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (WW) NVIDIA(0): Unable to get display device for DPI computation.
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (==) modeset(G0): RGB weight 888
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (==) modeset(G0): Default visual is TrueColor
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (II) Loading sub module "glamoregl"
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (II) LoadModule: "glamoregl"
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (II) Module glamoregl: vendor="X.Org Foundation"
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]:         compiled for 1.21.1.8, module version = 1.0.1
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]:         ABI class: X.Org ANSI C Emulation, version 0.4
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE)
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) Backtrace:
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 0: /usr/bin/X (xorg_backtrace+0x54) [0x5574f5c82ab4]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 1: /usr/bin/X (0x5574f5b42000+0x1446e9) [0x5574f5c866e9]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 2: /usr/lib64/libc.so.6 (0x7f07e671d000+0x3c400) [0x7f07e6759400]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 3: /usr/lib64/gbm/nvidia-drm_gbm.so (0x7f07de800000+0x156eb) [0x7f07de8156eb]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 4: /usr/lib64/gbm/nvidia-drm_gbm.so (0x7f07de800000+0x159b8) [0x7f07de8159b8]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 5: /usr/lib64/libgbm.so.1 (0x7f07e5f3a000+0x3626) [0x7f07e5f3d626]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 6: /usr/lib64/libgbm.so.1 (0x7f07e5f3a000+0x37a3) [0x7f07e5f3d7a3]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 7: /usr/lib64/libgbm.so.1 (gbm_create_device+0x44) [0x7f07e5f3d894]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 8: /usr/lib64/xorg/modules/libglamoregl.so (glamor_egl_init+0x61) [0x7f07e2b673b1]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 9: /usr/lib64/xorg/modules/drivers/modesetting_drv.so (0x7f07e5f4b000+0xbe0e) [0x7f07e5f56e0e]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 10: /usr/bin/X (InitOutput+0xa23) [0x5574f5ca3a33]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 11: /usr/bin/X (0x5574f5b42000+0x7938d) [0x5574f5bbb38d]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 12: /usr/lib64/libc.so.6 (0x7f07e671d000+0x278ca) [0x7f07e67448ca]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 13: /usr/lib64/libc.so.6 (__libc_start_main+0x85) [0x7f07e6744985]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) 14: /usr/bin/X (_start+0x21) [0x5574f5b7ee61]
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE)
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) Segmentation fault at address 0x0
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE)
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: Fatal server error:
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) Caught signal 11 (Segmentation fault). Server aborting
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE)
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE)
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: Please consult the The X.Org Foundation support
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]:          at http://wiki.x.org
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]:  for help.
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE) Please also check the log file at "/home/rich/.local/share/xorg/Xorg.1.log" for additional information.
Sep 05 11:32:45 incubus /usr/libexec/gdm-x-session[8514]: (EE)
I have no idea why it's trying to use X, why it fails, or what I can do about it.

For wayland support, I have the following in my dracut.conf:
Code:
add_drivers+=" nvidia nvidia_drm nvidia_modeset nvidia_uvm "

I have the following in my /proc/cmdline:
Code:
iommu=on intel_iommu=on rd.luks.uuid=luks-eb86ed8d-2955-4d28-b577-fc4ea8130582 rd.luks.uuid=luks-1696a19c-1750-4ce5-96bd-cf38d984532a dozfs root=zfs:AUTO rootfstype=zfs delayacct modprobe.blacklist=nouveau nosplit_lock_detect split_lock_detect=off nvidia-drm.modeset=1
(demonstrates that nvidia-drm.modeset=1 is in fact passed to the kernel at boot time). My /etc/gdm/custom.conf file:
Code:
# GDM configuration storage

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=true

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
Enable=true
... and I have /etc/udev/rules.d/61-gdm.rules symlinked to /dev/null. Why am I restricted to only using SDDM now?
_________________
Life without passion is death in disguise
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Sep 30, 2023 9:30 pm    Post subject: Reply with quote

To be honest, I had GDM and Gnome on a media computer running Gentoo, and at some point an update broke... everything. But GDM would behave much like you described. So I just ditched it in favor of LightDM. Maybe give that a try?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Sep 30, 2023 10:08 pm    Post subject: Reply with quote

gdm has a wayland USE flag. What is the output of emerge -vp gdm?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
KShots
Guru
Guru


Joined: 09 Oct 2003
Posts: 593
Location: Florida

PostPosted: Sat Sep 30, 2023 10:54 pm    Post subject: Reply with quote

pjp wrote:
gdm has a wayland USE flag. What is the output of emerge -vp gdm?
Code:
rich@incubus ~ $ emerge -vp gdm

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 8.86 s.

[ebuild   R    ] gnome-base/gdm-44.1::gentoo  USE="branding fprint systemd wayland -accessibility -audit -bluetooth-sound (-elogind) -plymouth (-selinux) -tcpd -test" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

_________________
Life without passion is death in disguise
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Oct 01, 2023 1:12 am    Post subject: Reply with quote

I was going to suggest trying to downgrade it, but that's the oldest version in ::gentoo. Seems like a bug to me.

I don't see any relevant open bugs, and my lack of git knowledge only reveals "routine" recent activity.

https://bugs.gentoo.org/buglist.cgi?quicksearch=gnome-base%2Fgdm

https://gitweb.gentoo.org/repo/gentoo.git/log/gnome-base/gdm?showmsg=1
_________________
Quis separabit? Quo animo?
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