Mehrere Bildschirme in KDE Debian 12 mit NVIDIA einrichten?
Hallo an alle!
Folgendes, ich habe mir auf meinem Laptop Debian 12 installiert. Der Bildschirm des Laptops selbst ist dabei “aus” und zeigt lediglich ein unterstrich. Genauso wie der Monitor auf der anderen Seite, der LG in der Mitte funktioniert. Die Graka ist eine 1060. Ich nutze diese mit den proprietären Treibern. Nun werden aber in den Einstellungen der NVIDIA Software keine weiteren Monitore erkannt. Die zwei Bildschirme zeigen den Bootloader und alles was danach Terminaltechnisch passiert. Da ist der LG schwarz. Erst wenn ich den PC wieder aus mache sehe ich alles auf den zwei Bildschirmen stoppen und herunterfahren.
Danke schonmal für alle Antworten.
Do you use the Open Source Driver from Linux itself or do you use the Teriber offered by Nvidia manufacturer on its website?
The official of Nvidia.
You shouldn’t use that. because this unsauber function. Many users under Linux make the mistake and wonder why the manufacturer’s own driver is so bad. Some time ago, Nvidia has moped a Linux kernel and sent Linus Torwalds to Linux’s native. This was so shocked that he has banished this kernel. The uncooperative attitude of Nvidia to Linux has led to more or less disputes.
End result is the attitude of Linux Torwalds regarding Nvidia.
https://www.youtube.com/watch?v=xPh-5P4XH6o
Uninstall the driver from the manufacturer and use the open source offered by Linux. It simply works better than that of Nvidia.
That even confirms my opinion.
Also those of Linus Towald’s concern Nvidia, that is, the native of Linux itself.
https://www.youtube.com/watch?v=xPh-5P4XH6o
Better to use an AMD graphics card so that you are better operated. Or you boycott Nvidia by not using any GK from those until you bend in and deliver smart drivers to your graphics cards.
So, I also asked the question on another forum, the whole thing is clear. But thanks for the help. For everyone who needs the answer:
In the comments, you said the
output was:
indicating that your system has two GPUs: the CPU-integrated Intel GPU (iGPU for short) and the NVIDIA discrete GPU (dGPU for short), and the
output was:
that only the NVIDIA GPU is currently being used.
The problem
You have a dual-GPU laptop: NVIDIA calls this Optimus Technology. Unfortunately, the most common implementation of this does not include a multiplexer switch that would allow either GPU a physical connection to each display output connector. This is known as “muxless Optimus”. When using a combination of display connections that are not directly weed to the active GPU, the missing connections must be substituted by passing rendered output data from one GPU to the other, which can then output the data to the displays it’s physically connected to.
In laptops, a common muxless Optimus solution is as follows:
In your specific case, it seems that only the HDMI output of the NVIDIA GPU chip is actually wired to a physical output connector.
The solution
First, you should ensure that you have the
package installed. It contains the X11 driver for your Intel iGPU, which is required even just to pass display data through it. That driver, in turn, requires that the kernel module ‘i915’ is loaded, and that any firmware files it requires are present, i.e. the
package is installed.
Then, you should make a backup of your current
file (if it exists), and then change it to contain the following (creating the file if it doesn’t exist):
(This configuration snippet is from directlyNVIDIA GPU driver README file, with the BusID for your hardware already written.)
This will tell the X server to start both drivers (even if no displays seem to be connected), and tell it to use the NVIDIA GPU as the primary one.
With modern enough version of the Xorg X server, this alone might be enough to make your extra displays available for use.
But if not, you might need two commands to specifically feed display data from NVIDIA GPU to the Intel one:
The first command tells the Intel GPU base driver (
) to act as extra outputs for display data whose source is the NVIDIA GPU.
The second command makes the X server activate any displays that might have become available as the result of the previous command.
If you find the two
commands are needed, you could automate the process by writing them into e.g.
.
Linux automatically recognizes the hardware you don’t have to install anything.The drivers do not come from an external source. If you have something to do with it, it would be better to reinstall from scratch.
Every attempt to get any benefits with tools about Nvidia will fail under Linux. For this, the manufacturer can thank you for this way and flexibly or so cooperative with Linux is (Nvidia)
Once you install anything about Nvidia, the problems start again.
The only xorg.conf file I find apart from my backup is xorg.conf.nvidia-xconfig-original and this is empty.
Still the same problem works with Wayland vllt. better?
Somehow he doesn’t seem to load the Nvidia drivers properly, because smi and the settings both don’t work.
I had deleted the Config, before creating a backup of course, then completely reinstalled it and automatically configured it. After a restart, it brings everything back to life. I’m on the stand right now. I had previously installed the open source variant of Nvidia with Cuda, I try without. By the way, I have had this problem every time on several computers, so a new installation does not help much in my experience.
Let the config of xorg.conf rest, don’t stick around or change what. Sometimes the values there are also decisive that your LG does not participate.
cp xorg.conf xorg.conf.bak
rm -rf xorg.conf
do not make any manual configs.
Does not help back up data and reset Linux . the file in the detail point for point durcgang takes hours. A new installation goes faster.
So, driver plus xorg conf removed and xorg conf reconfigured. Everything works, but I don’t use the Graka. I install the open source drivers and immediately start the problems again. The LG in the middle no longer works and nvidia-smi does not work either. Also nvidia-settings doesn’t matter.
I had read this a few times, but I never thought it would make such a big difference. I’ll change the drivers, and I’ll get back to you.