[ltp] Mouse Wheel Emulation

Michael Gaber linux-thinkpad@linux-thinkpad.org
Thu, 10 Apr 2008 21:00:41 +0200


hmm, as i said, i just use -input-mouse and -input-keyboard and they 
work fairly well for me (especially since there is the
      Option "XkbModel"   "thinkpad60"
)

with this the back/forward-keys generate events, as well as the blue 
media-player keys.
the volume works out of the box without any interaction of xorg, which 
is the way it should be
i think my xorg listens to hal but i haven't used it for anything so far 
(at least USE="hal" is set for xorg-server here

hth Michael


Thomas Kahle schrieb:
> Michael Gaber wrote:
>>
>> Thomas Kahle schrieb:
>>> Hi,
>>>
>>>> first you should check if evdev somehow grabs the mouse and unmerge 
>>>> it, if it does.
>>> In fact, this is the case. On the other hand i don't want to unmerge 
>>> it, since I use it for my keyboard and now every of the little special 
>>> keys works perfectly.
>> what "little special keys" ? if you mean the audio-buttons on the lower 
>> right: wey work well with x11-drivers/xf86-input-keyboard and my xorg.conf.
>>
>> so i killed evdev and use -keyboard and -mouse and they work exactly the 
>> way I'd like them to
> 
> In particular the volume keys and and the forward backward keys which I 
> use systemwide for walking through tabs, and moving around in "okular".
> 
> Actually I think the keyboard driver is deprecated, but I must admid, 
> there are problems with evdev.
> The other thing is, that I use autodetection of input devices through 
> hal (which was introduced in xorg-server 1.4.0.90) and somehow I make 
> mistakes with the hal policy files i think. Unfortunately i cannot find 
> any documentation on how to configure the mouse with hal.
> On the other hand i cannot accept the "disable hal in xorg solutions" 
> presented everywhere. This should not be the way.
> 
> Do you use hal in xorg ? If so, do you have fdi files for the mouse ?
> 
> Thanks already
> Thomas
> 
>>> It's not an xorg.conf thing, actually the x-server 1.4.0.90 ignores 
>>> xorg.conf and relies on hal to be informed about the devices...
>>>
>>> So, I know how to configure hal, the remaining question is, whether it 
>>> is possible to get scrolling with evdev driver, or not...
>>>
>>> thanks
>>> Thomas
>>>
>>>> then you could check my yorg.conf, which enables scrolling with the 
>>>> middle button in 4 directions
>>>>
>>>> Thomas Kahle schrieb:
>>>>> Hi,
>>>>>
>>>>> i have a Thinkpad X61s without Touchpad, did anyone here succeed in
>>>>> enabling mouse wheel emulation on this or a similar machine ?
>>>>>
>>>>> I use xorg 1.4.0.90 and input-mouse 1.2.3 on gentoo.
>>>>> The relevant part of xorg.conf looks like:
>>>>>
>>>>> Section "InputDevice"
>>>>> ~        Identifier  "Mouse0"
>>>>> ~        Driver      "mouse"
>>>>> ~        Option      "Protocol" "auto"
>>>>> ~        Option      "Device" "/dev/input/mice"
>>>>> ~        Option      "ZAxisMapping" "4 5 6 7"
>>>>> ~        Option      "EmulateWheel"        "on"
>>>>> ~        Option      "EmulateWheelTimeOut" "200"
>>>>> ~        Option      "EmulateWheelButton"  "2"
>>>>> ~        Option      "YAxisMapping"        "4 5"
>>>>> ~        Option      "XAxisMapping"        "6 7"
>>>>> EndSection
>>>>>
>>>>> Although I experimented a lot already with this (changing the mapping
>>>>> buttons and so on...) it just shows no effect. Pasting with middle
>>>>> button works, scroll does not.
>>>>>
>>>>> ~From the logs i can tell that the option is read and recongnized :
>>>>>
>>>>>  ...
>>>>> (**) Mouse0: Device: "/dev/input/mice"
>>>>> (**) Mouse0: Protocol: "auto"
>>>>> (**) Option "CorePointer"
>>>>> (**) Mouse0: always reports core events
>>>>> (**) Option "Device" "/dev/input/mice"
>>>>> (==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
>>>>> (**) Option "ZAxisMapping" "4 5 6 7"
>>>>> (**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
>>>>> (**) Option "EmulateWheel" "on"
>>>>> (**) Option "EmulateWheelButton" "2"
>>>>> (**) Option "EmulateWheelTimeout" "200"
>>>>> (**) Option "XAxisMapping" "6 7"
>>>>> (**) Mouse0: XAxisMapping: buttons 6 and 7
>>>>> (**) Option "YAxisMapping" "4 5"
>>>>> (**) Mouse0: YAxisMapping: buttons 4 and 5
>>>>> (**) Mouse0: EmulateWheel, EmulateWheelButton: 2, EmulateWheelInertia:
>>>>> 10, EmulateWheelTimeout: 200
>>>>> (**) Mouse0: Buttons: 11
>>>>> (**) Mouse0: Sensitivity: 1
>>>>>  ...
>>>>>
>>>>> Any Ideas ?
>>>>>
>>>>> thanks
>>>>> Thomas
>>>
> 
>