From 5245c60bced8a842a5e53d02d61f7aaa9243a611 Mon Sep 17 00:00:00 2001 From: Daniel Santana Date: Sat, 22 Dec 2018 18:32:59 -0200 Subject: [PATCH] steam: add steam-input.rules and steam-vr.rules --- srcpkgs/steam/files/60-steam-input.rules | 64 ++++++++++++++++++++++++ srcpkgs/steam/files/60-steam-vr.rules | 24 +++++++++ srcpkgs/steam/template | 8 ++- 3 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/steam/files/60-steam-input.rules create mode 100644 srcpkgs/steam/files/60-steam-vr.rules diff --git a/srcpkgs/steam/files/60-steam-input.rules b/srcpkgs/steam/files/60-steam-input.rules new file mode 100644 index 00000000000..99c115b7914 --- /dev/null +++ b/srcpkgs/steam/files/60-steam-input.rules @@ -0,0 +1,64 @@ +# Valve USB devices +SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666" +# Steam Controller udev write access +KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess" + +# Valve HID devices over USB hidraw +KERNEL=="hidraw*", ATTRS{idVendor}=="28de", MODE="0666" + +# Valve HID devices over bluetooth hidraw +KERNEL=="hidraw*", KERNELS=="*28DE:*", MODE="0666" + +# DualShock 4 over USB hidraw +KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666" + +# DualShock 4 wireless adapter over USB hidraw +KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="0666" + +# DualShock 4 Slim over USB hidraw +KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666" + +# DualShock 4 over bluetooth hidraw +KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="0666" + +# DualShock 4 Slim over bluetooth hidraw +KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="0666" + +# Nintendo Switch Pro Controller over USB hidraw +KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0666" + +# Nintendo Switch Pro Controller over bluetooth hidraw +KERNEL=="hidraw*", KERNELS=="*057E:2009*", MODE="0666" + +# Nacon PS4 Revolution Pro Controller +KERNEL=="hidraw*", ATTRS{idVendor}=="146b", ATTRS{idProduct}=="0d01", MODE="0666" + +# Razer Raiju PS4 Controller +KERNEL=="hidraw*", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="1000", MODE="0666" + +# Razer Panthera Arcade Stick +KERNEL=="hidraw*", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0401", MODE="0666" + +# Mad Catz - Street Fighter V Arcade FightPad PRO +KERNEL=="hidraw*", ATTRS{idVendor}=="0738", ATTRS{idProduct}=="8250", MODE="0666" + +# Mad Catz - Street Fighter V Arcade FightStick TE S+ +KERNEL=="hidraw*", ATTRS{idVendor}=="0738", ATTRS{idProduct}=="8384", MODE="0666" + +# EMiO Elite Controller for PS4 +KERNEL=="hidraw*", ATTRS{idVendor}=="0c12", ATTRS{idProduct}=="1cf6", MODE="0666" + +# HORI RAP4 +KERNEL=="hidraw*", ATTRS{idVendor}=="0f0d", ATTRS{idProduct}=="008a", MODE="0666" + +# HORIPAD 4 FPS +KERNEL=="hidraw*", ATTRS{idVendor}=="0f0d", ATTRS{idProduct}=="0055", MODE="0666" + +# HORIPAD 4 FPS Plus +KERNEL=="hidraw*", ATTRS{idVendor}=="0f0d", ATTRS{idProduct}=="0066", MODE="0666" + +# Armor Armor 3 Pad PS4 +KERNEL=="hidraw*", ATTRS{idVendor}=="0c12", ATTRS{idProduct}=="0e10", MODE="0666" + +# STRIKEPAD PS4 Grip Add-on +KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c5", MODE="0666" diff --git a/srcpkgs/steam/files/60-steam-vr.rules b/srcpkgs/steam/files/60-steam-vr.rules new file mode 100644 index 00000000000..49d1e668f59 --- /dev/null +++ b/srcpkgs/steam/files/60-steam-vr.rules @@ -0,0 +1,24 @@ + +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="114d", ATTRS{idProduct}=="8a12", TAG+="uaccess" + +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="2c87", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0306", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0309", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="030a", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="030b", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="030c", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="030e", TAG+="uaccess" + +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="1043", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="1142", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2000", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2010", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2011", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2012", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2021", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2022", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2050", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2101", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2150", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2300", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2301", TAG+="uaccess" diff --git a/srcpkgs/steam/template b/srcpkgs/steam/template index a86c8755a18..3b04521ba79 100644 --- a/srcpkgs/steam/template +++ b/srcpkgs/steam/template @@ -1,17 +1,17 @@ # Template file for 'steam' pkgname=steam version=1.0.0.55 -revision=2 +revision=3 wrksrc=steam only_for_archs="i686 x86_64" depends="zenity xz curl dbus freetype gdk-pixbuf hicolor-icon-theme desktop-file-utils liberation-fonts-ttf" -repository="nonfree" short_desc="Digital distribution client bootstrap package - Valve's steam client" maintainer="Juan RP " license="Proprietary license" homepage="https://steampowered.com/" distfiles="http://repo.steampowered.com/${pkgname}/pool/${pkgname}/s/${pkgname}/${pkgname}_${version}.tar.gz" checksum=c303a610ebd7e392f5027b22ee0b64bf178344bd979bef473046c57c3599a1af +repository="nonfree" do_install() { make DESTDIR=${DESTDIR} install @@ -28,4 +28,8 @@ do_install() { # Valve-owned input event device nodes. # See https://bugs.launchpad.net/ubuntu/+source/steam/+bug/1498655 vinstall ${FILESDIR}/99-steam-controller-perms.rules 644 usr/lib/udev/rules.d + + # Device support for Steam-related hardware (e.g. controllers over Steam Link) + vinstall ${FILESDIR}/60-steam-input.rules 644 usr/lib/udev/rules.d + vinstall ${FILESDIR}/60-steam-vr.rules 644 usr/lib/udev/rules.d }