Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836292

Summary: gnome-base/gdm-42.0 broke autologin for i915 and QXL
Product: Gentoo Linux Reporter: qayjii+eus8xcxcly2cg
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Logs for gdm-42 vanilla
Logs with workaround

Description qayjii+eus8xcxcly2cg 2022-03-27 20:58:11 UTC
By setting /etc/gdm/custom.conf with daemon settings:
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=user

you should and used to be able to auto login on gdm. Since gnome-base/gdm-42 there is an error and the username/password prompt appears. To work around this issue I made this small change:

--- ./gdm-42.0/daemon/gdm-local-display-factory.x	2022-03-27 15:34:40.260983491 -0500
+++ ./gdm-42.0/daemon/gdm-local-display-factory.c	2022-03-27 15:34:56.360928948 -0500
@@ -634,6 +634,7 @@
         return lookup_by_seat_id (id, display, user_data);
 }
 
+#undef HAVE_UDEV
 #ifdef HAVE_UDEV
 static gboolean
 udev_is_settled (GdmLocalDisplayFactory *factory)

and autologin works again.

I attach some logs for the two cases. This happens with i915 and also QXL video cards. I don't know why Debug isn't enabled in gdm-42 even though it is in the custom.conf





Reproducible: Always
Comment 1 qayjii+eus8xcxcly2cg 2022-03-27 20:59:02 UTC
Created attachment 768025 [details]
Logs for gdm-42 vanilla
Comment 2 qayjii+eus8xcxcly2cg 2022-03-27 20:59:33 UTC
Created attachment 768026 [details]
Logs with workaround
Comment 3 Matt Turner gentoo-dev 2022-04-18 03:58:06 UTC
I wonder if this is https://gitlab.gnome.org/GNOME/mutter/-/issues/2210

Can you try putting 'MUTTER_DEBUG_USE_KMS_MODIFIERS=0' to /etc/environment and testing that?

Or try applying this patch? https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2359.patch
Comment 4 qcb22i+8xu3qou6mwhlg2w5ymjxc 2022-04-30 01:09:46 UTC
Thanks. I tested the patch of QXL only. Seems to work now. Let's hope the rest of the KMS changes moved into user space work