Ubuntu 20.04 Failed to initialize the NVIDIA GPU at PCI:1:0:0

Asked by Paul Stephenson

The system is a headless desktop and has been running Ubuntu 16.04 with MYTHTV 0.28 for about 5 years. It comprises an ASUS M5A78L-M USB3 motherboard with ATI GPU on board, an AMD FX(tm)-4300 Quad-Core Processor and 8GB RAM. Video output is via an Nvidia GEForce 5200 PCIE card with 2GB DDR3 feeding into a Denon AV Receiver via HDMI, and then onto a Flatscreen TV.

The system was upgraded to 18.04 without error but failed to reach the login screen when booted. Search results indicated that reinstalling the Nvidia driver would cure the problem. As my target system was 20.04 I decided to upgrade to that and get the driver reinstalled that way. 20.04 left me with the same problem though.

Doing clean installs on a spare disc of both 18.04 and 20.04 gave exactly the same results although, with slightly different external behaviour. The replies to my post on Ubuntu Forums have all been tried except for the bit about:-

May 07 11:20:16 PVR-1 kernel: resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000d0000-0x000dffff window]
May 07 11:20:16 PVR-1 kernel: caller os_map_kernel_space.part.0+0x100/0x140 [nvidia] mapping multiple BARs

I have not been able to find a way of alleviating this. Appropriate section from system log (journalctl) below:-
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Module glx: vendor="NVIDIA Corporation"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: compiled for 4.0.2, module version = 1.0.0
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: Module class: X.Org Server Extension
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) NVIDIA GLX Module 390.143 Fri Mar 12 07:23:57 UTC 2021
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) LoadModule: "nvidia"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Loading /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Module nvidia: vendor="NVIDIA Corporation"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: compiled for 4.0.2, module version = 1.0.0
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: Module class: X.Org Video Driver
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) NVIDIA dlloader X Driver 390.143 Fri Mar 12 07:27:02 UTC 2021
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) systemd-logind: releasing fd for 226:0
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Loading sub module "fb"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) LoadModule: "fb"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Loading /usr/lib/xorg/modules/libfb.so
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Module fb: vendor="X.Org Foundation"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: compiled for 1.20.9, module version = 1.0.0
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: ABI class: X.Org ANSI C Emulation, version 0.4
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Loading sub module "wfb"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) LoadModule: "wfb"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Loading /usr/lib/xorg/modules/libwfb.so
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Module wfb: vendor="X.Org Foundation"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: compiled for 1.20.9, module version = 1.0.0
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: ABI class: X.Org ANSI C Emulation, version 0.4
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Loading sub module "ramdac"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) LoadModule: "ramdac"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Module "ramdac" already built-in
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (==) NVIDIA(0): RGB weight 888
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (==) NVIDIA(0): Default visual is TrueColor
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) Applying OutputClass "nvidia" options to /dev/dri/card0
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (**) NVIDIA(0): Enabling 2D acceleration
May 07 11:20:16 PVR-1 systemd[1]: Starting NVIDIA Persistence Daemon...
May 07 11:20:16 PVR-1 nvidia-persistenced[1517]: Verbose syslog connection opened
May 07 11:20:16 PVR-1 nvidia-persistenced[1517]: Now running with user ID 124 and group ID 132
May 07 11:20:16 PVR-1 nvidia-persistenced[1517]: Started (1517)
May 07 11:20:16 PVR-1 systemd[1]: Started NVIDIA Persistence Daemon.
May 07 11:20:16 PVR-1 systemd[1]: Stopping NVIDIA Persistence Daemon...
May 07 11:20:16 PVR-1 nvidia-persistenced[1517]: Received signal 15
May 07 11:20:16 PVR-1 nvidia-persistenced[1517]: PID file unlocked.
May 07 11:20:16 PVR-1 nvidia-persistenced[1517]: PID file closed.
May 07 11:20:16 PVR-1 nvidia-persistenced[1517]: The daemon no longer has permission to remove its runtime data directory /var/run/nvidia-persistenced
May 07 11:20:16 PVR-1 nvidia-persistenced[1517]: Shutdown (1517)
May 07 11:20:16 PVR-1 systemd[1]: nvidia-persistenced.service: Succeeded.
May 07 11:20:16 PVR-1 systemd[1]: Stopped NVIDIA Persistence Daemon.
May 07 11:20:16 PVR-1 snapd[1203]: daemon.go:347: started snapd/2.49.2 (series 16; classic) ubuntu/20.04 (amd64) linux/5.4.0-72-generic.
May 07 11:20:16 PVR-1 kernel: resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000d0000-0x000dffff window]
May 07 11:20:16 PVR-1 kernel: caller os_map_kernel_space.part.0+0x100/0x140 [nvidia] mapping multiple BARs
May 07 11:20:16 PVR-1 mythbackend[1278]: Cannot login to database
May 07 11:20:16 PVR-1 mythbackend[1278]: Would you like to configure the database connection now? [no]
May 07 11:20:16 PVR-1 mythbackend[1278]: [console is not interactive, using default 'no']
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) NVIDIA(GPU-0): check your system's kernel log for additional error
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) NVIDIA(GPU-0): messages and refer to Chapter 8: Common Problems in the
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) NVIDIA(GPU-0): README for additional information.
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) NVIDIA(0): Failing initialization of X screen 0
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) UnloadModule: "nvidia"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) UnloadSubModule: "wfb"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (II) UnloadSubModule: "fb"
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) Screen(s) found, but none have a usable configuration.
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE)
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: Fatal server error:
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) no screens found(EE)
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE)
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: Please consult the The X.Org Foundation support
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: at http://wiki.x.org
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: for help.
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE)
May 07 11:20:16 PVR-1 kernel: NVRM: RmInitAdapter failed! (0x26:0xffff:1123)
May 07 11:20:16 PVR-1 kernel: NVRM: rm_init_adapter failed for device bearing minor number 0
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1466]: (EE) Server terminated with error (1). Closing log file.
May 07 11:20:16 PVR-1 /usr/lib/gdm3/gdm-x-session[1464]: Unable to run X server
May 07 11:20:16 PVR-1 gdm-launch-environment][1359]: pam_unix(gdm-launch-environment:session): session closed for user gdm
May 07 11:20:16 PVR-1 gdm3[1349]: Child process -1464 was already dead.
May 07 11:20:16 PVR-1 systemd[1]: session-c1.scope: Succeeded.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Paul Stephenson (paul-tancove) said :
#2

Sorry, that's because I've reverted to 18.04 with mythtv .30 to cop out of the hassle that Mariadb is causing mythtv users. Still have same issue with nvidia card, also have only 2 tuners working on a quad tuner board, and mythtv .30 won't talk to the HDMI CEC adapter.