You are not logged in.

#1 2021-11-26 12:04:54

Wild Penguin
Member
Registered: 2015-03-19
Posts: 347

[SOLVED] nvidia-340xx: ignoreABI server flag is not applied

Hi,

I'm probably missing something very obvious.

I'm using MBP5,5 and hence stuck on the nvidia-340xx branch (or Nouveau, which has it's own problems). Currently the driver requries ignoreABI since the driver is not being updated anymore. I have this in /etc/X11/xorg.conf.d/20-nvidia.conf:

Section "Files"
  ModulePath   "/usr/lib64/nvidia/xorg"
  ModulePath   "/usr/lib64/xorg/modules"
EndSection

Section "Device"
  Identifier "nvDevice0"
  Driver "nvidia"
  VendorName "NVIDIA Corporation"
  # BusID "PCI:2:0:0"
EndSection

Section "ServerFlags"
  Option "IgnoreABI" "1"
EndSection

However, Xorg does not seem to parse that option (after starting lightdm):

[  1279.611] 
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
[  1279.612] 
X.Org X Server 1.21.1.1
X Protocol Version 11, Revision 0
[  1279.612] Current Operating System: Linux VillesPortableAntergos 5.10.81-1-lts #1 SMP Sun, 21 Nov 2021 14:20:01 +0000 x86_64
[  1279.612] Kernel command line: root=UUID=73209690-d390-4838-b789-5a053ac91560 resume=UUID=22bdb666-e035-47ec-a3cb-18bcf823da2e rw nouveau.noaccel=0 initrd=\initramfs-linux-lts.img
[  1279.612]  
[  1279.612] Current version of pixman: 0.40.0
[  1279.612]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  1279.612] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1279.612] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Nov 26 13:52:56 2021
[  1279.612] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  1279.612] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1279.612] (==) No Layout section.  Using the first Screen section.
[  1279.612] (==) No screen section available. Using defaults.
[  1279.612] (**) |-->Screen "Default Screen Section" (0)
[  1279.612] (**) |   |-->Monitor "<default monitor>"
[  1279.613] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[  1279.613] (**) |   |-->Device "nvDevice0"
[  1279.613] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[  1279.613] (**) Option "DontZap" "false"
[  1279.613] (==) Automatically adding devices
[  1279.613] (==) Automatically enabling devices
[  1279.613] (==) Automatically adding GPU devices
[  1279.613] (==) Automatically binding GPU devices
[  1279.613] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1279.613] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[  1279.613]    Entry deleted from font path.
[  1279.613] (==) FontPath set to:
        /usr/share/fonts/misc,
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/75dpi
[  1279.613] (**) ModulePath set to "/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules"
[  1279.613] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  1279.613] (II) Module ABI versions:
[  1279.613]    X.Org ANSI C Emulation: 0.4
[  1279.613]    X.Org Video Driver: 25.2
[  1279.613]    X.Org XInput driver : 24.4
[  1279.613]    X.Org Server Extension : 10.0
[  1279.614] (++) using VT number 7

[  1279.614] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[  1279.614] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1279.614] (II) Platform probe for /sys/devices/pci0000:00/0000:00:10.0/0000:02:00.0/drm/card0
[  1279.616] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules"
[  1279.616] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU
[  1279.618] (--) PCI:*(2@0:0:0) 10de:0863:106b:00b9 rev 177, Mem @ 0xd2000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00001000/128, BIOS @ 0x????????/131072
[  1279.618] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  1279.619] (II) LoadModule: "glx"
[  1279.619] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[  1279.639] (II) Module glx: vendor="NVIDIA Corporation"
[  1279.639]    compiled for 4.0.2, module version = 1.0.0
[  1279.639]    Module class: X.Org Server Extension
[  1279.639] (II) NVIDIA GLX Module  340.108  Wed Dec 11 14:26:50 PST 2019
[  1279.639] (II) LoadModule: "nvidia"
[  1279.639] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  1279.640] (II) Module nvidia: vendor="NVIDIA Corporation"
[  1279.640]    compiled for 4.0.2, module version = 1.0.0
[  1279.640]    Module class: X.Org Video Driver
[  1279.640] ================ WARNING WARNING WARNING WARNING ================
[  1279.640] This server has a video driver ABI version of 25.2 that this
driver does not officially support.  Please check
http://www.nvidia.com/ for driver updates or downgrade to an X
server with a supported driver ABI.
[  1279.640] =================================================================
[  1279.640] (EE) NVIDIA: Use the -ignoreABI option to override this check.
[  1279.640] (II) UnloadModule: "nvidia"
[  1279.640] (II) Unloading nvidia
[  1279.640] (EE) Failed to load module "nvidia" (unknown error, 0)
[  1279.640] (EE) No drivers available.
[  1279.640] (EE) 
Fatal server error:
[  1279.640] (EE) no screens found(EE) 
[  1279.640] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[  1279.640] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1279.640] (EE) 
[  1279.640] (EE) Server terminated with error (1). Closing log file.

I can:

  1. manually run Xorg -ignoreABI, and the server now starts!

  2. Remove the section part from 20-nvidia.conf. Now I can start a display manager, but it is not using nvidia (obviously).

Any ideas? Is there something wrong with the 20-nvidia.conf syntax? It is entirely similar to the example file provided by the AUR packages (which I tried first - I only made some edits to see if Xorg is parsing the file at all!).

Cheers!

[EDIT:] Package used: https://aur.archlinux.org/packages/nvidia-340xx-lts/

Last edited by Wild Penguin (2021-11-29 16:36:11)

Offline

#2 2021-11-26 17:13:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,209

Re: [SOLVED] nvidia-340xx: ignoreABI server flag is not applied

We don't know the specifics of how Antergos configures their distribution.  You will need to ask on their forums.

Closed.  Dust binned.

It has been asserted that the only thing Antergos about this system is the host name -- along with Antergos being a dead project.
I have accepted this assertion and restored this post to Kernel and Hardware.

Last edited by ewaller (2021-11-29 15:33:44)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2021-11-29 16:35:58

Wild Penguin
Member
Registered: 2015-03-19
Posts: 347

Re: [SOLVED] nvidia-340xx: ignoreABI server flag is not applied

Hi,

Yhank You @ewaller. Indeed this is running Arch, I believe I should probably change the hostname to remove confusion! It's just been more convenient this way / left this way because of lazyness. At some point some device in my LAN cared about that hostname, but doesn't anymore...

As for the issue: I've solved it, just now as I was typing a reply smile. I was about to comment I don't have many ServerFlags sections, and as I checked this, I found out the problem!

More details: I was about to ask here if one can dump the configuration Xorg has parsed and found (I think there isn't, but it would be a good feature). So I manually started to re-look at the configuration files in /etc/X11 and /usr/share/X11. I was about to write here I don't have many ServerFlags sections ... and found out a configuration file I had made previously. Since this is an MBP, and I've had various problems with it's GPU and buggy drivers (an old NVidia card 9400M). As such I've deemed it necessary to enable the good old CTRL+ALT+Backspace. So, I've made a configuration file with another ServerFlags section in /etc/X11/xorg.conf.d. And, it seems that X.org does not combine (despite containing different flags) multiple ServerFlags sections but only uses the last ServerFlags section. The configuration file in question has a priority number of 99-. Moving the IgnoreABI into the latter file is one workaround.

As a general recommendation, it would suggest to put all ServerFlags into one file only. But many examples have ServerFlags in a single file (named to reflect to the configuration piece they are configuring, and usually contain a lot of other stuff than just the ServerFlags section - one such example in this thread), and this kind of issue might arise easily arise if the user doesn't realise there can be only one ServerFlags section. One might assume that ServerFlags sections are combined! (They are not, and the documentation doesn't reflect on this).

Marking as [SOLVED]. Thanks all! I believe this is an example of the usefulness of describing the problem and troubleshooting steps being taken properly. By doing that, the solution will often just appear! smile.

TL;DR: There were two ServerFlags sections hidden in the configuration files in /etc//X11/xorg.conf.d after all!

Offline

Board footer

Powered by FluxBB