I'm using a Chromebook with Ubuntu 14.04.2 LTS installed as an embedded system of sorts. I've figured out how to have it automatically suspend when disconnected from power by adjusting the power manager settings.
But I would like to find a way to have it automatically wake when power is restored.
If it isn't possible to detect that event and wake up, I also have a powered FTDI USB serial interface connected that could generate an event to wake on, but it doesn't appear in the list of /proc/acpi/wakeup
devices.
Note that when I run upower -d
, I see things that could be potential triggers. For example, device /org/freedesktop/UPower/devices/line_power_AC
has a line-power/online
field (set to yes
when plugged in). Device /org/freedesktop/UPower/devices/battery_BAT0
has an on-battery
field (set to no
when plugged in).
I'm open to switching to a scenario where I automatically shutdown when the battery is low, if it's possible to configure the computer to automatically turn on when power is restored. I've seen it do that on occasion, but not reliably.
If it matters, I'm using a John Lewis ROM which boots Ubuntu through GRUB.