steam: update udev rules
devendor things as possible, and make it possible for access with and without logind. the steam controller rule in 99-steam-controller-perms.rules are now in the main rules file so are not needed.
This commit is contained in:
parent
fb14f5488b
commit
3cae653ca7
@ -1,64 +0,0 @@
|
||||
# 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"
|
@ -1,24 +0,0 @@
|
||||
|
||||
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"
|
@ -1,4 +1,2 @@
|
||||
#USB devices
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"
|
||||
# Oculus HID Sensor naming and permissioning
|
||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2833", MODE="0666"
|
||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2833", MODE="0660", GROUP="input", TAG+="uaccess"
|
@ -1,7 +1,9 @@
|
||||
# Template file for 'steam'
|
||||
pkgname=steam
|
||||
version=1.0.0.78
|
||||
revision=2
|
||||
revision=3
|
||||
_steam_devices_commit=13443480a64fe8f10676606bd57da6de89f8ccb1
|
||||
build_wrksrc="steam-launcher"
|
||||
archs="i686 x86_64"
|
||||
depends="zenity xz curl dbus freetype gdk-pixbuf hicolor-icon-theme desktop-file-utils
|
||||
liberation-fonts-ttf file tar bash coreutils lsof steam-udev-rules"
|
||||
@ -9,10 +11,18 @@ short_desc="Digital distribution client bootstrap package - Valve's steam client
|
||||
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
||||
license="custom: Proprietary license"
|
||||
homepage="https://steampowered.com/"
|
||||
distfiles="http://repo.steampowered.com/${pkgname}/pool/${pkgname}/s/${pkgname}/${pkgname}_${version}.tar.gz"
|
||||
checksum=104259755d7211b5f101db247ff70ebfed6ae6ca3e14da61195d1fbf91c7200d
|
||||
distfiles="http://repo.steampowered.com/steam/pool/steam/s/steam/steam_${version}.tar.gz
|
||||
https://github.com/ValveSoftware/steam-devices/archive/${_steam_devices_commit}.tar.gz"
|
||||
checksum="104259755d7211b5f101db247ff70ebfed6ae6ca3e14da61195d1fbf91c7200d
|
||||
2e508acb093d1428f32c3f6b0bc836cc4a20ceef4afc92b6cdb7cf631400fd36"
|
||||
repository=nonfree
|
||||
|
||||
post_patch() {
|
||||
vsed -e 's/TAG+="uaccess"/GROUP="input", &/g' \
|
||||
-i ../steam-devices-${_steam_devices_commit}/60-steam-input.rules \
|
||||
-i ../steam-devices-${_steam_devices_commit}/60-steam-vr.rules
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR=${DESTDIR} install
|
||||
|
||||
@ -21,14 +31,14 @@ do_install() {
|
||||
# Ignore steamdeps.
|
||||
ln -sf /bin/true ${DESTDIR}/usr/bin/steamdeps
|
||||
|
||||
# Steam Controller support: need read-write access to
|
||||
# Oculus support: need read-write access to
|
||||
# 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
|
||||
vinstall ${FILESDIR}/99-oculus.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
|
||||
vinstall ../steam-devices-${_steam_devices_commit}/60-steam-input.rules 644 usr/lib/udev/rules.d
|
||||
vinstall ../steam-devices-${_steam_devices_commit}/60-steam-vr.rules 644 usr/lib/udev/rules.d
|
||||
|
||||
# Void-specific documentation.
|
||||
vdoc "${FILESDIR}/README.voidlinux"
|
||||
|
Loading…
Reference in New Issue
Block a user