This machine has been running well on FreeBSD with the stock bios. I decided to flash coreboot 4.8.1 to get rid of the wireless card whitelist, so I can install any card I want. Also I've got rid of Intel ME. FreeBSD Current does not detect the battery, dmesg | grep ACPI gives the following ACPI APIC Table: <CORE COREBOOT> ACPI Error: No handler for Region [ERAM] (0xfffff80003672200) [EmbeddedControl] (20180629/evregion-288) ACPI Error: Region EmbeddedControl (ID=3) has no handler (20180629/exfldio-428) ACPI Error: Method parse/execution failed \134_SB.PCI0.LPCB.EC.BAT0._STA, AE_NOT_EXIST (20180629/psparse-677) ACPI Error: No handler for Region [ERAM] (0xfffff80003672200) [EmbeddedControl] (20180629/evregion-288) ACPI Error: Region EmbeddedControl (ID=3) has no handler (20180629/exfldio-428) ACPI Error: Method parse/execution failed \134_SB.PCI0.LPCB.EC.BAT1._STA, AE_NOT_EXIST (20180629/psparse-677) For info, a debian live bootable image detects the battery with no issue.
Seems to be related to my problems on Lenovo Yoga 3 14: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227191
The battery is detected correctly on FreeBSD current r330956, but not after r330957 ACPICA merge. The ACPI Errors are are present on both r330956 and r330957, so probably they are not related the battery detection problem I'm having.
*** This bug has been marked as a duplicate of bug 227191 ***