Page 1 of 1

Can't make my laptop to dim the display

PostPosted: Dec 30th, '11, 21:28
by zugunder
Hi,

For some reason the function of automatic dimming of the display doesn't work on my laptop. Actually, it had never worked under Mandriva 2010, but it did when I ran Zenwalk from a LiveCD, so it doesn't seem to be completely hopeless :D
Where should I look for the cure?
Asus laptop, Intel graphics, Mageia1 x86_64. Brightness keys work (with minor troubles). Automatic sleep/wake are OK.

Thank you.

Re: Can't make my laptop to dim the display

PostPosted: Dec 30th, '11, 22:02
by doktor5000
You could at least post the model of your laptop.

Re: Can't make my laptop to dim the display

PostPosted: Dec 30th, '11, 23:20
by zugunder
It is Asus P50IJ:
http://www.asus.com/Commercial_Notebooks/P50_Series/P50IJ/#specifications
Almost the same configuration as described.

Re: Can't make my laptop to dim the display

PostPosted: Dec 31st, '11, 00:39
by doktor5000
Can you try to add acpi=ht to the boot options next time you boot?

Re: Can't make my laptop to dim the display

PostPosted: Dec 31st, '11, 01:38
by djennings
Which desktop are you using?

Do you have the asus-laptop module installed?
To check
Code: Select all
lsmod | grep asus

To install
Code: Select all
modprobe asus-laptop

To load automatically at boot add a line
asus-laptop
to /etc/modprobe.preload

With the module installed these commands should set the brightness level
Code: Select all
echo 1  > /sys/devices/platform/asus-laptop/ls_switch
echo 15  > /sys/devices/platform/asus-laptop/ls_level

Re: Can't make my laptop to dim the display

PostPosted: Dec 31st, '11, 02:25
by zugunder
Thank you for your help!

I am using KDE.
Here is what I have:
Code: Select all
# lsmod | grep asus
asus_laptop                 19955  0
sparse_keymap           13898  1 asus_laptop
rfkill                            26083  2 cfg80211,asus_laptop

So the module is in place.

Is it possible to edit corresponding configuration files to set the proper brightness instead of running those commands?
BTW, I do not have these files:
ls_switch
ls_level

in
/sys/devices/platform/asus-laptop/

Re: Can't make my laptop to dim the display

PostPosted: Dec 31st, '11, 02:28
by zugunder
doktor5000 wrote:Can you try to add acpi=ht to the boot options next time you boot?

Do you mean to turn off ACPI completely? I can do it via Boot settings in MCC I guess. I will try it.

Re: Can't make my laptop to dim the display

PostPosted: Dec 31st, '11, 02:51
by djennings
Is it possible to edit corresponding configuration files to set the proper brightness instead of running those commands?
BTW, I do not have these files:
ls_switch
ls_level

You can put the commands in /etc/rc.local and they will execute at the end of the boot sequence.
Do the commands work? I would expect you would need to have /sys/devices/platform/asus-laptop/ls_level present for them to work.

You might also check
Code: Select all
dmesg | grep asus
to get some clue as to what is happening.

Re: Can't make my laptop to dim the display

PostPosted: Dec 31st, '11, 11:10
by doktor5000
zugunder wrote:
doktor5000 wrote:Can you try to add acpi=ht to the boot options next time you boot?

Do you mean to turn off ACPI completely? I can do it via Boot settings in MCC I guess. I will try it.

Nope, i meant exactly what i wrote. This leaves only stable ACPI functions enabled.

Also please show the output of
Code: Select all
find /proc | grep -i brightness
and
Code: Select all
find /sys | grep -i brightness

Re: Can't make my laptop to dim the display

PostPosted: Jan 3rd, '12, 01:11
by zugunder
doctor5000
I added a parameter acpi=ht to the boot options in MCC > Boot > Set up boot system and restarted the system.
I did not notice any difference - though I still can change screen brightness via function keys, no display dimming and no brightness changes when I toggle between different power profiles.
As for the outputs, here they are:
Code: Select all
# find /proc | grep -i brightness
# find /sys | grep -i brightness
/sys/devices/virtual/backlight/acpi_video0/brightness
/sys/devices/virtual/backlight/acpi_video0/actual_brightness
/sys/devices/virtual/backlight/acpi_video0/max_brightness
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/leds/ath9k-phy0::radio/brightness
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/leds/ath9k-phy0::radio/max_brightness
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/leds/ath9k-phy0::assoc/brightness
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/leds/ath9k-phy0::assoc/max_brightness
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/leds/ath9k-phy0::tx/brightness
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/leds/ath9k-phy0::tx/max_brightness
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/leds/ath9k-phy0::rx/brightness
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/leds/ath9k-phy0::rx/max_brightness
/sys/module/video/parameters/brightness_switch_enabled


Thank you.

Re: Can't make my laptop to dim the display

PostPosted: Jan 3rd, '12, 01:18
by zugunder
djennings
Code: Select all
# dmesg | grep asus
asus_laptop: Asus Laptop Support version 0.42
asus_laptop:   P50IJ model detected
asus_laptop: Backlight controlled by ACPI video driver
input: Asus Laptop extra buttons as /devices/platform/asus_laptop/input/input6


To be honest, I do not see any useful info here - apart from that ACPI controls backlight and my laptop model is recognized correctly. Just the way it should be, right?

Do you suggest to create those 2 files manually and put values 1 and 15 into them? Sorry, I am not a programmer, but it is the way I understood those 2 commands you mentioned. :)

Thank you.

Re: Can't make my laptop to dim the display

PostPosted: Jan 6th, '12, 20:29
by zugunder
So is it correct that the problem is because the display backlight is controlled by ACPI, but not by asus-laptop module? Does it mean that the asus module does not support backlight control itself and relies on ACPI in that?

Re: Can't make my laptop to dim the display

PostPosted: Jan 12th, '12, 01:53
by zugunder
Hi,

So does everything looks normal? Or did I ask anything totally stupid? ;-)