HAL : macbook-backlight is broken for Macbook C2D

Bug #119184 reported by Movi
6
Affects Status Importance Assigned to Milestone
Feisty Backports
Invalid
Medium
Unassigned
HAL
Fix Released
Medium
hal (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The fdi policy in HAL is wrong fo Macbook Core 2 Duo - which is MacBook2,1. The fdi only matches against Macbook1,1

the line taken from /usr/share/hal/fdi/policy/10osvendor/10-macbook-backlight.fdi

  <match key="smbios.system.product" string="MacBook1,1">

for Core2Duo it should be
  <match key="smbios.system.product" string="MacBook2,1">.

I don't really have an understanding of XML, but the match key should include both models. Anyways, changing this bit enables backlight control for me (A Core2Duo Macbook).

Related branches

Revision history for this message
pveith (patrick-veith) wrote :

Apple changed its name from "Apple Computers, Inc" to just "Apple Inc." this makes the two fdi for newer macbook devices unusable in feisty.

Relevant files:
/usr/share/hal/fdi/policy/10osvendor/10-macbook-backlight.fdi
/usr/share/hal/fdi/policy/10osvendor/10-macbookpro-utils.fdi

Fix for the adventeres:
Change in line 6 of /usr/share/hal/fdi/policy/10osvendor/10-macbook-backlight.fdi "Apple Comupter, Inc" to "Apple Inc.".

Change in line 8 of /usr/share/hal/fdi/policy/10osvendor/10-macbookpro-utils.fdi "Apple Comupter, Inc" to "Apple Inc.".

That fixed the bug for me....

Revision history for this message
In , Johannes Hölzl (johannes-hoelzl) wrote :

Apple changed his smbios.system.manufacturer string for newer MacBooks
from "Apple Computers, Inc." to "Apple Inc.". So the file
"fdi/policy/10osvendor/10-macbook-backlight.fdi" needs to add this new
name to its matching key.

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

Created an attachment (id=10467)
Patch to fix the reported issue

Could you check if this patch help? I would propose we should check for 'Apple' and ' Inc.' in the fdi-file instead of double the matches.

Revision history for this message
In , Johannes Hölzl (johannes-hoelzl) wrote :

Tried the attached patch with hal 0.5.8.1 under Ubuntu. (Sorry couldn't get the git version to run properly :-( )

The matching for "Apple" and " Inc." works! Thanks!

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote :

Support for 2nd generation MacBooks is included in newer hal and the Apple Inc. rename is posted as freedesktop bug 11351

Changed in hal:
status: Unknown → In Progress
Changed in hal:
importance: Undecided → Medium
status: New → Triaged
Changed in feisty-backports:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
In , Danny Kukawka (danny-kukawka) wrote :

fixed in git trunk

Changed in hal:
status: In Progress → Fix Released
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

hal (0.5.9.1-1ubuntu6) gutsy; urgency=low

  * debian/patches/macbook-backlight.diff: Add backlight support to new
    MacBook and MacBookPro.
    Upstream commits:
    a88fc4ff5e21668d4c41fa5bc7d2188791250b7a
    68eb19a7cf5e31203bf7d1c8728e61afc74975bb
  (Closes LP: #119184)

 -- <email address hidden> (Fabio M. Di Nitto) Wed, 05 Sep 2007 05:52:20 +0200

Changed in hal:
status: Triaged → Fix Released
Revision history for this message
CTAF (goctaf) wrote :

the bug is not corrected for me with the 0.5.9.1-1. on macbook core 2 duo.

It worked under feisty if I doesnt use the hal package from backport.

Revision history for this message
CTAF (goctaf) wrote :

dont know why, but now it work again under gutsy without changing anything, sorry for the flood

Revision history for this message
Loe Spee (lgespee) wrote :

I installed Ubuntu 7.10 (Gutsy Gibbon) beta on my C2D MacBook and the screen backlighting control works out of the box (I did try it after downloading all updates up until 2007-09-30).
The only difference between Mac OS X and Ubuntu now is that the lowest lighting setting in Mac OS X really turns off the LCD backlighting whereas in Ubuntu it's not turned off just has a very low setting.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Feisty is EOL

Changed in feisty-backports:
status: Triaged → Invalid
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.