Compare commits
1 commit
main
...
wip/hadess
Author | SHA1 | Date | |
---|---|---|---|
|
7d476c4563 |
4 changed files with 32 additions and 0 deletions
27
hwdb.d/70-input-devices.hwdb
Normal file
27
hwdb.d/70-input-devices.hwdb
Normal file
|
@ -0,0 +1,27 @@
|
|||
# This file is part of systemd.
|
||||
#
|
||||
# Database for input devices that need hidraw access for all the features to work.
|
||||
#
|
||||
# This currently only covers Logitech receivers (Bolt, Unifying, etc.) and Bluetooth
|
||||
# Logitech devices.
|
||||
#
|
||||
# To add local entries, copy this file to
|
||||
# /etc/udev/hwdb.d/
|
||||
# and add your rules there. To load the new rules execute (as root):
|
||||
# systemd-hwdb update
|
||||
# udevadm trigger
|
||||
|
||||
################
|
||||
# Logitech
|
||||
################
|
||||
# USB-connected Logitech receivers and devices
|
||||
usb:v046d*
|
||||
ID_INPUT_DEVICE_NEEDS_RAW=1
|
||||
|
||||
# Lenovo Nano Receiver
|
||||
usb:v17efp6042*
|
||||
ID_INPUT_RECEIVER_NEEDS_RAW=1
|
||||
|
||||
# Bluetooth-connected Logitech devices
|
||||
bluetooth:v046d*
|
||||
ID_INPUT_RECEIVER_NEEDS_RAW=1
|
|
@ -29,6 +29,7 @@ hwdb_files_test = files(
|
|||
'70-analyzers.hwdb',
|
||||
'70-av-production.hwdb',
|
||||
'70-cameras.hwdb',
|
||||
'70-input-devices.hwdb',
|
||||
'70-joystick.hwdb',
|
||||
'70-mouse.hwdb',
|
||||
'70-pda.hwdb',
|
||||
|
|
|
@ -140,6 +140,7 @@ def property_grammar():
|
|||
('ID_PDA', Or((Literal('0'), Literal('1')))),
|
||||
('ID_INPUT', Or((Literal('0'), Literal('1')))),
|
||||
('ID_INPUT_ACCELEROMETER', Or((Literal('0'), Literal('1')))),
|
||||
('ID_INPUT_DEVICE_NEEDS_RAW', Or((Literal('0'), Literal('1')))),
|
||||
('ID_INPUT_JOYSTICK', Or((Literal('0'), Literal('1')))),
|
||||
('ID_INPUT_KEY', Or((Literal('0'), Literal('1')))),
|
||||
('ID_INPUT_KEYBOARD', Or((Literal('0'), Literal('1')))),
|
||||
|
|
|
@ -91,6 +91,9 @@ KERNEL=="rfkill", SUBSYSTEM=="misc", TAG+="uaccess"
|
|||
# Most of these devices use HID for the knobs, faders, buttons, encoders, and jog wheels.
|
||||
SUBSYSTEM=="hidraw", ENV{ID_AV_PRODUCTION_CONTROLLER}=="1", TAG+="uaccess"
|
||||
|
||||
# Input devices that require HID access for full feature support
|
||||
SUBSYSTEM=="hidraw", ENV{ID_INPUT_DEVICE_NEEDS_RAW}=="1", TAG+="uaccess"
|
||||
|
||||
# Some devices use vendor defined protocols on USB Bulk endpoints for controllers.
|
||||
# Other devices transfer graphics to screens on the device through USB Bulk endpoints.
|
||||
# This also allows accessing HID devices with the libusb backend of hidapi.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue