MacBook Unibody e la regolazione della luminosità sotto Ubuntu
NOTA: Questo post è l'evoluzione naturale del precedente sullo stesso tema.Finalmente qualcosa si muove e, grazie a Mario Schwalbe, l'hack che permetteva a NvClock di regolare la luminosità anche sotto Xorg (ricordo che il modulo mbp_nvidia_bl fornito dal team MacTel aveva proprio questo problema) è stato integrato in un nuovo modulo (che fornisce un apposita interfaccia sotto /sys e tutto quanto sia sufficiente per interagire con HAL).
Ubuntu
Per l'installazione procediamo nel seguente modo:
• Se non è stato ancora fatto, aggiungiamo il repository fornito dal team Mactel:
sudo nano /etc/apt/sources.list
e aggiungiamo al termine:
# MacTel PPA
deb http://ppa.launchpad.net/mactel-support/ubuntu jaunty main
deb-src http://ppa.launchpad.net/mactel-support/ubuntu jaunty main
deb http://ppa.launchpad.net/mactel-support/ubuntu jaunty main
deb-src http://ppa.launchpad.net/mactel-support/ubuntu jaunty main
infine aggiorniamo la lista dei pacchetti:
sudo apt-get update
• Installiamo il nuovo modulo:
sudo apt-get install nvidia_bl
aggiungiamo il modulo all'autoload:
sudo nano /etc/modules
inserendo al termine:
nvidia_bl shift=2
• Riavviamo (anzi spegnamo il notebook, visto che al momento il reboot non funziona) il sistema e ci godiamo questa feature.
Testato sotto Ubuntu 8.10 Intrepid Ibex e 9.04 Jaunty con:
- GNOME (disabilitare Use a ambient light to adjust LCD brightness sotto gnome-power-manager)
- KDE 4.2 RC
ArchLinux
E' possibile installare il modulo nvidia_bl attraverso AUR, basta andare a questa pagina, recuperare il tarball, scompattarlo e dare:
makepkg
Al termine dell'operazione (che potrebbere richiedere l'installazione di strumenti come make, patch & co) si può procedere all'installazione del pacchetto generato (situato nella stessa directory di compilazione):
pacman -U nome_package
Infine dobbiamo sistemare il caricamento dei moduli, aggiungendo in /etc/rc.conf alla voce MODULES:
nvidia_bl !mbp_nvidia_bl
Saluti.
• 4 commenti • Inserisci un commento • Pubblicato il 24 gennaio 2009 • Ultima modifica 28 agosto 2009 @ 1:14 •
2.
ercoppa
- 8 ottobre 2009 @ 21:59
> add acpi_backlight=vendor to grub's menu.lstI don't do this.
What do you have under /sys/class/backlight/?
Greets.
3.
W.H.Y
- 10 ottobre 2009 @ 1:17
I don't do this.> I removed it
In fact I just installed pommed and I can now control both screen and keyboard backlight (with some bugs left... I an not do it under an X session for some reason. I have to be under a tty. And the kernel can not find the module at boot time :/) I'm quite a newbie here, I'll dig the Intrenet for informations ^.^' Thanks for your help & your guide anyway, infos are useful, especially the reboot=pci =D
(>What do you have under /sys/class/backlight/?
/sys/class/backlight/nvidia_backlight:
actual_brightness
bl_power
brightness
max_brightness
power
subsystem
uevent
/sys/class/backlight/nvidia_backlight/power:
wakeup)
Greets !
4.
ercoppa
- 10 ottobre 2009 @ 13:49
> I an not do it under an X session for some reason. This because you have loaded mpb_nvidia_bl, probably you have not correctly blacklist this module.
>And the kernel can not find the module at boot time
Yuo can manually load it? Try uninstall e install again.
Greets.

I did install the nvidia_bl AUR package and blacklist the mbp_nvidia_bl, did the manipulations they ask for in nvidia-bl.install (add nvidia_bl to rc.conf and add acpi_backlight=vendor to grub's menu.lst) but nothing happens when I use the F1 or F2 backlight keys. Is there something I misunderstood somewhere ?
(I am using Arch, 2009.08, kernel version 2.6.30, on a Macbook 5,1)