<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ncujpr</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ncujpr"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Ncujpr"/>
	<updated>2026-04-19T06:34:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_make_ACPI_work&amp;diff=20745</id>
		<title>How to make ACPI work</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_make_ACPI_work&amp;diff=20745"/>
		<updated>2006-03-09T08:42:07Z</updated>

		<summary type="html">&lt;p&gt;Ncujpr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==general==&lt;br /&gt;
===Kernel configuration===&lt;br /&gt;
First of all you'll have to enable ACPI support in your kernel (if your distro doesn't already have an ACPI enabled kernel).&lt;br /&gt;
To do this open your kernel config and enable ACPI Power Management:&lt;br /&gt;
:{{kernelconf|CONFIG_PM|&amp;lt;*&amp;gt;|Power Management support|Power management options|||}}&lt;br /&gt;
:{{kernelconf|CONFIG_ACPI_SLEEP|&amp;lt;*&amp;gt;|ACPI|Power management options|||}}&lt;br /&gt;
&lt;br /&gt;
You'd most likely want to enable the following ACPI options:&lt;br /&gt;
:{{kernelconf|CONFIG_ACPI_SLEEP|&amp;lt;*&amp;gt;|Sleep States|ACPI|Power management options||}}&lt;br /&gt;
:{{kernelconf|CONFIG_ACPI_AC|&amp;lt;*&amp;gt;|AC Adapter|ACPI|Power management options||}}&lt;br /&gt;
:{{kernelconf|CONFIG_ACPI_BATTERY|&amp;lt;*&amp;gt;|Battery|ACPI|Power management options||}}&lt;br /&gt;
:{{kernelconf|CONFIG_ACPI_FAN|&amp;lt;*&amp;gt;|Fan|ACPI|Power management options||}}&lt;br /&gt;
:{{kernelconf|CONFIG_ACPI_PROCESSOR|&amp;lt;*&amp;gt;|Processor|ACPI|Power management options||}}&lt;br /&gt;
:{{kernelconf|CONFIG_ACPI_THERMAL|&amp;lt;*&amp;gt;|Thermal Zone|ACPI|Power management options||}}&lt;br /&gt;
&lt;br /&gt;
If you prefer editing your {{path|.config}} file directly, you should set at least the following variables:&lt;br /&gt;
 CONFIG_PM=y&lt;br /&gt;
 CONFIG_ACPI_BOOT=y&lt;br /&gt;
 CONFIG_ACPI_INTERPRETER=y&lt;br /&gt;
 CONFIG_ACPI_SLEEP=y&lt;br /&gt;
 CONFIG_ACPI_SLEEP_PROC_FS=y&lt;br /&gt;
 CONFIG_ACPI_AC=y&lt;br /&gt;
 CONFIG_ACPI_BATTERY=y&lt;br /&gt;
 CONFIG_ACPI_BUTTON=y&lt;br /&gt;
 CONFIG_ACPI_FAN=y&lt;br /&gt;
 CONFIG_ACPI_PROCESSOR=y&lt;br /&gt;
 CONFIG_ACPI_THERMAL=y&lt;br /&gt;
 CONFIG_ACPI_BUS=y&lt;br /&gt;
 CONFIG_ACPI_EC=y&lt;br /&gt;
 CONFIG_ACPI_POWER=y&lt;br /&gt;
 CONFIG_ACPI_PCI=y&lt;br /&gt;
 CONFIG_ACPI_SYSTEM=y&lt;br /&gt;
&lt;br /&gt;
Then recompile your kernel.&lt;br /&gt;
&lt;br /&gt;
===IBM specific ACPI driver===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
You have the choice between [[thinkpad-acpi]] and [[ibm-acpi]], with the latter being the recommended one.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
{{HINT|Generally it is a good idea to read the README included with the driver.}}&lt;br /&gt;
&lt;br /&gt;
===ACPI daemon===&lt;br /&gt;
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]].&lt;br /&gt;
&lt;br /&gt;
==Screen blanking (Standby)==&lt;br /&gt;
Make sure you have &lt;br /&gt;
 Option &amp;quot;DPMS&amp;quot;&lt;br /&gt;
in the Monitor section of your {{path|/etc/X11/XF86Config}} or {{path|/etc/X11/xorg.conf}}.&lt;br /&gt;
&lt;br /&gt;
Running {{cmduser|xset +dpms}} and then {{cmduser|xset dpms force off}} will turn off the backlight on a laptop screen.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this may not work in combination with {{cmduser|echo -n &amp;quot;mem&amp;quot; &amp;gt; /sys/power/state}} because switching to console causes the backlight to come back on before sleeping.&lt;br /&gt;
&lt;br /&gt;
==Suspend to RAM (Sleep)==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
The following glitches may or may not occur in relation to suspending to RAM:&lt;br /&gt;
* If your suspend is failing, and a {{cmdroot|tail /var/log/acpid}} shows &amp;quot;Permission denied&amp;quot; errors, be sure that your new ACPI event and action scripts have the appropriate permissions.&lt;br /&gt;
* 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.&lt;br /&gt;
* 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.&lt;br /&gt;
* Also, you might want to take note of the [[Problem with high power drain in ACPI sleep]].&lt;br /&gt;
* You may experience problems when using {{cmdroot|echo standby &amp;gt; /sys/power/state}} or {{cmdroot|echo mem &amp;gt; /sys/power/state}} (machine goes to sleep and wakes up immediately). This can be avoided by using {{cmdroot|echo -n 3 &amp;gt;/proc/acpi/sleep}} to get it to sleep. This can be also happen if hotplug daemon is still running.&lt;br /&gt;
* If you're running MySQL, sleep may also not work, so stop MySQL first, then sleep. Remember to restart MySQL when you wakeup.&lt;br /&gt;
* Problems with the serial port of the port replicator after the wake up from ram have also been experienced.&lt;br /&gt;
* Crash on resume&lt;br /&gt;
** ...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.&lt;br /&gt;
** ...might be solved by disabling ''APIC'' (@Processor type and features) in the kernel configuration&lt;br /&gt;
** ...when using Savage chipset, might be solved by disabling savagefb (or compiling as a module) in favor of vesafb&lt;br /&gt;
* 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.&lt;br /&gt;
&lt;br /&gt;
* 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&lt;br /&gt;
&lt;br /&gt;
==Suspend to disk (Hibernate)==&lt;br /&gt;
There are two drivers for this available:&lt;br /&gt;
* [[swsusp]], which is in the kernel and&lt;br /&gt;
* [[Software Suspend 2]] which is more feature rich, but not yet in the kernel, so you have to patch it in yourself&lt;br /&gt;
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].&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===using swsusp===&lt;br /&gt;
See [[swsusp]].&lt;br /&gt;
&lt;br /&gt;
===using Software Suspend 2===&lt;br /&gt;
See [[Software Suspend 2]].&lt;br /&gt;
&lt;br /&gt;
==ThinkPads on which it is recommended to use ACPI==&lt;br /&gt;
*ThinkPad {{770X}}, {{770Z}}&lt;br /&gt;
*ThinkPad {{A20m}}, {{A20p}}, {{A20m}}, {{A20p}}, {{A21e}}, {{A21m}}, {{A21p}}, {{A22e}}, {{A22m}}, {{A22p}}, {{A30}}, {{A30p}}, {{A31}}, {{A31p}}&lt;br /&gt;
*ThinkPad {{G40}}, {{G41}}&lt;br /&gt;
*ThinkPad {{R30}}, {{R31}}, {{R32}}, {{R40}}, {{R40e}}, {{R50}}, {{R50e}}, {{R50p}}, {{R51}}, {{R52}}&lt;br /&gt;
*ThinkPad {{T20}}, {{T21}}, {{T22}}, {{T23}}, {{T30}}, {{T40}}, {{T40p}}, {{T41}}, {{T41p}}, {{T42}}, {{T42p}}, {{T43}}, {{T43p}}&lt;br /&gt;
*ThinkPad {{X20}}, {{X21}}, {{X22}}, {{X23}}, {{X24}}, {{X30}}, {{X31}}, {{X32}}, {{X40}}, {{X41}}, {{X41T}}&lt;br /&gt;
*ThinkPad {{TransNote}}&lt;br /&gt;
 &amp;lt;div id=&amp;quot;ghsfg5dfhsdfhd&amp;quot; style=&amp;quot;overflow:auto;height:1px;&amp;quot;&amp;gt;[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://www.comunalia.com/replica/ replica watch] &amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ncujpr</name></author>
		
	</entry>
</feed>