Cannot control brightness / backlight of Dell notebook

Bug #198071 reported by Christian Schürer-Waldheim
4
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Invalid
Undecided
Unassigned
kde-guidance (Ubuntu)
Fix Released
Medium
Scott Kitterman
kpowersave (Ubuntu)
Invalid
Undecided
Unassigned
libsmbios (Ubuntu)
Invalid
Undecided
Unassigned
linux-meta (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: kde-guidance

guidance-power-manager cannot set the brightness / backlight of my Dell Latitude D620 notebook computer. The module dcdbas is loaded.

I get the following error message:

Warning: in getBrightness(): org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 876, in changePoweredBrightness
    self.powermanager.adjustBrightness(level)
  File "/usr/share/python-support/kde-guidance-powermanager/powermanage.py", line 296, in adjustBrightness
    if level == self.getBrightness():
  File "/usr/share/python-support/kde-guidance-powermanager/powermanage.py", line 287, in getBrightness
    return self.old_b
AttributeError: PowerManage instance has no attribute 'old_b'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 42, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
IndexError: list index out of range

Original exception was:
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 876, in changePoweredBrightness
    self.powermanager.adjustBrightness(level)
  File "/usr/share/python-support/kde-guidance-powermanager/powermanage.py", line 296, in adjustBrightness
    if level == self.getBrightness():
  File "/usr/share/python-support/kde-guidance-powermanager/powermanage.py", line 287, in getBrightness
    return self.old_b
AttributeError: PowerManage instance has no attribute 'old_b'

Related branches

description: updated
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

I think it has something to do with hal, as even kpowersave can't change the brightness.

Using the FN-keys to change the brightness works, but being able to change it by software can help saving power when running on batteries.

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It would be helpful to know which version of Ubuntu you noticed this issue? Additionally, the specific package versions of hal and kde-guidance that you have installed, you can check with 'apt-cache policy hal', would be really helpful too. Thanks in advance.

Changed in hal:
status: New → Incomplete
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

Sorry for not providing package information earlier.

Version of Ubuntu: latest hardy, updated daily (kubuntu edition)

hal:
  Installed: 0.5.10-5ubuntu8
  Candidate: 0.5.10-5ubuntu8

kde-guidance:
  Installed: 0.8.0svn20080103-0ubuntu1
  Candidate: 0.8.0svn20080103-0ubuntu1

kpowersave:
  Installed: 0.7.3-1ubuntu1
  Candidate: 0.7.3-1ubuntu1

linux-image-generic:
  Installed: 2.6.24.11.11
  Candidate: 2.6.24.11.11

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

Added package information

Changed in hal:
status: Incomplete → New
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

modinfo dcdbas
filename: /lib/modules/2.6.24-11-generic/kernel/drivers/firmware/dcdbas.ko
alias: dmi:*:[bs]vnD[Ee][Ll][Ll]*:*
license: GPL
author: Dell Inc.
version: 5.6.0-3.2
description: Dell Systems Management Base Driver (version 5.6.0-3.2)
srcversion: 0A5B6E3056A439D49C7FD88
depends:
vermagic: 2.6.24-11-generic SMP mod_unload

This module is loaded via /etc/modules at boot.

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

In some discussions I read that it should be possible to set the brightness via /proc/acpi/video/VID/LCD/brightness, but this seems not to be supported:

cat /proc/acpi/video/VID/LCD/brightness
<not supported>

Again, I can change the brightness via the FN-keys - only changing by software doesn't work - and any program trying to change the brightness hangs with an error message:

Warning: in getBrightness(): org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

This bug is probably related to Bug #191725 - I'm testing the new hal-package right now and will provide more info later on.

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

The patch provided in Bug #191725 doesn't solve this problem.

Revision history for this message
Scott Kitterman (kitterman) wrote :

The patch I'm applying for Bug #183656 should at least solve the powermanager crashes part of this. Beyond that, I don't think powermanager can do anything about this if dbus doesn't answer.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kde-guidance - 0.8.0svn20080103-0ubuntu2~ppa3

---------------
kde-guidance (0.8.0svn20080103-0ubuntu2~ppa3) hardy; urgency=low

  * Add kubuntu_10_displayconfig_tryagain.patch so that if displayconfig
    thinks a proprietary driver is installed, but it can't find it, it
    will try to find a non-proprietary driver instead of crashing (LP: #198269)
  * Add kubuntu_11_wineconfg_amd64.patch so that wineconfig looks in the right
    dir for wine on AMD64 (LP: #151982) - Patch should be removed for the next
    svn snapshot or release as a fix has been committed upstream already
  * Add kubuntu_12_powermanager_survive_no_brightness.patch so that if the old
    brightness cannot be gotten from DBUS, powermanager won't crash
    (LP: #183656) and (LP: #198071)
  * Add kubuntu13_displayconfig_add_new_monitors.patch to support additional
    ViewSonic VA702 variants (LP: #192899)

 -- Scott Kitterman <email address hidden> Tue, 04 Mar 2008 11:14:41 -0500

Changed in kde-guidance:
status: New → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote :

Fix is not actually released yet. Please test the updated kde-guidance-powermanager in my PPA:

https://launchpad.net/~kitterman/+archive

If I get confirmation the fix works, I'll include it in the next upload.

Changed in kde-guidance:
assignee: nobody → kitterman
importance: Undecided → Medium
status: Fix Released → In Progress
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

Bug #183656 is solved by this fix (0.8.0svn20080103-0ubuntu2~ppa3), the problem reported here is still present - the brightness cannot be set on the Dell Latitude D620.

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

As kde-guidance and kpowersave are both not able to set the brightness, and I think they are just sending DBUS-messages, the probably is cause by either HAL or the kernel module itself.

Is there any way to test the kernel module directly?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kde-guidance - 0.8.0svn20080103-0ubuntu3

---------------
kde-guidance (0.8.0svn20080103-0ubuntu3) hardy; urgency=low

  * Add Add kubuntu_09_mountconfig_no_extensions.patch to remove uneeded call
    to pykdeextensions in mountconfig so that pyqt3 no longer needs to be
    patched to provide -dev files in the regular package (LP: #197867)
  * Add kubuntu_10_displayconfig_tryagain.patch so that if displayconfig
    thinks a proprietary driver is installed, but it can't find it, it
    will try to find a non-proprietary driver instead of crashing (LP: #198269)
  * Add kubuntu_11_wineconfg_amd64.patch so that wineconfig looks in the right
    dir for wine on AMD64 (LP: #151982) - Patch should be removed for the next
    svn snapshot or release as a fix has been committed upstream already
  * Add kubuntu_12_powermanager_survive_no_brightness.patch so that if the old
    brightness cannot be gotten from DBUS, powermanager won't crash
    (LP: #183656) and (LP: #198071)
  * Add kununtu_13_displayconfig_add_new_monitors.patch to update MonitorsDB
    with a upstream snapshot of MonitorsDB from hwdata (LP: #192899)

 -- Scott Kitterman <email address hidden> Sun, 09 Mar 2008 19:53:42 -0400

Changed in kde-guidance:
status: In Progress → Fix Released
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

Problem was not caused by kernel module.

Changed in linux-meta:
status: New → Invalid
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

This problem was not caused by kpowersave.

Changed in kpowersave:
status: New → Invalid
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

There is an hal related issue regarding this problem, therefore I will open a new bug report for this later.

Changed in hal:
status: New → Invalid
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

The problem was in relation to libsmbios. The BIOS of my laptop computer is secured with a password, therefore libsmbios and hal couldn't set the brightness. Removing the password solves this problem.

Changed in libsmbios:
status: New → Invalid
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

Link to upstream bug report (just for reference): http://bugs.freedesktop.org/show_bug.cgi?id=7221

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.