diff --git a/scripts/gpu-passthrough.sh b/scripts/gpu-passthrough.sh index 74c669a..338bcfc 100755 --- a/scripts/gpu-passthrough.sh +++ b/scripts/gpu-passthrough.sh @@ -237,7 +237,7 @@ prepare) # 1. stop whatever is holding the DRM device dm=$(systemctl list-units --type=service --state=running --no-legend 2>/dev/null | - awk '{print $1}' | grep -xE '(gdm|sddm|lightdm|lxdm|greetd|display-manager)\.service' | head -1) + awk '{print $1}' | grep -xE '((gdm|sddm|lightdm|lxdm|greetd|ly|emptty|lemurs)(@[a-z0-9-]+)?|display-manager)\.service' | head -1) if [ -n "$dm" ]; then echo "$dm" > "$STATE/dm" log "stopping $dm"