hid: Add support for the Elecom DEFT trackball
cover hid: Add support for the Elecom DEFT trackball
Hi,
The Elecom DEFT is a trackball mouse, a picture can be found here [1]. As you can see, there're three Fn keys at the top of the mouse. These keys doesn't work on current Linux kernel. Complains from several users can be found on the internet [1][2].
The problem is in the HID report sent by the device, only 5 standard buttons are reported. There's an additional 3*1 bit item without any usage page in the report, which corresponds to the Fn buttons. This patch remove that item, and change the number of standard buttons to 8.
[1]: http://xahlee.info/kbd/elecom_trackball.html
[2]: https://www.reddit.com/r/Trackballs/comments/4pu3cv/elecom_mdt2_fn_buttons_on_linux/
Regards,
Yuxuan Shui
PATCH 1/1 hid: Add support for the Elecom DEFT trackball
The DEFT trackball has three non-standard buttons at the top which is not supported by the hid-generic driver.
This patch add a driver that modifies the HID report, so those three buttons can be supported like standard buttons.
--- drivers/hid/Kconfig | 6 ++++++ drivers/hid/Makefile | 1 + drivers/hid/hid-deft.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/hid/hid-ids.h | 2 ++ 4 files changed, 61 insertions(+) create mode 100644 drivers/hid/hid-deft.c
drivers/hid/Kconfig +6 -0
@@ -263,6 +263,12 @@ config HID_ELECOM ---help--- Support for the ELECOM BM084 (bluetooth mouse). +config HID_ELECOM_DEFT + tristate "ELECOM DEFT trackball" + depends on HID + ---help--- + Support for the Fn keys found on ELECOM DEFT trackball. + config HID_ELO tristate "ELO USB 4000/4500 touchscreen" depends on USB_HID
drivers/hid/Makefile +1 -0
@@ -37,6 +37,7 @@ obj-$(CONFIG_HID_CYPRESS) += hid-cypress.o obj-$(CONFIG_HID_DRAGONRISE) += hid-dr.o obj-$(CONFIG_HID_EMS_FF) += hid-emsff.o obj-$(CONFIG_HID_ELECOM) += hid-elecom.o +obj-$(CONFIG_HID_ELECOM_DEFT) += hid-deft.o obj-$(CONFIG_HID_ELO) += hid-elo.o obj-$(CONFIG_HID_EZKEY) += hid-ezkey.o obj-$(CONFIG_HID_GEMBIRD) += hid-gembird.o
drivers/hid/hid-deft.c new file +52 -0
52 lines not on this page · raw message
drivers/hid/hid-ids.h +2 -0
@@ -332,6 +332,8 @@#define USB_VENDOR_ID_ELECOM 0x056e#define USB_DEVICE_ID_ELECOM_BM084 0x0061 +#define USB_DEVICE_ID_ELECOM_DEFT 0x00fe +#define USB_DEVICE_ID_ELECOM_DEFTW 0x00ff#define USB_VENDOR_ID_DREAM_CHEEKY 0x1d34
Signature · 1 line
2.9.0