Centos 8 stream dual VGA cards

Issues related to hardware problems
Post Reply
amirwe81
Posts: 2
Joined: 2022/11/09 20:18:38

Centos 8 stream dual VGA cards

Post by amirwe81 » 2022/11/09 20:26:22

Hello all,

I have an HP Pavilion dk15 with two graphics cards VGA and NVIDIA.
lspci -nn | grep -i vga
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev a1)

after installing the nvidia drivers the main laptop display does not work for x-windows.
I can see only on the external display when I connect the hdmi cable .

Please help.
Thanks

BShT
Posts: 584
Joined: 2019/10/09 12:31:40

Re: Centos 8 stream dual VGA cards

Post by BShT » 2022/11/10 13:38:16


amirwe81
Posts: 2
Joined: 2022/11/09 20:18:38

Re: Centos 8 stream dual VGA cards

Post by amirwe81 » 2022/11/11 13:12:08

Thanks, It was helpful.

However, now I can only switch between the laptop screen and the external screen by editing the xorg.conf
What can be added in the file xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 515.76

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "intel"
# Inactive "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/input/mice"
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 "Monitor"
Identifier "Monitor0"
Option "Primary" "true"
EndSection

Section "Monitor"
Identifier "Monitor1"
Option "RightOf" "intel"
EndSection



Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1440x900" "1280x800" "1024x768" "800x600"
EndSubSection
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
Monitor "Monitor0"
EndSection

Post Reply