Skip to content

Wake up host computer #7

@ddrcode

Description

@ddrcode

Right now the host can't be awake from Charon, and it feels impossible to do it the way as physical keyboard does it, as Linux simply disconnects from /dev/hidg0 when the hosts goes to sleep. The only option right now seems to be wake-on-lan.

  • Configure host to accept WoL
  • Test whether sending Magic Packet from Pi via WiFi works
  • Add MAC address to Charon's config
  • Add functionality that sends WoL when hid device not available and user presses any key.

To send WoL in Rust:

use wake_on_lan::MagicPacket;

let packet = MagicPacket::new(&[0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX]).unwrap();
packet.send().unwrap();

Explore USB options

Still it's worth to explore the alternatives. Perhaps there is a way to send some data to USB port on the lower level, bypassing the need for hid devices.

Internet resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions