You are not logged in.

#1 2023-07-01 11:17:07

TotoShampoin
Member
Registered: 2023-07-01
Posts: 62
Website

[SOLVED] NVidia video ports not detected on Wayland

Hello, I'm new here!

So, I have a Dell G3 15 laptop, which is a NVidia Optimus laptop (yay). These are the specs:

[totoshampoin@Dell-Arch-Toto ~]$ lspci | grep 'VGA'
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)

I have 3 video ports: a HDMI, a DP, and a USB-C (treated as a DP)
The HDMI and the DP are handled by the NVidia, while the USB-C is handled by the Intel.

When running on X11, it detects all of them just fine. But on Wayland, it detects only the USB-C.

The thing is that other distros (Ubuntu, Fedora, ...) that have Wayland support do detect these ports (with lags, I am aware).
So I'm wondering how do I configure my system for that?

Last edited by TotoShampoin (2023-07-01 13:09:23)

Offline

#2 2023-07-01 11:59:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,237

Re: [SOLVED] NVidia video ports not detected on Wayland

Nvidia Wayland anything needs modesetting enabled, did you do that? https://wiki.archlinux.org/title/NVIDIA … de_setting

Offline

#3 2023-07-01 12:11:23

TotoShampoin
Member
Registered: 2023-07-01
Posts: 62
Website

Re: [SOLVED] NVidia video ports not detected on Wayland

I'm not sure where exactly I have to enable modesetting (where the initramfs is)
But I did add ` nvidia_drm.modeset=1` at `GRUB=CMDLINE_LINUX_DEFAULT="..."`, in /etc/default/grub

But apparently, it is still disabled

# /sys/module/nvidia_drm/parameters/modeset
N

I think I am using mkinitcpio though

Last edited by TotoShampoin (2023-07-01 12:14:05)

Offline

#4 2023-07-01 12:24:04

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

Re: [SOLVED] NVidia video ports not detected on Wayland

Editing that file does nothing, you'll have to "grub-mkconfig" again.

Online

#5 2023-07-01 12:31:15

TotoShampoin
Member
Registered: 2023-07-01
Posts: 62
Website

Re: [SOLVED] NVidia video ports not detected on Wayland

Oh yeah, I forgot to mention that I did enter that command, and I did reboot afterwards.

I even tried replacing the dot by a space instead

GRUB_CMDLINE_LINUX_DEFAULT="... nvidia_drm modeset=1"

Still a N

Offline

#6 2023-07-01 12:32:18

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

Re: [SOLVED] NVidia video ports not detected on Wayland

There's supposed to be a dot there…

cat /proc/cmdline

Online

#7 2023-07-01 12:38:53

TotoShampoin
Member
Registered: 2023-07-01
Posts: 62
Website

Re: [SOLVED] NVidia video ports not detected on Wayland

Okay, well I put the dot back in, mkconfiged and rebooted it

And

[totoshampoin@Dell-Arch-Toto ~]$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-linux-zen root=UUID=640cd5fe-3ce6-45d0-b294-98da9e5f7d8e rw rootfstype=ext4 loglevel=3 quiet

Offline

#8 2023-07-01 12:40:35

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

Re: [SOLVED] NVidia video ports not detected on Wayland

You're obviously not applying the setting.
Post your /etc/mkinitcpio.conf, the exact grub-mkconfig command you use(d) and the output of "lsblk -f"

Online

#9 2023-07-01 12:47:55

TotoShampoin
Member
Registered: 2023-07-01
Posts: 62
Website

Re: [SOLVED] NVidia video ports not detected on Wayland

[totoshampoin@Dell-Arch-Toto ~]$ lsblk -f
NAME      FSTYPE FSVER  LABEL                        UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda       iso966 Joliet Ubuntu-MATE 18.04.4 LTS i386 2020-02-03-19-00-56-00                              
└─sda1    ntfs          Samsung SSD                  B4C428AEC4287530                                    
zram0                                                                                                    [SWAP]
nvme0n1                                                                                                  
├─nvme0n1p1
│         vfat   FAT32                               D847-C5C1                             370,7M    27% /boot
├─nvme0n1p2
│         ext4   1.0                                 640cd5fe-3ce6-45d0-b294-98da9e5f7d8e     37G    35% /
└─nvme0n1p3
          ext4   1.0                                 00218350-6c4d-4cfe-a5d9-3e1d775aadd4  792,5G     4% /home

[totoshampoin@Dell-Arch-Toto ~]$ cat /etc/mkinitcpio.conf
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block filesystems fsck)

And the command was just "sudo grub-mkconfig"

Offline

#10 2023-07-01 12:50:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] NVidia video ports not detected on Wayland

And where would that put the new config file?

Offline

#11 2023-07-01 12:54:11

TotoShampoin
Member
Registered: 2023-07-01
Posts: 62
Website

Re: [SOLVED] NVidia video ports not detected on Wayland

... Oh
I'm supposed to type "sudo grub-mkconfig -o /boot/grub/grub.cfg" ?


____ EDIT ____

Well, I just entered the command, and it works now

Granted the monitors lag quite a bit, probably because the two GPUs are constantly exchanging...

Last edited by TotoShampoin (2023-07-01 13:06:08)

Offline

Board footer

Powered by FluxBB