Hi All, I would like to know how to re-map some of my keyboard keys with xkb. My media keys and hotkeys are either mapped to the wrong place or not working at all and my LEDs for caps and scroll lock do not work. If I boot to windows everything works fine and all keys are mapped correctly so I know the keyboard is OK. In ubuntu or opensuse these are the current mappings: (using evtest to see key presses) Web key = not mapped close key = not mapped Hotkey1 = mapped to homepage Hotkey2 = not mapped Hotkey3 = mapped to vol up Hotkey4 = mapped to calculator Prev track = mapped to vol down stop = mapped to stop play = mapped to playpause Next track = mapped to nextsong Vol + = not mapped Vol - = not mapped Mute = not mapped Sleep = not mapped I cannot find any decent documentation explaining how to re-map these few keys in xkb. I just want to map the keys to the correct places and to be able to mape the 4 hotkeys to custom commands. Does anyone know how to do this? My keyboard is a ps/2 chicony kb-9805 Thanks Paul -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Mar 13, 2017 at 07:45:11PM +0000, Paul Groves wrote:
Hi All,
I would like to know how to re-map some of my keyboard keys with xkb. My media keys and hotkeys are either mapped to the wrong place or not working at all and my LEDs for caps and scroll lock do not work.
If I boot to windows everything works fine and all keys are mapped correctly so I know the keyboard is OK.
In ubuntu or opensuse these are the current mappings: (using evtest to see key presses)
Web key = not mapped close key = not mapped Hotkey1 = mapped to homepage Hotkey2 = not mapped Hotkey3 = mapped to vol up Hotkey4 = mapped to calculator Prev track = mapped to vol down stop = mapped to stop play = mapped to playpause Next track = mapped to nextsong Vol + = not mapped Vol - = not mapped Mute = not mapped Sleep = not mapped
I cannot find any decent documentation explaining how to re-map these few keys in xkb. I just want to map the keys to the correct places and to be able to mape the 4 hotkeys to custom commands.
Does anyone know how to do this?
My keyboard is a ps/2 chicony kb-9805
You might use xmmodmap or use the already existing mappings below /usr/share/X11/xkb/ ... grep -rsi chicony /usr/share/X11/xkb/ /usr/share/X11/xkb/geometry/chicony:// Geometry specification for Chicony KB-9820 keyboard. /usr/share/X11/xkb/geometry/chicony: description = "Chicony KB-9820 infra-red keyboard"; /usr/share/X11/xkb/rules/base: chicony chicony0108 chicony0420 chicony9885 \ /usr/share/X11/xkb/rules/base: cherrybluea herrycyboard chicony042 compaqik13 compaqik18 \ /usr/share/X11/xkb/rules/evdev.lst: chicony Chicony Internet Keyboard /usr/share/X11/xkb/rules/evdev.lst: chicony0108 Chicony KU-0108 /usr/share/X11/xkb/rules/evdev.lst: chicony0420 Chicony KU-0420 /usr/share/X11/xkb/rules/evdev.lst: chicony9885 Chicony KB-9885 /usr/share/X11/xkb/rules/evdev.xml: <name>chicony</name> /usr/share/X11/xkb/rules/evdev.xml: <description>Chicony Internet Keyboard</description> /usr/share/X11/xkb/rules/evdev.xml: <vendor>Chicony</vendor> /usr/share/X11/xkb/rules/evdev.xml: <name>chicony0108</name> /usr/share/X11/xkb/rules/evdev.xml: <description>Chicony KU-0108</description> /usr/share/X11/xkb/rules/evdev.xml: <vendor>Chicony</vendor> /usr/share/X11/xkb/rules/evdev.xml: <name>chicony0420</name> /usr/share/X11/xkb/rules/evdev.xml: <description>Chicony KU-0420</description> /usr/share/X11/xkb/rules/evdev.xml: <vendor>Chicony</vendor> /usr/share/X11/xkb/rules/evdev.xml: <name>chicony9885</name> /usr/share/X11/xkb/rules/evdev.xml: <description>Chicony KB-9885</description> /usr/share/X11/xkb/rules/evdev.xml: <vendor>Chicony</vendor> /usr/share/X11/xkb/symbols/inet:// Chicony /usr/share/X11/xkb/symbols/inet:// Chicony Internet Keyboard /usr/share/X11/xkb/symbols/inet:xkb_symbols "chicony" { /usr/share/X11/xkb/symbols/inet:// Chicony KU-0108 /usr/share/X11/xkb/symbols/inet:xkb_symbols "chicony0108" { /usr/share/X11/xkb/symbols/inet:// Chicony KU-0420 AKA Targus Slim Internet Media USB Keyboard /usr/share/X11/xkb/symbols/inet:xkb_symbols "chicony0420" { /usr/share/X11/xkb/symbols/inet:// Chicony KB-9885 /usr/share/X11/xkb/symbols/inet:xkb_symbols "chicony9885" { with the help of setxkbmap(1)+xkbcomp(1) and (if available the manual page xkeyboard-config(7)) or create by trial/error+comparision with existing files below /usr/share/X11/xkb/ your own rule for xkbcomp(1) ... and yes documentation for XKB is worse -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
On 14/03/17 08:10, Dr. Werner Fink wrote:
On Mon, Mar 13, 2017 at 07:45:11PM +0000, Paul Groves wrote:
Hi All,
I would like to know how to re-map some of my keyboard keys with xkb. My media keys and hotkeys are either mapped to the wrong place or not working at all and my LEDs for caps and scroll lock do not work.
If I boot to windows everything works fine and all keys are mapped correctly so I know the keyboard is OK.
In ubuntu or opensuse these are the current mappings: (using evtest to see key presses)
Web key = not mapped close key = not mapped Hotkey1 = mapped to homepage Hotkey2 = not mapped Hotkey3 = mapped to vol up Hotkey4 = mapped to calculator Prev track = mapped to vol down stop = mapped to stop play = mapped to playpause Next track = mapped to nextsong Vol + = not mapped Vol - = not mapped Mute = not mapped Sleep = not mapped
I cannot find any decent documentation explaining how to re-map these few keys in xkb. I just want to map the keys to the correct places and to be able to mape the 4 hotkeys to custom commands.
Does anyone know how to do this?
My keyboard is a ps/2 chicony kb-9805 You might use xmmodmap or use the already existing mappings below /usr/share/X11/xkb/ ...
grep -rsi chicony /usr/share/X11/xkb/ /usr/share/X11/xkb/geometry/chicony:// Geometry specification for Chicony KB-9820 keyboard. /usr/share/X11/xkb/geometry/chicony: description = "Chicony KB-9820 infra-red keyboard"; /usr/share/X11/xkb/rules/base: chicony chicony0108 chicony0420 chicony9885 \ /usr/share/X11/xkb/rules/base: cherrybluea herrycyboard chicony042 compaqik13 compaqik18 \ /usr/share/X11/xkb/rules/evdev.lst: chicony Chicony Internet Keyboard /usr/share/X11/xkb/rules/evdev.lst: chicony0108 Chicony KU-0108 /usr/share/X11/xkb/rules/evdev.lst: chicony0420 Chicony KU-0420 /usr/share/X11/xkb/rules/evdev.lst: chicony9885 Chicony KB-9885 /usr/share/X11/xkb/rules/evdev.xml: <name>chicony</name> /usr/share/X11/xkb/rules/evdev.xml: <description>Chicony Internet Keyboard</description> /usr/share/X11/xkb/rules/evdev.xml: <vendor>Chicony</vendor> /usr/share/X11/xkb/rules/evdev.xml: <name>chicony0108</name> /usr/share/X11/xkb/rules/evdev.xml: <description>Chicony KU-0108</description> /usr/share/X11/xkb/rules/evdev.xml: <vendor>Chicony</vendor> /usr/share/X11/xkb/rules/evdev.xml: <name>chicony0420</name> /usr/share/X11/xkb/rules/evdev.xml: <description>Chicony KU-0420</description> /usr/share/X11/xkb/rules/evdev.xml: <vendor>Chicony</vendor> /usr/share/X11/xkb/rules/evdev.xml: <name>chicony9885</name> /usr/share/X11/xkb/rules/evdev.xml: <description>Chicony KB-9885</description> /usr/share/X11/xkb/rules/evdev.xml: <vendor>Chicony</vendor> /usr/share/X11/xkb/symbols/inet:// Chicony /usr/share/X11/xkb/symbols/inet:// Chicony Internet Keyboard /usr/share/X11/xkb/symbols/inet:xkb_symbols "chicony" { /usr/share/X11/xkb/symbols/inet:// Chicony KU-0108 /usr/share/X11/xkb/symbols/inet:xkb_symbols "chicony0108" { /usr/share/X11/xkb/symbols/inet:// Chicony KU-0420 AKA Targus Slim Internet Media USB Keyboard /usr/share/X11/xkb/symbols/inet:xkb_symbols "chicony0420" { /usr/share/X11/xkb/symbols/inet:// Chicony KB-9885 /usr/share/X11/xkb/symbols/inet:xkb_symbols "chicony9885" {
with the help of setxkbmap(1)+xkbcomp(1) and (if available the manual page xkeyboard-config(7)) or create by trial/error+comparision with existing files below /usr/share/X11/xkb/ your own rule for xkbcomp(1) ... and yes documentation for XKB is worse
Thanks Dr. Fink, I tried that but it made no difference. My keyboard is a 9805 not a 9885 and it appears that the configuration is not compatible with my keyboard. I tried xmodmap but it is deprecated in ubuntu and apparently this is also planned in opensuse. Again hard to find any information on the subject. I was searching online and a few places have said I need to use the scancode of the button and map to a keycode. So my next questions are: I have all of the scancodes but I have no idea where this file should go for xkb or how to set it out? How can I output available keycodes? Also, can I use custom keycodes for the Hotkeys 1 through 4 and how do I go about this? I want to be able to change the hotketys using the kde (opensuse) and ubuntu control center / settings > Keyboard I wonder why xkb is so poorly documented? I can find almost nothing about it online (unless someone knows where I may find some documentation)? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Paul Groves
Thanks Dr. Fink, I tried that but it made no difference. My keyboard is a 9805 not a 9885 and it appears that the configuration is not compatible with my keyboard.
I tried xmodmap but it is deprecated in ubuntu and apparently this is also planned in opensuse. Again hard to find any information on the subject.
I was searching online and a few places have said I need to use the scancode of the button and map to a keycode.
So my next questions are:
I have all of the scancodes but I have no idea where this file should go for xkb or how to set it out?
How can I output available keycodes?
Also, can I use custom keycodes for the Hotkeys 1 through 4 and how do I go about this? I want to be able to change the hotketys using the kde (opensuse) and ubuntu control center / settings > Keyboard
I wonder why xkb is so poorly documented? I can find almost nothing about it online (unless someone knows where I may find some documentation)?
on my tw system there are no less than 38 different man files contained in kbd. look at man keymaps man setxkbmap man xkbcomp man xkbctrl amoung others, and info files -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 Photos: http://wahoo.no-ip.org/piwigo @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Mar 14, 2017 at 10:34:01PM -0400, Patrick Shanahan wrote:
* Paul Groves
[03-14-17 17:11]: [...]
Thanks Dr. Fink, I tried that but it made no difference. My keyboard is a 9805 not a 9885 and it appears that the configuration is not compatible with my keyboard.
I tried xmodmap but it is deprecated in ubuntu and apparently this is also planned in opensuse. Again hard to find any information on the subject.
I was searching online and a few places have said I need to use the scancode of the button and map to a keycode.
So my next questions are:
I have all of the scancodes but I have no idea where this file should go for xkb or how to set it out?
How can I output available keycodes?
Also, can I use custom keycodes for the Hotkeys 1 through 4 and how do I go about this? I want to be able to change the hotketys using the kde (opensuse) and ubuntu control center / settings > Keyboard
I wonder why xkb is so poorly documented? I can find almost nothing about it online (unless someone knows where I may find some documentation)?
on my tw system there are no less than 38 different man files contained in kbd. look at man keymaps man setxkbmap man xkbcomp man xkbctrl amoung others, and info files
On Tumbleweed there is the manula page xkeyboard-config(7) as well and there are some documentations as well at https://www.freedesktop.org/wiki/Software/XKeyboardConfig/ https://www.x.org/wiki/XKB/ http://people.uleth.ca/~daniel.odonnell/Blog/custom-keyboard-in-linuxx11 but also a python/GTK based layout editor ... never tried this https://github.com/simos/keyboardlayouteditor could be interesting but old. Nevertheless, for who do not want go into the deep of documentation ;) -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
participants (3)
-
Dr. Werner Fink
-
Patrick Shanahan
-
Paul Groves