Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with second monitor with laptop
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sova
n00b
n00b


Joined: 30 Jun 2024
Posts: 1

PostPosted: Sun Jun 30, 2024 8:02 am    Post subject: problem with second monitor with laptop Reply with quote

Hello. I recently bought a second monitor and want to connect it to my laptop (I have both nvidia and amdgpu, HP Victus 16-E0404NW 4J5R4EA laptop).
My problem is that i can't get both monitors to work(kinda). if i use nvidia on both monitors - only one monitor works, same for amdgpu.
If i use one nvidia and another amdgpu, they kinda work, but there is a problem. i can move the cursor to the second monitor, but the monitor is black and the cursor is crossed out.

Also, xrandr always sees only one connected monitor and one provider.
Code:
$ xrandr --listmonitors
Monitors: 1
 0: +*eDP 1920/355x1080/200+0+0 eDP

If I use an external monitor, xrandr doesn't see eDP at all, if I use eDP, xrandr says the display port is disconnected

Code:
$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x54 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 0 name:AMD Radeon Graphics @ pci:0000:06:00.0


portgage make.conf
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

FEATURES="parallel-fetch parallel-install candy"

MAKEOPTS="-j10"

VIDEO_CARDS="nvidia amdgpu radeonsi"
INPUT_DEVICES="libinput"

USE="xinerama i3wm networkmanager gtk wayland -systemd jpg jpeg elogind dbus screencast pipewire pulseaudio -gnome -kde X opengl udev qt5"
ACCEPT_LICENSE="* -@EULA"

# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
GRUB_PLATFORMS="efi-64"

L10N="uk en-US"


xorg.conf
Code:
Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "HDMI" 0 0
   Screen      1  "eDP" RightOf "HDMI"
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   ModulePath   "/usr/lib64/xorg/modules"
   FontPath     "/usr/share/fonts"
EndSection

Section "Module"
   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   "Monitor-eDP"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
EndSection

Section "Monitor"
   Identifier   "Monitor-HDMI"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
EndSection

Section "Device"
   Identifier  "nvidia"
   Driver      "nvidia"
   BusID       "PCI:1:0:0"
EndSection

Section "Device"
   Identifier  "amd"
   Driver      "amdgpu"
   BusID       "PCI:6:0:0"
EndSection

Section "Screen"
   Identifier "HDMI"
   Device     "nvidia"
   Monitor    "Monitor-HDMI"
EndSection

Section "Screen"
   Identifier "eDP"
   Device     "amd"
   Monitor    "Monitor-eDP"
EndSection


dmesg doesn`t show any errors.
so any advise how to fix it? i could provide more logs if needed.

edit: i did some research and realized that my laptop monitor is directly connected to the amdgpu and there is no connection between my laptop monitor and the nvidia gpu, so i can use the nvidia only as a screen device for the external monitor only and the amdgpu for the internal monitor.
also when i turn off the external monitor i see the proper providers
Code:
$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x54 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:AMD Radeon Graphics @ pci:0000:06:00.0
Provider 1: id: 0x1f6 cap: 0x2, Sink Output crtcs: 4 outputs: 1 associated providers: 1 name:NVIDIA-G0

is it like dead look so i cant use both monitors at the same time?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum