Slackware on a Dell XPS 1210: Acpi
Enable the following in your kernel to use the linux acpi options such as suspend to disk and standby.
Power management options (ACPI, APM) --->
--- Power Management support
[*] Legacy Power Management API
[ ] Software Suspend
ACPI (Advanced Configuration and Power Interface) Support --->
[*] ACPI Support
<*> AC Adapter
<*> Battery
<*> Button
<*> Video
< > Generic Hotkey (EXPERIMENTAL)
<*> Fan
<*> Processor
<*> Thermal Zone
APM (Advanced Power Management) BIOS Support --->
CPU Frequency scaling --->
Select ‘AC Adapter’, ‘Battery’, ‘Button’, ‘Fan’, ‘Processor’ and ‘Thermal Zone’ for improving the laptop’s power management.
ACPI Events
This is still a work in progress but my acpi_handler.sh script will perform the following:
- Turn the screen off when the lid is closed
- Set screen off times for the ac adapter state (6 sec running on batt, 60s running on ac)
- Set CPU throttling for the ac adapter state (50% running on batt, 0% running on ac)
- Power button runs “shutdown -h now” command
Download my acpi_handler.sh to ‘/etc/acpi‘ and default to ‘/etc/acpi/events.’ The ‘default’ file monitors for all events and executes the ‘acpi_handler.sh’ script once a matching event has been detected.
Restart the acpid daemon for changes to be in effect:
# /etc/rc.d/rc.acpid restart
With the nVidia graphics card, the monitor does not turn off when you close the lid. The solution is to add the following to the Monitor section of your ‘/etc/X11/xorg.conf‘ file (View my xorg.conf under ’system files’ to the left):
Option "DPMS" "true"
The “true” part is specifically required by nVidia cards. Restart X for changes to take effect.
Suspend to Disk
Works using suspend2 kernel patch and the hibernate script. Does NOT work using the nvidia module. I successfully suspended to disk from the console and from X (tested with nv module). More info to follow.
What about suspend to disk? Did you get it to work?
Eduardo,
I’ve just installed Slackware 12 and I will be adding more info on ACPI. I haven’t got round to suspend to disk yet but I’m sure I will soon.