Bugzilla – Bug 128072
HAL should provide 'is_laptop=[yes/no]' property
Last modified: 2007-06-05 11:04:31 UTC
As already discussed: HAL should provide a single property for "that's a laptop" which should be the result of analysing the properties "formfactor", "battery bay" and "pcmcia" (names might be different, didn't look at them now). This property can be used by hwinfo to return the needed information to Yast, and by other aplications.
I propose to check the following property sequence: - smbioas formfactor (if laptop --> o.k.) else check for: - ACPI LID - battery bay (eval. if problems with other devices like USV, mice, keyboard batteries) - pcmcia/cardbus
I implemented this to HAL and send a patch upsteam: if: smbioas formfactor (if laptop --> o.k.) else: - ACPI: check for LID and/or battery bay --> is laptop - APM: if battery present --> is laptop If there a machines with problems, please reopen the bug.