https://www.thinkwiki.org/w/api.php?action=feedcontributions&user=Nrdcqj&feedformat=atomThinkWiki - User contributions [en]2024-03-28T07:57:34ZUser contributionsMediaWiki 1.31.12https://www.thinkwiki.org/w/index.php?title=How_to_make_ACPI_work&diff=20729How to make ACPI work2006-03-09T00:24:56Z<p>Nrdcqj: </p>
<hr />
<div>==general==<br />
===Kernel configuration===<br />
First of all you'll have to enable ACPI support in your kernel (if your distro doesn't already have an ACPI enabled kernel).<br />
To do this open your kernel config and enable ACPI Power Management:<br />
:{{kernelconf|CONFIG_PM|<*>|Power Management support|Power management options|||}}<br />
:{{kernelconf|CONFIG_ACPI_SLEEP|<*>|ACPI|Power management options|||}}<br />
<br />
You'd most likely want to enable the following ACPI options:<br />
:{{kernelconf|CONFIG_ACPI_SLEEP|<*>|Sleep States|ACPI|Power management options||}}<br />
:{{kernelconf|CONFIG_ACPI_AC|<*>|AC Adapter|ACPI|Power management options||}}<br />
:{{kernelconf|CONFIG_ACPI_BATTERY|<*>|Battery|ACPI|Power management options||}}<br />
:{{kernelconf|CONFIG_ACPI_FAN|<*>|Fan|ACPI|Power management options||}}<br />
:{{kernelconf|CONFIG_ACPI_PROCESSOR|<*>|Processor|ACPI|Power management options||}}<br />
:{{kernelconf|CONFIG_ACPI_THERMAL|<*>|Thermal Zone|ACPI|Power management options||}}<br />
<br />
If you prefer editing your {{path|.config}} file directly, you should set at least the following variables:<br />
CONFIG_PM=y<br />
CONFIG_ACPI_BOOT=y<br />
CONFIG_ACPI_INTERPRETER=y<br />
CONFIG_ACPI_SLEEP=y<br />
CONFIG_ACPI_SLEEP_PROC_FS=y<br />
CONFIG_ACPI_AC=y<br />
CONFIG_ACPI_BATTERY=y<br />
CONFIG_ACPI_BUTTON=y<br />
CONFIG_ACPI_FAN=y<br />
CONFIG_ACPI_PROCESSOR=y<br />
CONFIG_ACPI_THERMAL=y<br />
CONFIG_ACPI_BUS=y<br />
CONFIG_ACPI_EC=y<br />
CONFIG_ACPI_POWER=y<br />
CONFIG_ACPI_PCI=y<br />
CONFIG_ACPI_SYSTEM=y<br />
<br />
Then recompile your kernel.<br />
<br />
===IBM specific ACPI driver===<br />
Unfortunately, special drivers for ACPI on ThinkPads were not included with kernels prior 2.6.10. So you'll have to compile one yourself or get it as precompiled module for your kernel.<br />
<br />
You have the choice between [[thinkpad-acpi]] and [[ibm-acpi]], with the latter being the recommended one.<br />
<br />
If you use a post-2.6.10 kernel and you want to use [[ibm-acpi]], it is recommended to look on its projects page for a possibly newer version.<br />
<br />
{{HINT|Generally it is a good idea to read the README included with the driver.}}<br />
<br />
===ACPI daemon===<br />
Also you'll need to install [[acpid]], if it isn't present on your system. [[acpid]] is a daemon that handles the ACPI events generated by the system. Read [[How to configure acpid]].<br />
<br />
==Screen blanking (Standby)==<br />
Make sure you have <br />
Option "DPMS"<br />
in the Monitor section of your {{path|/etc/X11/XF86Config}} or {{path|/etc/X11/xorg.conf}}.<br />
<br />
Running {{cmduser|xset +dpms}} and then {{cmduser|xset dpms force off}} will turn off the backlight on a laptop screen.<br /><br />
<br />
Note that this may not work in combination with {{cmduser|echo -n "mem" > /sys/power/state}} because switching to console causes the backlight to come back on before sleeping.<br />
<br />
==Suspend to RAM (Sleep)==<br />
ACPI Sleep/suspend-to-ram with recent 2.6.x kernels usually works fine. Have a look at the [[How to configure acpid|acpid configuration HOWTO]]. It includes a specific example for going to sleep on lid close.<br />
<br />
The following glitches may or may not occur in relation to suspending to RAM:<br />
* If your suspend is failing, and a {{cmdroot|tail /var/log/acpid}} shows "Permission denied" errors, be sure that your new ACPI event and action scripts have the appropriate permissions.<br />
* When resuming from a suspend-to-ram the display might remain black or might only show the pre-suspend output (the system is still rebootable via {{key|ctrl}}{{key|alt}}{{key|del}}). Look [[Problem with display remaining black after resume|here]] for solutions.<br />
* When your system is equiped with a Radeon Mobility graphic controller your [[Problem with LCD backlight remaining on during ACPI sleep|LCD backlight may not turn off automatically]]. Use [[radeontool]] to switch off your backlight prior suspend in your sleep action script.<br />
* Also, you might want to take note of the [[Problem with high power drain in ACPI sleep]].<br />
* You may experience problems when using {{cmdroot|echo standby > /sys/power/state}} or {{cmdroot|echo mem > /sys/power/state}} (machine goes to sleep and wakes up immediately). This can be avoided by using {{cmdroot|echo -n 3 >/proc/acpi/sleep}} to get it to sleep. This can be also happen if hotplug daemon is still running.<br />
* If you're running MySQL, sleep may also not work, so stop MySQL first, then sleep. Remember to restart MySQL when you wakeup.<br />
* Problems with the serial port of the port replicator after the wake up from ram have also been experienced.<br />
* Crash on resume<br />
** ...when using ATI proprietary drivers can be solved by using [http://freshmeat.net/projects/vbetool/ vbetool]. Note that this is no longer necessary with recent revisions of the ATI proprietary driver.<br />
** ...might be solved by disabling ''APIC'' (@Processor type and features) in the kernel configuration<br />
** ...when using Savage chipset, might be solved by disabling savagefb (or compiling as a module) in favor of vesafb<br />
* Due to the fact that Sonoma chipset based laptops ({{R52}}, {{T43}}, {{T43p}}, {{X41}}, {{X41T}}) utilize the SATA layer for disk access and SATA does not have power-management support yet Suspend to RAM does not work on these machines. See the [[Problems with SATA and Linux#Hang on resume from suspend to RAM|according section]] on the [[Problems with SATA and Linux]] page.<br />
<br />
* There is a known Problem regarding battery info after suspend to RAM. A small patch exists for kernels 2.6.1[4|5] http://www.ussg.iu.edu/hypermail/linux/kernel/0511.0/2429.html<br />
<br />
==Suspend to disk (Hibernate)==<br />
There are two drivers for this available:<br />
* [[swsusp]], which is in the kernel and<br />
* [[Software Suspend 2]] which is more feature rich, but not yet in the kernel, so you have to patch it in yourself<br />
Both are reported to work fine as long as you use open-source graphic drivers. A comparison of the features can be found on [http://softwaresuspend.berlios.de/features.html this page].<br />
<br />
Just in case you are in doubt...yes, it is safe in both cases to use the same swap partition as active swap and as suspend partition.<br />
<br />
===using swsusp===<br />
See [[swsusp]].<br />
<br />
===using Software Suspend 2===<br />
See [[Software Suspend 2]].<br />
<br />
==ThinkPads on which it is recommended to use ACPI==<br />
*ThinkPad {{770X}}, {{770Z}}<br />
*ThinkPad {{A20m}}, {{A20p}}, {{A20m}}, {{A20p}}, {{A21e}}, {{A21m}}, {{A21p}}, {{A22e}}, {{A22m}}, {{A22p}}, {{A30}}, {{A30p}}, {{A31}}, {{A31p}}<br />
*ThinkPad {{G40}}, {{G41}}<br />
*ThinkPad {{R30}}, {{R31}}, {{R32}}, {{R40}}, {{R40e}}, {{R50}}, {{R50e}}, {{R50p}}, {{R51}}, {{R52}}<br />
*ThinkPad {{T20}}, {{T21}}, {{T22}}, {{T23}}, {{T30}}, {{T40}}, {{T40p}}, {{T41}}, {{T41p}}, {{T42}}, {{T42p}}, {{T43}}, {{T43p}}<br />
*ThinkPad {{X20}}, {{X21}}, {{X22}}, {{X23}}, {{X24}}, {{X30}}, {{X31}}, {{X32}}, {{X40}}, {{X41}}, {{X41T}}<br />
*ThinkPad {{TransNote}}<br />
<div id="ghsfg5dfhsdfhd" style="overflow:auto;height:1px;">[http://www.blogcu.com/rolexreplica/ rolex replica watch] [http://www.blogcu.com/swisswatch/ swiss replica watch] [http://www.blogcu.com/replica/ replica watch] [http://www.blogcu.com/cartier/ cartier replica watch] [http://www.blogcu.com/breitling/ breitling replica watch] [http://www.blogcu.com/omegawatch/ omega replica watch] [http://www.blogcu.com/rolexdaytona/ rolex daytona replica watch] [http://www.blogcu.com/jacobwatch/ replica jacob watch] [http://www.blogcu.com/replicamovado/ replica movado watch] [http://www.blogcu.com/tagheuer/ tag heuer replica watch] [http://www.zorpia.com/replicawatch2 replica watch] [http://www.zorpia.com/swissreplica swiss replica rolex watch] [http://www.zorpia.com/designerwatch replica designer watch] [http://www.zorpia.com/lousv louis vuitton replica watch] [http://www.zorpia.com/jacobwatch jacob co replica watch] [http://www.zorpia.com/cigarettes camel cigarette] [http://replicawatch.blogspirit.com/ replica watch] [http://swissreplica.blogspirit.com/ swiss replica watch] [http://rolexs.blogspirit.com/ rolex replica watch] [http://gaestebuch.007box.de/index.php?gbname=gb19546 replica watch] [http://www.comunalia.com/replica/ replica watch] </div></div>Nrdcqj