Connecting external display to laptop

you are using wayland on kde with nvidia
:face_with_peeking_eye:
in the login screen switch to x11

Done.

inxi -Gy1                                                                                            ✔ 
Graphics:
  Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q]
    driver: nvidia
      v: 510.73.05
  Device-2: AMD Cezanne
    driver: amdgpu
      v: kernel
  Display: x11
    server: X.Org
      v: 21.1.3
      with: Xwayland
        v: 22.1.1
    driver:
      X:
        loaded: amdgpu,nvidia
        unloaded: modesetting,nouveau
      gpu: amdgpu
    resolution:
      1: N/A
      2: 1920x1080~165Hz
  OpenGL:
    renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.41-1-MANJARO)
    v: 4.6 Mesa 22.0.4

I also see the device in display settings. But I still can’t get it working:

@brahma Do you have any suggestions on how to proceed from here? I guess my last option is to uninstall the Nvidia drivers… The external display worked fine when I first connected, I believe I had free.

i still dont know if you have uninstalled optimus-manager?

I believe so?


systemctl status optimus-manager                                   ✔ 
Unit optimus-manager.service could not be found.

all right and output from:
find /etc/X11/ -name "*.conf"

  find /etc/X11/ -name "*.conf"                                   4 ✘ 
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/mhwd.d/nvidia.conf

so uninstall the hybrid drivers and see if that helps:
sudo mhwd -r pci video-hybrid-amd-nvidia-prime
reboot

No improvements. See the results after reboot:

 find /etc/X11/ -name "*.conf"                                                                        ✔ 
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
 inxi -G                                                                                              ✔ 
Graphics:
  Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] driver: nouveau
    v: kernel
  Device-2: AMD Cezanne driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1 driver: X:
    loaded: amdgpu,modesetting gpu: amdgpu,nouveau resolution: 1920x1080~165Hz
  OpenGL: renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.41-1-MANJARO)
    v: 4.6 Mesa 22.0.4

image

create a new user, and test with it if you can detect the monitor, so that we can check if its some config in home folder

why are you still on Wayland ? It does not work properly with nvidia-prime !

Creating and using a new user did not work.

@Olli
Sorry. I see Xwayland, but the session is X11 I think - at least that’s what which is selected.

go to system settings/compositor and uncheck enable on startup, click, apply and reboot

please post the output of

echo $XDG_SESSION_TYPE

then we’ll see what session you’re on

and also post the output of

glxinfo | grep server

and

prime-run glxinfo | grep server
    ~  echo $XDG_SESSION_TYPE                         ✔ 
x11
    ~  glxinfo | grep server                          ✔ 
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    ~  prime-run glxinfo | grep server                ✔ 
The application prime-run is not installed. It may be found in the following packages:
  extra/nvidia-prime 1.0-4      /usr/bin/prime-run
Do you want to Install package nvidia-prime? (y/N)  y
Executing command: pamac install nvidia-prime
Preparing...
Error: Authentication failed
    ~                                    127|1 ✘  7s  

prime-run not installed. Want me to do so?

yes do it, it can’t get more worse than it is now.

btw. do you think you’re confident enough to install the nvidia-non free driver back ?

1 Like
prime-run glxinfo | grep server  127|1 ✘  33s  
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51

Yeah. I don’t mind doing the old drivers if I get to use an external display.

well okay let me explain the next steps before starting. first we need the non-free driver installed. in this case prime should run but you will be still on the igpu and not the nvidia, so in this case the external screen is still not recogniced. after succesful first step you’ll install optimus, but only if step one is succesfull. please install the non-free driver first and we’ll check it before ongoing.

:slight_smile:

  1. current state:
 mhwd -li                                                                         ✔ 
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
  1. Installing nvidia non-free drivers
mhwd -li                                                              ✔  25s  
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI

Are we ready for step 2; installing optimus?

fingers crossed but let’s check it first. please post the output of

inxi -Gy1

and after we’ll check the 2 previous checks of glxinfo again. please post the output