File gdm-data-Re-enable-wayland-on-hybrid-graphics-laptops-wi.patch of Package gdm.36795

From 4291dde66240ac23ee3216fe10fdd6f9d302e21c Mon Sep 17 00:00:00 2001
From: PeppyKiki <gnome-gitlab-peppy@grr.la>
Date: Fri, 5 Apr 2024 05:03:09 +0200
Subject: [PATCH 1/2] data: Re-enable wayland on hybrid graphics laptops with
 NVIDIA driver

---
 data/61-gdm.rules.in | 27 ---------------------------
 1 file changed, 27 deletions(-)

Index: gdm-45.0.1/data/61-gdm.rules.in
===================================================================
--- gdm-45.0.1.orig/data/61-gdm.rules.in
+++ gdm-45.0.1/data/61-gdm.rules.in
@@ -61,17 +61,6 @@ IMPORT{program}="/bin/sh -c 'echo NVIDIA
 ENV{NVIDIA_SUSPEND}!="enabled", GOTO="gdm_disable_wayland"
 LABEL="gdm_nvidia_end"
 
-# If this machine has an internal panel, take note, since it's probably a laptop
-# FIXME: It could be "ghost connectors" make this pop positive for some workstations
-# in the wild. If so, we may have to fallback to looking at the chassis type from
-# dmi data or acpi
-KERNEL!="card[0-9]-eDP-*", GOTO="gdm_laptop_check_end"
-SUBSYSTEM!="drm", GOTO="gdm_laptop_check_end"
-ACTION!="add", GOTO="gdm_laptop_check_end"
-RUN+="/usr/bin/touch /run/udev/gdm-machine-is-laptop"
-GOTO="gdm_hybrid_nvidia_laptop_check"
-LABEL="gdm_laptop_check_end"
-
 # If this is a hybrid graphics setup, take note
 KERNEL!="card[1-9]*", GOTO="gdm_hybrid_graphics_check_end"
 KERNEL=="card[1-9]-*", GOTO="gdm_hybrid_graphics_check_end"
@@ -82,14 +71,6 @@ ENV{GDM_NUMBER_OF_GRAPHICS_CARDS}=="1",
 ENV{GDM_NUMBER_OF_GRAPHICS_CARDS}!="1", RUN+="/usr/bin/touch /run/udev/gdm-machine-has-hybrid-graphics"
 LABEL="gdm_hybrid_graphics_check_end"
 
-# If this is a hybrid graphics laptop with vendor nvidia driver, disable wayland
-LABEL="gdm_hybrid_nvidia_laptop_check"
-TEST!="/run/udev/gdm-machine-is-laptop", GOTO="gdm_hybrid_nvidia_laptop_check_end"
-TEST!="/run/udev/gdm-machine-has-hybrid-graphics", GOTO="gdm_hybrid_nvidia_laptop_check_end"
-TEST!="/run/udev/gdm-machine-has-vendor-nvidia-driver", GOTO="gdm_hybrid_nvidia_laptop_check_end"
-GOTO="gdm_disable_wayland"
-LABEL="gdm_hybrid_nvidia_laptop_check_end"
-
 # Disable wayland in situation where we're in a guest with a virtual gpu and host passthrough gpu
 LABEL="gdm_virt_passthrough_check"
 TEST!="/run/udev/gdm-machine-has-hybrid-graphics", GOTO="gdm_virt_passthrough_check_end"
openSUSE Build Service is sponsored by