>Explanation: it seems that even with a PMU present (that pmud can make
>sense of), the meaning of the 'lid is closed' bit in the PMU seems to be
>different on desktop systems - pmud finds 'lid is closed' all the time and
>sends the system to sleep right away when starting up.

We can detect the kind of machine. The logic is basically to
read /proc/device-tree/model, and then, check for known old
powerbooks (AAPL,3400/2400 AAPL,PowerBook1998), and then just
look for the string "PowerBook" that is present for all newer
models.

Ben.


Reply via email to