Every Update breaks my configuration

Related to:

Everytime i do an update, the following files are recreated:

/usr/share/X11/xorg.conf.d/10-amdgpu-nvidia-drm-outputclass.conf 
/usr/share/X11/xorg.conf.d/10-intel-nvidia-drm-outputclass.conf

This leads to not booting into GUI any more

After i delete this files, My system boots into GUI without problems

This problem is not really solved. Everytime after an update i have to

  • first boot without GUI
  • Change into tty2
  • Log in
  • Delete these 2 files
  • Then reboot into GUI
    This does work until next update, when the files are recreated :frowning:

What is the real problem behind this ?

What can i do to solve this finally ?

1 Like

Those files do not exist on my system ─ Stable, fully updated. Therefore, you must have something installed that I don’t have, and that either contains or generates those files. :man_shrugging:

  • I do have 2 nvidia cards im my pc
  • I do use nouveau
  • I do use multiple seats
    Until today i may have deleted these files maybe 10 times :wink:

I could write a batchfile to do so. But this would be selfish. Because i would get rid of the problem, but others will not.

pacman -Qo <filename>?

3 Likes

Maybe start with checking the pacman database and see if these files part of a package.

pacman -Qo /usr/share/X11/xorg.conf.d/10-amdgpu-nvidia-drm-outputclass.conf 
pacman -Qo /usr/share/X11/xorg.conf.d/10-intel-nvidia-drm-outputclass.conf

If they are part of a package remove the package or make sure these files aren’t installed.

2 Likes

File names contains nvidia, your profile says:

GPU: Intel UHD Graphics 630
GPU Driver: i915 | modesetting

Perhaps that’s why. I also have no those files, but I have iGPU only also.


Andreas,
What was the contents of the files? Perhaps empty files could not re-configure a system.
What if to leave them empty? Could it prevent from being overwritten next time? But perhaps will be overwritten, and also it is another one workaround but not a fix of global problem.

  • First time i found this problem (see link) i did move them to another name. This did heltp till the next update
  • Then i did remove the files. This did help until the next update.
  • Then i tried to modify them. Removing the problematic section with “layout”. This did help until the next update did replace them :wink:

It seems these files are allways “corrected” without notice (because they are owned by a packet)

Now this is a very good hint:

pacman -Qo /usr/share/X11/xorg.conf.d/10-amdgpu-nvidia-drm-outputclass.conf ;pacman -Qo /usr/share/X11/xorg.conf.d/10-intel-nvidia-drm-outputclass.conf                                                                   
/usr/share/X11/xorg.conf.d/10-amdgpu-nvidia-drm-outputclass.conf ist in nvidia-utils 495.44-6 enthalten
/usr/share/X11/xorg.conf.d/10-intel-nvidia-drm-outputclass.conf ist in nvidia-utils 495.44-6 enthalten

If i do use nouveau now (years ago i did use nvidia-drivers). Can’t i deinstall nvidia-utils ?

It seems not :rofl:

trizen -R nvidia-utils                                         
:: Pacman command: /usr/bin/sudo /usr/bin/pacman -R nvidia-utils
[sudo] Passwort fĂĽr andreas: 
Abhängigkeiten werden geprüft …
:: ffmpeg benötigt optional nvidia-utils: Nvidia NVDEC/NVENC support
:: gst-plugins-bad benötigt optional nvidia-utils: nvcodec plugin
:: steam-manjaro benötigt optional vulkan-driver: packaged vulkan driver
:: vulkan-icd-loader benötigt optional vulkan-driver: packaged vulkan driver

Pakete (1) nvidia-utils-495.44-6

Gesamtgröße der entfernten Pakete:  439,78 MiB

:: Möchten Sie diese Pakete entfernen? [J/n] n
=>> Try again? [Y/n]: n

I did it nevertheless

:: Möchten Sie diese Pakete entfernen? [J/n] j
:: Pre-transaction-Hooks werden gestartet …
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 20195
:: Paketänderungen werden verarbeitet …
(1/1) Entfernung läuft nvidia-utils                [----------------------] 100%
:: Post-transaction-Hooks werden gestartet …
(1/6) Reloading system manager configuration...
(2/6) Reloading device manager configuration...
(3/6) Arming ConditionNeedsUpdate...
(4/6) Removing obsolete cached package files (keeping the latest two)...
==> no candidate packages found for pruning
(5/6) Updating the desktop file MIME type cache...
(6/6) Performing snapper post snapshots for the following configurations...
==> root: 20196

General answer is:

pactree -r nvidia-utils

Hope you have Timeshift snapshot or LiveCD to install it back just in case if problems will be after reboot.
If can’t be uninstalled, may be you can configure it some how to do not create it’s config? or to create you own not a system-level, but user-level config to rewrite that general config?

But what other users should do (if they have the same issue) to fix it on their PC? also to create their user configs? May be config inside of the package could be fixed then?

2nd time i did read the messages ! (This often helps :wink: )

They say for every dependent package that it is an optional dependency.

I think this means that ffmpeg needs nvidia-utils optional. But it may need it only if nvidia-drivers are used

So i did deinstall nvidia-utils (without force)

And yes, i do have btrfs, snapper and snapshots of bevore. I also have an USB-Stick with manjaro on it. (better save than sorry)

I installed the `nvidia-utils ` package to see those files content
~/Desktop ❯ pacman -Si nvidia-utils | grep Ver
Version         : 495.44-6

~/Desktop ❯ pacman -Qi nvidia-utils | grep Ver
error: package 'nvidia-utils' was not found

~/Desktop ❯ ls -A1 /usr/share/X11/xorg.conf.d/                               
10-amdgpu.conf
10-evdev.conf
10-quirks.conf
10-radeon.conf
40-libinput.conf

~/Desktop ❯ sudo pacman -S nvidia-utils           
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: eglexternalplatform will be installed before its nvidia-utils dependency

Package (3)                New Version            Net Change  Download Size

extra/egl-wayland          2:1.1.9+r3+g582b2d3-1    0.08 MiB       0.03 MiB
extra/eglexternalplatform  1.1-2                    0.02 MiB       0.01 MiB
extra/nvidia-utils         495.44-6               439.78 MiB     201.41 MiB

Total Download Size:   201.45 MiB
Total Installed Size:  439.87 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 eglexternalplatform-1.1-2-any                                                          7.1 KiB  14.6 KiB/s 00:00 [####################################################################] 100%
 egl-wayland-2:1.1.9+r3+g582b2d3-1-x86_64                                              29.7 KiB  54.0 KiB/s 00:01 [####################################################################] 100%
 nvidia-utils-495.44-6-x86_64                                                         201.4 MiB   957 KiB/s 03:36 [####################################################################] 100%
 Total (3/3)                                                                          201.4 MiB   956 KiB/s 03:36 [####################################################################] 100%
(3/3) checking keys in keyring                                                                                    [####################################################################] 100%
(3/3) checking package integrity                                                                                  [####################################################################] 100%
(3/3) loading package files                                                                                       [####################################################################] 100%
(3/3) checking for file conflicts                                                                                 [####################################################################] 100%
(3/3) checking available disk space                                                                               [####################################################################] 100%
:: Processing package changes...
(1/3) installing eglexternalplatform                                                                              [####################################################################] 100%
(2/3) installing egl-wayland                                                                                      [####################################################################] 100%
(3/3) installing nvidia-utils                                                                                     [####################################################################] 100%
==> If you run into trouble with CUDA not being available, run nvidia-modprobe first.
Optional dependencies for nvidia-utils
    xorg-server-devel: nvidia-xconfig
    opencl-nvidia: OpenCL support
:: Running post-transaction hooks...
(1/6) Creating system user accounts...
Creating group nvidia-persistenced with gid 143.
Creating user nvidia-persistenced (NVIDIA Persistence Daemon) with uid 143 and gid 143.
(2/6) Reloading system manager configuration...
(3/6) Reloading device manager configuration...
(4/6) Arming ConditionNeedsUpdate...
(5/6) Refreshing PackageKit...
(6/6) Updating the desktop file MIME type cache...

~/Desktop ❯ ls -A1 /usr/share/X11/xorg.conf.d/
10-amdgpu.conf
10-amdgpu-nvidia-drm-outputclass.conf
10-evdev.conf
10-intel-nvidia-drm-outputclass.conf
10-quirks.conf
10-radeon.conf
40-libinput.conf
~/Desktop ❯ cat /usr/share/X11/xorg.conf.d/10-intel-nvidia-drm-outputclass.conf
Section "ServerLayout"
    Identifier "layout"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection
~/Desktop ❯ cat /usr/share/X11/xorg.conf.d/10-amdgpu-nvidia-drm-outputclass.conf 

Section "ServerLayout"
    Identifier "layout"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "OutputClass"
    Identifier "AMDgpu"
    MatchDriver "amdgpu"
    Driver "amdgpu"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

It seems like configs provides modules to load by nvidia driver, but why they was failed to load? Need to see journactl, xorg logs of PC boot up with them.
I have only iGPU and another DE (KDE).

This is described in my older post. There are related xorg-logs and lightdm-log

In these files is a section “layout”

  • It seems this file is only processed by xorg when there are no other config files for xorg in /etc
  • Then xorg tries to find other sections in according to “layout” but they do not exist.
  • Then xorg is not able to create a screen … In the end xorg fails.

When these files are not there:

  • Then all things go the way of loginctl
  • xorg creates an at hoc configuration according to what is configured with loginctl.

In my case this are 2 seats (seat0 and seat1) with 2 graphic-card, 2 monitors, some predefined usb-ports for every seat … see at
Xorg multiseat - ArchWiki

Every other reference I see to that Section and Option includes something like this

      Screen 0 "intel"
      Inactive "nvidia"