Kpowersave won't control lcd brightness [Solved]

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Kpowersave won't control lcd brightness [Solved]

Postby chickpea » Sun May 25, 2008 16:50

Since 2.6.23-r1 (I now use 2.6.25) I haven't been able to adjust the brightness of my LCD.

Any ideas on how to fix this? I have an HP dv6408nr

Code: Select all
[email protected] ~ $ uname -a
Linux HPLaptop 2.6.25-sabayon #1 SMP Mon May 19 10:45:27 EDT 2008 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-56 AuthenticAMD GNU/Linux


Seems like it might be an ACPI problem check out this output, looks like video is missing no?

Code: Select all
cd /proc/acpi/
ac_adapter/          event                processor/
battery/             fadt                 sleep
button/              fan/                 thermal_zone/
dsdt                 info                 wakeup
embedded_controller/ power_resource/


Code: Select all
[email protected] ~ $ sudo cat /usr/src/config | grep LCD
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=y
CONFIG_LCD_LTV350QV=y
CONFIG_USB_LCD=m


Code: Select all
[email protected] ~ $ sudo cat /usr/src/config | grep ACPI
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_BAY=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_WMI is not set
CONFIG_ACPI_ASUS=m
CONFIG_ACPI_TOSHIBA=m
CONFIG_ACPI_CUSTOM_DSDT_FILE=""
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=m
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_POWERNOW_K8_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
CONFIG_PNPACPI=y
# CONFIG_THINKPAD_ACPI is not set
CONFIG_ATA_ACPI=y
# CONFIG_PATA_ACPI is not set



Anything that stands out?

EDIT: included correct cat output
Last edited by chickpea on Thu Jul 31, 2008 18:28, edited 1 time in total.
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC

Re: Kpowersave won't control lcd brightness

Postby Fitzcarraldo » Mon May 26, 2008 23:02

I can adjust the brightness of the LCD on my Acer TravelMate 8215WLMi laptop. Here's the equivalent information in my case, in case it is of use:

Code: Select all
# uname -a
Linux localhost 2.6.25-sabayon #1 SMP Wed May 21 09:56:07 BST 2008 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux


Code: Select all
# cd /proc/acpi/
# ls
ac_adapter  dsdt                 fadt  power_resource  thermal_zone
battery     embedded_controller  fan   processor       wakeup
button      event                info  sleep
#


Code: Select all
# cat /usr/src/config | grep LCD
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=m
CONFIG_FB_ATY_GENERIC_LCD=y
CONFIG_USB_LCD=m
#


Code: Select all
# cat /usr/src/config | grep ACPI
CONFIG_X86_64_ACPI_NUMA=y
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_SLEEP_PROC_SLEEP=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_BAY=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
CONFIG_ACPI_ASUS=y
CONFIG_ACPI_IBM=y
CONFIG_ACPI_TOSHIBA=y
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=m
CONFIG_X86_POWERNOW_K8_ACPI=y
CONFIG_X86_ACPI_CPUFREQ=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
CONFIG_PNPACPI=y
CONFIG_THINKPAD_ACPI=m
# CONFIG_THINKPAD_ACPI_DEBUG is not set
CONFIG_THINKPAD_ACPI_BAY=y
CONFIG_ATA_ACPI=y
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Kpowersave won't control lcd brightness

Postby chickpea » Tue May 27, 2008 14:46

Fitz that was a big help thanks! I noticed this in your config:

Code: Select all
CONFIG_ACPI_VIDEO=y


I don't have that in mine. Looks like I need to hunt around in the ACPI configs (something that I usually don't touch when compiling kernels) and see which one I need to activate. More than likely, somewhere between 2.6.22 and 2.6.25 that config file changed and since I zcatted my config it just never picked up that change. I'll post back with results later.
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC

Re: Kpowersave won't control lcd brightness

Postby chickpea » Fri May 30, 2008 2:53

this config option doesn't exist anymore in either xconfig or menuconfig. Anyone know how to control this option? If I just put this in my /usr/src/.config might it work?
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC

Re: Kpowersave won't control lcd brightness

Postby Fitzcarraldo » Fri May 30, 2008 3:19

Sorry for wasting your time, chickpea: I've just realised that I gave you the wrong information. /usr/src/config on my laptop was still for the 2.6.22 kernel as it was the result of a zcat on a running 2.6.22 kernel before I built the 2.6.25 kernel. What I should have done was:

Code: Select all
# sudo cat /usr/src/linux/.config | grep LCD
CONFIG_FB_ATY_GENERIC_LCD=y
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=m
CONFIG_LCD_LTV350QV=m
CONFIG_USB_LCD=m


Code: Select all
# cat /usr/src/linux/.config | grep ACPI
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_BAY=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
CONFIG_ACPI_WMI=y
CONFIG_ACPI_ASUS=y
CONFIG_ACPI_TOSHIBA=y
CONFIG_ACPI_CUSTOM_DSDT_FILE=""
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=m
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_POWERNOW_K8_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
CONFIG_PNPACPI=y
CONFIG_THINKPAD_ACPI=m
# CONFIG_THINKPAD_ACPI_DEBUG is not set
CONFIG_THINKPAD_ACPI_BAY=y
CONFIG_THINKPAD_ACPI_VIDEO=y
CONFIG_THINKPAD_ACPI_HOTKEY_POLL=y
CONFIG_ATA_ACPI=y
CONFIG_PATA_ACPI=y

which are for the 2.6.25 kernel.

And for good measure I've just done:

Code: Select all
localhost src # zcat /proc/config.gz > /usr/src/config
localhost src # cat /usr/src/config | grep LCD
CONFIG_FB_ATY_GENERIC_LCD=y
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=m
CONFIG_LCD_LTV350QV=m
CONFIG_USB_LCD=m
localhost src # cat /usr/src/config | grep ACPI
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_BAY=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
CONFIG_ACPI_WMI=y
CONFIG_ACPI_ASUS=y
CONFIG_ACPI_TOSHIBA=y
CONFIG_ACPI_CUSTOM_DSDT_FILE=""
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=m
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_POWERNOW_K8_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
CONFIG_PNPACPI=y
CONFIG_THINKPAD_ACPI=m
# CONFIG_THINKPAD_ACPI_DEBUG is not set
CONFIG_THINKPAD_ACPI_BAY=y
CONFIG_THINKPAD_ACPI_VIDEO=y
CONFIG_THINKPAD_ACPI_HOTKEY_POLL=y
CONFIG_ATA_ACPI=y
CONFIG_PATA_ACPI=y
localhost src #
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Kpowersave won't control lcd brightness

Postby chickpea » Thu Jul 31, 2008 18:27

Finally fixed this. The method: was downloaded kernel config from 3.5 (I was using a HIGHLY modified kernel config file from 3.something really old).

did a quick
Code: Select all
cat /home/username/Desktop/config > /usr/src/config


then I just ran genkernel as normal, sure enough at xconfig stage I could see that VIDEO was now an option under the ACPI kernel modules. :D

Then I just configured my kernel (stripping half the unneeded crap out of the default kernel) and installed, sure enough brightness control autodimming etc now work perfectly.

I realize this was a problem that only I was having, but in the event that in the future anyone else has this problem, I just thought I would provide a little guidance. After a while the kernel config file needs to be updated to the newer one and then customized to match your system.
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC


Return to Hardware

Who is online

Users browsing this forum: No registered users and 3 guests