From a8570e050044e8307f745acf9135251080ba540c Mon Sep 17 00:00:00 2001 From: Kyle K Date: Sun, 9 Jul 2017 21:58:01 -0500 Subject: steam controller udev --- diffie/unbound.conf | 32 ++++++++++++++++++++++++++++++++ udev/99-steam-controller-perms.rules | 26 ++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 diffie/unbound.conf create mode 100644 udev/99-steam-controller-perms.rules diff --git a/diffie/unbound.conf b/diffie/unbound.conf new file mode 100644 index 0000000..3cf7fbc --- /dev/null +++ b/diffie/unbound.conf @@ -0,0 +1,32 @@ +# Unbound configuration file for Debian. +# +# See the unbound.conf(5) man page. +# +# See /usr/share/doc/unbound/examples/unbound.conf for a commented +# reference config file. +# +# The following line includes additional configuration files from the +# /etc/unbound/unbound.conf.d directory. +## me ### include: "/etc/unbound/unbound.conf.d/*.conf" + +server: + #auto-trust-anchor-file: "/var/lib/unbound/root.key" # seems like my dnscrypt server do no support DNSSEC, so I can't enable this + #interface: 0.0.0.0 + + # so I enabled global access to DNS... + interface: 0.0.0.0 + interface: ::0 + access-control: 0.0.0.0/0 allow + access-control: ::/0 allow + + #access-control: 0.0.0.0/8 allow (redundant now, see above) + include: /etc/unbound/local-blocking-data.conf + +do-not-query-localhost: no +forward-zone: + name: "." + forward-addr: 127.0.0.1@5353 + forward-addr: 127.0.0.1@5354 + forward-addr: 127.0.0.1@5355 + forward-addr: 127.0.0.1@5356 + diff --git a/udev/99-steam-controller-perms.rules b/udev/99-steam-controller-perms.rules new file mode 100644 index 0000000..1ab9993 --- /dev/null +++ b/udev/99-steam-controller-perms.rules @@ -0,0 +1,26 @@ +# This rule is needed for basic functionality of the controller in Steam and keyboard/mouse emulation +SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666" + +# This rule is necessary for gamepad emulation; make sure you replace 'pgriffais' with a group that the user that runs Steam belongs to +KERNEL=="uinput", MODE="0660", GROUP="pgriffais", OPTIONS+="static_node=uinput" + +# 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" -- cgit v1.2.3