Skip to content

Commit

Permalink
update ayaneo autodetection
Browse files Browse the repository at this point in the history
The Ayaneo founder has both sys_vendor and board_vendor as "AYADEVICE"
  • Loading branch information
honjow authored and antheas committed Apr 17, 2024
1 parent 44d2012 commit 5648881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hhd/device/generic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ def autodetect(existing: Sequence[HHDPlugin]) -> Sequence[HHDPlugin]:

# Fallback to chassis vendor for aya
try:
with open("/sys/class/dmi/id/board_vendor") as f:
with open("/sys/devices/virtual/dmi/id/sys_vendor") as f:
vendor = f.read().lower().strip()

if "ayaneo" in vendor:
if "aya" in vendor:
return [GenericControllersPlugin(dmi, get_default_config(dmi, "AYA"))]
except Exception:
return []
Expand Down

0 comments on commit 5648881

Please sign in to comment.