I have a PCG-GRT35F Sony Vaio laptop, running kernel 2.6.15
Here are parts of my config
Code:
# 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 is not set
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_HOTKEY=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
CONFIG_ACPI_ASUS=m
CONFIG_ACPI_IBM=m
CONFIG_ACPI_TOSHIBA=m
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=m
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
CONFIG_APM_REAL_MODE_POWER_OFF=y
And in my /etc/rc.d/rc.modules i have
Code:
/sbin/modprobe apm
/sbin/modprobe sonypi
/sbin/modprobe ac
/sbin/modprobe battery
/sbin/modprobe fan
/sbin/modprobe thermal
Of course, i downloaded and "make" "checkinstall" sonypid and spicctrl from
http://popies.net/sonypi/ then i was able to use the battery and sony vaio laptop menus from kde control center.
To change brightness i type spicctrl -b (set lcd screen brightness 0-255)
And last, here's a post i found somewhere that helped me on this, good luck
Code:
The kernel modules are already compiled with the original kernel. They're just not loaded.
You have to
# modprobe ac
# modprobe battery
Put those commands in a simple script that sits in /etc/rc5.d (and any other run level you want) an
d it the battery applet starts up.
If you are already in KDE and you type those commands into a terminal, your battery applet won't st
art. KDE has to start after those modules are loaded. That's why in /etc/rc5.d, you want to name yo
ur script S30scriptname. The kde startup script is named S99kdm. Any script that you put in there (
don't forget to make it executable) that you want to run before KDE should be named with S<number l
ower than 99> like S30scriptname.
If you want to test it out, log out of kde and log in to a plain command line session. Type those m
odprobe commands and then log back into KDE (all with out rebooting). The battery applet will work.
One more thing. There are other acpi modules that you can load up in your script. The ones that I i
ncluded are
modprobe fan
modprobe processor
modprobe button
modprobe thermal
I'm don't know if this is all of the power control modules available or even what they do. I'm thin
king that they have to do with enabling your computer to fall into hibernate or standby or whatever
when certain conditions are met (like your processor gets too hot or something).