#10215 NORM 1.0-sof: distance broken by powerd ohm dbus emulation

Zarro Boogs per Child bugtracker at laptop.org
Sat Jul 10 13:31:58 EDT 2010


#10215: distance broken by powerd ohm dbus emulation
---------------------------------------+------------------------------------
 Reporter:  dsd                        |                 Owner:  bemasc             
     Type:  defect                     |                Status:  new                
 Priority:  normal                     |             Milestone:  1.0-software-update
Component:  acoustic-measure-activity  |               Version:  not specified      
 Keywords:                             |           Next_action:  never set          
 Verified:  0                          |   Deployment_affected:                     
Blockedby:                             |              Blocking:                     
---------------------------------------+------------------------------------
 The Auckland testing group pointed out that Distance is broken in 10.1.2
 build 300 for XO1. No distance measuring happens after both laptops are
 told to start.

 This is the first release which includes a new version of powerd which
 includes emulation for the DCON part of the OHM keystore D-BUS API.

 Distance is currently checking to see if the keystore service is
 available, and if so it uses it for inhibiting suspend.

 In this case the keystore service is available but inhibit suspend is not
 available. This causes self.ohm_keystore.SetKey() to raise an apprporaite
 dbus.exception.DBusException.

 Can we trap this exception and ignore the failure to inhibit suspend?

 Another option would be to add support for powerd inhibit suspend, and
 don't try to use OHM if powerd is available. You could check for the
 existance of /var/run/powerd-inhibit-suspend/. If it exists, the process
 to inhibit suspend is to create an empty file (with the name of your PID)
 at /var/run/powerd-inhibit-suspend/

-- 
Ticket URL: <http://dev.laptop.org/ticket/10215>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list