[Bug 230056] [NEW] Lock screen happens on Lid open, not Lid closed

Aleks Krsch akrsch at gmail.com
Tue May 13 19:07:47 UTC 2008


Public bug reported:

Binary package hint: kde-guidance-powermanager

I have hp nx7400 notebook with Kubuntu 8.04 installed. kde-guidance-powermanager is configured to "Lock screen" "When Laptop Lid Closed". But the screen is locked a few seconds after I open the lid.
Further investigation showed, that it's all because PowerManage.getLidClosedState() returns 1 if lid is pen and 0 if it's closed. But in guidance-power-manager it's assumed, that 1 means that lid is closed. After I edited guidance-power-manager.py in this way:
722:        # Lid stuff
        if self.powermanager.hasLid:
            if not self.powermanager.getLidClosedState():
                if self.powermanager.lidClosedState:
                    self.powermanager.lidClosedState = False

                    action = self._getRB(self.LaptopLidRadios, self.lid_act)
                    if not self.act_name.has_key(action):
                        action = self.act_name[self.lid_act_def]

                    if self.act_call[action] != None:
                        note = i18n("Laptop lid is closed, %1 now.").arg(self.act_notify[action])
                        self.notify(note, self.act_icon[action])
                        QTimer.singleShot(2000, self.act_call[action])
            else:
                self.powermanager.lidClosedState = True

everything begam to work perfectly. I don't know if this problem applies only for my laptop or not.
Version of kde-guidance-powermanager is 0.8.0svn20080103-0ubuntu16
I already deleted the original file so I can't make a patch now
The edited version of guidance-power-manager.py is also attached

** Affects: kde-guidance (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Lock screen happens on Lid open, not Lid closed
https://bugs.launchpad.net/bugs/230056
You received this bug notification because you are a member of Kubuntu
Team, which is subscribed to kde-guidance in ubuntu.




More information about the kubuntu-bugs mailing list