Cannot start X11 with nvidia driver with Dell Precision 5680

Standard new Ubuntu 24.04, which by default installs nvidia-drivers-550. When I use nvidia-xconfig to create xorg.conf and do startx, the screen just hangs. Here is the output of “startx – -logverbose 6”

X.Org X Server 1.21.1.11
X Protocol Version 11, Revision 0
Current Operating System: Linux laptop-10 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec  5 13:09:44 UTC 2024 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-51-generic root=UUID=2425a157-3125-4a45-87b1-f399bce6cd8b ro quiet splash vt.handoff=7
xorg-server 2:21.1.12-1ubuntu1.1 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.42.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/stephen/.local/share/xorg/Xorg.0.log", Time: Sun Dec 22 21:35:54 2024
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

The last lines are when I did “killall Xorg”.

Actually I tried a variety of Linux distributions and nvidia drivers, installed in all different kinds of ways.

I’m trying to upload an nvidia-bug-report, but it is taking a long time to upload.

BTW, nvidia-smi tells me the card is working.

If I delete the xorg.conf file, X11 uses an Intel graphics card instead.

Here is the nvidia bug report.

nvidia-bug-report.log.gz (483.9 KB)

Also, I am able to use CUDA. I just cannot get the screen to work.

OK people, I got it to work with the help of this website: nvidia - choose which GPU to use for each application - Ask Ubuntu

I am using ubuntu-mate-24.04, with the standard NVIDIA driver. Don’t create a /etc/X11/xorg.org.

After starting your machine, there is an NVIDA icon on the top right hand corner. Click on it. Select “NVIDIA: switch to performance mode.” After that you have to log out. When you log in again, you have all the acceleration you need!

I think it might only work if you are using the lightdm display manager. I wouldn’t know how to use it with “startx.”

The other solution also works if the graphics tab is set to “NVIDIA: On demand”:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep "OpenGL ren"

as opposed to

glxinfo | grep "OpenGL ren"

It even works with “startx”.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.