from acpi. Only tested on one laptop, I do not know whether
the envsys names for the acpi devices are stable enough to be
used, but I didn't find any other way to distinguish different
things. As this laptop does not support apm, I hope it still
works after these modifications.