Skip to content

Commit

Permalink
udev: add hwdb execution for hidraw subsystem devices
Browse files Browse the repository at this point in the history
Hwdb call for hidraw subsystem is missing and AV controller devices defined in hwdb.d/70-av-production.hwdb never get the proper permissions for /dev/hidraw*. This patch implements hwdb execution also for hidraw devices.

(cherry picked from commit 43ee987)
(cherry picked from commit 0c4c427)
  • Loading branch information
djantti authored and bluca committed Jan 24, 2024
1 parent 5a5dcc2 commit 43446de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rules.d/50-udev-default.rules.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ SUBSYSTEM=="virtio-ports", KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-
SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc"
SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"

SUBSYSTEM=="hidraw", IMPORT{builtin}="hwdb"

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"

Expand Down

0 comments on commit 43446de

Please sign in to comment.