1 |
On Thu, Apr 22, 2010 at 01:37:49PM +0200, Mickael Chazaux wrote: |
2 |
> Hi, |
3 |
> |
4 |
> |
5 |
> Sorry for the noise, I found a solution. |
6 |
> |
7 |
> The installed x11-drivers/xf86-input-evdev was 2.3.2 (currently |
8 |
> stable). After installing xorg 1.8.0, I just rebuilt it as |
9 |
> recommended. |
10 |
> I just tried the 2.4.0, currently ~amd64, and the settings apply. |
11 |
> |
12 |
> Here is the final config file : |
13 |
> |
14 |
> Section "InputClass" |
15 |
> Identifier "nomouse" |
16 |
> MatchDevicePath "/dev/input/mouse*" |
17 |
> Option "Ignore" "true" |
18 |
> EndSection |
19 |
> |
20 |
> Section "InputClass" |
21 |
> Identifier "My mouse" |
22 |
> MatchProduct "Bluetooth Laser Travel Mouse" |
23 |
> MatchDevicePath "/dev/input/event12" |
24 |
> Option "AccelerationProfile" "-1" |
25 |
> Option "ConstantDeceleration" "10" |
26 |
> EndSection |
27 |
> |
28 |
> (yes, in a separated file this time (for a quick hack, I used first |
29 |
> the file I known parsed by Xorg ;-) ) |
30 |
> |
31 |
> And the relevant part of the log ( Xorg :1 -retro -verbose 5 2>log ): |
32 |
> |
33 |
> (II) config/udev: Adding input device Bluetooth Laser Travel Mouse |
34 |
> (/dev/input/event12) |
35 |
> (**) Bluetooth Laser Travel Mouse: Applying InputClass "My mouse" |
36 |
> (**) Bluetooth Laser Travel Mouse: Applying InputClass "evdev pointer catchall" |
37 |
> (**) Bluetooth Laser Travel Mouse: always reports core events |
38 |
> (**) Bluetooth Laser Travel Mouse: Device: "/dev/input/event12" |
39 |
> (II) Bluetooth Laser Travel Mouse: Found 12 mouse buttons |
40 |
> (II) Bluetooth Laser Travel Mouse: Found scroll wheel(s) |
41 |
> (II) Bluetooth Laser Travel Mouse: Found relative axes |
42 |
> (II) Bluetooth Laser Travel Mouse: Found x and y relative axes |
43 |
> (II) Bluetooth Laser Travel Mouse: Configuring as mouse |
44 |
> (**) Bluetooth Laser Travel Mouse: YAxisMapping: buttons 4 and 5 |
45 |
> (**) Bluetooth Laser Travel Mouse: EmulateWheelButton: 4, |
46 |
> EmulateWheelInertia: 10, EmulateWheelTimeout: 200 |
47 |
> (II) XINPUT: Adding extended input device "Bluetooth Laser Travel |
48 |
> Mouse" (type: MOUSE) |
49 |
> (**) Bluetooth Laser Travel Mouse: (accel) keeping acceleration scheme 1 |
50 |
> (**) Option "ConstantDeceleration" "10" |
51 |
> (**) Bluetooth Laser Travel Mouse: (accel) constant deceleration by 10.0 |
52 |
> (**) Option "AccelerationProfile" "-1" |
53 |
> (**) Bluetooth Laser Travel Mouse: (accel) acceleration profile -1 |
54 |
> (**) Bluetooth Laser Travel Mouse: (accel) acceleration factor: 2.000 |
55 |
> (**) Bluetooth Laser Travel Mouse: (accel) acceleration threshold: 4 |
56 |
> (II) Bluetooth Laser Travel Mouse: initialized for relative axes. |
57 |
> (II) config/udev: Adding input device Bluetooth Laser Travel Mouse |
58 |
> (/dev/input/mouse2) |
59 |
> (**) Bluetooth Laser Travel Mouse: Ignoring device from InputClass "nomouse" |
60 |
> |
61 |
> We can see the settings are applied. |
62 |
> |
63 |
> Another question is : I have to be root to edit this file. Is it |
64 |
> possible to put some settings under $HOME? |
65 |
> I have to be root to change the mouse sensitivity setting, and as I |
66 |
> can't bear fast mice, some people like them. |
67 |
|
68 |
No, as far as I know. But you can use xinput to modify it on runtime (though |
69 |
it's harder to make it just work this way when you plug in/connect your |
70 |
mouse). If it is your "personal" preference, you should set it up in your X session, |
71 |
not a global X configuration... xorg.conf and other are global configuration |
72 |
for all users. X server starts up before you log in to your session, so it would not |
73 |
know which user's config to load. |
74 |
|
75 |
yoyo@tabletka ~ $ xinput list |
76 |
⎡ Virtual core pointer id=2 [master pointer (3)] |
77 |
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] |
78 |
⎜ ↳ Wacom Serial Tablet PC Pen Tablet/Digitizer id=8 [slave pointer (2)] |
79 |
⎜ ↳ Wacom Serial Tablet PC Pen Tablet/Digitizer eraser id=7 [slave pointer (2)] |
80 |
⎜ ↳ TPPS/2 IBM TrackPoint id=9 [slave pointer (2)] |
81 |
⎜ ↳ Bluetooth Wireless Laser Mouse id=14 [slave pointer (2)] |
82 |
⎣ Virtual core keyboard id=3 [master keyboard (2)] |
83 |
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] |
84 |
↳ ThinkPad Extra Buttons id=6 [slave keyboard (3)] |
85 |
↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)] |
86 |
↳ Sleep Button id=11 [slave keyboard (3)] |
87 |
↳ Video Bus id=12 [slave keyboard (3)] |
88 |
↳ Power Button id=13 [slave keyboard (3)] |
89 |
yoyo@tabletka ~ $ xinput list-props 14 |
90 |
Device 'Bluetooth Wireless Laser Mouse': |
91 |
Device Enabled (145): 1 |
92 |
Device Accel Profile (264): 0 |
93 |
Device Accel Constant Deceleration (265): 1.000000 |
94 |
Device Accel Adaptive Deceleration (267): 1.000000 |
95 |
Device Accel Velocity Scaling (268): 10.000000 |
96 |
... |
97 |
yoyo@tabletka ~ $ xinput set-float-prop "Bluetooth Wireless Laser Mouse" "Device Accel Constant Deceleration" 3.0 |
98 |
|
99 |
yoyo |