1 |
On Sunday 20 February 2011 00:25:24 Valmor de Almeida wrote: |
2 |
> On 02/19/2011 06:59 PM, Mick wrote: |
3 |
> [snip] |
4 |
> |
5 |
> > On two laptops of mine evdev causes untold confusion with the touchpad |
6 |
> > and second language selection for the keyboard. I *have* to use the |
7 |
> > synaptics and keyboard input drivers. I'm also using mouse (because it |
8 |
> > doesn't hurt I guess). |
9 |
> > |
10 |
> > I tried of course to remove them all and leave evdev initially, but it |
11 |
> > all went horribly wrong. Perhaps evdev will catch up eventually, I just |
12 |
> > hope synaptics and keyboard don't default into being deprecated before |
13 |
> > then. |
14 |
|
15 |
I think I should at least partly retract some of the above statement - with |
16 |
x11-base/xorg-server-1.9.4 I have managed to unmerge x11-drivers/xf86-input- |
17 |
keyboard and x11-drivers/xf86-input-mouse and evdev seems to still pick up my |
18 |
mouse and keyboard. |
19 |
|
20 |
I had to comment out the following three entries first in my xorg.conf: |
21 |
######################################### |
22 |
Section "ServerLayout" |
23 |
Identifier "X.org Configured" |
24 |
Screen 0 "Screen0" 0 0 |
25 |
# InputDevice "Mouse0" "CorePointer" |
26 |
# InputDevice "Keyboard0" "CoreKeyboard" |
27 |
# Option "AllowEmptyInput" "off" |
28 |
EndSection |
29 |
######################################### |
30 |
|
31 |
and also added appropriate Section "InputClass" parts for mouse and keyboard |
32 |
in my /etc/X11/xorg.conf, but commented out similar parts in |
33 |
/usr/share/X11/xorg.conf.d/10-evdev.conf. |
34 |
|
35 |
> I am using evdev and synaptics only on a thinkpad t201. Without an |
36 |
> xorg.conf, all works including when I connect an usb mouse. However I am |
37 |
> trying to configure the touchpad, trackpoint and extended buttons to |
38 |
> work as left-hand; that is I would like to have the 3 buttons reversed. |
39 |
> |
40 |
> I have not been lucky so far. In fact I've read on the web about some |
41 |
> new (relative to xorg 1.7) syntax for the xorg.conf file. Does anyone |
42 |
> know about a site with humanly friendly information on how to write a |
43 |
> modern xorg.conf file? |
44 |
|
45 |
Have you had a look at: |
46 |
|
47 |
http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml |
48 |
|
49 |
Also, have a read of the InputClass section in man xorg.conf and the files in |
50 |
/usr/share/X11/xorg.conf.d/. |
51 |
|
52 |
|
53 |
> In addition to the devices I mentioned above I am |
54 |
> also trying to setup an external monitor as a hotplug virtual screen. |
55 |
> |
56 |
> For instance, things like this do not work: |
57 |
> |
58 |
> |
59 |
> Section "InputClass" |
60 |
> Identifier "TouchPad" |
61 |
|
62 |
Change this line to: |
63 |
|
64 |
Identifier "touchpad catchall" |
65 |
|
66 |
Or, you can also try: |
67 |
|
68 |
Identifier "synaptics touchpad catchall" |
69 |
|
70 |
> MatchIsTouchpad "on" |
71 |
> Driver "synaptics" |
72 |
> #Option "SHMConfig" "on" |
73 |
> Option "VertTwoFingerScroll" "on" |
74 |
> EndSection |
75 |
> |
76 |
> In the past I used |
77 |
> |
78 |
> Option "ButtonMapping" "3 2 1" |
79 |
|
80 |
Do you want this to work for your touchpad with the synaptics driver, or do |
81 |
you want this to work with any physical buttons on the laptop, or even an |
82 |
external (e.g. USB) mouse? |
83 |
|
84 |
If the former, then have a look at the NOTES at the end of the man synaptics |
85 |
page, where it mentions button mapping. |
86 |
|
87 |
For non tap buttons you can try setting this option in an InputClass section |
88 |
in your xorg.conf for an InputClass device mouse: |
89 |
|
90 |
Section "InputClass" |
91 |
Identifier "mouse catchall" |
92 |
Driver "evdev" |
93 |
MatchIsPointer "on" |
94 |
MatchDevicePath "/dev/input/event*" |
95 |
Option "Protocol" "auto" |
96 |
Option "ButtonMapping" "3 2 1" |
97 |
EndSection |
98 |
|
99 |
> which apparently does not work here. Last but not least, how do I get |
100 |
> the good old ctrl-alt-backspace keybinding to kill X? |
101 |
|
102 |
You'll need to define this in the InputClass that deals with the keyboard: |
103 |
|
104 |
Section "InputClass" |
105 |
Identifier "keyboard catchall" |
106 |
Driver "evdev" |
107 |
MatchIsKeyboard "on" |
108 |
MatchDevicePath "/dev/input/event*" |
109 |
Option "XkbLayout" "gb" |
110 |
Option "XkbOptions" "terminate:ctrl_alt_bksp" |
111 |
EndSection |
112 |
|
113 |
HTH. |
114 |
-- |
115 |
Regards, |
116 |
Mick |