Commit Graph

127 Commits

Author SHA1 Message Date
Hui Wang
ee527a712a keymap: Add microphone mute keymap for several HP laptops
On these several HP laptops, the microphone mute hotkey is "Fn+F8" and
the scancode for this hotkey is 0x81, but this scancode was mapped to
fn_esc in the HP generic keymap section. To fix this problem, we add
a machine specific keymap section to add the correct keymap rule.

BugLink: https://bugs.launchpad.net/bugs/1409721
BugLink: https://bugs.launchpad.net/bugs/1334968
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-03-01 13:34:11 -05:00
Anthony G. Basile
298f6c8128 src/udev/udev-builtin.c: remove legacy optional keymap
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-02-11 18:40:16 -05:00
Bastien Nocera
821cef6a5b hwdb: Bind "toolbox" buttons to the Windows key
One would expect pressing the button to go to an overview / show
applications mode, we thus map it to leftmeta, the Windows key.

See https://bugzilla.gnome.org/show_bug.cgi?id=658602#c17

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-02-08 08:25:07 -05:00
Marcel Holtmann
c676d2825d hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-02-08 08:24:25 -05:00
Peter Hutterer
b51ba787a3 hwdb: add a touchpad hwdb
Currently used to tag devices in the new Lenovo *50 series and the X1 Carbon
3rd. These laptops re-introduced the physical trackpoint buttons that were
missing from the *40 series but those buttons are now wired up to the
touchpad.

The touchpad now sends BTN_0, BTN_1 and BTN_2 for the trackpoint. The same
button codes were used in older touchpads that had dedicated scroll up/down
buttons. Input drivers need to work around this and thus know what they're
dealing with.

For the previous gen we introduced INPUT_PROP_TOPBUTTONPAD in the kernel, but
the resulting mess showed that these per-device quirks should really live in
userspace.

The list currently includes the X1 Carbon 3rd PNPID, others will be added as
get to know which PNPID they have.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-02-08 08:21:43 -05:00
Maxim Mikityanskiy
3bbbd500c9 hwdb: restore comments about MSI devices
Some time ago 95-keymap.rules was replaced by
60-keyboard.hwdb. Original comments for MSI laptops (that were in
95-keymap.rules) were removed, but I think they are important for
understanding what's going on.

https://bugs.freedesktop.org/show_bug.cgi?id=88412

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-25 16:16:13 -05:00
Peter Hutterer
1b0002257b hwbd: add click angle for the Logitech M325
This device has 18 stops per rotation == 20 degree angle. Advertised as
"Micro-precise scrolling"

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:43:51 -05:00
Peter Hutterer
9cf4514e01 hwdb: add MOUSE_WHEEL_CLICK_ANGLE as property
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.

This allows for better predictive scrolling. e.g. a mouse that has a smaller
click angle will scroll faster, with this value you can accommodate this
where needed. Likewise, using "half turn of the wheel" or "full turn of the
wheel" as a UI element becomes possible.

This addition is mainly driven by libinput 0.8, having the angle enables
libinput to provide an API that distinguishes between a physical distance
(like touchpad scrolling does) and discrete steps (wheel clicks).
Callers can choose what they prefer based on the device.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:43:13 -05:00
Lennart Poettering
8f2b1bb6dd hwdb: add Kay's Laser Mouse to the dpi database
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:42:32 -05:00
Peter Hutterer
7cbac7b22b hwdb: add missing line between the G400 entries
Error, DATA expected but got 'mouse:usb:v046dpc24c:name:Logitech G400s Optical
Gaming Mouse:' in '/etc/udev/hwdb.d/70-mouse.hwdb':
Error, MATCH expected but got ' MOUSE_DPI=400@1000 *800@1000 2000@1000
4000@1000' in '/etc/udev/hwdb.d/70-mouse.hwdb':

Introduced in 6366e349

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:41:21 -05:00
Peter Hutterer
fe1d7746fe hwdb: note that we care about the maximum frequency in MOUSE_DPI
Devices with dynamic frequency scaling adjust the frequency as needed. For
those we only care about the maximum frequency, not the various in betweens.

https://bugs.freedesktop.org/show_bug.cgi?id=87435#c8

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:40:41 -05:00
Zbigniew Jędrzejewski-Szmek
971c473db7 hwdb: adjust max frequency of Logitech RX 250
https://bugs.freedesktop.org/show_bug.cgi?id=87435

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:39:00 -05:00
Jonas Ådahl
8736c07c8b hwdb: mouse DPI data, Logitech Gaming Mouse G400
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-17 08:38:18 -05:00
Anthony G. Basile
2e73ff7999 hwdb: bring bluetooth and mouse hwdb's up to date 2015-01-07 16:11:40 -05:00
Peter Hutterer
34d0036db7 hwdb: revert Logitech Optical USB Mouse
Reporter says he incorrectly measured the data but the device is not available
anymore to correct it. We'll have to wait for someone else to submit the data.

https://bugs.freedesktop.org/show_bug.cgi?id=87343

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-07 16:08:32 -05:00
Tom Gundersen
ae0ea6cd59 hwdb: mouse - add Razer Abyssus
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:43:30 -05:00
Peter Hutterer
fd378a7680 hwdb: add rule and first entry for PS/2 mice
https://bugs.freedesktop.org/show_bug.cgi?id=87037

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:42:46 -05:00
Frank Theile
8c72ad4772 hwdb: Microsoft Wireless Laser Mouse 8000 DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87587

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:41:42 -05:00
Frank Theile
095677014d hwdb: Lenovo USB mouse MO28UOL DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87504

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29 11:41:04 -05:00
Anthony G. Basile
1e1eddac8d hwdb/60-keyboard.hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:16:24 -05:00
Zbigniew Jędrzejewski-Szmek
288e4abc01 hwdb: move Logitech mouse to the right spot
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:13:02 -05:00
Erik Auerswald
9d31c53dbf hwdb: Logitech, Inc. RX 250 Optical Mouse DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87435

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:12:28 -05:00
Tim JP
526ff8804d hwdb: Logitech, Inc. RX 300 Optical Mouse DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87456

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-20 11:11:28 -05:00
Marc Schmitzer
c01838a8db hwdb: add Lenovo 3000 N200 special key
https://bugs.freedesktop.org/show_bug.cgi?id=87377

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:23:47 -05:00
Peter Hutterer
cef254435c hwdb: Logitech MX1000, another Lenovo USB mouse
Provided by Benjamin Bellec

https://bugs.freedesktop.org/show_bug.cgi?id=87343

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:22:46 -05:00
Peter Hutterer
4255a0267f hwdb: more an entry for the MS Sculpt Ergonomic
Note that the MS receivers likely work like the Logitech ones, i.e. all
devices connected show up with the same vid/pid/name. Full evidence remains to
be gathered.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:22:04 -05:00
Daniel Mack
6701bca683 hwdb: fix ordering
We sort by default DPI, not the first one in the list.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:21:26 -05:00
Daniel Mack
1e40ba9756 hwdb: Logitech G400s
Provided by Peter Hutterer:

  https://bugs.freedesktop.org/show_bug.cgi?id=87332

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:20:46 -05:00
Harald Hoyer
0c0e1571b8 hwdb: Logitech MX 518
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:19:39 -05:00
Zbigniew Jędrzejewski-Szmek
b0c9fe1f49 hwdb: add more mice
https://bugs.freedesktop.org/show_bug.cgi?id=87271

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:18:56 -05:00
Zbigniew Jędrzejewski-Szmek
b3943faca5 hwdb: sort mice by brand,type,dpi,frequency
This way entries from the same brand with the same dpi and frequency
can be coalesced. It is also visually easier to find the right DPI
than order hexadecimal identifiers.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:17:58 -05:00
Marcel Holtmann
260e4b3a87 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-17 14:14:49 -05:00
Torstein Husebø
9dca886fc2 hwdb: fix typo
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-11 11:18:25 -05:00
Lennart Poettering
94991570b1 hwdb: add two more mice to the DPI database
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-11 11:17:24 -05:00
Lennart Poettering
3f67592ea1 hwdb: add another Logitech mouse (M-BZ96C)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-11 11:16:38 -05:00
Lennart Poettering
c1a53aba66 hwdb: add DPI data for M325 mouse
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-11 11:16:04 -05:00
Lennart Poettering
aa7b989905 hwdb: update PCI, USB, OUI databases
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-11 11:15:20 -05:00
Peter Hutterer
16e3cb106e hwdb: add more mouse DPI entries
Plus a note for Logitech devices using the unified receiver: these devices
include their wireless PID in the name, the usb PID/VID is the same for all.
In kernel 3.19 the actual model number will be the name, but the patches are
still a bit in flux at this point. In the future each device will need two
entries for pre+3.19 and 3.19.

https://bugs.freedesktop.org/show_bug.cgi?id=87037
https://bugs.freedesktop.org/show_bug.cgi?id=87072
https://bugs.freedesktop.org/show_bug.cgi?id=87162

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-11 11:14:53 -05:00
Marcel Holtmann
f8dfb6283d hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-04 16:39:18 -05:00
Peter Hutterer
3481b5b976 hwdb: add a new db for the DPI/frequency settings of mice
Pointer acceleration for relative input devices (mice, trackballs, etc.)
applies to the deltas of the device. Alas, those deltas have no physical
reference point - a delta of 10 may be caused by a large movement of a
low-dpi mouse or by a minute movement of a high-dpi mouse.
Which makes pointer acceleration a bit useless and high-dpi devices
essentially unusable.

In an ideal world, we could read the DPI from the device directly and work
with that. In the world we actually live in, we need to compile this list
manually. This patch introduces the database, with the usual match formats
and a single property to be set on a device: MOUSE_DPI

That is either a single value for most mice, or a list of values for mice
that can change resolution at runtime. The exact format is detailed in the
hwdb file.

Note that we're explicitly overshooting the requirements we have for
libinput atm. Frequency could be detected in software and we don't
actually use the list of multiple resolutions (because we can't detect
when they change anyway). However, we might as well collect those values
from the get-go, adding/modifying what will eventually amount to hundreds
of entries is a bit cumbersome.

Note: we rely on the input_id builtin to tag us as mouse first, ordering
of the rules is important.

(David: fixed up typos and moved hwdb file into ./hwdb/)

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-28 08:12:30 -05:00
Peter Hutterer
c317efd55c hwdb: fix a typo
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-27 16:50:49 -05:00
Marcel Holtmann
73769714f5 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-01 13:33:18 -04:00
Hans de Goede
fb45281a7a keymap: Ignore brightness keys on Dell Inspiron 1520 to avoid double events
On the Dell Inspiron 1520 both the atkbd and acpi-video input devices report
an event for pressing the brightness up / down key-combos, resulting in user
space seeing double events and increasing / decreasing the brightness 2 steps
for each keypress.

This hwdb snippet suppresses the atkbd events, making the Inspiron 1520 work
like most modern laptops which emit brightness up / down events through
acpi-video only.

Reported by Pavel Malyshev <p.malishev@gmail.com>

https://bugzilla.redhat.com/show_bug.cgi?id=1141525

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-31 06:29:53 -04:00
Hans de Goede
4e8a74b75a hwdb: Add mapping for special keys on compaq ku 0133 keyboards
The compaq ku 0133 keyboard has 8 special keys at the top:
http://lackof.org/taggart/hacking/keyboard/cpqwireless.jpg

3 of these use standard HID usage codes from the consumer page, the 5
others use part of the reserved 0x07 - 0x1f range.

This commit adds mapping for this keyboard for these reserved codes, making
the other 5 keys work.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-25 11:24:22 -04:00
Martin Pitt
914f56525b keymap: Fix touchpad toggle key on Asus laptops
https://launchpad.net/bugs/1377352

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-07 15:40:22 -04:00
Martin Pitt
40db1e2b6e keymap: Fix touchpad toggle on Toshiba Satellite P75-A7200
Just like everywhere else we use KEY_F21 instead of KEY_TOUCHPAD_TOGGLE for X
friendliness.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-07 15:39:43 -04:00
Marcel Holtmann
18466174a8 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-02 06:06:15 -04:00
Stefan Brüns
7031c49bf6 udev/hwdb: New Entry for Dell XPS12 9Q33 keyboard
https://bugs.freedesktop.org/show_bug.cgi?id=84437

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-30 16:07:52 -04:00
Marcel Holtmann
c0bd83237e hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-10 21:01:57 -04:00
Marcel Holtmann
8da8c2123c hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-08 07:16:19 -04:00