You are not logged in.

#1 2023-05-07 20:12:57

sknot
Member
Registered: 2023-05-07
Posts: 9

Unable to use multiple monitors after installing arch linux (laptop)

hi, as the title suggests, i finally installed arch linux onto my laptop, i installed  nvidia's graphics drivers using the .run package they provided from their download page. After installed the drivers, i ran across an issue where my laptop's screen just wouldn't light up at all. I was able to fix that issue using this from the archwiki page about nvidia:{https://wiki.archlinux.org/title/NVIDIA/Troubleshooting#Black_screen_on_systems_with_Intel_integrated_GPU}
after this the black screen was gone, after reboot now there is a black screen with a white " _" or cursor like object on it, and from what i understand so far , the command 'nvidia-settings' is disabling the other monitor, i read this later on in the same wiki page about issue 3.1.1 "Multiple monitors", about how i need to run a certain command on my computer.
The output of: 'nvidia-settings --query CurrentMetaMode' is :

  Attribute 'CurrentMetaMode' (Waltuh:0.0): id=50, switchable=no,
  source=nv-control :: DPY-0: nvidia-auto-select @2560x1440 +0+0
  {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0,
  ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}

However when i run
'sudo nvidia-settings --assign CurrentMetaMode="DP-2: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, DP-4: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}"'
i get back:

ERROR: Error assigning value
       DP-2:nvidia-auto-select+0+0{ForceCompositionPipeline=On},DP-4:nvidia-aut
       o-select+3840+0{ForceCompositionPipeline=On} to attribute
       'CurrentMetaMode' (Waltuh:0.0) as specified in assignment
       'CurrentMetaMode=DP-2: nvidia-auto-select +0+0
       {ForceCompositionPipeline=On}, DP-4: nvidia-auto-select +3840+0
       {ForceCompositionPipeline=On}' (Attribute not available).

What am i doing wrong here?
System specs:

                   -`                    sknot@Waltuh 
                  .o+`                   ------------ 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: HP Pavilion Gaming Laptop 15-ec1xxx 
               `+oooooo:                 Kernel: 6.3.1-arch1-1 
               -+oooooo+:                Uptime: 47 mins 
             `/:-:++oooo+:               Packages: 518 (pacman) 
            `/++++/+++++++:              Shell: bash 5.1.16 
           `/++++++++++++++:             DE: Cinnamon 5.6.8 
          `/+++ooooooooooooo/`           WM: Mutter (Muffin) 
         ./ooosssso++osssssso+`          WM Theme: Adapta-Nokto (Adwaita) 
        .oossssso-````/ossssss+`         Theme: Adapta-Nokto [GTK2/3] 
       -osssssso.      :ssssssso.        Icons: Adwaita [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: gnome-terminal 
     /ossssssss/        +ssssooo/-       CPU: AMD Ryzen 5 4600H with Radeon Graphics (12 
   `/ossssso+/:-        -:/+osssso+-     GPU: AMD ATI 05:00.0 Renoir 
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA 01:00.0 NVIDIA Corporation TU117M 
 `++:.                           `-/+/   Memory: 2184MiB / 15351MiB 
 .`                                 `/

Last edited by sknot (2023-05-08 01:15:49)

Offline

#2 2023-05-07 20:47:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: Unable to use multiple monitors after installing arch linux (laptop)

1. Please use [code][/code] tags. Edit your post in this regard.
2.

i installed  nvidia's graphics drivers using the .run package they provided from their download page

Bad idea, remove that and use the pacman package
3.

i ran across an issue where my laptop's screen just wouldn't light up at all

You've a hybrid graphics system and now likely a bogus xorg configuration, please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General (and see the 1st link below)
4.

from what i understand so far , the command 'nvidia-settings' is disabling the other monitor

No.
5.

sudo nvidia-settings --assign CurrentMetaMode="DP-2: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, DP-4: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}"

Don't run that as root, generally don't casually sudo stuff.
You'd need to run this in an X11 session, the command is meant to combat tearing and there's a gigantic chance that you don't have the referenced outputs at all.

1. uninstall the nvidia driver, install the driver from the repo package
2. post your xorg log
3. remove /etc/X11/xorg.conf (if present)
4. Stop flailing around, you're miles away from doing anything sensible here.

Offline

#3 2023-05-08 01:14:54

sknot
Member
Registered: 2023-05-07
Posts: 9

Re: Unable to use multiple monitors after installing arch linux (laptop)

Hi Seth,
1.I'll edit my post right away
2.I am unable to use the

nvidia

package because whenever i use that, or

 nvidia-lts 

after installing headers it does the same thing but with my laptop screen.
3.Here is a link to my Xorg log, found at /var/log:
https://pastebin.com/6v2JbdbE
5.Alright, i will not run everything as root again in the future.



I deleted /etc/X11/xorg.conf,and /etc/X11/xorg.conf.nvidia-conf-original

Offline

#4 2023-05-08 02:15:57

sknot
Member
Registered: 2023-05-07
Posts: 9

Re: Unable to use multiple monitors after installing arch linux (laptop)

Hi Seth,
As it turns out, i quite clumsily deleted my nvidia Config as well, breaking Xorg, i have now decided to reinstall Arch (Which i just did) and now i have installed the nvidia drivers by running

 sudo pacman -S nvidia 

Now, usually and on every other distro the instant i install drivers and reboot, my second monitor lights up. This has happened many times where I'd install Arch, couldn't figure out the drivers, quit and then repeat the process.
I am here to stay, i am determined to find a solution now.
TL;DR: I have reinstalled Arch and used  the NVIDIA package to install drivers this time, however my second display does not light up like it usually would after installing drivers, i am looking for a solution where i can use my laptop and my main display, even though i keep my laptop lid down most the time.

[Sys info]

                   -`                    sknot@waltuhputyourarchlinuxmachineawaywaltuh 
                  .o+`                   --------------------------------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: HP Pavilion Gaming Laptop 15-ec1xxx 
               `+oooooo:                 Kernel: 6.3.1-arch1-1 
               -+oooooo+:                Uptime: 16 mins 
             `/:-:++oooo+:               Packages: 688 (pacman) 
            `/++++/+++++++:              Shell: bash 5.1.16 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: Plasma 5.27.4 
         ./ooosssso++osssssso+`          WM: KWin 
        .oossssso-````/ossssss+`         Theme: [Plasma], Breeze [GTK2/3] 
       -osssssso.      :ssssssso.        Icons: [Plasma], breeze-dark [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: konsole 
     /ossssssss/        +ssssooo/-       CPU: AMD Ryzen 5 4600H with Radeon Graphics (12) @ 3.000GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: AMD ATI 05:00.0 Renoir 
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA 01:00.0 NVIDIA Corporation TU117M 
 `++:.                           `-/+/   Memory: 2076MiB / 15352MiB 
 .`                                 `/
                                                                 
                                                                 

XORG LOG:https://pastebin.com/pPz9FxGE

Offline

#5 2023-05-08 05:18:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: Unable to use multiple monitors after installing arch linux (laptop)

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#6 2023-05-08 11:47:06

sknot
Member
Registered: 2023-05-07
Posts: 9

Re: Unable to use multiple monitors after installing arch linux (laptop)

Hi, I posted my Xorg log here at:
https://pastebin.com/pPz9FxGE
, as to the complete system journal I’ll post that as soon as I get home, thank you

Offline

#7 2023-05-08 12:15:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: Unable to use multiple monitors after installing arch linux (laptop)

[    17.795] randr: failed to create shared pixmap
[    17.795] (EE) NVIDIA(G0): Failed to configure Reverse PRIME on output HDMI-1-0.

Remove **every** xf86-video-* package and configure nvidia for drm, https://wiki.archlinux.org/title/NVIDIA … de_setting

Offline

#8 2023-05-08 19:57:59

sknot
Member
Registered: 2023-05-07
Posts: 9

Re: Unable to use multiple monitors after installing arch linux (laptop)

Hi, i'm configuring nvidia for DRM right now, but how do i remove the xf86-video packages?

Offline

#9 2023-05-08 20:01:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Offline

#10 2023-05-08 22:11:04

sknot
Member
Registered: 2023-05-07
Posts: 9

Re: Unable to use multiple monitors after installing arch linux (laptop)

I have enable nVidia DRM by adding

 nvidia_drm.modeset=1

to the kernel parameter.
I have also removed all the xf86-video- packages, namely

sudo pacman -R xf86-video-vmware
 sudo pacman -R xf86-video-nouveau
 sudo pacman -R xf86-video-ati
 sudo pacman -R xf86-video-amdgpu

What should i now  do?
Recall: I have nvidia drivers  installed

Offline

#11 2023-05-08 22:12:31

sknot
Member
Registered: 2023-05-07
Posts: 9

Re: Unable to use multiple monitors after installing arch linux (laptop)

hi, Seth, i did the last steps and was simply able to enable my monitor in system settings. I consider this solved now! Thank you for helping me so much!

Offline

#12 2023-05-08 22:24:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: Unable to use multiple monitors after installing arch linux (laptop)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#13 2023-05-08 22:25:16

sknot
Member
Registered: 2023-05-07
Posts: 9

Re: Unable to use multiple monitors after installing arch linux (laptop)

Thanks for the help! Appreciate it! And yep, will do that right now

Offline

Board footer

Powered by FluxBB