MacBook brightness adjustment does not work in Hardy

Bug #206921 reported by Zach
42
This bug affects 3 people
Affects Status Importance Assigned to Milestone
HAL
Fix Released
Medium
gnome-power-manager (Ubuntu)
Invalid
Undecided
Unassigned
Hardy
Invalid
Undecided
Unassigned
Intrepid
Invalid
Undecided
Unassigned
hal (Ubuntu)
Fix Released
Undecided
Martin Pitt
Hardy
Fix Released
Undecided
Martin Pitt
Intrepid
Fix Released
Undecided
Martin Pitt

Bug Description

Binary package hint: hal

adjusting the brightness doesn't work. a brightness feedback widget appears but is empty, and brightness remains at 100%. This is true whether using the keys, or plugging in/unplugging a/c power.

Affected hardware: MacBook, MacBook Pro

As a workaround, install the pommed package, which manages screen brightness, volume, etc. for MacBook independently of GPM and GSD.

The following is the output from gnome-power-manager:

[hal_device_condition_cb] gpm-button.c:391 (22:13:09): condition=ButtonPressed, details=brightness-down
[emit_button_pressed] gpm-button.c:335 (22:13:09): emitting button-pressed : brightness-down
[button_pressed_cb] gpm-manager.c:999 (22:13:09): Button press event type=brightness-down
[button_pressed_cb] gpm-srv-screensaver.c:167 (22:13:09): Button press event type=brightness-down
[button_pressed_cb] gpm-backlight.c:563 (22:13:09): Button press event type=brightness-down
[gpm_brightness_lcd_get_hw] gpm-brightness-lcd.c:108 (22:13:09): ERROR: Method "GetBrightness" with signature "" on interface "org.freedesktop.Hal.Device.LaptopPanel" doesn't exist

*** WARNING ***
[gpm_brightness_lcd_get_hw] gpm-brightness-lcd.c:113 (22:13:09): GetBrightness failed!
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:155 (22:13:09): Setting 0 of 117
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:165 (22:13:09): ERROR: Method "SetBrightness" with signature "i" on interface "org.freedesktop.Hal.Device.LaptopPanel" doesn't exist

*** WARNING ***
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:170 (22:13:09): SetBrightness failed!
[gpm_brightness_lcd_down] gpm-brightness-lcd.c:402 (22:13:09): emitting brightness-changed (0)
[brightness_changed_cb] gpm-backlight.c:755 (22:13:09): Need to display backlight feedback value 0
[gpm_feedback_display_value] gpm-feedback-widget.c:144 (22:13:09): Displaying 0.000000 on feedback widget
[gpm_refcount_add] gpm-refcount.c:100 (22:13:09): refcount now: 1
[gpm_refcount_add] gpm-refcount.c:101 (22:13:09): non zero, so sending REFCOUNT_ADDED
[brightness_changed_cb] gpm-backlight.c:759 (22:13:09): emitting brightness-changed : 0
[button_pressed_cb] gpm-info.c:698 (22:13:09): Button press event type=brightness-down
[gpm_refcount_auto_decrement] gpm-refcount.c:74 (22:13:11): zero, so sending REFCOUNT_ZERO
[gpm_feedback_close_window] gpm-feedback-widget.c:134 (22:13:11): Closing feedback widget

and lscpi:
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:07.0 Performance counters: Intel Corporation Unknown device 27a3 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 22)
02:00.0 Network controller: Atheros Communications, Inc. AR5418 802.11abgn Wireless PCI Express Adapter (rev 01)
03:03.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 61)

and uname -a:
Linux tatooine 2.6.24-12-generic #1 SMP Wed Mar 12 23:01:54 UTC 2008 i686 GNU/Linux

package info:
gnome-power-manager:
  Installed: 2.22.0-0ubuntu2
  Candidate: 2.22.0-0ubuntu2
  Version table:
 *** 2.22.0-0ubuntu2 0
        500 http://us.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

release info:
Description: Ubuntu hardy (development branch)
Release: 8.04

Revision history for this message
schalkpd (schalkpd+launchpad) wrote :

I can confirm this; same exact problem on my second generation Macbook Core 2 Duo, with the same kernel and gnome-power-manager versions as above (running latest 8.04 beta). Using xbacklight (which uses the RandR extension), though, I can adjust the brightness from the terminal successfully.

Revision history for this message
Zach (uid000) wrote :

can second schalkpd's observations.
xbacklight works. also pommed works, allowing the f1/2 keys to control backlight.
2nd gen mb c2d.

Revision history for this message
Steffen Röcker (sroecker) wrote :

I can confirm this.
The affected package is hal, gnome-power-manager fails because addon-macbook-backlight can't mmap.
See my attached hal.log.

To create the hal.log
sudo /etc/init.d/hald stop
sudo hald --verbose=yes --daemon=no 2>&1 | tee /tmp/hal.log

[snippet]
21:13:46.595 [D] hald_dbus.c:3294: udi=/org/freedesktop/Hal/devices/macbook_backlight
21:13:46.595 [I] hald_dbus.c:3320: AddonIsReady on udi '/org/freedesktop/Hal/devices/macbook_backlight'
21:13:46.595 [D] hald_dbus.c:3589: singleton_addon_is_ready
21:13:46.595 [I] hald_dbus.c:3616: SingletonAddonIsReady recieved for 'hald-addon-input'
21:13:46.595 [D] hald_dbus.c:3629: Signalling device added for queued devices
21:13:46.595 [D] hald_dbus.c:3633: device added for '/org/freedesktop/Hal/devices/computer_logicaldev_input'
21:13:46.622 [D] hald_dbus.c:3429: singleton_signal_device_changed about to send message to connection 0x80b32e0

** ERROR **: failed to mmap
aborting...
21:13:46.622 [I] hald_runner.c:110: runner_server_message_handler: destination=(null) obj_path=/org/freedesktop/HalRunner interface=org.freedesktop.HalRunner method=StartedProcessExited
21:13:46.622 [I] hald_runner.c:125: Previously started process with pid 11401 exited
21:13:46.622 [I] hald.c:84: in addon_terminated for udi=/org/freedesktop/Hal/devices/macbook_backlight
21:13:46.622 [E] device.c:1705: In hal_device_inc_num_ready_addons for udi=/org/freedesktop/Hal/devices/macbook_backlight but all addons are already ready!

description: updated
Marcus Asshauer (mcas)
Changed in gnome-power-manager:
status: New → Confirmed
Changed in hal:
status: New → Confirmed
Revision history for this message
Steffen Röcker (sroecker) wrote :

To clarify I should add that addon-macbook-backlight provides g-p-m with GetBrightness/SetBrightness.
pommed can mmap just fine.

It worked with the Hardy Beta Live CD which uses hal 0.5.10+git20080301-1ubuntu3, so changes must have occured since then.

Revision history for this message
mabovo (mabovo) wrote :

MacBook2,1 using pommed has no problem with LCD brightness adjustment.
Actually I am struggling with the LED keyboard of NUM Lock and Caps Lock they don't light up.

Revision history for this message
Alexander Jones (alex-weej) wrote : Re: [Bug 206921] Re: macbook brightness adjustment does not work in hardy

Is that with Gutsy or Hardy?

On 4/3/08, mabovo <email address hidden> wrote:
> MacBook2,1 using pommed has no problem with LCD brightness adjustment.
> Actually I am struggling with the LED keyboard of NUM Lock and Caps Lock
> they don't light up.
>
> ** Attachment added: "dmesg"
> http://launchpadlibrarian.net/13089587/dmesg.txt
>
> --
> macbook brightness adjustment does not work in hardy
> https://bugs.launchpad.net/bugs/206921
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Sent from Google Mail for mobile | mobile.google.com

Revision history for this message
Steffen Röcker (sroecker) wrote :

Tested a few packages:
hal 0.5.10+git20080301-1ubuntu3 works, but the next upload to hardy hal 0.5.11~rc2-1ubuntu1 breaks it.
addon-macbook-backlight.c wasn't changed much. Couldn't find anything, the debiff is huge :/

Revision history for this message
Marcin Lepicki (marcin-lepicki) wrote :

Hello,
I don't want to start new bug but I've found similar problem on HP Pavilion notebook (dv2025nr, dv2000 series). After update (it might happened this week) brightness adjusting stopped working, I can't change it via FN+F7/F8 and applet. However, it can be adjusted via procfs, using file /proc/acpi/video/VGA/LCD/brightness (echo 60 > /proc/acpi/video/VGA/LCD/brightness as root).

Revision history for this message
Marcin Lepicki (marcin-lepicki) wrote :

cat /var/log/acpid
(...)
[Fri Apr 4 08:28:08 2008] received event "video LCD 00000087 00000000"
[Fri Apr 4 08:28:08 2008] notifying client 5735[110:122]
[Fri Apr 4 08:28:08 2008] notifying client 5883[0:0]
[Fri Apr 4 08:28:08 2008] notifying client 5883[0:0]
[Fri Apr 4 08:28:08 2008] executing action "/etc/acpi/video_brightnessdown.sh"
[Fri Apr 4 08:28:08 2008] BEGIN HANDLER MESSAGES
[Fri Apr 4 08:28:08 2008] END HANDLER MESSAGES
[Fri Apr 4 08:28:08 2008] action exited with status 0
[Fri Apr 4 08:28:08 2008] completed event "video LCD 00000087 00000000"

/etc/acpi/video_brightnessdown.sh produces no output, same as "acpi_fakekey 224" (it's command..)..

root@sim:/# strace acpi_fakekey 224
execve("/usr/bin/acpi_fakekey", ["acpi_fakekey", "224"], [/* 23 vars */]) = 0
brk(0) = 0x804a000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fa0000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=64080, ...}) = 0
mmap2(NULL, 64080, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f90000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260e\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1364388, ...}) = 0
mmap2(NULL, 1369712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e41000
mmap2(0xb7f8a000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149) = 0xb7f8a000
mmap2(0xb7f8d000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f8d000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e40000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e406b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f8a000, 4096, PROT_READ) = 0
munmap(0xb7f90000, 64080) = 0
open("/dev/input/event0", O_RDWR) = 3
ioctl(3, 0x80404521, 0xbffdff50) = 64
close(3) = 0
open("/dev/input/event1", O_RDWR) = 3
ioctl(3, 0x80404521, 0xbffdff50) = 64
write(3, "\240\203\4\10\364\277\370\267\1\0\340\0\1\0\0\0", 16) = 16
write(3, "\240\203\4\10\364\277\370\267\1\0\340\0\0\0\0\0", 16) = 16
exit_group(0) = ?
Process 12686 detached

Revision history for this message
Steffen Röcker (sroecker) wrote :

mabovo and Marcin: Could each of you please open a new bug?

If I revert the changes in hal 0.5.11~rc2-1ubuntu1 in addon-macbook-backlight.c it works again.
Couldn't apply the same fix to -ubuntu5 thought. The introduction of policykit broke things.

Revision history for this message
Thomas Perl (thp) wrote :

Same problem here on a Core Duo MacBook (mid-2006) using the latest Hardy packages.

Revision history for this message
Ben Wilber (benwilber) wrote :

Same on first-gen MacBook (core duo) -- Brightness controls don't work neither do the LED lights on the CapsLock/NumLock buttons.

When I push one of the brightness controls the little meter appears on screen but wont go above zero and the brightness doesn't change.

Revision history for this message
Joe Debian (joedebian) wrote :

I can confirm this bug too. I have a first gen core duo macbook which also runs brightness at 100% on hardy (2.6.24-15-generic). F1 display the brightness meter but does not change the level.

Revision history for this message
In , Steffen Röcker (sroecker) wrote :

Created an attachment (id=15846)
Hal log

Macbook brightness adjustment does not work because addon-macbook-backlight fails to mmap.
I have tested this under Ubuntu Hardy and Fedora Rawhide.
It worked in Hardy with hal 0.5.10+git20080301-1ubuntu3 and failed to work with
hal 0.5.11~rc2-1ubuntu1. Fedora Rawhide (as of today) didn't work either so I think the bug is in hal itself.

See https://bugs.launchpad.net/ubuntu/+source/hal/+bug/206921 for more info.

hal.log created with:

sudo /etc/init.d/hald stop
sudo hald --verbose=yes --daemon=no 2>&1 | tee /tmp/hal.log

[snippet]
21:13:46.595 [D] hald_dbus.c:3294: udi=/org/freedesktop/Hal/devices/macbook_backlight
21:13:46.595 [I] hald_dbus.c:3320: AddonIsReady on udi '/org/freedesktop/Hal/devices/macbook_backlight'
21:13:46.595 [D] hald_dbus.c:3589: singleton_addon_is_ready
21:13:46.595 [I] hald_dbus.c:3616: SingletonAddonIsReady recieved for 'hald-addon-input'
21:13:46.595 [D] hald_dbus.c:3629: Signalling device added for queued devices
21:13:46.595 [D] hald_dbus.c:3633: device added for '/org/freedesktop/Hal/devices/computer_logicaldev_input'
21:13:46.622 [D] hald_dbus.c:3429: singleton_signal_device_changed about to send message to connection 0x80b32e0

** ERROR **: failed to mmap
aborting...
21:13:46.622 [I] hald_runner.c:110: runner_server_message_handler: destination=(null) obj_path=/org/freedesktop/HalRunner interface=org.freedesktop.HalRunner method=StartedProcessExited
21:13:46.622 [I] hald_runner.c:125: Previously started process with pid 11401 exited
21:13:46.622 [I] hald.c:84: in addon_terminated for udi=/org/freedesktop/Hal/devices/macbook_backlight
21:13:46.622 [E] device.c:1705: In hal_device_inc_num_ready_addons for udi=/org/freedesktop/Hal/devices/macbook_backlight but all addons are already ready!

Revision history for this message
In , Steffen Röcker (sroecker) wrote :

Created an attachment (id=15847)
This patch makes it work again

If I revert the changes in hal 0.5.11~rc2-1ubuntu1 in addon-macbook-backlight.c it works again. Couldn't apply the same fix to -ubuntu5 thought.

I think the introduction of policykit broke things. Don't know why this can make mmap fail.

Changed in hal:
status: Unknown → Confirmed
Revision history for this message
In , Danny Kukawka (danny-kukawka) wrote :

Your patch can't work if you compile HAL without ConsoleKit/PolicyKit support. As soon as you compile it with the support the whole fail to compile.

Btw. it does not happen on my testmachine, at least with x86_64, but we have a report on SUSE for a MacBook1,1 with ix86

Revision history for this message
In , Steffen Röcker (sroecker) wrote :

Oh, I just tried the patch for that version.
Seems that when you enable ConsoleKit/PolicyKit it needs a global LibHalContext *halctx and that somehow breaks mmap.

Yep, Suse bug #380075 is definitely the same one.
Should have added that my machine is also a Macbook1,1 i686.

Why doesn't this happen on x86_64?

Revision history for this message
In , Danny Kukawka (danny-kukawka) wrote :

@Ryan: You wrote the code, do you have any idea what happens here?

Revision history for this message
In , Danny Kukawka (danny-kukawka) wrote :

Created an attachment (id=15945)
add better debug output

Could you please try the patch and paste what error it prints?

Revision history for this message
In , Steffen Röcker (sroecker) wrote :

Finally had time to check this (needed to #include <../../logger.h> though)
Sadly this doesn't give me any more clues:

21:18:43.394 [E] addon-macbook-backlight.c:145: failed to mmap: errno: 'Success'

** ERROR **: failed to gain access to the video card
aborting...

Looks weird,register_page looks like it is still equal to MAP_FAILED. Could this be a compiler bug?

Revision history for this message
mabovo (mabovo) wrote :

I removed pommed because it was crashing in Hardy so the LCD brightness still works without problem on my MacBook 2.1 version 1.0 (may-jun 2007).

Revision history for this message
Adrián (adrianbn) wrote :

Hi,

I've been hit by this bug too. However, since I've installed isight firmware tools and reinstalled the kernel it seems that brightness is working through hardware. I mean, no events in acpi log appear and "Not supported" is the message of the brightness config files, but its working. I also have pommed installed.

Regards
Adrian

Revision history for this message
Alexander Jones (alex-weej) wrote :

I would like to suggest upgrading the importance of this bug, as backlight brightness being on 100% all the time can't be good for the hardware or your eyes.

In fact, in OS X it says that leaving the screen at full brightness "may shorten your display's life" (to paraphrase).

Revision history for this message
Joe Debian (joedebian) wrote :

I have been using xbacklight as a work around. Works well.

Revision history for this message
Alexander Jones (alex-weej) wrote : Re: [Bug 206921] Re: macbook brightness adjustment does not work in hardy

alex@fizz:~$ xbacklight -get
No outputs have backlight property
alex@fizz:~$ xbacklight -set 10
No outputs have backlight property

No sale!

Revision history for this message
Alexander Jones (alex-weej) wrote :

Installing pommed makes the hardware keys work, seemingly independent
of GPM, however.

description: updated
Revision history for this message
Tim Hull (thully) wrote :

Same problem here with a first-generation MacBook. Downgrading HAL fixes it - evidently something in the new HAL update caused this. Could this be looked at for Hardy final? This seems like a bad regression to have...

Revision history for this message
David P (klessou) wrote :

Same problem (with Macbook second-generation) ... still don't work ...

Revision history for this message
Steffen Röcker (sroecker) wrote :

Ok, we know that pommed works. addon-macbook-backlight in hal doesn't work. Thats strange, because pommed code and hal code are basically the same for adjusting the Macbook brightness.
The introduction of PolicyKit/ConsoleKit broke that part of code in hal.

I've run hal with more debug information (see attached patch) and got:
[E] addon-macbook-backlight.c:145: failed to mmap: errno:
'Success'

** ERROR **: failed to gain access to the video card
aborting...

I have no idea why this mmap fails.

To those who have a second or higher generation Macbook:
Do you run x86_64? Maybe this just doesn't work on 32bit.

Revision history for this message
Adrián (adrianbn) wrote :

Hi, Im on the newest macbook (4.1 is it?) and running x86_64. It doesnt work here.

Revision history for this message
Alexander Jones (alex-weej) wrote :

I'm on an October 2007 MacBook Pro, with AMD64.

Revision history for this message
Jackster (jacksteruk309) wrote :

Running 8.04 RC 32-bit here on a Macbook 2,1 (Core 2 Duo) and can confirm this bug

Doesn't look like a fix will be released before the final version. Any chance of a fix being released by the time 8.04.1 comes out?

Revision history for this message
godlygeek (godlygeek+launchpad) wrote :

This patch should fix it. Problem is that we're doing bitwise arithmetic on a signed long that happens to be negative. Wackiness ensues, making the result an invalid offset for mmap(). Changing the long to unsigned fixes it.

Revision history for this message
godlygeek (godlygeek+launchpad) wrote :

This patch should fix it. Problem is that we're doing bitwise arithmetic on a signed long that happens to be negative. Wackiness ensues, making the result an invalid offset for mmap(). Changing the long to unsigned fixes it.

Revision history for this message
Alexander Jones (alex-weej) wrote :

Well done!

Revision history for this message
Zach (uid000) wrote :

Tried it. It works. At least with F1/F2 keys.

Revision history for this message
In , Steffen Röcker (sroecker) wrote :

Here is a patch that works for me:
https://bugs.launchpad.net/hal/+bug/206921/comments/27

Kudos to goodlygeek.

Revision history for this message
In , Danny Kukawka (danny-kukawka) wrote :

Okay, thanks for the info. The fix was also verified by the SUSE user. I've commited it to git master:

commit 9f5219eaa6c7423870b031fdfa07de6a84f25d6e
Author: Danny Kukawka <email address hidden>
Date: Fri Apr 25 22:18:24 2008 +0200

    fix macbook-backlight for ix86

    Fixed macbook-backlight for ix86 with a patch contributed by user
    'godlygeek' via: https://bugs.launchpad.net/hal/+bug/206921

    from comment #27:
    > This patch should fix it. Problem is that we're doing bitwise
    > arithmetic on a signed long that happens to be negative.
    > Wackiness ensues, making the result an invalid offset for mmap().
    > Changing the long to unsigned fixes it.

Changed in hal:
status: Confirmed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks a lot! I'll apply this in intrepid soon, and will do a stable release update for hardy.

Changed in gnome-power-manager:
status: Confirmed → Invalid
status: New → Invalid
Changed in hal:
assignee: nobody → pitti
status: Confirmed → In Progress
assignee: nobody → pitti
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in hal:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Uploaded to hardy-proposed, awaiting review and accepting now.

Revision history for this message
Steve Langasek (vorlon) wrote :

SRU ack.

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into hardy-proposed. Please test the packages from the archive and give feedback here. Thank you!

Changed in hal:
status: In Progress → Fix Committed
Revision history for this message
Thomas Perl (thp) wrote :

Yes, on my MacBook (Core Duo, August 2006), hal 0.5.11~rc2-1ubuntu8 fixes the problem for me, thanks!

Revision history for this message
Adrián (adrianbn) wrote :

Should I assume that waiting a few hours I'll be able to download the update simply using aptitude? Of course, I have hardy-proposed repository enabled. Im also using pommed and managing brightness directly through hardware, will it be any conflicts?

thanks
Adrian

Revision history for this message
Alexander Jones (alex-weej) wrote : Re: [Bug 206921] Re: MacBook brightness adjustment does not work in Hardy

The package will take a while to distribute on to the mirror network.
You can try the main archive if you want an up-to-the-minute test.

Also, you should remove pommed to test this. Granted, pommed works
system-wide (so you can change your screen brightness as soon as it
starts during boot, e.g.), while GNOME Power Manager is strictly (and
stupidly, IMO) per-session, so it's not quite a replacement.

Revision history for this message
Alexander Jones (alex-weej) wrote :

Just updated and rebooted, no dice. Same behaviour.

alex@fizz:~$ dpkg --status hal
Package: hal
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 1900
Maintainer: Ubuntu Core Developers <email address hidden>
Architecture: amd64
Version: 0.5.11~rc2-1ubuntu8
Depends: acl, adduser, consolekit, dbus (>= 0.61), hal-info (>=
20070402), libc6 (>= 2.4), libdbus-1-3 (>= 1.1.1), libdbus-glib-1-2
(>= 0.74), libexpat1 (>= 1.95.8), libgcc1 (>= 1:4.1.1-21),
libglib2.0-0 (>= 2.16.0), libhal-storage1 (>= 0.5.11~rc2), libhal1 (>=
0.5.10), libpolkit2, libsmbios1, libstdc++6 (>= 4.1.1-21),
libusb-0.1-4 (>= 2:0.1.12), lsb-base, mount (>= 2.13), pciutils,
pm-utils, policykit (>= 0.7), udev (>= 0.065), usbutils, zlib1g (>=
1:1.2.3.3.dfsg-1)
Recommends: eject, libsmbios-bin
Suggests: gnome-device-manager
Conffiles:
 /etc/default/hal f505ed84310d5614ac67abe95828d519
 /etc/init.d/hal 39864c1cadce17122780e30d9a3abe2c
 /etc/udev/rules.d/95-hal.rules 1afe5cd68445909b1df6c63b405eead3
 /etc/hal/fdi/policy/preferences.fdi 02a0788d8d5599fa703963e120c8c4ac
 /etc/dbus-1/system.d/hal.conf 476bb09bf3ab178b66513d85d8938883
Description: Hardware Abstraction Layer
 HAL provides an abstract view on hardware.
 .
 This abstraction layer is simply an interface that makes it possible to
 add support for new devices and new ways of connecting devices to the
 computer, without modifying every application that uses the device.
 It maintains a list of devices that currently exist, and can provide
 information about those upon request.
Homepage: http://hal.freedesktop.org/
Original-Maintainer: Utopia Maintenance Team
<email address hidden>

alex@fizz:~$ dpkg --status libhal1
Package: libhal1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 196
Maintainer: Ubuntu Core Developers <email address hidden>
Architecture: amd64
Source: hal
Version: 0.5.11~rc2-1ubuntu8
Depends: libc6 (>= 2.4), libdbus-1-3 (>= 1.1.1)
Description: Hardware Abstraction Layer - shared library
 HAL provides an abstract view on hardware.
 .
 This abstraction layer is simply an interface that makes it possible to
 add support for new devices and new ways of connecting devices to the
 computer, without modifying every application that uses the device.
 It maintains a list of devices that currently exist, and can provide
 information about those upon request.
 .
 This package contains shared libraries to be used by applications.
Homepage: http://hal.freedesktop.org/
Original-Maintainer: Utopia Maintenance Team
<email address hidden>

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

This should fix it for many people. For everyone else (Alexander Jones), please file a new bug against hal, and do the steps on https://wiki.ubuntu.com/DebuggingHal (with the latest version 0.5.11~rc2-1ubuntu8). Thank you!

Changed in hal:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hal - 0.5.11~rc2-1ubuntu9

---------------
hal (0.5.11~rc2-1ubuntu9) intrepid; urgency=low

  * Add 03_increase_helper_timeout.patch: Increase helper timeout from 10 to
    20 seconds. Some CD-ROMs are too slow to do all the detection in 10
    seconds. (LP: #218834)

hal (0.5.11~rc2-1ubuntu8) hardy-proposed; urgency=low

  * debian/hal.postinst: If hal has any start rc symlinks, force them back to
    24. A lot of people end up with priority 12 for some reason, which races
    with dbus startup, especially with CONCURRENCY=shell. (LP: #25931)
  * Add 00upstream-fix-macbook-backlight.patch: Fix backlight control on
    MacBooks. Thanks to godlygeek! (LP: #206921)

 -- Martin Pitt <email address hidden> Wed, 30 Apr 2008 11:00:07 +0200

Changed in hal:
status: Fix Committed → Fix Released
Revision history for this message
Alexander Jones (alex-weej) wrote :
Revision history for this message
Davide Bertola (dade) wrote :

I'm using intrepid
hal :
Version: 0.5.11-3~ubuntu8

backlight control is not working. It just sets 2 values (looks like it's minimum and maximum backlight) randomly when I move the slider. F1 and F2 are not working at all and xbacklight has the same issue
i.e.
xbacklight -set 84 <- minimum brightness
xbacklight -set 95 <- maximum brightness
xbacklight -set 96 <- mininum again..
and so on.

On boderline values the brightness shuts off completely.

Revision history for this message
Krzysztof Janowicz (janowicz) wrote :

i just upgraded to intrepid and both, F1/F2 screen brightness and F8-F10 keyboard light stopped working. the sound level adjustment using F3-F5 works fine.

Revision history for this message
Ferdinand Hagethorn (ferdinand-hagethorn) wrote :

Hi, I'm experiencing the same problem here, I've got a macbook1,1 and just installed intrepid beta from dvd, all worked untill i did an upgrade to the latest packages. Now only sound mute/-/+ works, brightness keys and eject key don't.

Revision history for this message
Bryan (poli0048) wrote :

Hi- I have an HP dv2000. A recent upgrade has made it impossible for me to control my screens backlight as well. The fn F7/F8 keys don't work, and the gnome brightness applet does not work. Also, non of the mentioned work-arounds appear to be working on my machine either. Everything worked when I first installed Intrepid- this just broke with a recent update.

Revision history for this message
jpfle (jpfle) wrote :

Martin Pitt wrote:
> This should fix it for many people. For everyone else (Alexander Jones), please file a new bug against hal

OK, done: bug 321030

I've still this bug with a MacBook Pro (Core 2 Duo Penryn), Ubuntu 8.10 (64-bit) and hal 0.5.11-4ubuntu4. The keys F1/F2 (brightness) and F5/F6 (backlight) don't work. Press these keys (with fn or not) does nothing. The brightness is always at 100% and the backlight doesn't work.

Revision history for this message
Bryan (ballisox) wrote :

I also have this bug on my Macbook Pro 4,1 (Santa Rosa) running Ubuntu x86. F1/F2 keys and F5/F6 keys suddenly stopped working after last week's updates. I can also confirm this same issue on the same hardware with Ubuntu x64.

Revision history for this message
Bryan (ballisox) wrote :

Is there a status on this issue? Is there a fix available? I tried pommed and it did allow for keyboard and display brightness adjustment, with some configuration, a side effect was an extremely sensitive track pad and disabled the muti-touch trackpad functionality.

I've been searching for weeks for a fix. Unless I missed it somewhere, which is altogether possible, can someone point me to it?

thanks :)

Revision history for this message
zatix (zatix) wrote :

I am having the same problem with my macbook 5.5 and ubuntu 9.10, i can not change the brightness, how can I execute this ( http://launchpadlibrarian.net/13831729/macbook-backlight-mmap.patch ) to fix it?

thanks

Changed in hal:
importance: Unknown → Medium
Changed in hal:
importance: Medium → Unknown
Changed in hal:
importance: Unknown → Medium
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.