xmodmap FC4

Ed Greshko Ed.Greshko at greshko.com
Thu May 11 12:51:40 UTC 2006


François Patte wrote:
> Bonjour,
> 
> I have laptop with a wheel for the sound volume and I tried (without
> success) to make work under fc4 using xmodmap.
> 
> First, I used xev which return: keycode=174 when I turn the wheel
> clockwise and keycode=176 for counter clockwise.
> 
> So put
> 
> keycode 176 = 0x1008FF13
> keycode 174 = 0x1008FF11
> 
> in a .xmodmaprc and run xmodmap .xmodmaprc
> 
> Now, xev returns:
> 
> KeyPress event, serial 29, synthetic NO, window 0x2e00001,
>     root 0x131, subw 0x0, time 2623843, (82,114), root:(88,526),
>     state 0x0, keycode 176 (keysym 0x1008ff13,
> XF86AudioRaiseVolume),             same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
> 
> and
> 
> KeyPress event, serial 29, synthetic NO, window 0x2e00001,
>     root 0x131, subw 0x0, time 2623344, (82,114), root:(88,526),
>     state 0x0, keycode 174 (keysym 0x1008ff11,
> XF86AudioLowerVolume),             same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
> 
> But nothing happens to the volume level....
> 
> What did I miss?

I don't know about xmodmap but I've had success using a small C program
to do what you want.  I'll try to attach it here...not sure if the list
will take it.  If not, and you want it, let me know and I'll send it to
your normal email.

Ed

-- 
>From 0 to "what seems to be the problem officer" in 8.3 seconds.
		-- Ad for the new VW Corrado

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: audio_keys.c
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060511/94d6c4e0/attachment-0001.c>


More information about the fedora-list mailing list