Openmoko Bug #2008: Suspend exceptions: Do not suspend when certain apps are running

Openmoko Public Trac bugs at
Tue Sep 16 14:31:37 CEST 2008

#2008: Suspend exceptions: Do not suspend when certain apps are running
    Reporter:  Benih              |        Owner:  openmoko-kernel
        Type:  enhancement        |       Status:  new            
    Priority:  normal             |    Milestone:                 
   Component:  System Software    |      Version:  Om2008.8       
    Severity:  minor              |   Resolution:                 
    Keywords:  suspend exception  |    Blockedby:                 
Reproducible:                     |     Blocking:                 

Comment(by beni):

 An even better solution would be to just implement some "plugin" interface
 to the suspender.
 The suspender may only call a "suspend.deny" executable with predefined
 return codes.
 If that executable returns "0", then suspend can occur. If it returns
 something else than "0", then suspend should be aborted.
 "suspend.deny" executable could then be set via the update-alteratives
 This way, users have all possibilitys to implement their own suspending-
 denial scripts. The user could easily install the one he likes (via opkg)
 while developers can happily implement their own suspend.deny stuff. Users
 may even decide to not install some suspend.deny implementation at all.
 Openmoko devs only need to implement that call to suspend.deny, the
 community could provide the rest.

 I already have some simple suspend.deny with the above mentioned features
 in mind, that could serve as some proof-of concept and may even be the
 default suspend.deny program.

Ticket URL: <> <>
openmoko trac

More information about the openmoko-kernel mailing list