LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-24-2004, 03:55 AM   #1
phoenix7
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.2(Mandriva), SuSE 9.3, Slackware 9.1, Xandros 3.1, Knoppix 3.9, FreeBSD 5.3, RedHat9
Posts: 122

Rep: Reputation: 15
who had ever worked with khotkeys?


Hi
here are my questions:
1. How can I know which keyboard model is matches with my keyboard? my keyboard model is Genius KB-16e. I chose Microsoft Natural Keyboard Pro / Microsoft Internet Keyboard Pro. Unfortunately for example it didn't recognize Word & Excel keys.

2. How can I configure Audio (Play/Pause) and Audio (Stop) and etc keys for using them with xmms or mplayer? I know one way is using DCOP function call. but as I see these programs don't provide any DCOP function to call.

3. If there is anyone who can work with its "Keyboard Shortcut -> Keyboard Input" correctly please tell me how can he/she do this?

Cheers,
Mohammad
 
Old 10-25-2004, 06:25 AM   #2
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Rep: Reputation: 30
Unhappy

any luck on your keyboard problems? because I have the same problems
 
Old 10-25-2004, 07:13 AM   #3
phoenix7
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.2(Mandriva), SuSE 9.3, Slackware 9.1, Xandros 3.1, Knoppix 3.9, FreeBSD 5.3, RedHat9
Posts: 122

Original Poster
Rep: Reputation: 15
any idea?
 
Old 04-05-2005, 10:23 PM   #4
caleb
Member
 
Registered: Sep 2002
Location: Cap. Fed. - Buenos Aires - Argentina
Distribution: Conectiva 10
Posts: 118

Rep: Reputation: 15
same keyboard in here ...
any idea is really welcome ...

no, xev won't detect any of they extra keys ...
 
Old 10-03-2007, 05:09 PM   #5
nbd
Member
 
Registered: Aug 2002
Posts: 41

Rep: Reputation: 15
unknown keys howto

Press the unknown key and type 'dmesg' to console to see what kernel says.

For me it says:

atkbd.c: Unknown key pressed (translated set 2, code 0xbb on isa0060/serio0).
atkbd.c: Use 'setkeycodes e03b <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xbb on isa0060/serio0).
atkbd.c: Use 'setkeycodes e03b <keycode>' to make it known.


So at least kernel recognizes them. The next step is to find free keycode:

dumpkeys |egrep '=$'

Select your favourite keycode from the list and assign it to the key. I did:

sudo setkeycodes e03b 120

Then use xev to see what X event the key creates. For me it gives:

KeyPress event, serial 31, synthetic NO, window 0x2a00001,
root 0x5c, subw 0x0, time 88366743, (165,-317), root168,277),
state 0x10, keycode 139 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

From there I read 'keycode 139', so I can assign eg:

xmodmap -e "keycode 139 = XF86Calculator"

Now my key gives XF86Calculator event, which I can bind to whatever I like with khotkeys.


If you ask me, all this should be done automatically; after all, kernel recognized the 'unknown' key and the rest could be automated. There could be a 'hotkey detect'-mode in which the system would find these unmapped keys and asked user to assign a X event for it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to use khotkeys outside KDE apberzerk Linux - Distributions 1 09-18-2006 12:30 PM
KHotKeys won't start - "Communication Problem" Riddick Linux - Software 0 09-07-2005 01:52 PM
9.3 worked... but now it doesn't? Agizor SUSE / openSUSE 11 04-26-2005 05:52 PM
khotkeys and mouse gestures? apberzerk Linux - General 0 03-04-2004 10:14 PM
Khotkeys lawrencegoodman Linux - Software 0 10-01-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration