Skip to content

Commit

Permalink
udev/sata: Check for presence of power management policy attribute (#84)
Browse files Browse the repository at this point in the history
For some removable devices link_power_management_policy cannot be
changed, causing some annoying errors in logs.

Signed-off-by: Vasiliy Stelmachenok <[email protected]>
  • Loading branch information
ventureoo authored Sep 12, 2024
1 parent 916cf88 commit d22e3fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions usr/lib/udev/rules.d/50-sata.rules
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# SATA Active Link Power Management

ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="max_performance"
ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}=="*", ATTR{link_power_management_policy}="max_performance"

0 comments on commit d22e3fd

Please sign in to comment.