Skip to content

Commit

Permalink
hw-mgmt: udev: fix broken NVME SSD temp links
Browse files Browse the repository at this point in the history
Update udev rules in order to follow new nvme driver hwmon path.

Reviewed-by: Vadim Pasternak <[email protected]>
Signed-off-by: Michael Shych <[email protected]>
  • Loading branch information
mshych committed Aug 13, 2023
1 parent 8497385 commit 92ce74c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr/lib/udev/rules.d/50-hw-management-events.rules
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ SUBSYSTEM=="hwmon", DEVPATH=="/devices/pci0000:00/*/i2c-*/*-001*/hwmon/hwmon*",

# NVME temp
SUBSYSTEM=="hwmon", DEVPATH=="/devices/pci0000:*/0000:*:*.*/*:*:*.*/hwmon/hwmon*", DRIVERS=="nvme", ACTION=="add", RUN+="/usr/bin/hw-management-thermal-events.sh add nvme_temp %S %p"
SUBSYSTEM=="hwmon", DEVPATH=="/devices/pci0000:*/0000:*:*.*/*:*:*.*/hwmon*", DRIVERS=="nvme", ACTION=="add", RUN+="/usr/bin/hw-management-thermal-events.sh add nvme_temp %S %p"

# SSD temp
SUBSYSTEM=="hwmon", DEVPATH=="/devices/pci0000:00/0000:00:*/ata*/host*/*/*/hwmon/hwmon*", ACTION=="add", RUN+="/usr/bin/hw-management-thermal-events.sh add drivetemp %S %p"
Expand Down

0 comments on commit 92ce74c

Please sign in to comment.