Hi Rainer, On Monday 15 January 2007 22:35, Rainer Dorsch wrote: > Am Montag, 15. Januar 2007 16:05 schrieb Luka Renko: > > On Monday 15. January 2007 21:34, Rainer Dorsch wrote: > > > I checked the output of lshal, both when the laptop is connected to the > > > power supply and when the laptop runs from battery. The output looks > > > reasonable to me. Since kde-guidance-powermanager displays again and > > > again that the laptop is disconnected, I did several time an lshal, > > > when the power supply is plugged off. But always I get the > > > ac_adapter.present = false. > > > > > > Looks to me like a powermanager issue. Also the problem is not > > > intermittent, happens always.... > > > > Yep, thus looks like powermanager issue. If you start powermanager from > > konsole, do you get any messages on the screen? > > Here is the konsole output: > > [EMAIL PROTECTED]:~/.ssh$ guidance-power-manager > [EMAIL PROTECTED]:~/.ssh$ Traceback (most recent call last): > File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", > line 551, in changePoweredBrightness > self.powermanager.adjustBrightness(level) > File "/usr/share/python-support/kde-guidance/powermanage.py", line 255, > in adjustBrightness > if level == self.getBrightness(): > File "/usr/share/python-support/kde-guidance/powermanage.py", line 246, > in getBrightness > b = > self.brightnessObject.GetBrightness(dbus_interface="org.freedesktop.Hal.Dev >ice.LaptopPanel") File "/var/lib/python-support/python2.4/dbus/proxies.py", > line 102, in __call__ > reply_message = self._connection.send_with_reply_and_block(message, > timeout) > File "dbus_bindings.pyx", line 455, in > dbus_bindings.Connection.send_with_reply_and_block > dbus_bindings.DBusException: A security policy in place prevents this > sender from sending this message to this recipient, see message bus > configuration file (rejected message had interface > "org.freedesktop.Hal.Device.LaptopPanel" member "GetBrightness" error name > "(unset)" > destination "org.freedesktop.Hal") > Very strange! got a DCOPReplyDelayed opcode, but we were not waiting for a > reply!
DBus is returning bogus output from HAL it seems. While I cannot see the real reason for that (some problem with brightness setting, it seems), attached patch should work around this specific issue. Note that this might make other, similar problems surface, but we can work through them. Can you try the attached patch, see if that helps, and post console output if you still have problems? Thanks, -- sebas http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Nothing ever becomes real until it is experienced. - John Keats
Index: guidance-power-manager.py =================================================================== --- guidance-power-manager.py (revision 623888) +++ guidance-power-manager.py (working copy) @@ -806,8 +806,11 @@ def powerHasBeenUnplugged(self): """ Actions to perform when the plug has been pulled.""" if self.powermanager.hasBrightness: - self.powermanager.brightnessObject.SetBrightness(self.BatteryBrightnessSlider.value(), + try: + self.powermanager.brightnessObject.SetBrightness(self.BatteryBrightnessSlider.value(), dbus_interface="org.freedesktop.Hal.Device.LaptopPanel") + except dbus_bindings.DBusException, e: + print e # No SetPowerSave in Ubuntu's HAL try: self.computerObject.SetPowerSave(True,
pgp9J8bMviEya.pgp
Description: PGP signature