Bug 128072 - HAL should provide 'is_laptop=[yes/no]' property
Summary: HAL should provide 'is_laptop=[yes/no]' property
Status: VERIFIED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Hotplug (show other bugs)
Version: Alpha 1
Hardware: Other Other
: P2 - High : Enhancement (vote)
Target Milestone: ---
Assignee: Danny Kukawka
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-13 13:23 UTC by Stefan Behlert
Modified: 2007-06-05 11:04 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.