War zwar etwas knifflig, aber am Ende des Tages hab ich das Dingens zum laufen gebracht, dass auf beiden Monitoren (Laptop und externer Bildschirm) alles über die NVIDIA läuft
Zur Lösung die Vorgeschichte. Ich habe die NVIDIA Treiber aus den repos nicht verwendet, hat bei mir auch nicht funktioniert, sondern habe mir für die GTX1660TI die proprietären Treiber und Werkzeuge von Nvidia geholt da ich mit bumblebee, prime, bbswitch immer einen blackscreen hatte und auch keine Eingaben mehr akzeptiert wurden, abgesehen davon das Zeug schon etwas in die Jahre gekommen ist und mir das so effektiver vorkommt ohne irgendetwas dazwischen.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Vergewissert euch, dass ihr auch die richtige Karten für Intel und NVIDIA habt
Code: Alles auswählen
]lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b] (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116M [10de:2191] (rev a1) (prog-if 00 [VGA controller])
Code: Alles auswählen
libglvnd-dev
2. Freie Treiber (nuoveau) deinstallieren, kommen bei der Erstinstallation mit.
3. Proprietären Treiber von NVIDIA (im Moment Version NVIDIA-Linux-x86_64-430.09.run) herunterladen und installieren mit DKMS support und auch die 32bit Bibliotheken
4. Paket
Code: Alles auswählen
xserver-xorg-video-nouveau
Code: Alles auswählen
xserver-xorg-video-intel
5.
Code: Alles auswählen
/etc/modprobe.d/nvidia-installer-disable-nouveau.conf
Code: Alles auswählen
blacklist nouveau
options nouveau modeset=0
6. Gemäß der Anweisung folgendes erstellen
7. Datei
Code: Alles auswählen
/usr/local/bin/switch_nvidia.sh
Code: Alles auswählen
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96
8. Mein Displaymanager bei KDE ist sddm
9. In Displaymanager sddm
Code: Alles auswählen
/usr/share/sddm/scripts/Xsetup
Code: Alles auswählen
/usr/local/bin/switch_nvidia.sh
10. tty3 öffnen
11.
Code: Alles auswählen
/etc/X11/xorg.conf
12. Xserver stoppen, bei mir bei KDE war das
Code: Alles auswählen
sudo service sddm stop
Code: Alles auswählen
xorg.conf
Code: Alles auswählen
sudo Xorg -configure :0
Code: Alles auswählen
xorg.conf.new
Code: Alles auswählen
sudo cp /root/xorg.conf.new /etc/X11/xorg.conf
Code: Alles auswählen
/etc/X11/xorg.conf
16. Jetzt wird's interessant, achtet darauf, dass beide Karten (Intel und NVIDIA) erkannt wurden. Wichtig ist in der Datei, dass bei Section "Module" "modesetting" vorhanden ist, ich hab's am Anfang eingefügt.
Code: Alles auswählen
Section "Module"
Load "modesetting"
Load "glxserver_nvidia"
Load "glx"
EndSection
Code: Alles auswählen
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Code: Alles auswählen
"AllowEmptyInitialConfiguration"
Code: Alles auswählen
intel
Code: Alles auswählen
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "AccelMethod" # <str>
#Option "Backlight" # <str>
#Option "CustomEDID" # <str>
#Option "DRI" # <str>
#Option "Present" # [<bool>]
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "HWRotation" # [<bool>]
#Option "VSync" # [<bool>]
#Option "PageFlip" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "ReprobeOutputs" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "VirtualHeads" # <i>
#Option "TearFree" # [<bool>]
#Option "PerCrtcPixmaps" # [<bool>]
#Option "FallbackDebug" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
Option "AllowEmptyInitialConfiguration"
EndSection
Code: Alles auswählen
nvidia
Code: Alles auswählen
nvidia
Code: Alles auswählen
"AllowEmptyInitialConfiguration"
Code: Alles auswählen
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
#Option "WrappedFB" # [<bool>]
#Option "GLXVBlank" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "PageFlip" # [<bool>]
#Option "SwapLimit" # <i>
#Option "AsyncUTSDFS" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # <i>
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
Code: Alles auswählen
"nvidia"
Code: Alles auswählen
Section "Screen"
Identifier "Screen0"
Device "nvidia"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Code: Alles auswählen
"nvidia"
Code: Alles auswählen
Section "Screen"
Identifier "Screen1"
Device "nvidia"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Code: Alles auswählen
/etc/X11/xorg.conf
Code: Alles auswählen
cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 430.09
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection
Section "Module"
Load "modesetting"
Load "glxserver_nvidia"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "AccelMethod" # <str>
#Option "Backlight" # <str>
#Option "CustomEDID" # <str>
#Option "DRI" # <str>
#Option "Present" # [<bool>]
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "HWRotation" # [<bool>]
#Option "VSync" # [<bool>]
#Option "PageFlip" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "ReprobeOutputs" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "VirtualHeads" # <i>
#Option "TearFree" # [<bool>]
#Option "PerCrtcPixmaps" # [<bool>]
#Option "FallbackDebug" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
#Option "WrappedFB" # [<bool>]
#Option "GLXVBlank" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "PageFlip" # [<bool>]
#Option "SwapLimit" # <i>
#Option "AsyncUTSDFS" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # <i>
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Screen"
Identifier "Screen0"
Device "nvidia"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "nvidia"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
24. Kommt ihr an die graphische Anmeldung hat alles funktioniert.
25. Terminal öffnen und
Code: Alles auswählen
nvidia-smi
Code: Alles auswählen
nvidia-smi
Thu Apr 23 18:18:56 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.09 Driver Version: 430.09 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 166... Off | 00000000:01:00.0 Off | N/A |
| N/A 50C P0 20W / N/A | 335MiB / 5944MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1074 G /usr/lib/xorg/Xorg 177MiB |
| 0 1188 G kded5 [kdeinit5] 5MiB |
| 0 1226 G /usr/bin/kwin_x11 74MiB |
| 0 1232 G /usr/bin/krunner 2MiB |
| 0 1234 G /usr/bin/plasmashell 51MiB |
| 0 1453 G /usr/bin/akonadi_archivemail_agent 2MiB |
| 0 1474 G /usr/bin/akonadi_mailfilter_agent 2MiB |
| 0 1489 G /usr/bin/akonadi_sendlater_agent 12MiB |
| 0 3902 G /usr/lib/firefox-esr/firefox-esr 2MiB |
| 0 6543 G /usr/bin/freecad 2MiB |
+-----------------------------------------------------------------------------+
Code: Alles auswählen
nvidia-settings
Code: Alles auswählen
/etc/X11/xorg.conf
27. Mit
Code: Alles auswählen
inxi -G
Code: Alles auswählen
inxi -G
Graphics: Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA TU116M driver: nvidia v: 430.09
Display: x11 server: X.Org 1.20.4 driver: modesetting,nvidia resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce GTX 1660 Ti with Max-Q Design/PCIe/SSE2 v: 4.6.0 NVIDIA 430.09
Code: Alles auswählen
egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log
[ 437.072] (--) NVIDIA(GPU-0): Philips FTV (DFP-0): connected
Code: Alles auswählen
glxinfo|egrep "OpenGL vendor|OpenGL renderer*"
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 1660 Ti with Max-Q Design/PCIe/SSE2
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hallo Zusammen,
habe mir einen neuen HP Laptop mit Nvidia GTX1660TI geholt, nach Jahren Kubuntu einfach retour zu Debian, versucht über die repos den Treiber zu installieren was mehrmals fehlschlug, daher von Nvidia den Treiber für AMD64 installiert 32bit habe ich nicht ausgewählt, Module sind auch im Kernel.
Mit bumblebee und bbswitch lande ich beim reboot jedesmal im abgesicherten Modus und die Tastatur reagiert nicht mehr.
Nvidia stellt mir eine xorg.conf zur Verfügung, mit der ich ebenfalls im abgesicherten Modus lande ohne graphische Oberfläche.
Wenn ich über HDMI einen BIldschirm anschliessen möchte, kommt zwar die Auswahl der Bildschirme nur es passiert nichts, egal was ich auswähle.
Meine Bitte an euch:
1. Wie kann ich überprüfen ob die Grafikkarte auch vom System verwendet wird
2. Wie muss ich die xorg.conf definieren, damit die Grafikkarte erkannt und verwendet wird
3. Wie muss ich die xorg.conf oder eine andere Datei definieren, damit ich über HDMI einen output bekomme
Anbei die xorg.conf von Nvidia
Code: Alles auswählen
cat /etc/X11/xorg.conf.NVIDIA
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 430.09
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Code: Alles auswählen
sudo find /lib/modules/$(uname -r) -name 'nvidia*.ko*'
/lib/modules/4.19.0-8-amd64/updates/dkms/nvidia.ko
/lib/modules/4.19.0-8-amd64/updates/dkms/nvidia-modeset.ko
/lib/modules/4.19.0-8-amd64/updates/dkms/nvidia-uvm.ko
/lib/modules/4.19.0-8-amd64/updates/dkms/nvidia-drm.ko
Code: Alles auswählen
lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b] (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116M [10de:2191] (rev a1) (prog-if 00 [VGA controller])
Code: Alles auswählen
inxi -G
Graphics: Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA TU116M driver: nvidia v: 430.09
Display: x11 server: X.Org 1.20.4 driver: modesetting,nouveau,nvidia unloaded: fbdev,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: llvmpipe (LLVM 7.0 256 bits) v: 3.3 Mesa 18.3.6
Code: Alles auswählen
glxinfo|egrep "OpenGL vendor|OpenGL renderer*"
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 7.0, 256 bits)
Code: Alles auswählen
egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log
[ 22.350] (II) modeset(0): Output eDP-1 connected
elrippo