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