Skip to content

Commit

Permalink
Revert "add gpd sleep wakeup fix"
Browse files Browse the repository at this point in the history
This reverts commit 06fb025.
  • Loading branch information
antheas committed Nov 18, 2024
1 parent bfe6442 commit 4456275
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 69 deletions.
45 changes: 0 additions & 45 deletions src/adjustor/drivers/gpd.py

This file was deleted.

12 changes: 0 additions & 12 deletions src/adjustor/drivers/gpd.yml

This file was deleted.

14 changes: 2 additions & 12 deletions src/adjustor/hhd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
from hhd.utils import expanduser

from adjustor.core.acpi import check_perms, initialize
from adjustor.core.const import (CPU_DATA, DEV_DATA, ENERGY_MAP,
PLATFORM_PROFILE_MAP)
from adjustor.drivers.gpd import GpdFixPlugin
from adjustor.core.const import CPU_DATA, DEV_DATA, PLATFORM_PROFILE_MAP, ENERGY_MAP

from .i18n import _

Expand Down Expand Up @@ -237,10 +235,10 @@ def autodetect(existing: Sequence[HHDPlugin]) -> Sequence[HHDPlugin]:
if len(existing):
return existing

from .drivers.amd import AmdGPUPlugin
from .drivers.asus import AsusDriverPlugin
from .drivers.lenovo import LenovoDriverPlugin
from .drivers.smu import SmuDriverPlugin, SmuQamPlugin
from .drivers.amd import AmdGPUPlugin

drivers = []
with open("/sys/devices/virtual/dmi/id/product_name") as f:
Expand Down Expand Up @@ -333,14 +331,6 @@ def autodetect(existing: Sequence[HHDPlugin]) -> Sequence[HHDPlugin]:
is_steamdeck = "Jupiter" in prod or "Galileo" in prod
return [GeneralPowerPlugin(is_steamdeck=is_steamdeck)]

try:
with open("/sys/devices/virtual/dmi/id/sys_vendor") as f:
vendor = f.read().strip().lower()
if vendor.lower() == "gpd":
drivers.append(GpdFixPlugin())
except Exception:
pass

return [
*drivers,
AdjustorInitPlugin(use_acpi_call=use_acpi_call),
Expand Down

0 comments on commit 4456275

Please sign in to comment.