Created
August 4, 2015 23:56
-
-
Save riansanderson/7283379d6717feb6e92f to your computer and use it in GitHub Desktop.
Sensors at the command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # change permissions for several input event devices | |
| cat /proc/bus/input/devices | awk '/sim-/,/event/ {d=$1; if (/N:/) {split($2,n,"=")}; if(/event/) {split($2,e,"="); print e[2] "\t" n[2]; system("sudo chmod a+rw /dev/input/" e[2])}}' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment