summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2017-07-09 21:58:01 -0500
committerKyle K <kylek389@gmail.com>2017-07-09 21:58:13 -0500
commita8570e050044e8307f745acf9135251080ba540c (patch)
tree1c20b81bc9441835fdb18478021acdb8b50d4b4c
parentf73d5730c5a1ade6653a5a8eded03dde1cdd6fdc (diff)
downloadconfigs-a8570e050044e8307f745acf9135251080ba540c.tar.gz
configs-a8570e050044e8307f745acf9135251080ba540c.tar.bz2
configs-a8570e050044e8307f745acf9135251080ba540c.zip
steam controller udev
-rw-r--r--diffie/unbound.conf32
-rw-r--r--udev/99-steam-controller-perms.rules26
2 files changed, 58 insertions, 0 deletions
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"