Activity log for bug #230056

Date Who What changed Old value New value Message
2008-05-13 19:07:47 Aleks Krsch bug added bug
2008-05-13 19:07:47 Aleks Krsch bug added attachment 'guidance-power-manager.py' (Edited version of guidance-power-manager.py)
2008-05-13 20:14:12 Andreas Wenning kde-guidance: status New Incomplete
2008-05-13 20:14:12 Andreas Wenning kde-guidance: assignee andreas-wenning
2008-05-13 22:19:22 Andreas Wenning bug assigned to hal (Ubuntu)
2008-05-13 22:19:39 Andreas Wenning kde-guidance: status Incomplete Invalid
2008-05-13 22:21:46 Andreas Wenning description 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 Laptop model: HP nx7400 notebook Release: Kubuntu 8.04 when lid is open: $ hal-device `hal-find-by-property --key button.type --string lid` udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' input.product = 'Lid Switch' (string) info.addons.singleton = { 'hald-addon-input' } (string list) linux.sysfs_path = '/sys/devices/virtual/input/input5/event5' (string) info.parent = '/org/freedesktop/Hal/devices/computer' (string) info.product = 'Lid Switch' (string) info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' (string) button.has_state = true (bool) button.type = 'lid' (string) linux.hotplug_type = 2 (0x2) (int) button.state.value = true (bool) linux.subsystem = 'input' (string) linux.device_file = '/dev/input/event5' (string) info.capabilities = { 'input', 'input.switch', 'button' } (string list) info.category = 'input' (string) input.device = '/dev/input/event5' (string) when lid is closed: $ sleep 10; hal-device `hal-find-by-property --key button.type --string lid` udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' input.product = 'Lid Switch' (string) info.addons.singleton = { 'hald-addon-input' } (string list) linux.sysfs_path = '/sys/devices/virtual/input/input5/event5' (string) info.parent = '/org/freedesktop/Hal/devices/computer' (string) info.product = 'Lid Switch' (string) info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_3' (string) button.has_state = true (bool) button.type = 'lid' (string) linux.hotplug_type = 2 (0x2) (int) button.state.value = false (bool) linux.subsystem = 'input' (string) linux.device_file = '/dev/input/event5' (string) info.capabilities = { 'input', 'input.switch', 'button' } (string list) info.category = 'input' (string) input.device = '/dev/input/event5' (string)
2008-05-13 22:21:46 Andreas Wenning title Lock screen happens on Lid open, not Lid closed button.state.value switched for lid event
2008-05-14 06:43:14 Aleks Krsch bug added attachment 'hal.tgz' (lshal.txt, kern.log and hal.log as described in https://wiki.ubuntu.com/DebuggingHal)
2008-05-22 20:44:02 Andreas Wenning hal: status New Invalid