does not recognize ibook as a laptop

Bug #64053 reported by Alessio Caiazza on 2006-10-04
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Jonathan Riddell

Bug Description

Binary package hint: kde-guidance-powermanager

I've noticed that kde-guidance-powermanager does not recognize ibook g4 as a laptop and quit.
I've fixed /usr/share/python-support/kde-guidance/
 on line 99
return ( properties["system.formfactor"] == "laptop" or properties["system.formfactor"] == "unknown" )

It's a simple workaround, the real bug may be on hal or in kernel.

Luka Renko (lure) wrote :

This should be finally solved in HAL, but we may consider to implement your workaround to be on the safe side...

Changed in kde-guidance:
status: Unconfirmed → Confirmed
Alessio Caiazza (nolith) wrote :

I tink that if formfactor is unknown does not mean that isn't a laptop or a device with batteries.

Can you forward this bug to HAL team?


Luka Renko (lure) wrote :

We will probably check for ac_adapter presence as all laptop should have one.

Luka Renko (lure) wrote :

We do a safer check now:
return properties["system.formfactor"] == "laptop" or self.hasBattery

(hasBattery is True only if primary battery is reported, but it does not need to be present)

Fix is committed in KDE SVN: Committed revision 594279

Changed in kde-guidance:
importance: Undecided → Medium
status: Confirmed → Fix Committed
Jonathan Riddell (jr) on 2006-10-12
Changed in kde-guidance:
assignee: nobody → jr
Jonathan Riddell (jr) on 2006-10-13
Changed in kde-guidance:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers