[Bug 1193620] New: Xorg config under /run disables /etc
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 Bug ID: 1193620 Summary: Xorg config under /run disables /etc Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org Assignee: gfx-bugs@suse.de Reporter: tzimmermann@suse.com QA Contact: gfx-bugs@suse.de CC: gtoptsid@gmail.com Blocks: 1193250 Found By: --- Blocker: --- Citing bug 1193250, comment 11: After the introduction of this patch that checks /run for config files, i noticed that xorg ignored all my config files residing in /etc. I may be wrong but looking at https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/hw/xfree86/parser/... it seems to me that xorg uses only the first directory that has any files in it. So, because it finds /run/X11/xorg.conf.d/10-card.conf file generated by udev, it ignores everything in /etc/X11/xorg.conf.d (and i guess also all the distro-supplied files in /usr/share). My impression is further stengthened by the fact that if i delete the file in /run, then my configs are parsed correctly. Is this a known - wanted behavior ? Thank your for your time. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c1 Thomas Zimmermann <tzimmermann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(gtoptsid@gmail.co | |m) --- Comment #1 from Thomas Zimmermann <tzimmermann@suse.com> --- This isn't the indented behavior. Can you please attach /var/log/xorg.0.log and the configuration file in /run/X11/ We may have to adapt the parsing code to fix the issue. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c2 --- Comment #2 from Georgios Toptsidis <gtoptsid@gmail.com> --- Created attachment 854477 --> http://bugzilla.opensuse.org/attachment.cgi?id=854477&action=edit Config file in /run This is the file that is created in /run/X11/xorg.conf.d It is created by /usr/sbin/x11sysfsconf which is run by the udev rule /etc/udev/rules.d/99-xorg-sysfs.rules. Both x11sysfsconf and 99-xorg-sysfs.rules are added by the newest xorg package (xorg-x11-server-21.1.1-3.1.x86_64). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c3 --- Comment #3 from Georgios Toptsidis <gtoptsid@gmail.com> --- Created attachment 854478 --> http://bugzilla.opensuse.org/attachment.cgi?id=854478&action=edit Xorg.0.log when everything works This is Xorg.0.log when /run/X11 is empty and everything works correctly. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c4 Georgios Toptsidis <gtoptsid@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(gtoptsid@gmail.co | |m) | --- Comment #4 from Georgios Toptsidis <gtoptsid@gmail.com> --- Created attachment 854481 --> http://bugzilla.opensuse.org/attachment.cgi?id=854481&action=edit Xorg.0.log with the file in /run This is the Xorg.0.log with the file in /run. (WW) Falling back to old probe method for modesetting Fatal server error: (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices As you read, for some reason (at least in my case), the produced file isn't correct and makes xorg not be able to see the card or something. I verified it by moving my configs to another location and xorg works perfectly without any config. This 10-card0 config file messes something up but this is irrelevant for this bug report. The relevant info is the following: --- Xorg.0.log.correct 2021-12-10 16:13:05.074142527 +0200 +++ Xorg.0.log.wrong 2021-12-10 16:06:43.447252270 +0200 @@ -16,17 +16,18 @@ Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. - (==) Using config directory: "/etc/X11/xorg.conf.d" + (==) Using config directory: "/run/X11/xorg.conf.d" Having one or more files in /run, disables /etc. Respectively, having one or more files in /etc, disables the distribution-supplied files in /usr/share. I hope i included all the info you wanted. Thank you for your time. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c5 Thomas Zimmermann <tzimmermann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS Flags| |needinfo?(gtoptsid@gmail.co | |m) --- Comment #5 from Thomas Zimmermann <tzimmermann@suse.com> --- Hi Georgios, I have reverted most of the recent changes; except for a bugfix. If you want to test, I'd appreciate your feedback. My test repo is at https://build.opensuse.org/package/show/home:tdz:branches:X11:XOrg/xorg-x11-... Best regards Thomas -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c6 Georgios Toptsidis <gtoptsid@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(gtoptsid@gmail.co | |m) | --- Comment #6 from Georgios Toptsidis <gtoptsid@gmail.com> --- (In reply to Thomas Zimmermann from comment #5)
Hi Georgios,
I have reverted most of the recent changes; except for a bugfix. If you want to test, I'd appreciate your feedback. My test repo is at
https://build.opensuse.org/package/show/home:tdz:branches:X11:XOrg/xorg-x11- server
Best regards Thomas
I added your repository, installed xorg-x11-server-21.1.1-661.1.x86_64 and rebooted and it works correctly. However, i don't use hyperv and i don't know what "drm on the platform bus" is, so i can't verify if the removal of the udev rule and x11sysfsconf binary hurts those 2 cases. Thank you. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c7 --- Comment #7 from Thomas Zimmermann <tzimmermann@suse.com> --- (In reply to Georgios Toptsidis from comment #6)
(In reply to Thomas Zimmermann from comment #5)
Hi Georgios,
I have reverted most of the recent changes; except for a bugfix. If you want to test, I'd appreciate your feedback. My test repo is at
https://build.opensuse.org/package/show/home:tdz:branches:X11:XOrg/xorg-x11- server
Best regards Thomas
I added your repository, installed xorg-x11-server-21.1.1-661.1.x86_64 and rebooted and it works correctly.
However, i don't use hyperv and i don't know what "drm on the platform bus" is, so i can't verify if the removal of the udev rule and x11sysfsconf binary hurts those 2 cases.
Thank you.
Don't worry. hyperv_drm is a driver for HyperV virtual machines. Just like simpledrm, it requires a workarond in X11. Thanks for testing. The fix will probably show up in Tumbleweed within the next days. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c8 --- Comment #8 from Georgios Toptsidis <gtoptsid@gmail.com> ---
Don't worry. hyperv_drm is a driver for HyperV virtual machines. Just like simpledrm, it requires a workarond in X11. Thanks for testing. The fix will probably show up in Tumbleweed within the next days.
Is this simpledrm workaround needed for special cases ? It is possible i have misunderstood the problem, but i use simpledrm (though not as a module but included in the kernel if it makes a difference) and never had to use any workaround. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c9 --- Comment #9 from Thomas Zimmermann <tzimmermann@suse.com> --- (In reply to Georgios Toptsidis from comment #8)
Don't worry. hyperv_drm is a driver for HyperV virtual machines. Just like simpledrm, it requires a workarond in X11. Thanks for testing. The fix will probably show up in Tumbleweed within the next days.
Is this simpledrm workaround needed for special cases ?
It is possible i have misunderstood the problem, but i use simpledrm (though not as a module but included in the kernel if it makes a difference) and never had to use any workaround.
You did nothing wrong. The workaround was in the upstream release 21.1. It's a hack and not very elegant. The patches in Tumbleweed were supposed to improve this, but didn't work for you (and probably others). I restored the workaround and added a similar hack for hyperv_drm. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c10 --- Comment #10 from Georgios Toptsidis <gtoptsid@gmail.com> --- (In reply to Thomas Zimmermann from comment #9)
You did nothing wrong. The workaround was in the upstream release 21.1. It's a hack and not very elegant. The patches in Tumbleweed were supposed to improve this, but didn't work for you (and probably others).
I restored the workaround and added a similar hack for hyperv_drm.
Thank you very much for your time on this. Should i do something like marking the status as resolved ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193620 http://bugzilla.opensuse.org/show_bug.cgi?id=1193620#c11 Thomas Zimmermann <tzimmermann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #11 from Thomas Zimmermann <tzimmermann@suse.com> --- (In reply to Georgios Toptsidis from comment #10)
(In reply to Thomas Zimmermann from comment #9)
You did nothing wrong. The workaround was in the upstream release 21.1. It's a hack and not very elegant. The patches in Tumbleweed were supposed to improve this, but didn't work for you (and probably others).
I restored the workaround and added a similar hack for hyperv_drm.
Thank you very much for your time on this.
Should i do something like marking the status as resolved ?
The fix has already been accepted and should be in the next Tumbleweed update. I'll close this bug report as fixed. If the problem comes back, please reopen. [1] https://build.opensuse.org/package/revisions/X11:XOrg/xorg-x11-server -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com