You are not logged in.

#1 2011-06-20 00:58:28

Sileem
Member
Registered: 2011-04-23
Posts: 20

Macbook Pro 7,1, Is it possible to save LCD Brightness

Finally managed to get Arch running on my Macbook Pro, very few issues, but the only things that bother me is the LCD Backlight is always on max brightness, and what bothers me more is the Keyboard LEDs always on max. Is there any way to set the last values on reboot? Or even change the default?

Offline

#2 2011-06-21 05:38:46

Markus00000
Member
Registered: 2011-03-27
Posts: 318

Re: Macbook Pro 7,1, Is it possible to save LCD Brightness

I have no MacBook so this answer might be wrong.

Usually, there are files that you can echo some value into to set the display or keyboard brightness. I found this link: http://blog.fejes.ca/?p=510

The commands are:
# echo YOUR_BRIGHTNESS > /sys/class/leds/smc::kbd_backlight/brightnes
# echo YOUR_BRIGHTNESS > /sys/devices/virtual/backlight/mbp_backlight/brightness

Possible brightness values seem to be 0-255.

To set this at boot, try to put both commands in /etc/rc.local.

Alternatively, you could use laptop-mode (https://wiki.archlinux.org/index.php/Laptop_Mode_Tools) and probably set these values via /etc/laptop-mode/conf.d/lcd-brightness.conf.

Offline

#3 2011-06-23 10:22:27

hayaka
Member
Registered: 2011-04-23
Posts: 2

Re: Macbook Pro 7,1, Is it possible to save LCD Brightness

I have a Macbook Pro 7,1.

You should try installing pommed (http://aur.archlinux.org/packages.php?ID=14833) and nvidia-bl (http://aur.archlinux.org/packages.php?ID=25467). That should let you control the screen and keyboard brightness with the function keys.

Offline

#4 2011-06-23 11:53:44

Sileem
Member
Registered: 2011-04-23
Posts: 20

Re: Macbook Pro 7,1, Is it possible to save LCD Brightness

hayaka wrote:

I have a Macbook Pro 7,1.

You should try installing pommed (http://aur.archlinux.org/packages.php?ID=14833) and nvidia-bl (http://aur.archlinux.org/packages.php?ID=25467). That should let you control the screen and keyboard brightness with the function keys.

That wasn't the issue, I could control it fine, but whenever the display would dim from not using it (Gnome3) when I moved the mouse, the screen would go back to max brightness and  the keyboard would be at medium.

Offline

#5 2011-06-24 17:07:34

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: Macbook Pro 7,1, Is it possible to save LCD Brightness

I'd say the same thing as Markus00000. A few lines of bash would solve this.

Offline

#6 2011-06-26 19:34:33

Sileem
Member
Registered: 2011-04-23
Posts: 20

Re: Macbook Pro 7,1, Is it possible to save LCD Brightness

Markus00000 wrote:

I have no MacBook so this answer might be wrong.

Usually, there are files that you can echo some value into to set the display or keyboard brightness. I found this link: http://blog.fejes.ca/?p=510

The commands are:
# echo YOUR_BRIGHTNESS > /sys/class/leds/smc::kbd_backlight/brightnes
# echo YOUR_BRIGHTNESS > /sys/devices/virtual/backlight/mbp_backlight/brightness

Possible brightness values seem to be 0-255.

To set this at boot, try to put both commands in /etc/rc.local.

Alternatively, you could use laptop-mode (https://wiki.archlinux.org/index.php/Laptop_Mode_Tools) and probably set these values via /etc/laptop-mode/conf.d/lcd-brightness.conf.

So, what i have done was put
echo 0 > /sys/class/leds/smc::kbd_backlight/brightnes
into my rc.local file, and it's still on at boot.

EDIT: Alternatively, if anyone knows how to entirely disable the keyboard backlight, that would be fine too, it's a useless feature for me really.

Last edited by Sileem (2011-06-26 19:52:01)

Offline

#7 2011-06-27 09:37:31

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: Macbook Pro 7,1, Is it possible to save LCD Brightness

Sileem wrote:

echo 0 > /sys/class/leds/smc::kbd_backlight/brightnes
into my rc.local file, and it's still on at boot.

this is missing an 's' at the end (which you would have seen if you tried the command manually first). Have you checked if '/sys/devices/virtual/backlight/mbp_backlight/brightness' exists? can you do a 'sudo echo 50 > /sys/devices/virtual/backlight/mbp_backlight/brightness' ? I don't want to sound rude but on this forum you're expected to do a little work yourself.

https://wiki.archlinux.org/index.php/Forum_Etiquette
http://www.catb.org/~esr/faqs/smart-questions.html

Last edited by rwd (2011-06-27 09:53:29)

Offline

Board footer

Powered by FluxBB