[Bug 645195] Re: LCD backlight control doesn't work for MacbookPro - patch

2010-09-22 Thread Sarath Lakshman

** Patch added: "Patch for hal to fix the brightness"
   
https://bugs.launchpad.net/bugs/645195/+attachment/1622529/+files/addon-generic-backlight.c

-- 
LCD backlight control doesn't work for MacbookPro - patch
https://bugs.launchpad.net/bugs/645195
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 645195] [NEW] LCD backlight control doesn't work for MacbookPro - patch

2010-09-22 Thread Sarath Lakshman
Public bug reported:

Binary package hint: hal

Machine: Macbookpro 13, nvidia_bl module runs for GeForce 320M

While pressing brightness increase and decrease button, the brightness
levels doesn't increase or decrease but it shows notify-osd
notification. I debugged it and found our that it is an issue with size
of buffer. The effective buffer suze is set to be 3 character size.
Hence the brightness values can only range from 0 - 999. But the
nvidia_bl module creates the corresponding
/sys/devices/virtual/backlight/nvidia_backlight/brightness files. The
maximum brightness is 44000, which cannot reach due to buffer size 3.
and hence only it is possible to increase upto 999.

I have attached a patch which resolves the problem by increasing buffer
size.

** Affects: hal (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: backlight hal macbookpro nvidia-bl

-- 
LCD backlight control doesn't work for MacbookPro - patch
https://bugs.launchpad.net/bugs/645195
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs