Laptop brightness on acer laptops.
Hi,
Is there any way to control laptop brightness on acer laptops ? The hardware keys work, ofcourse, but is there some software way to do it ? So that gnome-power-manager can reduce brightness when AC adapter is removed, etc. Also, so that I can use the brightness applet introduced in gnome 2.18 to control the brightness :) Up until now, Ubuntu, arch and any other distro for that matter, cannot control brightness on my Acer TravelMate 3260. Is there any solution ? Does libsmbios work for acer laptops ? Rohan. |
Some sample files you may find useful to review and edit for your hardware specs, all are from my Acer5100 laptop;
A copy of /etc/acpi/actions/ati-powermode.sh; Code:
#!/bin/sh Code:
# /etc/acpi/actions/ati-powermode.sh Code:
# ACPID config to power down machine if powerbutton is pressed, but only if |
My laptop does not have an ATI card. Your scripts are very useful. Thanks a lot :)
However, your scripts do not list any command to control screen brightness from software. It is possible, for eg, in HP, Dell, Asus notebooks. |
Sorry, I do not know of any software tools to manage the screen brightness/contrast. I find the the 'Fn'+bightness/contrast buttons to be just fine.
Yes, I realize that your laptop does not have an ATi graphics interface, but as you noted the scripts are useful. A little editing and renaming (???) should be all you need. After a little looking your laptop may not support (a BIOS issue) the acpi AC/Battery, please check around in the /proc/acpi directory structure for support. you should have sub-directories like ac-adapter and battery with files, example; $ ls /proc/acpi/battery/BAT1 alarm info state $ ls /proc/acpi/ac_adapter/ACAD state Here is another little script you may find useful (again some editing may be needed to match your hardware configuration), I named it chkpower and keep in in my home/bin directory; Code:
#!/bin/sh . |
Yes, Fn key combo is great, but being able to control it from software allows to write hooks like "reduce brightness to 50% when ac adapter is removed" and so on .. Just adds the professional touch, no real value :)
And, thank you - the chkpower script is great ! I am looking into acpitool now. |
You should have enough info now to create your own acpi script to control the brightness, the author at the acpitool site may be helpful with pointers.
I also have one last script for you, this one goes into the /etc/acpi/actions directory and is named battery.sh on my laptop, it shuts down the laptop when the battery level gets critical; Code:
#!/bin/sh |
Thanks a lot once again Lenard, the scripts are great !
|
command utility to reduce brightness
Hi
I wanna write a c program which reduces the monitor brightness(monitor screen has to become dim). So I want to know is there any command or api to dim the monitor. Please dont suggest xgamma -gamma "value". because it does not make the monitor dim. just it reduces RGB values. And that API or command must work for lcd, CRT, Laptop monitors. Thanks |
All times are GMT -5. The time now is 02:54 AM. |