@mkl: setting the lid action in OS, defines only the behavior when closing. Hence the option in OS "when I close the lid", not "when i open it"... My laptop doesn't resume from standby/hibernation/power off when the lid gets opened. Furthermore, when the lid is closed, the motherboard doesn't accept commands from the power button... the lid MUST be open. So this is not controlled by the OS.
Otherwise, hooking up the lid switch to the ignition would've been an easy way to make a poor-man's-shutdown-controller.
@all: after experimenting with the dismantled laptop, I found that a lid sensing is only triggered when the lid's hinges (they're metallic, so they conduct electricity) are in contact with their base on the laptop. The hinges connect to a thin foil glued on the inside backplane of the lid... this foil gets detected, but ONLY when it's connected to chassis ground.
So I insulated the foil from the hinges and presto: the lid can't be detected any more.
The theory behind this? I really don't know... proximity sensing? HALL effect? capacity between a sensor and the foil? something like that.
Thanks for the advices!