Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Bastien Nocera
7d476c4563 Add Logitech receivers and devices to hwdb and add uaccess
This adds support for Logitech USB receivers and Bluetooth devices to be
accessed by users at the console, so that they can use an application
like Solaar out-of-the-box.
2022-04-05 14:22:21 +02:00
4 changed files with 32 additions and 0 deletions

View 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

View file

@ -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',

View file

@ -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')))),

View file

@ -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.