Currently, pressing the power button results in the EC powering off the system without letting the OS cleanly execute its shutdown procedures. Sending command 0x3e with an argument of 1 to the EC tells it to route power button events to the host so that the OS can determine what to do. This command was found in the ec/google/wilco code in coreboot, which is used on Dell's Latitude Chromebooks. Based on the CONFIG_EC_GOOGLE_WILCO help text, the "Wilco" ECs run a modified version of Dell's typical Latitude EC firmware, so it is likely that the two implementations share commands. Examining LPC traffic on the Latitude E6400 did show that vendor firmware was sending a 0x3e command to the EC, and reimplementing it in coreboot allowed power button events to be handled by the OS. Change-Id: I5ded315270c0e1efbbc90cfa9d9d894b872e99a2 Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84878 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> |
||
|---|---|---|
| .. | ||
| 51nb/npce985la0dx | ||
| acpi | ||
| apple/acpi | ||
| clevo/it5570e | ||
| compal/ene932 | ||
| dasharo/ec | ||
| dell/mec5035 | ||
| hp/kbc1126 | ||
| intel | ||
| kontron | ||
| lenovo | ||
| purism | ||
| quanta | ||
| roda/it8518 | ||
| smsc/mec1308 | ||
| starlabs/merlin | ||
| system76/ec | ||
| ec.h | ||