Commit Graph

189 Commits

Author SHA1 Message Date
Anthony G. Basile
7b3556d1ea hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 13:05:05 -04:00
Bastien Nocera
c61e6c912b udev: Add rules for accelerometer orientation quirks
This commit adds a rules file to extract the properties from hwdb
to set on i2c IIO devices. This is used to set the ACCEL_MOUNT_MATRIX
property on IIO devices, to be consumed by iio-sensor-proxy or
equivalent daemon.

The hwdb file contains documentation on how to write quirks. Note
however that mount information is usually exported in:
- the device-tree for ARM devices
- the ACPI DSDT for Intel-compatible devices
but currently not extracted by the kernel.

Also note that some devices have the framebuffer rotation that changes
between the bootloader and the main system, which might mean that the
accelerometer is then wrongly oriented. This is a missing feature in the
i915 kernel driver: https://bugs.freedesktop.org/show_bug.cgi?id=94894
which needs to be fixed, and won't require quirks.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 10:55:12 -05:00
Anthony G. Basile
48e435dcfd hwdb, rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 10:52:02 -05:00
Anthony G. Basile
d08aa94fec hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-23 11:44:20 -05:00
Anthony G. Basile
114908765f hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25 13:53:22 -04:00
Anthony G. Basile
20a05c562a hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10 07:57:32 -04:00
Anthony G. Basile
25a718a138 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:12:21 -04:00
Anthony G. Basile
7f3b6d02cc hwdb: update 2016-02-27 02:57:08 -05:00
Anthony G. Basile
3677c2e3ae hwdb and rules: import changes from upstream. 2015-10-12 06:43:45 -04:00
Anthony G. Basile
9cb37638de rules: import 20-net-ifname.hwdb from upstream.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:20:16 -04:00
Marcel Holtmann
3792b2d508 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:15:31 -04:00
Kay Sievers
871ed1d9f7 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:14:29 -04:00
Peter Hutterer
af535a4466 hwdb: move a couple of entries to expected sort order
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:12:23 -04:00
Peter Hutterer
d5ffc84249 hwdb: add Logitech MX Revolution
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:11:13 -04:00
Lennart Poettering
d67ff38fd4 hwdb: update databases from upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:10:33 -04:00
Marcel Holtmann
532135e20c hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:09:55 -04:00
Mario Limonciello
4c3c4bc941 hwdb: add support for Alienware graphics amplifier
Unplugging and plugging in the cable will create various scancodes
on the keyboard controller.

Userspace within X should be able to interact with these to show
interesting messages. Assign them to generic prog1/prog2.

(David: add comment to hwdb explaining that these keycodes are reserved)

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:09:21 -04:00
dslul
37f3e3b0f7 keymap: Add Samsung NP350V and NP670Z
typo

keymap: Add Samsung NP350V and NP670Z

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:08:42 -04:00
Peter Hutterer
43b1c1c4e8 hwdb: update Logitech's unifying receiver devices
Since 3.19, the devices have the proper vid/pid and the model number in the
name.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:08:04 -04:00
Peter Hutterer
a3d396fd36 hwdb: add Logitech TrackMan Marble Wheel USB
DPI is guesswork, no specs found on the web and calculating DPIs on a
trackball is tedious.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:07:27 -04:00
Peter Hutterer
62485d6d1c hwdb: add Apple MagicMouse entry 2015-07-20 08:06:45 -04:00
Kay Sievers
deccfc8b10 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:05:47 -04:00
Marcel Holtmann
cead3921ab hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:05:00 -04:00
Peter Hutterer
a5cb5f0b4c Revert "hwdb: add a touchpad hwdb"
The main purpose of this hwdb was to tag touchpads that have the physical
trackstick buttons wired to the touchpad (Lenovo Carbon X1 3rd, Lenovo *50
series).  This hwdb is not required on kernels 4.0 and above, the kernel now
re-routes button presses through the trackstick's device node. Userspace does
not need to do anything.

See kernel commit cdd9dc195916ef5644cfac079094c3c1d1616e4c.

This reverts commit 001a247324b44c0e0b8fdba41a6fc66e7465b8b6.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:28:05 -04:00
Lennart Poettering
6fe5ac51c6 update hardware databases
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-26 10:27:22 -04:00
Peter Hutterer
1b8e79f601 hwdb: add MS Arc Touch Mouse SE
https://bugs.freedesktop.org/show_bug.cgi?id=90540

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-26 10:26:42 -04:00
Peter Hutterer
51421b5d8f hwdb: add Logitech M570 trackball
http://www.logitech.com/en-us/product/wireless-trackball-m570#specs
https://bugzilla.redhat.com/show_bug.cgi?id=1217881

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-26 10:26:00 -04:00
Hans de Goede
0bd129628e hwdb: Add trackpoint sensitivity setting for Thinkpad X230 tablet
This model needs the trackpoint sensitivity to be boosted to not be too slow
to be usable, see: https://bugzilla.redhat.com/show_bug.cgi?id=1200717

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-26 09:55:21 -04:00
Zbigniew Jędrzejewski-Szmek
ece5474ed4 hwdb: coalesce same pointingstick entries into one
Multiple models in the same hardware series are likely to have similar
specs. We should use organization similar to hwdb/60-evdev.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:54:17 -04:00
Hans de Goede
ab24ad9042 udev: hwdb: Add trackpoint sensitivity settings for Lenovo X240 and 540p
Like the T440s these need the sensitity to be set significantly higher
then the default of 128 for the trackpoint to be usable. Like with the
T440s 200 seems to be a good value to get a reasonable but not too high
sensitivity.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:53:46 -04:00
Peter Hutterer
43bca610f2 hwdb: fix typo - "sort by by..." -> "sort by..."
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:53:13 -04:00
Peter Hutterer
b71f26d8f5 hwdb: add HP X1000 DPI info
Device name is PixArt, but it's sold as a HP brand.

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

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:52:32 -04:00
Benjamin Tissoires
b574f77178 hwdb: add Chromebook pixel (2015) resolution fix
The atmel driver sets a default resolution of 20 for each touchpads it
creates. On this model, 10 is more appropriate.

The resolution is not set for the touchscreen by the kernel, so match
the name to both touchpad and touchscreen.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:51:49 -04:00
Benjamin Tissoires
e571fca1c0 hwdb: add evdev entry for the Lenovo X230 series touchpad
The Lenovo X230 advertize a vertical resolution of 136, which gives a true
size of 31 mm. The actual physical size of the touchpad is 40 mm, so
override the resolution to 100.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:51:11 -04:00
Hans de Goede
5983d43fbd hwdb: Add entries for the pointingstick on 2 Dell Latitudes
The pointingstick of the Dell Latitude E6400 is somewhat slow by default,
whereas the pointingstick of the Dell Latitude D620 is much too fast by
default, set POINTINGSTICK_CONST_ACCEL for both of them to adjust for this.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:50:16 -04:00
Hans de Goede
55c5046e38 hwdb: Add entries for the trackpoint on 2 Thinkpads
Lenovo has changed the sensitivity of the trackpoint on the x240 / T440s / T540
generation of Thinkpads, making them somewhat insensitive by default, add a
hwdb entry to tweak the sensitivity setting.

The ThinkPad X200s is way way too slow by default and unless you push the
trackpoint quite hard only sends delta events in the 1-2 range, tweak the
sensitivity to make it send a wider range of deltas and apply a const accel
factor to make it have a more reasonable speed by default.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:49:36 -04:00
Hans de Goede
c17bf40825 udev: keyboard-builtin: Add support for setting IBM trackpoint sensitivity
IBM / Lenovo trackpoints allow specifying a sensitivity setting through a
ps/2 command, which changes the range of the deltas sent when using the
trackpoint.

On some models with normal usage only deltas of 1 or 2 are send, resulting in
there only being 2 mouse cursor movement speeds, rather than the expected fluid
scale. Changing the sensitivity to a higher level than the bootup default fixes
this.

This commit adds support for setting a POINTINGSTICK_SENSITIVITY value
in hwdb to allow changing the sensitivity on boot through udev / hwdb.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:46:48 -04:00
Hans de Goede
eb38f78d79 udev: Add hwdb file for setting pointingstick properties
There is quite a wide spread in the delta events generated by pointingsticks,
some generate deltas of 1-2 under normal use, while others generate deltas
from 1-20.

This commit adds a hwdb file which allows specifying a per model
POINTINGSTICK_CONST_ACCEL value which can be used by the userspace input stack
to normalize the deltas so that all pointingsticks get the same feeling ootb.

The hwdb matching re-uses the existing 60-evdev.rules.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-03 13:45:55 -04:00
Martin Pitt
d199a52892 hwdb: Fix wireless switch on Dell Latitude
It does not generate a release event.

https://launchpad.net/bugs/1441849

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-04-17 19:24:50 -04:00
Anthony G. Basile
36f74863ad 60-keyboard.hwdb: update comment 2015-04-12 17:00:01 -04:00
Gavin Li
24f869b793 hwdb: add Samsung ATIV Book 6 / 8
This adds support for the keyboard illumination keys and fixes
Fn+F1.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-04-12 13:16:36 -04:00
Peter Hutterer
8282539ff1 hwdb: set the resolution for a couple of bcm5974 touchpads
Verified for the 5,1 Macbook, the others are guesses based on the list of
supported devices of the moshi trackpad protector.
http://www.moshi.com/trackpad-protector-trackguard-macbook-pro#silver

Resolution calculated based on the min/max settings set in the kernel driver,
divided by the physical size. This is probably slightly off, but still better
than no resolution at all.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-04-12 13:15:52 -04:00
Anthony G. Basile
c5bf58cafc udev: builtin-keyboard: add support for EVDEV_ABS_*
Parse properties in the form
EVDEV_ABS_00="<min>:<max>:<res>:<fuzz>:<flat>"

and apply them to the kernel device. Future processes that open that device
will see the updated EV_ABS range.

This is particularly useful for touchpads that don't provide a resolution in
the kernel driver but can be fixed up through hwdb entries (e.g. bcm5974).

All values in the property are optional, e.g. a string of "::45" is valid to
set the resolution to 45.

The order intentionally orders resolution before fuzz and flat despite it
being the last element in the absinfo struct. The use-case for setting
fuzz/flat is almost non-existent, resolution is probably the most common case
we'll need.

To avoid multiple hwdb invocations for the same device, replace the
hwdb "keyboard:" prefix with "evdev:" and drop the separate 60-keyboard.rules
file. The new 60-evdev.rules is called for all event nodes
anyway, we don't need a separate rules file and second callout to the hwdb
builtin.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-04-12 13:09:45 -04:00
Blaž Tomažič
cb26a75abd hwdb: mouse DPI data, Roccat Lua (ROC-11-310)
https://bugs.freedesktop.org/show_bug.cgi?id=89743

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-04-12 11:18:11 -04:00
Marcel Holtmann
c810c02115 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-04-12 11:18:04 -04:00
Zbigniew Jędrzejewski-Szmek
db9611f269 hwdb: add HP ProBook 450G0
https://bugs.freedesktop.org/show_bug.cgi?id=89684

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-04-12 11:17:59 -04:00
Kay Sievers
a45a9a1c32 rules: keyboard - prefix "atkbd" match strings like we prefix the "name" strings
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-03-18 17:06:01 -04:00
Kay Sievers
bf856b7c02 rules: keyboard - remove platform from comments + prefix "atkbd" match strings like we prefix the "name" strings
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-03-18 16:21:02 -04:00
David Herrmann
bd4a68b3fb hwdb: convert to generic input-modalias matches
There is no reason to match on usb-modaliases, if we can use the
input-modalias to achieve the same. This commit changes the
keyboard-lookups to not be restricted to USB, but pass all modaliases to
the hwdb. Furthermore, we convert all usb:* matches to input:* matches,
thus getting rid of any ambiguity if multiple usb devices are chained (or
a bluetooth device / etc. is on top).

Note that legacy keyboard:usb:* matches are still supported, but
deprecated. If possible, please use keyboard:input:* matches instead.

This is a required step to make other input devices work with
60-keyboard.hwdb. Other bus-types are often chained on usb and we want to
avoid any ambiguity here if we incorrectly match on a USB hub.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-03-18 16:03:08 -04:00
Kay Sievers
d053d3b866 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-03-18 16:02:07 -04:00