mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
removed max_power option, added todo about remote wakeup
This commit is contained in:
parent
c26ed616e0
commit
1090a55765
@ -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),
|
||||
|
||||
@ -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 =====")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user