You are not logged in.

#1 2023-04-06 12:50:25

tupadown228
Member
Registered: 2022-10-25
Posts: 45

[SOLVED] Nvidia, Wayland & one smoking external monitor

So, i have a laptop with intel and nvidia. I use fresh Gnome on Wayland. I want to connect and use my external monitor as the main screen.

Point 1. Start.
So, monitor is plugged in via HDMI, but...

xrandr --listmonitors 

Monitors: 1
 0: +*eDP-1 1920/380x1080/220+0+0  eDP-1

And nothing detect the HDMI connection. Okay.
Point 1. End.

Point 2. Start.
My laptop has hybrid Intel/NVIDIA graphics, if I understand this output correctly. So, I guess https://wiki.archlinux.org/title/NVIDIA_Optimus is mine. Also mine is https://wiki.archlinux.org/title/GDM#Wa … DIA_driver , https://wiki.archlinux.org/title/NVIDIA … de_setting

lspci -k | grep -A 2 -E "(VGA|3D)"

00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
	DeviceName: Onboard - Video
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 1334
--
01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 1334
	Kernel modules: nouveau

>

Kernel modules: nouveau

I don't remember when I installed nouveau package. https://wiki.archlinux.org/title/Nouveau has nothing about wayland... Okay, maybe this is part of the problem.

pacman -Qs nouveau

yup, nothing...

Here is what nvidia packages I installed.

pacman -Qs nvidia

local/egl-wayland 2:1.1.11-3
    EGLStream-based Wayland external platform
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 530.41.03-1
    NVIDIA NV-CONTROL X extension
local/nvidia 530.41.03-2
    NVIDIA drivers for linux
local/nvidia-settings 530.41.03-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 530.41.03-1
    NVIDIA drivers utilities

Point 2. End.

Point 3. Start.
I don't have IGP option in my BIOS/UEFI. https://bbs.archlinux.org/viewtopic.php … 0#p2023360

I did't add

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

in my /etc/mkinitcpio.conf yet.
And i didn't add any of that things to my grub bootloader yet.
https://bbs.archlinux.org/viewtopic.php?id=275811

Probably something to do with action above. ^

sysctl nvidia_drm.modeset=1
sysctl: cannot stat /proc/sys/nvidia_drm/modeset: No such file or directory

I haven't connected the monitor before that attempt and I don't know if it worked before.


There should be something else written here, but I've already forgotten...
Point 3. End.

I’m totally lost already.

P.S.
Should i spend time on fixing that problem for wayland or choose any xorg de/dm/wm and try to fix that for xorg? Which way is faster and easier? big_smile big_smile big_smile



UPD1
So, what i did by following this links:
https://wiki.archlinux.org/title/GDM#Wa … DIA_driver
https://wiki.archlinux.org/title/NVIDIA … de_setting
I added modules in mkinitcpio.conf and regenerated.

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Added hook in pacman.d/hooks.
It's time to reboot.

UPD2
GODDAMN, IT`S WORKING!!!!!!!!!!! I LOVE ARCH WIKI AND ITS COMMUNITY!!!!!!
My problem is solved. This topic/post is more like a report about my way for other googlers, newbies and etc. Thanks.


P.S.P.S.
What to do when you start losing motivation?
The answer.

Last edited by tupadown228 (2023-06-11 21:44:17)

Offline

#2 2023-04-08 11:21:36

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,393

Re: [SOLVED] Nvidia, Wayland & one smoking external monitor

Please add [SOLVED] to the title. Thanks


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB