Bug 128072

Summary: HAL should provide 'is_laptop=[yes/no]' property
Product: [openSUSE] SUSE Linux 10.1 Reporter: Stefan Behlert <behlert>
Component: HotplugAssignee: Danny Kukawka <dkukawka>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P2 - High    
Version: Alpha 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stefan Behlert 2005-10-13 13:23:23 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.
Comment 1 Danny Al-Gaaf 2005-10-13 13:28:24 UTC
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
Comment 2 Danny Al-Gaaf 2005-10-23 22:19:26 UTC
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.