Add hwdb information to catch touchpad toggle

This commit is contained in:
Jeremy Soller 2019-03-01 19:27:59 -07:00
parent f18f82dfed
commit 5cd21f7a6a
3 changed files with 5 additions and 3 deletions

View File

@ -1 +1,2 @@
lib/udev/hwdb.d
usr/share/initramfs-tools

View File

@ -0,0 +1,3 @@
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnSystem76*:pn*
KEYBOARD_KEY_f7=f21
KEYBOARD_KEY_f8=f21

View File

@ -105,9 +105,7 @@ static void system76_key(struct system76_data * data, unsigned int code) {
static void system76_notify(struct acpi_device *acpi_dev, u32 event) {
struct system76_data * data = acpi_driver_data(acpi_dev);
if (event == KEY_TOUCHPAD_TOGGLE) {
system76_key(data, KEY_TOUCHPAD_TOGGLE);
} else if (event == KEY_KBDILLUMTOGGLE) {
if (event == 0x80) {
// Keyboard LED change
enum led_brightness value = kb_led_get(&data->kb_led);
led_classdev_notify_brightness_hw_changed(&data->kb_led, value);