Also posted the same at: http://askubuntu.com/questions/13814.../390013#390013
For a very long time I had been struggling to get powermate working in Ubuntu, my favourite OS. It was frustrating and finally I got it going and I do want to share with you all how I did. My sincere thanks to all the people from the references. I needed something more definitive, there is none available. Therefore this endeavour.
This is how I got my volume control with Griffin Powermate USB device working in Ubuntu Saucy Salamander 13.10 amd64. Please bear with me and do the following.
References.
- http://screamingroot.org/node/5
- http://www.mp3car.com/input-devices/...-in-linux.html
- http://www.bedroomlan.org/projects/evrouter (for evrouter)
- http://tomthegeek.blogspot.com/2007/...th-ubuntu.html
- http://ubuntuforums.org/showthread.php?t=1346654&page=3
- http://superuser.com/questions/47125...ommand-on-boot
HowTo:
A. Make a file "/etc/udev/rules.d/10-local.rules" and put the following in the file
Code:
sudo gedit /etc/udev/rules.d/10-local.rules
code line:
Code:
SUBSYSTEMS=="usb", ATTRS{product}=="Griffin PowerMate", KERNEL=="event?", NAME="input/powermate"
Save and close
B. Create group called "powermate" add yourself and other users to that group, you can give it a GID of 1001 or some like that. You can do so by editing the file /etc/group
Code:
sudo gedit /etc/group
code line:
Code:
powermate:1001:your-user-name
C. Now edit / make file "/etc/udev/rules.d/40-permissions.rules" and add the following
Code:
sudo gedit /etc/udev/rules.d/40-permissions.rules
code lines:
Code:
ATTRS{product}=="Griffin PowerMate" GROUP="powermate", MODE="0666"
Save and close.
D. Download and install evrouter from: http://www.bedroomlan.org/projects/evrouter or use the repository at http://www.bedroomlan.org/bedroomlan-debian-repository
E. Create /etc/evrouterrc (or $HOME/.evrouterrc, I prefer /etc/evrouterrc) with the following:
Code:
sudo gedit /etc/evrouterrc
code lines:
Code:
Window ""
"Griffin PowerMate" "" any key/256 "XKey/XF86AudioMute"
"Griffin PowerMate" "" any rel/7/1 "XKey/XF86AudioRaiseVolume"
"Griffin PowerMate" "" any rel/7/-1 "XKey/XF86AudioLowerVolume"
F. Find out the powermate input event number (in mine it is event7), by running the following command.
Code:
evrouter /dev/input/*
In the long output, you should see a line like the following
Code:
device 0: /dev/input/event7: Griffin PowerMate
G. Create /usr/local/bin/powermate with:
Code:
sudo gedit /usr/local/bin/powermate
code lines:
Code:
#!/bin/sh
evrouter -c /etc/evrouterrc /dev/input/event7
H. If you are a lazy guy like me and would like it to autorun at start up, you can do so by adding the script file to, /etc/rc.local or any such other.
Code:
sudo gedit /etc/rc.local
code line (add before exit 0 line):
Code:
/usr/local/bin/powermate
Save and close.
Try it and see. Best of luck. I love it now. Hopefully you folks can get it working it too.
Bookmarks