summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-07-29 13:43:37 +0300
committerMaxim Devaev <[email protected]>2021-07-29 13:43:37 +0300
commit1090a5576555029b1888fb9d958a93ee3d50704b (patch)
tree0d6f48d856c17d5184570df714298eb7ab06ec4a /kvmd
parentc26ed616e0af450c55d434988fe4e0dd47ff4cb5 (diff)
removed max_power option, added todo about remote wakeup
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/__init__.py1
-rw-r--r--kvmd/apps/otg/__init__.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index be11ae45..08fc13ad 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -478,7 +478,6 @@ def _get_config_scheme() -> Dict:
"manufacturer": Option("Pi-KVM"),
"product": Option("Composite KVM Device"),
"serial": Option("CAFEBABE"),
- "max_power": Option(250, type=functools.partial(valid_number, min=0, max=500)),
"gadget": Option("kvmd", type=valid_otg_gadget),
"config": Option("Pi-KVM device", type=valid_stripped_string_not_empty),
diff --git a/kvmd/apps/otg/__init__.py b/kvmd/apps/otg/__init__.py
index a54a8b0e..43426d51 100644
--- a/kvmd/apps/otg/__init__.py
+++ b/kvmd/apps/otg/__init__.py
@@ -195,7 +195,9 @@ def _cmd_start(config: Section) -> None:
_mkdir(config_path)
_mkdir(join(config_path, "strings/0x409"))
_write(join(config_path, "strings/0x409/configuration"), f"Config 1: {config.otg.config}")
- _write(join(config_path, "MaxPower"), str(config.otg.max_power))
+ _write(join(config_path, "MaxPower"), "250")
+ # TODO: Add this and MaxPower=100 to enable Remote Wakeup on Bus Powered
+ # _write(join(config_path, "bmAttributes"), "0xA0")
if config.otg.devices.serial.enabled:
logger.info("===== Required Serial =====")