LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-22-2022, 08:09 AM   #1
makem
Member
 
Registered: Nov 2013
Posts: 209

Rep: Reputation: Disabled
Apply X Server Display Configuration in Nvidia settings - Twice??


I am using a dual screen windows/ubuntu system with an nvidia gfx card and use the proprietary settings from ubuntu settings.

I am able to us the 'nvidia-settings' applet to configure the card settings and i make sure ubuntu Display settings match. However, after saving the settings to 'X Configuration File' via the applet and then going to the 'quit' I am asked if I really want to quit. This popup tells me: You have pending changes on following page(s): X Server Configuration - Apply and asks if I really want to quit.

I am unable to find a place within the applet to do this and usually just quit. But, I have niggling problems and want to get rid of this 'Apply' nag.

Does anyone know how to do this?

In the corresponding terminal I have this output which does not seem to apply to ubuntu 21.10:

Code:
makem@makems-TUF:~$ sudo nvidia-settings
[sudo] password for makem: 

(nvidia-settings:7860): GLib-GObject-CRITICAL **: 13:01:36.382: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 13:01:36.532: PRIME: No offloading required. Abort
** Message: 13:01:36.532: PRIME: is it supported? no
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
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
makem@makems-TUF:~$
 
Old 02-05-2022, 11:09 AM   #2
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 122

Rep: Reputation: 40
Most likely you are not using Xorg, but instead you are using wayland maybe?
If you want to switch back to Xorg to sort this out check this "Switch Back Xorg in Ubuntu 21.04 / 21.10 to Workaround App Not Working Issue"

Hope that helps you abit with resolving your problem.

Best regards:
Minime

Last edited by Minime_2003; 02-05-2022 at 11:14 AM.
 
Old 02-05-2022, 11:45 AM   #3
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Ubuntu will default to Xorg on Nvidia based systems for 21.04

So I read.

Code:
makem@makems-TUF:~$ echo $XDG_SESSION_TYPE
x11
makem@makems-TUF:~$

Last edited by makem; 02-05-2022 at 11:47 AM.
 
Old 02-05-2022, 12:50 PM   #4
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 122

Rep: Reputation: 40
Quote:
Originally Posted by makem View Post
Ubuntu will default to Xorg on Nvidia based systems for 21.04

So I read.

Code:
makem@makems-TUF:~$ echo $XDG_SESSION_TYPE
x11
makem@makems-TUF:~$
Well as the error messages sais "Package xorg-server was not found in the pkg-config search path.".
So either you donīt have Xorg package installed? or the path or some config files are messed up some how...

Looks like there are some mayor issues in your system any how...

You could of cause try to rename your Xorg.conf file to like Xorg.conf.old
and then try to run "nvidia-settings" again?

Alternatively install both Xorg if you are sure you have this installed and then reinstall the nvidia drivers?

Last edited by Minime_2003; 02-05-2022 at 01:01 PM.
 
Old 02-06-2022, 03:14 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
It just might be called something slightly different than xorg-server - on my Debian install it is xserver-xorg afaics.

OP needs to find out whether they're running Xorg or not.
 
Old 02-06-2022, 07:20 AM   #6
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Minime_2003 View Post
..

You could of cause try to rename your Xorg.conf file to like Xorg.conf.old
and then try to run "nvidia-settings" again?
I have tried that in the past and the system produces an identical file down to the letter!

I am so disheartened against my better judgement I have taken to windows for games. :-(

I thought the result x11 showed that xorg was installed and running.

Is there any other way to prove/disprove this?

I though the missing path entry was related to Prime which apparently is not required. I also see the note 'xorg-server.pc' may need to be added to the Path but I have no idea what this relates to, nor how to add/check if it is needed in the Path.

Last edited by makem; 02-06-2022 at 07:23 AM.
 
Old 02-06-2022, 07:57 AM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,609

Rep: Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550

"inxi -G" will confirm what is running?

 
Old 02-06-2022, 07:34 PM   #8
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
"inxi -G" will confirm what is running?

Thank you.

Code:
makem@makems-TUF:~$ inxi -G
Graphics:  Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] driver: nvidia v: 470.86 
           Display: x11 server: X.Org 1.20.13 driver: loaded: nvidia resolution: 1: 1920x1080 2: 1920x1080~60Hz 
           OpenGL: renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2 v: 4.6.0 NVIDIA 470.86 
makem@makems-TUF:~$

It appears to confirm x11.
 
Old 02-07-2022, 08:52 AM   #9
johnprogrammer
Member
 
Registered: Jan 2022
Distribution: Manjaro Linux, Ubuntu in Windows 11 WSL2
Posts: 35

Rep: Reputation: Disabled
Have you tried:

sudo apt install xorg-server
 
Old 02-07-2022, 10:28 AM   #10
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,609

Rep: Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550
Quote:
Originally Posted by johnprogrammer View Post
Have you tried:

sudo apt install xorg-server
Is that a known solution or a guess?

Given that Inxi says they are already running X.Org server I would be surprised if its package was not installed, also (as Ondoho points out) unless Ubuntu has renamed the Debian package, there is no such package as xorg-server.

Running "dpkg -l '*xorg*'" will likely confirm that apt package xserver-xorg is already installed.


A quick search for "xorg-server.pc" and "nvidia-settings" suggests that this part may be a red herring (it's only a warning, not necessarily the cause of the issue), but might be resolvable by installing xserver-xorg-dev.

In any case, this would appear to be a bug that should be reported (even if the above happens to resolve it, since it would suggest nvidia-settings has incorrect dependencies).

 
1 members found this post helpful.
Old 02-07-2022, 05:27 PM   #11
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Code:
makem@makems-TUF:~$ sudo dpkg -l '*xorg*'
[sudo] password for makem: 
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                           Version                         Architecture Description
+++-==============================-===============================-============-==================================================
ii  xorg                           1:7.7+22ubuntu2                 amd64        X.Org X Window System
un  xorg-docs                      <none>                          <none>       (no description available)
ii  xorg-docs-core                 1:1.7.1-1.2                     all          Core documentation for the X.org X Window System
un  xorg-driver-binary             <none>                          <none>       (no description available)
un  xorg-driver-input              <none>                          <none>       (no description available)
un  xorg-driver-synaptics          <none>                          <none>       (no description available)
un  xorg-driver-video              <none>                          <none>       (no description available)
un  xorg-input-abi-24              <none>                          <none>       (no description available)
ii  xorg-sgml-doctools             1:1.11-1.1                      all          Common tools for building X.Org SGML documentation
un  xorg-video-abi-10              <none>                          <none>       (no description available)
un  xorg-video-abi-11              <none>                          <none>       (no description available)
un  xorg-video-abi-12              <none>                          <none>       (no description available)
un  xorg-video-abi-13              <none>                          <none>       (no description available)
un  xorg-video-abi-14              <none>                          <none>       (no description available)
un  xorg-video-abi-15              <none>                          <none>       (no description available)
un  xorg-video-abi-18              <none>                          <none>       (no description available)
un  xorg-video-abi-19              <none>                          <none>       (no description available)
un  xorg-video-abi-20              <none>                          <none>       (no description available)
un  xorg-video-abi-23              <none>                          <none>       (no description available)
un  xorg-video-abi-24              <none>                          <none>       (no description available)
un  xorg-video-abi-6.0             <none>                          <none>       (no description available)
un  xorg-video-abi-8               <none>                          <none>       (no description available)
ii  xserver-xorg                   1:7.7+22ubuntu2                 amd64        X.Org X server
ii  xserver-xorg-core              2:1.20.13-1ubuntu1.1            amd64        Xorg X server - core server
un  xserver-xorg-driver-all        <none>                          <none>       (no description available)
ii  xserver-xorg-input-all         1:7.7+22ubuntu2                 amd64        X.Org X server -- input driver metapackage
un  xserver-xorg-input-evtouch     <none>                          <none>       (no description available)
ii  xserver-xorg-input-libinput    1.1.0-1                         amd64        X.Org X server -- libinput input driver
ii  xserver-xorg-input-synaptics   1.9.1-1ubuntu3                  amd64        Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-input-wacom       1:0.39.0-0ubuntu2               amd64        X.Org X server -- Wacom input driver
ii  xserver-xorg-legacy            2:1.20.13-1ubuntu1.1            amd64        setuid root Xorg server wrapper
ii  xserver-xorg-video-all         1:7.7+22ubuntu2                 amd64        X.Org X server -- output driver metapackage
ii  xserver-xorg-video-amdgpu      21.0.0-1                        amd64        X.Org X server -- AMDGPU display driver
ii  xserver-xorg-video-ati         1:19.1.0-2build1                amd64        X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-fbdev       1:0.5.0-1ubuntu3                amd64        X.Org X server -- fbdev display driver
ii  xserver-xorg-video-intel       2:2.99.917+git20200714-1ubuntu2 amd64        X.Org X server -- Intel i8xx, i9xx display driver
un  xserver-xorg-video-mach64      <none>                          <none>       (no description available)
un  xserver-xorg-video-modesetting <none>                          <none>       (no description available)
ii  xserver-xorg-video-nouveau     1:1.0.17-1build1                amd64        X.Org X server -- Nouveau display driver
ii  xserver-xorg-video-nvidia-470  470.86-0ubuntu0.21.10.1         amd64        NVIDIA binary Xorg driver
ii  xserver-xorg-video-qxl         0.1.5+git20200331-1build1       amd64        X.Org X server -- QXL display driver
un  xserver-xorg-video-r128        <none>                          <none>       (no description available)
ii  xserver-xorg-video-radeon      1:19.1.0-2build1                amd64        X.Org X server -- AMD/ATI Radeon display driver
ii  xserver-xorg-video-vesa        1:2.5.0-1build2                 amd64        X.Org X server -- VESA display driver
ii  xserver-xorg-video-vmware      1:13.3.0-3                      amd64        X.Org X server -- VMware display driver
makem@makems-TUF:~$ 

I am not confident in reporting a bug.
 
Old 02-08-2022, 02:10 AM   #12
johnprogrammer
Member
 
Registered: Jan 2022
Distribution: Manjaro Linux, Ubuntu in Windows 11 WSL2
Posts: 35

Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
Is that a known solution or a guess?
Whenever I clean-install Manjaro (another Linux distribution), I install the NVIDIA driver, and try to run nvidia-xconfig, it produces a similar message, that a xorg development package is missing.

After I install the missing package, nvidia-xconfig works without a warning.
 
Old 02-08-2022, 05:34 AM   #13
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
The architecture of my system is:

Code:
makem@makems-TUF:~$ uname -m
x86_64
makem@makems-TUF:~$
This is not shown on the download page of Download xserver-xorg-dev.

If I try with apt:

Code:
makem@makems-TUF:~$ sudo apt install xserver-xorg-dev
[sudo] password for makem: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 libdrm-dev : Depends: libdrm2 (= 2.4.107-8ubuntu1) but 2.4.107+git2110211339.d77ccd~oibaf~f is to be installed
              Depends: libdrm-intel1 (= 2.4.107-8ubuntu1) but 2.4.107+git2110211339.d77ccd~oibaf~f is to be installed
              Depends: libdrm-radeon1 (= 2.4.107-8ubuntu1) but 2.4.107+git2110211339.d77ccd~oibaf~f is to be installed
              Depends: libdrm-nouveau2 (= 2.4.107-8ubuntu1) but 2.4.107+git2110211339.d77ccd~oibaf~f is to be installed
              Depends: libdrm-amdgpu1 (= 2.4.107-8ubuntu1) but 2.4.107+git2110211339.d77ccd~oibaf~f is to be installed
E: Unable to correct problems, you have held broken packages.
makem@makems-TUF:~$
 
Old 02-08-2022, 07:06 AM   #14
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,609

Rep: Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550
Quote:
Originally Posted by johnprogrammer View Post
Whenever I clean-install Manjaro (another Linux distribution), I install the NVIDIA driver, and try to run nvidia-xconfig, it produces a similar message, that a xorg development package is missing.

After I install the missing package, nvidia-xconfig works without a warning.
Fair enough, but Arch and Debian are different (those being the base distros of Manjaro and Ubuntu respectively), so it can be useful to search the package repos - Ubuntu, Debian, and Arch all maintain an online interface to these.

I repeat my advice that this should be reported as a bug to the maintainer of the package - installing a second package to make the first one work is a bug - either the first package should just install the extra needed parts, or the software isn't supposed to have that dependency - that it occurs for both Ubuntu and Manjaro makes me think the latter is the case (maybe some debug code accidentally left in), but I'd still suggest going via the distro bug tracking channel.

 
Old 02-08-2022, 07:07 AM   #15
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,609

Rep: Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550Reputation: 2550
Quote:
Originally Posted by makem View Post
I am not confident in reporting a bug.
The best way to gain confidence in anything is to do that thing.

Reporting a bug isn't something to worry about - there is very little difference between reporting a bug and making a forum post. Some projects request a bit more structure/information (it helps streamline the process when they're dealing with lots of reports), but it's basically just a slightly formal discussion.

There's also an "Ask a question" option on the nvidia-settings package page if that makes you more comfortable.

As for the Apt conflict, no idea whether it's worth trying to resolve that - guess you need someone who knows about Ubuntu+Nvidia stuff to say either way - again, the package maintainer presumably has more knowledge than what we can offer here.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can only connect to internet by opening Yast and choosing Network settings twice. jimonlinux SUSE / openSUSE 1 03-17-2018 04:29 PM
[SOLVED] Is there a cli method of running a command twice without having to type it twice? powderburns Linux - Software 4 03-24-2017 09:55 AM
Nvidia X server settings, x server display configurations, manage two screens at time mescalero64 Linux - Newbie 1 04-27-2012 02:56 PM
help.. how to apply new settings for XF86Config in debian? g_srinivas Linux - Newbie 3 01-30-2006 09:29 PM
Apply mouse settings?! Snickar-Lasse SUSE / openSUSE 5 11-03-2005 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration