Gentoo Archives: gentoo-desktop

From: Mickael Chazaux <mickael.chazaux@×××××.com>
To: gentoo-desktop@l.g.o
Subject: Re: [gentoo-desktop] Re: Question : How to set per-device mouse sensitivity
Date: Mon, 01 Mar 2010 19:02:26
Message-Id: bc36f8ed1003011056s608814dem4d58472e2d2c60d0@mail.gmail.com
In Reply to: [gentoo-desktop] Re: Question : How to set per-device mouse sensitivity by Duncan <1i5t5.duncan@cox.net>
1 Hi,
2
3 I understood what went wrong.
4
5 >> So I tried to put this in /etc/hal/fdi/policy/bt-mouse-speed.fdi :
6 >>
7 >> <?xml version="1.0" encoding="ISO-8859-1"?> <deviceinfo version="0.2">
8 >>   <device>
9 >>         <match key="info.product" string="Bluetooth Laser Travel Mouse">
10 >>                <merge key="input.x11_options.Sensitivity"
11 >> type="string">0.1</merge>
12 >>         </match>
13 >>     </match>
14 >>   </device>
15 >> </deviceinfo>
16 >>
17
18 This XML fragment is not valid : there is an extra </match>. That's
19 why HAL did not use it and drove me nuts for hours. FDI files may be
20 validated against /usr/share/hal/fdi/fdi.dtd
21
22 > Note that the hal default is evdev for both mice and keyboards.  See that
23 > input.x11_driver parameter?  evdev.  Yet you don't say anything about
24 > whether evdev has that same sensitivity parameter.
25
26 I did not realized until your last message that data put in fdi files
27 is reported by lshal... It helps a lot!
28
29 > Checking the evdev manpage, I don't see anything like that, BUT...
30 >
31 > Checking the xorg.conf manpage, InputDevice section, I see the
32 > "ConstantDeceleration" option.  That looks to be what you want.
33
34 Yes ! ;-)
35
36 > Then, as you were already doing above, you can use an x11_options based
37 > key in your *.fdi.
38
39 That's what I did, and it works well. Here is the fdi file I finally wrote :
40
41 <?xml version="1.0" encoding="ISO-8859-1"?>
42 <deviceinfo version="0.2">
43 <device>
44 <match key="info.product" contains="Bluetooth Laser Travel Mouse">
45 <merge key="input.x11_options.ConstantDeceleration"
46 type="string">2</merge>
47 <merge key="input.x11_options.AccelerationProfile"
48 type="string">-1</merge>
49 </match>
50 </device>
51 </deviceinfo>
52
53 Trap : Mouse speed decreases when ConstantDeceleration increases.
54
55 Thank you for your useful and fast reply,
56
57 Mickael

Replies

Subject Author
[gentoo-desktop] Re: Question : How to set per-device mouse sensitivity Duncan <1i5t5.duncan@×××.net>