1 |
Hi, |
2 |
|
3 |
I have trouble setting the sensitivity of my mouse. Let me explain |
4 |
what I try to achieve. I have two pointing devices, a touchpad and a |
5 |
Bluetooth mouse. One is usable, the other is way too fast for me to be |
6 |
usable. xf86-input-mouse has an interesting option, named |
7 |
'Sensitivity' which basically multiplies the movement of the device by |
8 |
a provided float. What I want to be able to do is to set the |
9 |
sensitivity of my devices separately. (eg 1.0 for the touchpad, and |
10 |
0.3 for the Bluetooth mouse). 'xset m' does not provide this |
11 |
sensitivity parameter, and acceleration is already at 1. |
12 |
To do that, I tried two methods : writing a xorg.conf, and using HAL rules. |
13 |
|
14 |
Using xorg.conf to hardcode values for /dev/input/mouse1 and |
15 |
/dev/input/mouse2 seemed to be a good approach at first, but in order |
16 |
to make Xorg use the Sections, one has to enable AllowEmptyInput and |
17 |
thus AutoAddDevices (from man xorg.conf) |
18 |
|
19 |
AutoAddDevices is what makes HAL automatically adds devices (USB mice, |
20 |
etc...) and I don't want to disable that. |
21 |
|
22 |
So I tried to put this in /etc/hal/fdi/policy/bt-mouse-speed.fdi : |
23 |
|
24 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
25 |
<deviceinfo version="0.2"> |
26 |
<device> |
27 |
<match key="info.product" string="Bluetooth Laser Travel Mouse"> |
28 |
<merge key="input.x11_options.Sensitivity" |
29 |
type="string">0.1</merge> |
30 |
</match> |
31 |
</match> |
32 |
</device> |
33 |
</deviceinfo> |
34 |
|
35 |
lshal says that about my mouse : |
36 |
|
37 |
udi = '/org/freedesktop/Hal/devices/bluetooth_acl_761ea325e_logicaldev_input' |
38 |
info.capabilities = {'input', 'input.mouse'} (string list) |
39 |
info.category = 'input' (string) |
40 |
info.parent = '/org/freedesktop/Hal/devices/bluetooth_acl_761ea325e' (string) |
41 |
info.product = 'Bluetooth Laser Travel Mouse' (string) |
42 |
info.subsystem = 'input' (string) |
43 |
info.udi = '/org/freedesktop/Hal/devices/bluetooth_acl_761ea325e_logicaldev_input' |
44 |
(string) |
45 |
input.device = '/dev/input/event12' (string) |
46 |
input.originating_device = |
47 |
'/org/freedesktop/Hal/devices/bluetooth_acl_761ea325e' (string) |
48 |
input.product = 'Bluetooth Laser Travel Mouse' (string) |
49 |
input.x11_driver = 'evdev' (string) |
50 |
linux.device_file = '/dev/input/event12' (string) |
51 |
linux.hotplug_type = 2 (0x2) (int) |
52 |
linux.subsystem = 'input' (string) |
53 |
linux.sysfs_path = |
54 |
'/sys/devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.0/bluetooth/hci0/hci0:11/input16/event12' |
55 |
(string) |
56 |
|
57 |
|
58 |
I don't have a big experience in writing hal rules, and I can't figure |
59 |
out why they don't work as expected. That's why I ask this question |
60 |
here : |
61 |
How can I set the mouse sensitivity on a per-device basis? |
62 |
|
63 |
Thanks for your attention, |
64 |
|
65 |
Mickael |