You are not logged in.

#1 2023-05-08 19:36:13

ididrum
Member
Registered: 2023-05-07
Posts: 20

GNOME Gestures Break when switching to Hybrid Graphics Nvidia

Hello,


Im not sure if a post like this already exists but maybe you could help me problem-solve. this is my setup:

OS: Arch Linux x86_64
Host: ROG Flow X13 GV301QH_GV301QH 1.0
Kernel: 6.3.1-arch1-1
DE: GNOME 44.1
CPU: AMD Ryzen 7 5800HS with Radeon Graphics (16) @ 3.200GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
Memory: 1989MiB / 15395MiB


So basically, almost everything is working and I have found almost every post about people with this setup but the issue I am having which I think I have narrowed down should be clear from the title:

The default gestures that came with GNOME (which work very smooth on my Integrated) tend to break when I switch to Hybrid graphics, or when the Nvidia GPU becomes active. In otherwords, this also happens when I switch to MUX/dGPU only mode

When I look at the idle activity of the Nvidia GPU when Hybrid graphics are on, the only process which shows up is Xorg...

This makes me think that there is some interference between libinput (or what I assume GNOMEs gestures is using) and Nvidia's utilization of Xorg... not exactly sure how this all works tbh.

I have Nvidia, Nvidia-Utils, Nvidia-settings, Nvidia-Prime, supergfxctl, and supergfxctl--gex installed to get all of this working (as opposed to Optimus as this setup was apparently more funcitional for this specific laptop)


Forgive my ignorance if the terms I'm using are not exactly accurate to how everything works but I'm hopping that is enough information to start with.



Cheers

Last edited by ididrum (2023-06-26 22:41:34)

Offline

#2 2023-05-08 21:31:59

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

Re: GNOME Gestures Break when switching to Hybrid Graphics Nvidia

Gestures generally only work reliably on Wayland and I'm assuming the fact that enabling nvidia will force you to xorg by default is likely to play a role here.

To keep wayland running with nvidia active, you'll need to enable modesetting on the nvidia module: https://wiki.archlinux.org/title/NVIDIA … de_setting and enable the preserve video mode hooks -- or disable GDMs nvidia checks as described in: https://wiki.archlinux.org/title/GDM#Wa … DIA_driver

Online

#3 2023-05-09 12:26:33

ididrum
Member
Registered: 2023-05-07
Posts: 20

Re: GNOME Gestures Break when switching to Hybrid Graphics Nvidia

Oh wow, everything was already clearly in the manual. my bad.
Regardless, thanks for guiding me to it!

and it WORKED!

Just to recap, I added 1. "nvidia_drm.modeset=1" to the grub config file GRUB_CMDLINE_LINUX line and regenerated the config file.
2. rebooted
3. sudo ln -s /dev/null /etc/udev/rules.d/61-gdm.rules

Does that sound right?


Thanks again!

Offline

#4 2023-05-09 12:51:43

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

Re: GNOME Gestures Break when switching to Hybrid Graphics Nvidia

Technically for things to work "properly" you'd not do the last step, but you would enable the reloading of video memory on suspend as explained in https://wiki.archlinux.org/title/NVIDIA … er_suspend but if you don't notice anything off without that (it's mostly relevant if you suspend with the nvidia gpu active in some shape or form, so if you would be suspending while gaming/having a external monitor directly attached to nvidia or so) then you can disable the rule check via the /dev/null symlink.

Online

#5 2023-06-17 10:13:58

ididrum
Member
Registered: 2023-05-07
Posts: 20

Re: GNOME Gestures Break when switching to Hybrid Graphics Nvidia

thanks! I disabled the symlink

Offline

#6 2023-06-26 22:54:17

ididrum
Member
Registered: 2023-05-07
Posts: 20

Re: GNOME Gestures Break when switching to Hybrid Graphics Nvidia

I dont know if this will be obvious if I reopen this but I hope to get a response on this as I have followed the wiki so far and have got nothing.


This was working for a bit and then I made the mistake of downloading someone's Hyprland autoinstall script because I wanted to try Hyprland...I feel this may be the problem. I cant fault the script because I didnt wait to see if it would be a good idea to try the script on my current setup... In other words. I feel for sure that my current issue is my own fault.

That being said, I have followed the tutorial to preserve memory after suspend with no luck.


Currently everytime I switch to Hybrid graphics (which utilize my Nvidia GPU) my Wayland gestures break again among other issues...it's not a huge issue for my use case but i would love to not have to reinstall everything just to get this working.

I have so far added
/etc/modprobe.d/nvidia-power-management.conf with the paramaters
"options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp" as instructed in the wiki

I have even tried to enable early DRM modesetting in initramfs with no luck.

So far, when I enable Hybrid Graphics, Wayland doesnt even show up as an option. Normally in GDM it shows "GNOME, GNOME CLASSIC, GNOME X11, and GNOME CLASSIC X11" but when I switch, I only see GNOME and GNOME CLASSIC where x11 is the only working windowing system. none of the touch gestures register anymore

As another piece of info, the wiki mentions the interface is available through /proc/driver/nvidia/suspend but I dont even have the nvidia directory available,


anyway, thanks for your time in adavance

Offline

Board footer

Powered by FluxBB