Hello everyone,
today I’m requesting your help about the login screen. Here’s my setup, I’ve got 2 screens connected on my nvidia graphics card with G04 driver. Everything’s working flawlessly once I’m logged in, I can disable a screen, re-enable it etc etc, in short it works.
My problem is that everytime I boot or even log in and out, I’m beeing prompted the login screen on the wrong screen and haven’t found yet the correct setting to fix that. I looked up in /etc/sysconfig but didn’t found what I needed, nor in NVidia X settiings nor the integrated display manager.
I run a fresh OpenSuse 13.2 version.
TL;DR: How can I configure my system to display the login screen on the correct screen ? (Which is defined as primary X display in nvidia panel but I guess it’s user specific…)
Yes, the settings in nvidia-settings are user specific normally, just as those in KDE’s settings.
Unless they removed that feature recently, you can also create an Xorg configuration file with nvidia-settings. If you copy that to /etc/X11/xorg.conf, it will have effect system-wide, i.e. it will also affect the login screen.
Just a note you need to be root when running nvidia-setting to properly create a xorg.conf file or you must change ownership of the file to root before you reboot.
You don’t have to change the ownership of that file.
But you’d need root permissions to copy/move it to /etc/X11/ of course.
So you could run nvidia-settings as root to create the file in /etc/X11/ immediately. Or save it to your home directory at first and then copy it to /etc/X11 afterwards, e.g. with “Filemanager - Super-user mode” or something like “sudo cp xorg.conf /etc/X11”.
Thank you a lot, that indeed worked, I just ran nvidia-settings after logging as root (it wouldn’t work with sudo, I don’t know why) and saved the X configuration file.
Now I have a last question, when I used the “Save to X configuration file” button in nvidia-settings I got this error:
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
I looked for this file and couldn’t find it. Also I have this package installed xorg-x11-server-7.6_1.16.1-13.1.x86_64.
Do you know what directory I should add to the PKG_CONFIG_PATH ? Is it important ? I thought I’d add a line in my ~/.profile like export PKG_CONFIG_PATH=… since env | grep -i pkg returned nothing but I’m not sure that’s the right way of doing it.
sudo doesn’t pass the necessary environment variables for GUI applications to run. And by default different users (including root) are not allowed to open a window on a user’s X display either.
If you want to run GUI applications as root, use “kdesu”, “gnomesu”, or “xdg-su”. Those are designed for that.
I looked for this file and couldn’t find it. Also I have this package installed xorg-x11-server-7.6_1.16.1-13.1.x86_64.
It’s in xorg-x11-server-sdk.
But as you created your xorg.conf file already anyway, I see no need to install that.
Do you know what directory I should add to the PKG_CONFIG_PATH ? Is it important ? I thought I’d add a line in my ~/.profile like export PKG_CONFIG_PATH=… since env | grep -i pkg returned nothing but I’m not sure that’s the right way of doing it.
No, the problem is not that the path is set wrong (or not at all), but the mentioned file (xorg-server.pc) does not exist.
Normally you only need pkg-config files for compiling applications though. No idea why nvidia-settings would need it.
Maybe it looks for the Xorg config path in there.
Well thank you for all man ! I guess I won’t bother looking deeper into X configuration since it seems to be working now… I just hope future updates will go fine ahah !