F keys lose functionaity after them switching back from "Multimedia" mode
Hi,
as I recently acquired a minimalistic keyboard with no multimedia keys, I wanted to restore their functionality by replacing the seldomly-used F keys, but still be able to use the F keys when needed. In order to do that without having to hold down a modifier for either mode, I wrote two simple .Xmodmaps and a shell script to toggle between the two. .Xmodmap-F: Code:
keycode 67 = F1 Code:
keycode 67 = XF86AudioMute Well, starting out with the standard F behavior with F1 as an example, xev tells me: Code:
KeyPress event, serial 35, synthetic NO, window 0x1800001, If I execute xmodmap .Xmodmap-M, xev says: Code:
MappingNotify event, serial 59, synthetic NO, window 0x0, Code:
KeyPress event, serial 71, synthetic NO, window 0x1800001, Code:
MappingNotify event, serial 83, synthetic NO, window 0x0, Code:
KeymapNotify event, serial 32, synthetic NO, window 0x0, Code:
KeyRelease event, serial 35, synthetic NO, window 0x2000001, First, this does not happen every time, but only after toying around with the script I wrote for a while. (Nothing fancy in there, just calls osd_cat to tell me which mode it's now in, writes the current state to disk, and loads the appropriate Xmodmap.) Second, the keys still work - but only one layer up, i. e. if I press shift+f1 when it should be in multimedia mode, it is there, and the same is true if it should be in function key mode. Third, and I have not been able to definitely confirm this as the problem doesn't appear all the time, this only seems to happen for the F keys. I. e. if I were to substitute number keys, it would work. (Being impractical, of course, as I need these.) As soon as this slipup has happened once, there is no way back except restarting X, as reloading a default .Xmodmap or unloading my WMs language module do nothing. I'm running an up-to-date Aptosid (derived from Debian Unstable) and e17 ecomorph as a WM, with an Enermax Acrylux Wireless (great piece of hardware, btw) keyboard managed by evdev. If you need any more information, I'll be glad to provide it. Thanks for any advice, V |
All times are GMT -5. The time now is 06:47 PM. |