[systemd-devel] [RFC] hwdb: add MOUSE_WHEEL_CLICK_ANGLE as property
Peter Hutterer
peter.hutterer at who-t.net
Tue Jan 13 21:57:03 PST 2015
On Mon, Jan 12, 2015 at 09:48:55AM +1000, Peter Hutterer wrote:
> Most mice have a wheel click angle of 15 degrees, i.e. 24 clicks per full
> wheel rotation. Some mice, like the Logitech M325 have a larger angle. To
> allow userspace to make use of that knowledge, add a property to the hwdb.
> ---
> libinput patches to read this are here:
> http://lists.freedesktop.org/archives/wayland-devel/2015-January/019340.html
>
> This is an RFC, unless we ack this for libinput there's no user for it so
> I'd like to get both out first for review. Please don't merge yet.
alrighty, we'll go ahead with that for libinput. If anyone has any
suggestions let me know, otherwise I'll push this over the next couple of
days.
Cheers,
Peter
>
> hwdb/70-mouse.hwdb | 44 +++++++++++++++++++++++++++++++-------------
> 1 file changed, 31 insertions(+), 13 deletions(-)
>
> diff --git a/hwdb/70-mouse.hwdb b/hwdb/70-mouse.hwdb
> index 4a4603c..f1638e0 100644
> --- a/hwdb/70-mouse.hwdb
> +++ b/hwdb/70-mouse.hwdb
> @@ -28,6 +28,29 @@
> # mouse:usb:v17efp6019:*
> # mouse:*:name:Lenovo Optical USB Mouse:
> #
> +# To add local entries, create a new file
> +# /etc/udev/hwdb.d/71-mouse-local.hwdb
> +# and add your rules there. To load the new rules execute (as root):
> +# udevadm hwdb --update
> +# udevadm trigger /dev/input/eventXX
> +# where /dev/input/eventXX is the mouse in question. If in
> +# doubt, simply use /dev/input/event* to reload all input rules.
> +#
> +# If your changes are generally applicable, open a bug report on
> +# http://bugs.freedesktop.org/enter_bug.cgi?product=systemd
> +# and include your new rules, a description of the device, and the
> +# output of
> +# udevadm info /dev/input/eventXX
> +# (or /dev/input/event*).
> +#
> +# Allowed properties are:
> +# MOUSE_DPI
> +# MOUSE_WHEEL_CLICK_ANGLE
> +#
> +#########################################
> +# MOUSE_DPI #
> +#########################################
> +#
> # DPI settings are specified as
> # MOUSE_DPI=<dpi>[@<frequency>]
> #
> @@ -64,20 +87,15 @@
> # third-party software) must not be entered into this file, use a local
> # hwdb instead.
> #
> -# To add local entries, create a new file
> -# /etc/udev/hwdb.d/71-mouse-local.hwdb
> -# and add your rules there. To load the new rules execute (as root):
> -# udevadm hwdb --update
> -# udevadm trigger /dev/input/eventXX
> -# where /dev/input/eventXX is the mouse in question. If in
> -# doubt, simply use /dev/input/event* to reload all input rules.
> +#########################################
> +# MOUSE_WHEEL_CLICK_ANGLE #
> +#########################################
> +#
> +# The angle in degrees per mouse wheel 'click', specified as
> +# MOUSE_WHEEL_CLICK_ANGLE=<degrees>
> +#
> +# Most mice have a 15 degree click stop (24 clicks per full rotation).
> #
> -# If your changes are generally applicable, open a bug report on
> -# http://bugs.freedesktop.org/enter_bug.cgi?product=systemd
> -# and include your new rules, a description of the device, and the
> -# output of
> -# udevadm info /dev/input/eventXX
> -# (or /dev/input/event*).
>
> #
> # Sort by by brand, type (usb, bluetooth), DPI, frequency.
> --
> 2.1.0
>
More information about the systemd-devel
mailing list