Difference between revisions of "griffin powermate"

From thelinuxwiki
Jump to: navigation, search
(Created page with "use griffin powermate on linux X11 to control volume at this point, /dev/powermate is created and working check by cat /dev/powermate and rotating wheel on the powermate =...")

Revision as of 20:02, 1 September 2013

use griffin powermate on linux X11 to control volume


at this point, /dev/powermate is created and working check by cat /dev/powermate and rotating wheel on the powermate


configuring evrouter

1. install evrouter & xmodmap

# emerge -av --quiet sys-apps/evrouter x11-apps/xmodmap

2. Run evrouter dump to gather config lines

Here I ran the command below then I operated by powermate wheel. First, I rotated the wheel counter-clockwise, then clockwise, then a wheel press down. You should receive output similar to below.

$ evrouter -d /dev/powermate                                                                              ~
device  0: /dev/powermate: Griffin PowerMate
Display name: :0

Window "jsmith : evrouter ? Konsole": # Window title # Window "konsole": # Resource name # Window "Konsole": # Class name "Griffin PowerMate" "/dev/powermate" none rel/7/-1 "fill this in!" . . "Griffin PowerMate" "/dev/powermate" none rel/7/-1 "fill this in!" . . "Griffin PowerMate" "/dev/powermate" none key/256 "fill this in!"

3. Get your xkey names

$ xmodmap -pk|grep -i -E "volume|mute"                                                                        ~
   121         0x1008ff12 (XF86AudioMute)      0x0000 (NoSymbol)       0x1008ff12 (XF86AudioMute)
   122         0x1008ff11 (XF86AudioLowerVolume)       0x0000 (NoSymbol)       0x1008ff11 (XF86AudioLowerVolume)
   123         0x1008ff13 (XF86AudioRaiseVolume)       0x0000 (NoSymbol)       0x1008ff13 (XF86AudioRaiseVolume)
   198         0x1008ffb2 (XF86AudioMicMute)   0x0000 (NoSymbol)       0x1008ffb2 (XF86AudioMicMute)

The 1st and 3rd fields between paranthesis are the XKey names.

4. Configure .evrouterrc

Next, we combine the output from the previous 2 steps into our .evrouterrc configuration file. We do this by copying and pasting the lines from step 2 into the config. Then, where it say "fill this in!", we do as specified and replace the text there with the name of the desirec xkey names as output by xmodmap in step 3.

add these 3 lines to .evrouterrc in your home directory

"Griffin PowerMate" "/dev/powermate" none rel/7/-1 "XKey/XF86AudioLowerVolume"
"Griffin PowerMate" "/dev/powermate" none rel/7/1 "XKey/XF86AudioRaiseVolume"
"Griffin PowerMate" "/dev/powermate" none key/256 "Xkey/XF86AudioMute"