From d8b60a0f2d6b0f2fad071328aaa211a63c57c191 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Thu, 23 Jun 2011 13:43:52 +0200 Subject: T60: undock on external power loss If power is unplugged/lost, we should undock the docking station. The power loss can also be caused by the fact that the user removed the thinkpad from the docking station without pressing the Undock button/hotkey first. Without undocking it on this event, the thinkpad LPC switch will still connect the Docking connector, which causes crashes when docking it again. Change-Id: I9ed783e491827bde20264868eab2b3a79c232922 Signed-off-by: Sven Schnelle Reviewed-on: http://review.coreboot.org/62 Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/t60/acpi/dock.asl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainboard/lenovo/t60/acpi') diff --git a/src/mainboard/lenovo/t60/acpi/dock.asl b/src/mainboard/lenovo/t60/acpi/dock.asl index ae9d19e405..ba50609f3e 100644 --- a/src/mainboard/lenovo/t60/acpi/dock.asl +++ b/src/mainboard/lenovo/t60/acpi/dock.asl @@ -88,4 +88,11 @@ Scope(\_SB.PCI0.LPCB.EC) Notify(\_SB.DOCK, 3) } } + + Method(_Q50, 0, NotSerialized) + { + if (\_SB.DOCK._STA()) { + Notify(\_SB.DOCK, 1) + } + } } -- cgit v1.2.3