Hi Paul,
Paul Menzel paulepanter@users.sourceforge.net writes:
the proprietary BIOS allows to disable/mute sound, when battery status is low or the power cable is plugged in or out.
Is it possible to configure that with coreboot or ectool [1]?
src/ec/lenovo/h8 $ tail -9 h8.h #define H8_EVENT_BAT0 0x4a #define H8_EVENT_BAT0_STATE 0x4b #define H8_EVENT_BAT1 0x4c #define H8_EVENT_BAT1_STATE 0x4d #define H8_EVENT_FN_F5 0x64 #define H8_EVENT_FN_F6 0x65 #endif src/mainboard/lenovo/t60 $ git grep -i mute acpi/platform.asl: \_SB.PCI0.LPCB.EC.MUTE(1)
there's a bitmap starting at EC register offset 04, to offset 08. I think you want to clear/set some bits in Register 04:
Reg 04: 1: Critical Low battery 2: Low battery 3: Suspend 5: Resume 6: Dc state 7: Power off
Could be as well implemented as an nvram option in coreboot ;)
Regards Sven.