Commit Graph

57 Commits

Author SHA1 Message Date
Anthony G. Basile
3677c2e3ae hwdb and rules: import changes from upstream. 2015-10-12 06:43:45 -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
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
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
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
Zbigniew Jędrzejewski-Szmek
4ba6c8be63 hwdb: fix Dell XPS12 9Q33 key name
https://bugs.freedesktop.org/show_bug.cgi?id=84437

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-03-18 15:59:06 -04:00
Lubomir Rintel
d58e83822c hwdb: fix ThinkPad X* Tablet special keys
ThinkPad tablet firmware has DMI product name and version reversed:

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: LENOVO
        Product Name: 7762AS1
        Version: ThinkPad X61 Tablet
        Serial Number: LKZCDH2
        UUID: 6ADBC681-4FC9-11CB-844F-B47CB9210BE2
        Wake-up Type: Power Switch
        SKU Number: Not Specified
        Family: ThinkPad X61 Tablet

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-03-01 13:39:42 -05:00
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
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
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
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
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
c317efd55c hwdb: fix a typo
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-27 16:50:49 -05: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
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
Martin Pitt
e7adcb6331 keymap: Adjust for more Samsung 900X4 series
Reportedly also applies to NP900X4B, so relax the match to apply to all models
of this series.

https://launchpad.net/bugs/902332

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-08-27 21:42:26 -04:00
Zbigniew Jędrzejewski-Szmek
ba33e83c5a hwdb: update format description and document reloading
https://bugs.freedesktop.org/show_bug.cgi?id=82311

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-08-11 07:39:29 -04:00
Martin Pitt
60728b7c12 keymap: Fix HP Pavillon DV7
Properly disable scan code 94 instead of producing KEY_0.

https://launchpad.net/bugs/1322770

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-08-05 08:50:07 -04:00
Martin Pitt
daab6c9ae9 keymap: Annotate all micmute workarounds
Add a comment to all assignments to f20 that this actually should be "micmute"
in a future when we aren't limited by X.org's key code limiations any more.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-08-04 09:59:46 -04:00
Hui Wang
5a3a66d76c keymap: Add microphone mute keymap for Dell Latitude
On the Dell Latitude, the mic mute key event is generated by wmi
driver, the keycode assigned to this hotkey from kernel is
KEY_MICMUTE (248), this keycode is too big for xorg to handle,
in the xorg, the XF86AudioMicMute is assigned to F20.

Please refer to 4e648ea0 of xkeyboard-config.

BugLink: https://bugs.launchpad.net/bugs/1326684
BugLink: https://bugs.launchpad.net/bugs/1339998
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-08-04 09:59:02 -04:00
Kay Sievers
2c93acb8c2 hwdb: fix case-sensitive match
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:53:04 -04:00
Zbigniew Jędrzejewski-Szmek
f12c9a6b38 keyboard: add Plantronics .Audio mute button
https://bugs.freedesktop.org/show_bug.cgi?id=79495

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:52:58 -04:00
Martin Pitt
12f28fa2b8 keymap: Asus EeePC touchpad toggle key
Originally is KEY_TOUCHPAD_TOGGLE, but X.org can't handle the big key events,
so use the F21 convention.

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

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:52:25 -04:00
Martin Pitt
96414129c8 keymap: Add Lenovo Enhanced USB Keyboard
https://bugs.freedesktop.org/show_bug.cgi?id=77234

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-07 08:51:53 -04:00
Anthony G. Basile
75e0b7ce10 Update hwdb
This is upstream commits

    f89b42ec0fd51feab5566d6bdbacee101023c037

    15f392394e75ffb7f318920008fd1bbe4e82b488

by Marcel Holtmann <marcel@holtmann.org> and Scott Thrasher <scott.thrasher@gmail.com>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-28 11:40:34 -04:00
Kieran Clancy
a160f72144 hwdb: keymaps for Samsung 900X3E/900X3F
Keymaps for Samsung 900X3E and 900X3F should be the same as for other
models in the series.

I have also moved the comment for '# Series 9' to the right place

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-28 16:57:02 -05:00
Jason St. John
c785a1cb69 replace tabs with spaces in some files
Files:
* hwdb/60-keyboard.hwdb
* shell-completion/zsh/_systemd-coredumpctl
* src/test/test-helper.h

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:06:33 -05:00
Martin Pitt
7eefa0ad0d keymap: Add Toshiba EQUIUM
Thanks Aleksander Kowalski <aleksander.kowalski.1@gmail.com>!
2014-01-30 17:47:42 -05:00
Martin Pitt
51506550f3 keymap: Add Sony Vaio VGN-FW250
https://launchpad.net/bugs/1271163
2014-01-30 17:46:58 -05:00
Martin Pitt
b2576a8ba4 keymap: Add release quirk for Acer AOA switchvideomode key
https://launchpad.net/bugs/1272658
2014-01-30 17:46:23 -05:00
Martin Pitt
bfc3445b21 keymap: Add HP Chromebook 14 (Falco)
Thanks to Stefan Nagy <public@stefan-nagy.at>.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-01-27 06:48:43 -05:00
Anthony G. Basile
d4a1c1bcf0 hwdb: bring up to date
This squashes upstream commits from the following authors:

	AppleBloom
	Dmitry Pisklov
	Jimmie Tauriainen
	Jose Ignacio Naranjo
	Kay Sievers
	Marcel Holtmann
	Martin Pitt
	Raudi

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-01-11 20:41:39 -05:00
Martin Pitt
2111a7e96d keymap: Add Asus WMI module
We need to override the TOUCHPAD_TOGGLE to F21 to make it useful under X, as
for other models.
2013-09-10 05:13:03 -04:00
Martin Pitt
5e61dd00dc keymap: Explicitly match "any product name" for "all models from vendor" rules
Without this, the hwdb trie gets mis-sorted to match the more specific rules
first, as ":pvr" is lexicographically after ":pn". So ensure that all our
matches have some ":pn" match to avoid this trap.
2013-09-10 05:12:39 -04:00
Martin Pitt
1f561b6e9e keymap: Fix typo in Latitude/Precision rules
We actually want to match the product name, "pn:" makes no sense.
2013-09-10 05:12:13 -04:00
Martin Pitt
14e48f96d0 keymap: Don't use spaces in DMI modalias matches
Spaces get dropped from DMI modaliases. Replace them with '*' to make them
robust against future changes in space escaping.
2013-09-10 05:11:48 -04:00
Martin Pitt
f002a0bea3 keymap: Fix Dell vendor names
Spaces are dropped from vendor and product names in DMI modaliases, so a match
like "svnDell Inc.:" will never happen. Also, some machines use "Dell", some
"Dell Inc", some "Dell Inc.", so just match on "Dell*" to avoid all these
traps.

https://launchpad.net/bugs/1218433
2013-09-10 05:11:23 -04:00
Martin Pitt
975eb684de keymap: Don't erase previous assignments
Don't use "KEYBOARD_KEY_xx=!" assignments (i. e. only enabling force-release)
if more general matches already explicitly set a key code before, to not
override the previously set value.

https://launchpad.net/bugs/1218433
2013-09-10 05:10:58 -04:00
Martin Pitt
14eba5ae1d keymap: Add Logitech Internet Navigator variant [PID C309]
By Albrecht Kolthoff <kolthoff@gmx.net> via linux-hotplug@.
2013-09-10 05:10:30 -04:00
Martin Pitt
8418a7e9fe keymap: Add Samsung NP53U3C
https://launchpad.net/bugs/1203853
2013-09-10 05:10:06 -04:00
Herczeg Zsolt
74957f057f Keyboard map for Samsung NP700Z3C
I'm using Ubuntu 13.04 on a Samsung Series 5 computer and found that that
Fn hotkeys does not work.
2013-09-10 05:09:18 -04:00