Re: Multimedia Keyboard (extra keys) on console
On Tue, Jun 10, 2003 at 02:09:28PM +1000, JacobRhoden wrote: On Sat, 7 Jun 2003 11:50 am, king ferrex wrote: no it wont, thats the problem ;) as mr.rachinsky, i need to patch my kernel and add the raw scancodes to produce keycodes, will do that later. thanks for the help. I would very much like to be able to use the multimedia keys on my keyboard as well (has bugged me for a long time now.. that next/previous track keys for xmms are kind of nice in Windows). Could I please have the ported showkey as well (: (I am happy to do some kernel hacking / testing) if it means I can get my keyboard working properly. Maybe somebody will submit ported version of showkey to gnats in order to get committed as a port? -- Igor ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
On Sat, 7 Jun 2003 11:50 am, king ferrex wrote: no it wont, thats the problem ;) as mr.rachinsky, i need to patch my kernel and add the raw scancodes to produce keycodes, will do that later. thanks for the help. I would very much like to be able to use the multimedia keys on my keyboard as well (has bugged me for a long time now.. that next/previous track keys for xmms are kind of nice in Windows). Could I please have the ported showkey as well (: (I am happy to do some kernel hacking / testing) if it means I can get my keyboard working properly. - jacob Jacob RhodenPhone: +61 3 8344 6102 ITS DivisionEmail: [EMAIL PROTECTED] Melbourne University Mobile: +61 403 788 386 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
On Thu, 5 Jun 2003 10:54 pm, Samy Al Bahra wrote: I suggest you take a look at the acme port. It may be found in ports/multimedia/acme. It provides an intuitive configuration interface for mapping certain keys to certain actions. If you don't find it of use in your scenario, the source code is always there. It would probably be easier to just port the showkey command from linux (: Jacob RhodenPhone: +61 3 8344 6102 ITS DivisionEmail: [EMAIL PROTECTED] Melbourne University Mobile: +61 403 788 386 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
already done, see my previous email :) On Thu, 5 Jun 2003 10:54 pm, Samy Al Bahra wrote: I suggest you take a look at the acme port. It may be found in ports/multimedia/acme. It provides an intuitive configuration interface for mapping certain keys to certain actions. If you don't find it of use in your scenario, the source code is always there. It would probably be easier to just port the showkey command from linux (: Jacob RhodenPhone: +61 3 8344 6102 ITS DivisionEmail: [EMAIL PROTECTED] Melbourne University Mobile: +61 403 788 386 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
[EMAIL PROTECTED] wrote: thanks, works like a charme, its printing the same linux is printing tho. pressing the first key prints 0xe0 0x10 releasing it prints 0xe0 0x90 0x10 = 'q' ..the 0xe0 seems to indicate its a function key (like del and others, who also have the 0xe0) im a bit confused, because DEL for example gives 0x53 (81) and is in my keymap as scancode 81, but how am i supposed to put the 0x10 twice in there? or am i missing something out completely here? I suppose I've noticed somewhere in manuals an example how to make key produce different actions depending on what keycode followed this key... It was shown how to enter german umlauted vowels, but idea is the same. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
yea but that doesnt help me, the 041 for the key - how would i compute that from the 0xe0 0x4f for example? for a real example: i have a key that produces 0xe0 0x10, 0x10 however is decimal 016, and is the 'q' key, pressing the 0xe0 0x10 key does not print a 'q' tho :) so the 0xe0 has a meaning, i tried 0xe0+0x10 ..but thats stupid and didnt give me a good value, so ..what decimal scancode is 0xe0 0x10 ? king ferrex wrote: ive searched the whole manual for appearance of keyboard and vowel ;) the manual says the atkbd kbdcontrol etc manpages cover it all, so i should read those ..ive read them all thoughrouly already and didnt get an appropriate answer. from keymap(5): For example, consider the following extract from a kbdmap: 041 dgra 172nopnop'|''|'nopnop O dgra '`' ( 'a' 224 ) ( 'A' 192 ) ( 'e' 232 ) ( 'E' 200 ) ( 'i' 236 ) ( 'I' 204 ) ( 'o' 242 ) ( 'O' 210 ) ( 'u' 249 ) ( 'U' 217 ) This extract configures the backtick key on a UK keyboard to act as a grave accent key. Pressing backtick followed by space produces a back- tick, and pressing a backtick followed by a vowel produces the ISO-8859-1 symbol for that vowel with a grave accent. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] Random Thought: -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
[EMAIL PROTECTED] wrote: yea but that doesnt help me, the 041 for the key - how would i compute that from the 0xe0 0x4f for example? for a real example: i have a key that produces 0xe0 0x10, 0x10 however is decimal 016, and is the 'q' key, pressing the 0xe0 0x10 key does not print a 'q' tho :) so the 0xe0 has a meaning, i tried 0xe0+0x10 ..but thats stupid and didnt give me a good value, so ..what decimal scancode is 0xe0 0x10 ? ahem... and if write something like this: 224 'T' nop nop nop nop nop nop nop nop O will it produce 'T' at least? i don't have multimedia keyboard around to play with, sorry... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
no it wont, thats the problem ;) as mr.rachinsky, i need to patch my kernel and add the raw scancodes to produce keycodes, will do that later. thanks for the help. [EMAIL PROTECTED] wrote: yea but that doesnt help me, the 041 for the key - how would i compute that from the 0xe0 0x4f for example? for a real example: i have a key that produces 0xe0 0x10, 0x10 however is decimal 016, and is the 'q' key, pressing the 0xe0 0x10 key does not print a 'q' tho :) so the 0xe0 has a meaning, i tried 0xe0+0x10 ..but thats stupid and didnt give me a good value, so ..what decimal scancode is 0xe0 0x10 ? ahem... and if write something like this: 224 'T' nop nop nop nop nop nop nop nop O will it produce 'T' at least? i don't have multimedia keyboard around to play with, sorry... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] -- king ferrex / SAC [EMAIL PROTECTED] - http://impaled.org ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
theres easier ways to get the multimedia keys working on X, but i am looking for a way to get them working on the console. as i said before, it seems to me as if there isnt a halfway moderate way to even find out the keycodes or anything ..on linux its as easy as showkey -s I suggest you take a look at the acme port. It may be found in ports/multimedia/acme. It provides an intuitive configuration interface for mapping certain keys to certain actions. If you don't find it of use in your scenario, the source code is always there. +---+ | Samy Al Bahra | [EMAIL PROTECTED] | +---+ Arabeyes.org Kerneled.com FreeBSD.org ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
thanks, works like a charme, its printing the same linux is printing tho. pressing the first key prints 0xe0 0x10 releasing it prints 0xe0 0x90 0x10 = 'q' ..the 0xe0 seems to indicate its a function key (like del and others, who also have the 0xe0) im a bit confused, because DEL for example gives 0x53 (81) and is in my keymap as scancode 81, but how am i supposed to put the 0x10 twice in there? or am i missing something out completely here? * [EMAIL PROTECTED] [2003-06-05 18:37 +0200]: theres easier ways to get the multimedia keys working on X, but i am looking for a way to get them working on the console. as i said before, it seems to me as if there isnt a halfway moderate way to even find out the keycodes or anything ..on linux its as easy as showkey -s Try the atttached files. It's my personal version of showkey (from linux). Nicolas ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
It depends on what the linux utility delivers. RAW scancodes or XLATE scancodes. What you need is the translated scancode and you need a press codes not the release ones. There is qualified article about FreeBSD syscons in the net but it is in russian. The author provides also some utilities for playing alittle bit with syscons driver. see http://www.tsu.ru/~pascal/unix/syscons/scancode.c the utility which can show scancodes RAW ones as well as intern ones. There are a pair of other utilities on the same site, but the text is only in russian :-) -- Vahe --- - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 11:42 PM Subject: Multimedia Keyboard (extra keys) on console i want to map some of the 12 multimedia keys i have on my keyboard to whatever on the console, not in X, like making one of them execute ssh host or something i tried to find out the scancodes on freebsd, but failed terribly, there is no utility available to find them it seems, so i plugged it into a linux machine and got the scancode for one of the keys via showkey -s, in hex its 0x90 in dec its 144. then i dumped my keyboard map via kbdcontrol -d keys, added a line at the bottom for the scancode 144, and reloaded it via kbdcontrol -l keys.. 144 'A' nul nul nul nul nul nul nul O it didnt do anything tho, anyone got any hints whats going wrong? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
umm the russian stuff doesnt help me much, and i cant figure out how to compile it either ;) It depends on what the linux utility delivers. RAW scancodes or XLATE scancodes. What you need is the translated scancode and you need a press codes not the release ones. There is qualified article about FreeBSD syscons in the net but it is in russian. The author provides also some utilities for playing alittle bit with syscons driver. see http://www.tsu.ru/~pascal/unix/syscons/scancode.c the utility which can show scancodes RAW ones as well as intern ones. There are a pair of other utilities on the same site, but the text is only in russian :-) -- Vahe --- - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 11:42 PM Subject: Multimedia Keyboard (extra keys) on console i want to map some of the 12 multimedia keys i have on my keyboard to whatever on the console, not in X, like making one of them execute ssh host or something i tried to find out the scancodes on freebsd, but failed terribly, there is no utility available to find them it seems, so i plugged it into a linux machine and got the scancode for one of the keys via showkey -s, in hex its 0x90 in dec its 144. then i dumped my keyboard map via kbdcontrol -d keys, added a line at the bottom for the scancode 144, and reloaded it via kbdcontrol -l keys.. 144 'A' nul nul nul nul nul nul nul O it didnt do anything tho, anyone got any hints whats going wrong? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
On Thu, 5 Jun 2003 08:45 am, [EMAIL PROTECTED] wrote: umm the russian stuff doesnt help me much, and i cant figure out how to compile it either ;) This should do it: g++ scancode.c -o scancode -lncurses But it doesnt seem to detect the multimedia keys anyway, just the normal 101 keys. (Not on my keyboard anyway) Jacob RhodenPhone: +61 3 8344 6102 ITS DivisionEmail: [EMAIL PROTECTED] Melbourne University Mobile: +61 403 788 386 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
yea the ncurses did it, but oh well, all it did was locking up my keyboard, then i killed it, and now i cant use my keyboard anymore ;) ssh'in in and trying to kbdcontrol -d gives me innappropriate ioctl for device ..great, i dont wanna reboot :/ On Thu, 5 Jun 2003 08:45 am, [EMAIL PROTECTED] wrote: umm the russian stuff doesnt help me much, and i cant figure out how to compile it either ;) This should do it: g++ scancode.c -o scancode -lncurses But it doesnt seem to detect the multimedia keys anyway, just the normal 101 keys. (Not on my keyboard anyway) Jacob RhodenPhone: +61 3 8344 6102 ITS DivisionEmail: [EMAIL PROTECTED] Melbourne University Mobile: +61 403 788 386 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
well, sorry, screw that ..i managed to fix it back up, but i still have no idea how to get those keycodes/scancodes/whatever and make them do what i want. any help is so much appreciated. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multimedia Keyboard (extra keys) on console
I suggest you take a look at the acme port. It may be found in ports/multimedia/acme. It provides an intuitive configuration interface for mapping certain keys to certain actions. If you don't find it of use in your scenario, the source code is always there. +---+ | Samy Al Bahra | [EMAIL PROTECTED] | +---+ Arabeyes.org Kerneled.com FreeBSD.org ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]