1 |
Clemente Aguiar posted on Thu, 06 Jan 2011 11:01:21 +0000 as excerpted: |
2 |
|
3 |
> I run xev and the result on the 3 keys that I first mentioned are as |
4 |
> follows: |
5 |
> |
6 |
> If press "My Documents" I get the following events: |
7 |
> |
8 |
> KeyPress event, serial 33, synthetic NO, window 0x4000001, |
9 |
> root 0x1ad, subw 0x0, time 67664120, (686,264), root:(879,344), |
10 |
> state 0x10, keycode 120 (keysym 0x0, NoSymbol), same_screen YES, |
11 |
> XLookupString gives 0 bytes: |
12 |
> XmbLookupString gives 0 bytes: |
13 |
> XFilterEvent returns: False |
14 |
> |
15 |
> KeyRelease event, serial 33, synthetic NO, window 0x4000001, |
16 |
> root 0x1ad, subw 0x0, time 67664246, (686,264), root:(879,344), |
17 |
> state 0x10, keycode 120 (keysym 0x0, NoSymbol), same_screen YES, |
18 |
> XLookupString gives 0 bytes: |
19 |
> XFilterEvent returns: False |
20 |
> |
21 |
> If I press "My Images" or "My Music" nothing happens. |
22 |
> |
23 |
> I then tried to see what happened at console level, with showkey. |
24 |
|
25 |
I'm too sleepy ATM to do a reply real justice, but here's a brief one... |
26 |
|
27 |
1) I've never worked at the kernel level or below, only at the X level, so |
28 |
don't know anything about the "nothing happens" keys or how to get them to |
29 |
"something happens". |
30 |
|
31 |
2) The "Docs" key, however, has a keycode of 120, so you can do something |
32 |
with that. The "something" involves either finding or adding an |
33 |
appropriate mapping in X so it gets a valid symbol. As I mentioned, I've |
34 |
done it before by fiddling with the existing mappings, now found in |
35 |
/usr/share/X11/xkb, but I've forgotten the details and am not in a state |
36 |
to try to figure it out again ATM. But that should give you a place to |
37 |
look if you want to start reading the files therein and trying to figure |
38 |
it out, which should be possible as it's basically what I did, before, and |
39 |
what I'd do again only it should take less time this time as I've been thru |
40 |
it before. At this level, tho, it's simply a matter of setting up a config |
41 |
file or three properly, no complex recompiling or the like. |
42 |
|
43 |
I'll see about posting more on that if I get time to go back and look at |
44 |
them, later, but don't promise to get to it. |
45 |
|
46 |
3) Without a valid keysym, it's no wonder gnome can't see it to map |
47 |
anything. You'll need to get the sym working and then see what gnome (or |
48 |
whatever else) can do with it. |
49 |
|
50 |
4) The other keys, without even a valid keycode... will take deeper magic |
51 |
than I've ever tried, tho I've come across hints and bits of documentation |
52 |
here and there. Really, you've gotten farther than I know already, with |
53 |
showkey. Presumably you must add those scancodes to some table somewhere |
54 |
and then perhaps recompile something to build them in. A speculative |
55 |
guess would be either evdev or keyboard driver, but I'm not sure if it'd |
56 |
be at the kernel driver or xorg driver module level. That's the docs I'd |
57 |
start reading, tho. |
58 |
|
59 |
Or type in your precise keyboard model into google.com/linux (the Linux- |
60 |
specific search, I have a kde web shortcut setup for it here as I use it |
61 |
frequently enough...), and see if anyone else has come up with a better |
62 |
working solution. |
63 |
|
64 |
You can also try contacting the xorg and/or evdev folks and asking, but |
65 |
I'd do some research first. No need to bother them if the answer's only a |
66 |
few clicks away on google, or simply involves setting a couple config |
67 |
options in your xorg.conf after you figure out how the stuff in that xkb |
68 |
dir mentioned above works. |
69 |
|
70 |
Oh... one more thing... if you have microsoftmult or whatever set in your |
71 |
xorg.conf or if still using hal instead of udev for xorg hotplugging, |
72 |
whatever *.fdi file, try commenting/deleting that, and see if it auto- |
73 |
detects better settings than the ones you were manually using. With xorg- |
74 |
server-1.8 and 1.9 udev based hotplugging and evdev, as I said, all my |
75 |
keys "just work", at least as good if not better than they did with hal |
76 |
and xkb, and manually setting the keyboard type. I was pleasantly |
77 |
surprised on both my netbook and my desktop, as it detected the special |
78 |
keys on both and they "just worked". |
79 |
|
80 |
-- |
81 |
Duncan - List replies preferred. No HTML msgs. |
82 |
"Every nonfree program has a lord, a master -- |
83 |
and if you use the program, he is your master." Richard Stallman |