diff --git a/packaging/linux/AppImage/AppRun b/packaging/linux/AppImage/AppRun index 404704c3..e90ee3a4 100644 --- a/packaging/linux/AppImage/AppRun +++ b/packaging/linux/AppImage/AppRun @@ -49,6 +49,7 @@ function install() { cat "$SUNSHINE_SHARE_HERE/udev/rules.d/60-sunshine.rules" | sudo tee /etc/udev/rules.d/60-sunshine.rules sudo udevadm control --reload-rules sudo udevadm trigger --property-match=DEVNAME=/dev/uinput + sudo udevadm trigger --property-match=DEVNAME=/dev/uhid # sunshine service mkdir -p ~/.config/systemd/user diff --git a/packaging/linux/Arch/sunshine.install b/packaging/linux/Arch/sunshine.install index a8a700f1..6b274cdf 100644 --- a/packaging/linux/Arch/sunshine.install +++ b/packaging/linux/Arch/sunshine.install @@ -5,7 +5,9 @@ do_setcap() { do_udev_reload() { udevadm control --reload-rules udevadm trigger --property-match=DEVNAME=/dev/uinput + udevadm trigger --property-match=DEVNAME=/dev/uhid modprobe uinput || true + modprobe uhid || true } post_install() { diff --git a/src_assets/linux/misc/postinst b/src_assets/linux/misc/postinst index e406c762..47deb784 100644 --- a/src_assets/linux/misc/postinst +++ b/src_assets/linux/misc/postinst @@ -8,9 +8,10 @@ if [ -x "$path_to_setcap" ] ; then $path_to_setcap cap_sys_admin+p $path_to_sunshine fi -# Trigger udev rule reload for /dev/uinput +# Trigger udev rule reload for /dev/uinput and /dev/uhid path_to_udevadm=$(which udevadm) if [ -x "$path_to_udevadm" ] ; then $path_to_udevadm control --reload-rules $path_to_udevadm trigger --property-match=DEVNAME=/dev/uinput + $path_to_udevadm trigger --property-match=DEVNAME=/dev/uhid fi