Can't make my laptop to dim the display

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Can't make my laptop to dim the display

Postby zugunder » Dec 30th, '11, 21:28

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.
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22

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

Postby doktor5000 » Dec 30th, '11, 22:02

You could at least post the model of your laptop.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18064
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby zugunder » Dec 30th, '11, 23:20

It is Asus P50IJ:
http://www.asus.com/Commercial_Notebooks/P50_Series/P50IJ/#specifications
Almost the same configuration as described.
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22

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

Postby doktor5000 » Dec 31st, '11, 00:39

Can you try to add acpi=ht to the boot options next time you boot?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18064
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby djennings » Dec 31st, '11, 01:38

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
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

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

Postby zugunder » Dec 31st, '11, 02:25

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/
Last edited by zugunder on Dec 31st, '11, 02:32, edited 1 time in total.
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22

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

Postby zugunder » Dec 31st, '11, 02:28

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.
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22

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

Postby djennings » Dec 31st, '11, 02:51

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.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

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

Postby doktor5000 » Dec 31st, '11, 11:10

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18064
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby zugunder » Jan 3rd, '12, 01:11

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.
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22

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

Postby zugunder » Jan 3rd, '12, 01:18

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.
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22

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

Postby zugunder » Jan 6th, '12, 20:29

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?
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22

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

Postby zugunder » Jan 12th, '12, 01:53

Hi,

So does everything looks normal? Or did I ask anything totally stupid? ;-)
zugunder
 
Posts: 388
Joined: Jun 10th, '11, 00:22


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest