I just installed Ubuntu 19.04. I have the nvidia 415 drivers installed. When I try to save the configuration from “Save X Configuration File” in the path “/etc/X11/xorg.conf”, I get an error message that says "Unable to open X config file ‘/etc/X11/xorg.conf’ for writing’. It happens even if you run nvidia-settings with sudo from terminal.
I would like to be able to save the changes in the nvidia-settings options, especially the “Force Full Composite Pipeline” option.
Any suggestions?
Thank you, greetings.
This site is for the co-ordination of the Ubuntu project(s), and not support.
For Ubuntu Support options, please have a look at https://community.ubuntu.com/t/finding-help/7127
Yes many sites (eg. ask ubuntu) do not support Ubuntu 19.04 (disco) until it’s release later this week, but others (eg. irc in ubuntu+1) do support Ubuntu 19.04 now.
If it’s a bug you wish to report - please report it on launchpad.net (https://help.ubuntu.com/community/ReportingBugs)
Hi; I was just messing around with my xorg.conf file to get my touch screen back on my nvidia when I noticed a few back ups so can you rename the original then save a new .cong file?
Seems like either the attribs on the cong file is set to read only Or somehow it is being used? I am not so sure tho.
did you use terminal?
Yes, I run nvidia-settings from terminal with sudo and I just noticed that every time I click on Save to X Configuration File, the terminal displays this error message:
Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
When I try to save in the path /etc/X11/xorg.conf appears the error message:
ERROR: Unable to open X config file '/etc/X11/xorg.conf' for writing.
I don’t know how to report this error on Launchpad. If anyone can do that, I’d appreciate it.
The issue has also been reported on launchpad, https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/1822937
Those having the issue, some questions
- what desktop environment/session do you use?
- where did you get the nvidia-settings from? can you give the output of “$ dpkg -l | grep nvidia”?
- does “pkexec ls” works?
-
GNOME
-
“$ dpkg -l | grep nvidia”:
ii libnvidia-cfg1-418:amd64 418.56-0ubuntu1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-418 418.56-0ubuntu1 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-415:amd64 415.27-0ubuntu0~gpu19.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-418:amd64 418.56-0ubuntu1 amd64 NVIDIA libcompute package
ii libnvidia-compute-418:i386 418.56-0ubuntu1 i386 NVIDIA libcompute package
ii libnvidia-decode-418:amd64 418.56-0ubuntu1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-418:i386 418.56-0ubuntu1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-418:amd64 418.56-0ubuntu1 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-418:i386 418.56-0ubuntu1 i386 NVENC Video Encoding runtime library
ii libnvidia-fbc1-418:amd64 418.56-0ubuntu1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-418:i386 418.56-0ubuntu1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-418:amd64 418.56-0ubuntu1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-418:i386 418.56-0ubuntu1 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-418:amd64 418.56-0ubuntu1 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii libnvidia-ifr1-418:i386 418.56-0ubuntu1 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
rc nvidia-compute-utils-415 415.27-0ubuntu0~gpu19.04.1 amd64 NVIDIA compute utilities
ii nvidia-compute-utils-418 418.56-0ubuntu1 amd64 NVIDIA compute utilities
rc nvidia-dkms-415 415.27-0ubuntu0~gpu19.04.1 amd64 NVIDIA DKMS package
ii nvidia-dkms-418 418.56-0ubuntu1 amd64 NVIDIA DKMS package
ii nvidia-driver-418 418.56-0ubuntu1 amd64 NVIDIA driver metapackage
rc nvidia-kernel-common-415 415.27-0ubuntu0~gpu19.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-common-418 418.56-0ubuntu1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-418 418.56-0ubuntu1 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.10 all Tools to enable NVIDIA’s Prime
ii nvidia-settings 418.56-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-418 418.56-0ubuntu1 amd64 NVIDIA driver support binaries
ii xserver-xorg-video-nvidia-418 418.56-0ubuntu1 amd64 NVIDIA binary Xorg driver -
“pkexec ls” it doesn’t work
“pkexec ls” it doesn’t work
Could you give specifics on how it’s not working? That’s supposed to trigger an auth prompt in gnome-shell, if it doesn’t that’s probably the issue…
Looking to the video, it does prompt you for a password (which was the interesting bit) and seems to be working. If you want a visible result you could “pkexec ls /usr” for example
While “cannot save X configuration to file” might be a bug, there seems to be a workaround to achieve what you need by directly editing the conf file “/etc/X11/xorg.conf.d/20-nvidia.conf” or “/etc/X11/Xsession.d/20-nvidia.conf”.
Use with care! I haven’t tested it yet. I was googling which exact conf file it is for X server under Ubuntu 19.04, when I saw this thread. I’m currently not beside my Ubuntu box at home.
But here is a reference from ArchLinux. Your need is under “Avoid screen tearing” session but I found the entire page is very helpful:
https://wiki.archlinux.org/index.php/NVIDIA/Troubleshooting
Nevertheless, I hope Ubuntu would have documented this nicely as well (maybe it has but I missed it).