Bug 17681

Summary: Add Sensitivity option
Product: xorg Reporter: Olav Morken <olavmrk>
Component: Input/evdevAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED WONTFIX QA Contact: Xorg Project Team <xorg-team>
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 16699    
Attachments:
Description Flags
Patch which adds Sensitivity option to evdev none

Description Olav Morken 2008-09-20 09:13:01 UTC
Created attachment 19039 [details] [review]
Patch which adds Sensitivity option to evdev

This is a patch which adds the Sensitivity option (based on the same option in the xf86-input-mouse driver) to the evdev driver. This makes it relatively easy to adjust the speed on a per-mouse basis while using hal/hotplug.

Any chance of having this option included?
Comment 1 Peter Hutterer 2008-09-20 18:37:59 UTC
On Sat, Sep 20, 2008 at 09:13:01AM -0700, bugzilla-daemon@freedesktop.org wrote:
> This is a patch which adds the Sensitivity option (based on the same option in
> the xf86-input-mouse driver) to the evdev driver. This makes it relatively easy
> to adjust the speed on a per-mouse basis while using hal/hotplug.
> 
> Any chance of having this option included?

I'd prefer of fixing this by adjusting pointer accel for the device rather
than duplicating pointer accel in the driver.
Comment 2 Olav Morken 2008-09-21 08:12:48 UTC
> I'd prefer of fixing this by adjusting pointer accel for the device rather
> than duplicating pointer accel in the driver.

Do you mean adjusting the acceleration from the evdev driver when the device is added, or running a seperate program which waits for input devices to be added, and updates the acceleration when it does?

I can't see any clean way of adjusting the acceleration from the driver, since the X server doesn't seem to expose any interface for doing this.

As for running a seperate program, it is something I would prefer to avoid. If it is the only way, I suppose I could throw together some shell-scripts to do it.
Comment 3 Peter Hutterer 2008-09-21 18:54:11 UTC
Acceleration should not be done in the driver at all, unless otherwise
necessary.

We have fairly sophisticated ptraccel in master now, so having a program that
lets you adjust ptraccel for each device found would be the ideal solution.
All the accel parameters are accessible through options, so you could just
hook into HAL. If the device then gets added, it already gets added with the
right options.
Comment 4 Olav Morken 2008-09-22 11:03:15 UTC
> We have fairly sophisticated ptraccel in master now, so having a program that
> lets you adjust ptraccel for each device found would be the ideal solution.
> All the accel parameters are accessible through options, so you could just
> hook into HAL. If the device then gets added, it already gets added with the
> right options.

Ah, that is great news! Being able to control the speed of the mouse by setting options through HAL was always my goal. Adding a Sensitivity option to the evdev driver just seemed to be the most straigthforward way to achieve this. Feel free to close this bug.
Comment 5 Peter Hutterer 2008-09-22 16:36:53 UTC
Closing as WONTFIX, as we won't add that to the driver.
See above comments for further explanation.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.