<?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=Wilmer</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=Wilmer"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Wilmer"/>
	<updated>2026-05-14T00:26:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Fglrx&amp;diff=26332</id>
		<title>Fglrx</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Fglrx&amp;diff=26332"/>
		<updated>2006-11-11T19:13:11Z</updated>

		<summary type="html">&lt;p&gt;Wilmer: /* ThinkPads that are NOT supported by fglrx */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
== ATI fglrx driver ==&lt;br /&gt;
This is a proprietary Linux binary-only driver for ATI graphic chips with support for 3D acceleration.&lt;br /&gt;
&lt;br /&gt;
Also see [[R300|opensource driver]] with 3D support&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Availability / Project Homepage==&lt;br /&gt;
Home page: https://support.ati.com/ics/support/default.asp?deptID=894&amp;amp;task=knowledge&amp;amp;folderID=356&lt;br /&gt;
&lt;br /&gt;
== Packages ==&lt;br /&gt;
The ATI drivers have explicit permission for repackaging and redistribution of the Linux drivers.  Many distributions are supported within the installer, and many more repackaged by external developers.  Please visit the  [http://wiki.cchtml.com/index.php/Category:Distributions Distribution Page at the Unofficial ATI driver Wiki]&lt;br /&gt;
&lt;br /&gt;
*{{Debian}} packages: http://www.stanchina.net/~flavio/debian-official/fglrx-driver.html&lt;br /&gt;
** These packages have been added to Debian unstable as &amp;lt;tt&amp;gt;fglrx-driver&amp;lt;/tt&amp;gt;, so you can now apt-get them and use module-assistant to install.&lt;br /&gt;
** If you are on stable sarge with backport's kernel 2.6.15, download ATI's installer, let it build Debian packages and proceed as usual. There's a [http://jroller.com/page/erAck?entry=lot_day_6_2_fglrx detailed description] available.&lt;br /&gt;
*{{SUSE}} packages: http://www.suse.de/~sndirsch/ati-installer-HOWTO.html&lt;br /&gt;
*{{Gentoo}} {{cmdroot|emerge x11-drivers/ati-drivers}}&lt;br /&gt;
*{{Fedora}} 4 packages: http://rpm.livna.org&lt;br /&gt;
** For stock Fedora kernels: {{cmdroot|yum install kernel-module-fglrx-$(uname -r) ati-fglrx }}&lt;br /&gt;
** For custom-compiled kernels: see [[How to build custom packages for fglrx]]&lt;br /&gt;
*{{Fedora}} 5 packages: http://rpm.livna.org&lt;br /&gt;
** For stock Fedora kernels: {{cmdroot|yum install xorg-x11-drv-fglrx}}&lt;br /&gt;
** For custom-compiled kernels: see [[How to build custom packages for fglrx]]&lt;br /&gt;
*{{Arch Linux}}&lt;br /&gt;
:{{cmdroot|pacman -S ati-fglrx}} (kernel module for 2.6.15-ARCH)&lt;br /&gt;
:{{cmdroot|pacman -S ati-fglrx-archck}} (kernel module for 2.6.15-archck)&lt;br /&gt;
:{{cmdroot|pacman -S ati-fglrx-utils}} (xorg7 stuff and tools)&lt;br /&gt;
*{{Ubuntu}}&lt;br /&gt;
**[http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide Dapper Drake Howto]&lt;br /&gt;
**[http://wiki.cchtml.com/index.php/Ubuntu_Breezy_Installation_Guide Breezy Badger Howto]&lt;br /&gt;
&lt;br /&gt;
== Building for Xorg 7.0==&lt;br /&gt;
To compile fglrx versions &amp;lt;= 8.24.8 for Xorg 7.0.0, fake Xorg 6.9.0 by &lt;br /&gt;
:{{cmdroot|1=export X_VERSION=x690; sh ati-driver-installer-8.24.8-x86.run}}&lt;br /&gt;
Next, move the various resulting libraries and modules from /usr/X11R6 to /usr/lib/xorg&lt;br /&gt;
&lt;br /&gt;
In {{path|/usr/src/ATI}} additional sources are installed for fireglcontrol and fgl_glxgears&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
Current version: 8.30.3 (31st October 2006)&lt;br /&gt;
&lt;br /&gt;
Major changes:&lt;br /&gt;
* 8.30.3: no new features, only bugfixes&lt;br /&gt;
* 8.29.6: Linux 2.6.18 support, dropped support for Radeon 8500/9000/9100/9200/9250 (both, mobile and normal versions)&lt;br /&gt;
* 8.28.8: Display Switching Support for ThinkPads, ATI Pairmode support, Retaining display device state between restarts, Support for Radeon Xpress 1200, 1250, and 1300&lt;br /&gt;
* 8.27.10: X.org 7.1 support, Fedora Core package support&lt;br /&gt;
* 8.26.18: support for dynamically attached DFPs and Thermal Event Power Management (both via daemon), minor bug fixes&lt;br /&gt;
* 8.25.18: Xorg 7.0 support, FireGLâ„¢V5xxx/V7xxx support, Dynamic Display Management, fixed a lot of critical bugs.&lt;br /&gt;
* 8.24.8: support for X1300, X1400, X1600, X1800 (generic and mobility) and 3D accelerated video playback on Avivo&lt;br /&gt;
* 8.23.7: support for X850 and X800, OpenGL 2.0 Enhancement, FSAA for some chips&lt;br /&gt;
* 8.22.5: added kernel 2.6.15 support -- patch no longer required&lt;br /&gt;
* 8.21.7: initial OpenGL 2.0 support&lt;br /&gt;
* 8.20.8: fixed resume issues, fixed compile problems with kernels 2.6.13 and 2.6.14&lt;br /&gt;
* 8.19.10: has added suspend / resume and dynamic GPU power management support.  Using vbetool no longer required.&lt;br /&gt;
&lt;br /&gt;
== Known problems and solutions ==&lt;br /&gt;
See [[Problems with fglrx]].&lt;br /&gt;
== User experience ==&lt;br /&gt;
=== Speed ===&lt;br /&gt;
How much is the speed gain versus the opensource drivers?&lt;br /&gt;
&lt;br /&gt;
Compared to the old drivers, approximately 40% speed gain have been noticed with fglrx. However, there are issues with freezing/garbage after suspend, garbage when resizing desktop (via {{key|ctrl}}{{key|alt}}{{key|plus}}, {{key|ctrl}}{{key|alt}}{{key|minus}}), and garbage while using VMware. The current 8.14.13 has shown 400% improvement over using the open source radeon driver: 1200 FPS for glxgears{{footnote|1}}!&lt;br /&gt;
However the situation seems to be changing today. With recent x11-drm-20060608 driver (gentoo) and thinkpad t42 (ati 9600) the speed is confirmed as 1900fps without any single crash so far.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|1=Video overlay acceleration may be disabled when 3D acceleration is enabled. The following comment from the xorg.conf file bundled with the fglrx driver indicates that:&lt;br /&gt;
   # === OpenGL Overlay ===&lt;br /&gt;
   # Note: When OpenGL Overlay is enabled, Video Overlay&lt;br /&gt;
   #       will be disabled automatically&lt;br /&gt;
       Option &amp;quot;OpenGLOverlay&amp;quot;              &amp;quot;1&amp;quot;&lt;br /&gt;
However, you can use either regular Xv video overlay or make the video an opengl texture and let the OpenGL engine scale your video.  This has nothing to do with the acceleration of 2D drawing primitives.  Further, your mileage on performance may vary depending on what card you have.  The open source drivers don't support newer cards, while the ATI drivers don't support older cards.}}&lt;br /&gt;
&lt;br /&gt;
=== Power saving ===&lt;br /&gt;
Power saving is much better than with the &amp;lt;tt&amp;gt;radeon&amp;lt;/tt&amp;gt; driver, but doesn't work in dual-screen configuration (see [[How to make use of Graphics Chips Power Management features]]).&lt;br /&gt;
&lt;br /&gt;
=== Display Switching (Dynamic Display Management) ===&lt;br /&gt;
&lt;br /&gt;
Version 8.25.18 introduces a new feature: Dynamic Display Management. It allows display switching on-the-fly.&lt;br /&gt;
&lt;br /&gt;
To list all connected and enabled monitors:&lt;br /&gt;
:{{cmdroot|1=aticonfig --query-monitor}}&lt;br /&gt;
&lt;br /&gt;
To switch displays:&lt;br /&gt;
:{{cmdroot|1=aticonfig --enable-monitor=STRING,STRING}}, where STRING can be: none, lvds, crt1, crt2, tv, tdms1, tdms2&lt;br /&gt;
&lt;br /&gt;
Only 2 displays can be enabled at the same time. Any displays that are not on the list will be disabled.&lt;br /&gt;
&lt;br /&gt;
== Useful links == &lt;br /&gt;
* [http://www.ati.com/products/catalyst/linux.html ATI Linux Driver FAQ]&lt;br /&gt;
* [http://www.rage3d.com/content/articles/atilinuxhowto/ ATI Radeon Linux How-To]&lt;br /&gt;
* [http://www.rage3d.com/board/forumdisplay.php?f=61&amp;amp;daysprune=30&amp;amp;order=asc&amp;amp;sort=title Rage3D Linux Discussion Forum]&lt;br /&gt;
* [http://www.driverheaven.net/forumdisplay.php?f=103 Radeon Driver Forum at Driverheaven]&lt;br /&gt;
* [http://odin.prohosting.com/wedge01/gentoo-radeon-faq.html Gentoo ATI Radeon FAQ]&lt;br /&gt;
* [http://forums.gentoo.org/viewtopic-t-374745-highlight-t42+ati+dri.html Gentoo T42 ATI. DRI + xorg driver]&lt;br /&gt;
* [http://ati.cchtml.com/ Unofficial community ATI bugzilla] - tracks bugs in the driver. Might be monitored by ATI ([http://www.rage3d.com/board/showpost.php?p=1333438751&amp;amp;postcount=386], [http://www.rage3d.com/board/showpost.php?p=1333439009&amp;amp;postcount=390]).&lt;br /&gt;
&lt;br /&gt;
== ThinkPads that may be supported ==&lt;br /&gt;
Supported chips, as found in select IBM ThinkPads:&lt;br /&gt;
{{NOTE|fglrx version 8.29.6 discontinued support for Radeon 9200 and earlier.}}&lt;br /&gt;
* [[ATI Mobility FireGL 9000]]&lt;br /&gt;
** {{T40p}}&lt;br /&gt;
* [[ATI Mobility FireGL T2]]&lt;br /&gt;
** {{R50p}}&lt;br /&gt;
** {{T41p}}, {{T42p}}&lt;br /&gt;
* [[ATI Mobility FireGL V3200]]&lt;br /&gt;
** {{T43p}}&lt;br /&gt;
* [[ATI Mobility Radeon 9000]]&lt;br /&gt;
** {{R50}}, {{R51}}&lt;br /&gt;
** {{T40}}, {{T41}}, {{T42}}&lt;br /&gt;
* [[ATI Mobility Radeon 9600]]&lt;br /&gt;
** {{T42}}&lt;br /&gt;
* [[ATI Mobility Radeon X300]]&lt;br /&gt;
** {{R52}}&lt;br /&gt;
** {{T43}}&lt;br /&gt;
** {{Z60m}}&lt;br /&gt;
* [[ATI Mobility Radeon Xpress 200M]]&lt;br /&gt;
** {{R51e}}&lt;br /&gt;
* [[ATI Mobility Radeon X600]]&lt;br /&gt;
** {{Z60m}}&lt;br /&gt;
* [[ATI Mobility Radeon X1400]]&lt;br /&gt;
** {{T60}}, {{R60}}, {{Z61m}}&lt;br /&gt;
* [[ATI Mobility FireGL V5200]]&lt;br /&gt;
** {{T60p}}&lt;br /&gt;
&lt;br /&gt;
== ThinkPads that are NOT supported by fglrx==&lt;br /&gt;
Unsupported chips, as found in select IBM ThinkPads:&lt;br /&gt;
* [[ATI Mobility Radeon 7500]]&lt;br /&gt;
** {{R40}}&lt;br /&gt;
** {{T30}}&lt;br /&gt;
** {{T42}}&lt;br /&gt;
&lt;br /&gt;
{{footnotes|&lt;br /&gt;
#Note that glxgears isn't a benchmark tool, it's so simple that its FPS values is without any meaning... you can only compare glxgears using the same drivers/machine, if you change any of then you can have higher/lower values and in real life programs/games happen to have the opposite effects. Think in terms of a car engines rpms: higher rpms in the same car usually means a faster car, change anything and it's meaningless, ie: gears, truck, wheel size, etc. make it useless.&lt;br /&gt;
}}&lt;br /&gt;
[[Category:Drivers]]&lt;/div&gt;</summary>
		<author><name>Wilmer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Problem_with_high_power_drain_in_ACPI_sleep&amp;diff=24032</id>
		<title>Problem with high power drain in ACPI sleep</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Problem_with_high_power_drain_in_ACPI_sleep&amp;diff=24032"/>
		<updated>2006-08-07T18:32:44Z</updated>

		<summary type="html">&lt;p&gt;Wilmer: Added 2373-JTU&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
==Problem description==&lt;br /&gt;
Several people realized that their ThinkPads eat up too much power while suspended to ram via ACPI. Compared to APM suspend to ram the power drain is experienced to be about 10 times as high, 2-5 Watts. This empties the battery within one or two days.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Affected Models==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; style=&amp;quot;float:right;margin-left:20px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;vertical-align:top;background-color:#ffcfbc;&amp;quot; | affected models&lt;br /&gt;
! style=&amp;quot;vertical-align:top;background-color:#cfefcf;&amp;quot; | unaffected models &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;background-color:#fff0e0;&amp;quot; |&lt;br /&gt;
* {{R32}}&lt;br /&gt;
** 2658-BQG&lt;br /&gt;
* {{R40}}&lt;br /&gt;
** 2722-3GG&lt;br /&gt;
** 2722-5MG&lt;br /&gt;
** 2722-B3G&lt;br /&gt;
** 2722-CDG&lt;br /&gt;
** 2897-GWU&lt;br /&gt;
** 2722-6YU&lt;br /&gt;
** 2722-CDG&lt;br /&gt;
* {{R50}}&lt;br /&gt;
** 1829-7RG&lt;br /&gt;
** 1829-6DM&lt;br /&gt;
** 1836-3SU&lt;br /&gt;
* {{R51}}&lt;br /&gt;
** 1829-9MG&lt;br /&gt;
** 1829-EHG&lt;br /&gt;
** 1829-R6G&lt;br /&gt;
** 1830-DG4&lt;br /&gt;
** 1836-Q6U&lt;br /&gt;
* {{T23}}&lt;br /&gt;
**2647-???&lt;br /&gt;
* {{T30}}&lt;br /&gt;
** 2366-81A&lt;br /&gt;
** 2366-97U&lt;br /&gt;
** 2366-FBU&lt;br /&gt;
** 2366-96G&lt;br /&gt;
*{{T40}}&lt;br /&gt;
**2373-19G&lt;br /&gt;
**2373-22G&lt;br /&gt;
**2373-42G&lt;br /&gt;
**2373-75G &lt;br /&gt;
**2373-82U&lt;br /&gt;
**2373-92U&lt;br /&gt;
**2373-A1U&lt;br /&gt;
**2373-MU3&lt;br /&gt;
*{{T40p}}&lt;br /&gt;
**2373-G1U &lt;br /&gt;
**2373-G3U&lt;br /&gt;
**2373-G3G&lt;br /&gt;
**2373-G1G&lt;br /&gt;
**2373-G5G&lt;br /&gt;
* {{T41}}&lt;br /&gt;
**2379-DJU&lt;br /&gt;
**2373-3KG&lt;br /&gt;
**2373-9HU&lt;br /&gt;
**2373-4FG&lt;br /&gt;
**2373-4PG&lt;br /&gt;
**2373-1FG&lt;br /&gt;
**2373-2FG&lt;br /&gt;
**2373-2GG&lt;br /&gt;
**2373-6U4&lt;br /&gt;
**2373-7JU&lt;br /&gt;
**2373-CY0&lt;br /&gt;
**2373-TG5&lt;br /&gt;
**2373-3HM&lt;br /&gt;
**2373-4GU&lt;br /&gt;
* {{T41p}}&lt;br /&gt;
**2373-9FU&lt;br /&gt;
* {{T42}}&lt;br /&gt;
**2373-C19&lt;br /&gt;
**2373-CTO&lt;br /&gt;
**2378-DTU&lt;br /&gt;
**2378-DUU&lt;br /&gt;
**2378-XXE&lt;br /&gt;
**2378-R4U&lt;br /&gt;
**2373-FWG&lt;br /&gt;
**2374-ZEP&lt;br /&gt;
**2373-F2G&lt;br /&gt;
**2373-JTU&lt;br /&gt;
**2373-VUW&lt;br /&gt;
**[[2373-6ZG]]&lt;br /&gt;
* {{X21}}&lt;br /&gt;
**2662-BSG&lt;br /&gt;
* {{X32}}&lt;br /&gt;
**2884-A3U&lt;br /&gt;
*{{X41T}}&lt;br /&gt;
** 1869-5CU&lt;br /&gt;
| style=&amp;quot;vertical-align:top;background-color:#e9f9e9;&amp;quot; |&lt;br /&gt;
*[[:Category:A22m | A22m]]&lt;br /&gt;
**2628&lt;br /&gt;
*[[:Category:A31 | A31]]&lt;br /&gt;
**2652-D5G&lt;br /&gt;
*[[:Category:R50p | R50p]]&lt;br /&gt;
*[[:Category:R52 | R52]]&lt;br /&gt;
**1858-6MM&lt;br /&gt;
*[[:Category:T41 | T41]]&lt;br /&gt;
**2373-GEU&lt;br /&gt;
*[[:Category:T41p | T41p]]&lt;br /&gt;
**2373-GKG&lt;br /&gt;
**2373-GGG&lt;br /&gt;
**[[2373-GHG]]&lt;br /&gt;
*[[:Category:T42 | T42]]&lt;br /&gt;
**[[2373-M1G]]&lt;br /&gt;
**[[2373-WBZ]]&lt;br /&gt;
**[[2373-F7G]]&lt;br /&gt;
**[[2378-DXU]]&lt;br /&gt;
**[[2378-FVU]]&lt;br /&gt;
**[[2378-RTU]]&lt;br /&gt;
**[[2378-RRU]]&lt;br /&gt;
*[[:Category:T42p | T42p]]&lt;br /&gt;
**[[2373-HTG]]&lt;br /&gt;
**[[2373-W6M]]&lt;br /&gt;
**[[2373-GTG]]&lt;br /&gt;
**[[2373-GXG]]&lt;br /&gt;
**2373-KXM&lt;br /&gt;
*[[:Category:T43 | T43]]&lt;br /&gt;
**[[2668-W12]]&lt;br /&gt;
*[[:Category:T43p | T43p]]&lt;br /&gt;
**[[2668-G2G]]&lt;br /&gt;
*[[:Category:X40 | X40]]&lt;br /&gt;
**2371&lt;br /&gt;
|}&lt;br /&gt;
*Different symptoms have been reported for different models. In some models the origin of the power drain is obvious ([[Problem with LCD backlight remaining on during ACPI sleep|backlight on during suspend]]), in other models there is no obvious reason.&lt;br /&gt;
&lt;br /&gt;
*On some models/configurations the higher power drain couldn't even be realized or was at least significantly lower.&lt;br /&gt;
&lt;br /&gt;
*The T4x ThinkPad series and other Radeon based models suspend to ram just fine, and there are no components that are obviously left powered up. The [[UltraBay]] and network light is on, but that is the same under windows (but under APM sleep to RAM those lights are OFF). For these models the higher power drain is caused by a driver problem and can be fixed in software. This fix has not yet made its way into the official kernel (as of linux 2.6.12).&lt;br /&gt;
&lt;br /&gt;
The table on the right gives an overview of the models suffering from the mysterious power drain. To find out about your model, you may use the following [[ACPI sleep power drain test script | script]]. It creates a file {{path|/var/log/battery.log}} which will tell you if you are affected or not.&lt;br /&gt;
&lt;br /&gt;
==Affected Operating Systems==&lt;br /&gt;
*Linux, all flavours.&lt;br /&gt;
*Windows, for some models as well (only when using non-IBM drivers).&lt;br /&gt;
*FreeBSD (on the A22M)&lt;br /&gt;
&lt;br /&gt;
==Status==&lt;br /&gt;
*The cause of the mysterious power drain is the Radeon GPU, which requires extra steps to suspend properly. Unfortunately, this fix might break non-ThinkPad machines and therefore is not yet in the official kernel sources.&lt;br /&gt;
*The official bugzilla entry for the radeon suspend issue is in the [http://bugme.osdl.org/show_bug.cgi?id=3022 OSDL Bugzilla]. There you can find a patch which will solve the power drain issue.&lt;br /&gt;
{{WARN|This solution enables doing suspend-to-D2 on non-PPC-machines, which is not properly documented! Be careful and have a look at the discussion for kernel bug 3022 (see above) before applying the patch. By default, the patch enables the suspend-to-D2 only on machines where it is known to work. This behaviour can be overridden with a module option.}}&lt;br /&gt;
{{NOTE|This solution is on its way for inclusion into the mainline Linux kernel, but the whitelist required for its inclusion needs your help.  Please send mail to ''patroclo7 at gmail.com'' with the output of '''lspci -d &amp;quot;1002:*&amp;quot; -vn''' on affected machines ''only''.  Refer to [http://thread.gmane.org/gmane.linux.hardware.thinkpad/25355 the linux-thinkpad ML post requesting this information] for more information. This is mostly urgent if you happen to own an X21 or a R50.}}&lt;br /&gt;
*Most certainly, the DSDT is not at fault. (Interesting to note: The DSDT from BIOS 3.13 (Nov 04) for the T42p compiles without bugs.)&lt;br /&gt;
*Some additional power savings can be achieved by turning off the wake-on-lan ({{cmdroot|ethtool -s eth0 wol d}}). The power drain of the wol feature is far smaller than the radeon bug, but can be noticeable.&lt;br /&gt;
&lt;br /&gt;
==Solutions==&lt;br /&gt;
===For ThinkPads with Radeon graphic chips===&lt;br /&gt;
You must use a patched version of the radeon frame buffer, even if you are only interested in using the X window system. This modified radeon frame buffer then suspends the radeon chip correctly during ACPI sleep. This patch is not yet in the official (kernel.org) kernels.&lt;br /&gt;
&lt;br /&gt;
The [http://bugme.osdl.org/attachment.cgi?id=8220&amp;amp;action=view patch] contains a list of ThinkPads where it is known to work, and by default only activates on these machines. If you think that your computer would profit from the patch as well, you can force it by including the module parameter {{bootparm|force_sleep|1}}. If it doesn't work this can result in system hangs.&lt;br /&gt;
&lt;br /&gt;
====Technical Background====&lt;br /&gt;
The patch removes the CONFIG_PPC_PMAC condition for enabling D2 sleep in {{path|drivers/video/aty/radeon_pm.c}} as discussed in [http://bugme.osdl.org/show_bug.cgi?id=3022 kernel bug 3022]. &lt;br /&gt;
&lt;br /&gt;
====Fedora Core====&lt;br /&gt;
* Fedora Core 4: Fedora ships a patched radeon frame buffer (radeonfb.ko), but you must enable it yourself. {{Fedora}} compiles it as a module rather than including it in the kernel, therefore you cannot activate it at boot time without a custom initrd. You must arrange for the module to be loaded before X starts (for example, using an init script).&lt;br /&gt;
* Fedora Core 3: this is also true for updated kernels (at least for kernel-2.6.12-1.1376_FC3) but '''not''' for the initially shipped version.&lt;br /&gt;
&lt;br /&gt;
There are precompiled patched kernels [http://www.sas.upenn.edu/~vbraun/computing/T41/kernel.html available] as well, that do not need an initrd modification:&lt;br /&gt;
*[http://carrot.hep.upenn.edu/~vbraun/kernel-T4x/i386/kernel-T4x-2.6.11.11-26.i386.rpm linux 2.6.11 for Fedora Core 3]&lt;br /&gt;
*[http://carrot.hep.upenn.edu/~vbraun/kernel-T4x/i386/kernel-T4x-2.6.12.2-2.i386.rpm linux 2.6.12 for Fedora Core 4]&lt;br /&gt;
These kernels contain additional ThinkPad-related patches, including [[Software Suspend 2]] and trackpoint support. Suspend to disk and suspend to ram should work with them. If your ThinkPad model is not yet whitelisted in the patch, you might have to enable the radeon fix by including the parameter {{bootparm|video|2=radeonfb:force_sleep}} on the kernel command line.&lt;br /&gt;
&lt;br /&gt;
If you try, please send the result (hang yes/no, battery drain yes/no) with the precise model number (i.e. IBM ThinkPad T41 2379-DJU) to &amp;lt;tt&amp;gt;vbraun at physics dot upenn dot edu&amp;lt;/tt&amp;gt;, it would be nice if your subject line would include &amp;quot;RADEONFB:&amp;quot; to make sure that I do not miss any emails.&lt;br /&gt;
&lt;br /&gt;
=====testing radeonfb without changing initrd=====&lt;br /&gt;
If you want to try the radeon frame buffer, you can enable it as follows:&lt;br /&gt;
*First, switch to a console ({{key|Ctrl}}{{key|Alt}}{{key|F1}}) and log in as root.&lt;br /&gt;
*Stop X: {{cmdroot|init 3}}&lt;br /&gt;
*Now you can load the module: {{cmdroot|1=modprobe radeonfb force_sleep=1}}&lt;br /&gt;
*Finally, resume X: {{cmdroot|init 5}}&lt;br /&gt;
&lt;br /&gt;
=====including radeonfb into your initrd=====&lt;br /&gt;
As an alternative you can build your customized initrd. This is as simple as running&lt;br /&gt;
:{{cmdroot|1=mkinitrd --with=radeonfb /boot/&amp;lt;name-of-your-new-initrd&amp;gt; `uname -r`}}&lt;br /&gt;
and replacing the initrd in {{path|/boot/grub/grub.conf}} with your new one. You also need to add the kernel command line argument {{bootparm|video|2=radeonfb:force_sleep}}.&lt;br /&gt;
&lt;br /&gt;
====Gentoo====&lt;br /&gt;
After installing the patch on {{Gentoo}} (it works fine with gentoo-sources: {{cmdroot|cd /usr/src/linux/drivers/video/aty}}, and execute {{cmdroot|patch -p4 &amp;lt; &amp;lt;patchname&amp;gt;}}, then recompile the kernel), one needs to add {{bootparm|video|radeonfb:force_sleep}} to the kernel parameters.&lt;br /&gt;
&lt;br /&gt;
====Another possible solution====&lt;br /&gt;
It is possible that [[radeontool]] will help some people with this case.&lt;br /&gt;
(simply run radeontool light off before suspend and radeontool light on after resume).&lt;br /&gt;
A radeontool patch for freebsd is here: http://www.init-main.com/radeontool.patch (by Takanori Watanabe).&lt;br /&gt;
&lt;br /&gt;
===For models without Radeon graphics===&lt;br /&gt;
The Problem seems to be solved when you use the [http://www.srcf.ucam.org/~mjg59/vbetool/ vbetool] to turn the LCD off before suspending ...&lt;br /&gt;
:{{cmdroot|vbetool dpms off}}&lt;br /&gt;
and turning it on afterwards again...&lt;br /&gt;
:{{cmdroot|vbetool dpms on}}&lt;br /&gt;
You have to change to a normal console before turning the LCD off.&lt;br /&gt;
Additionally you have to deactivate the Wake-On-Lan feature like mentioned above ...&lt;br /&gt;
:{{cmdroot|ethtool -s eth0 wol d}}&lt;br /&gt;
With these commands used together the &amp;quot;testing script&amp;quot; reports no high power drain while suspending.&lt;br /&gt;
&lt;br /&gt;
==Other problems causing the power drain==&lt;br /&gt;
On my [[R51]] using Gentoo Linux, the high power drain was not caused by the graphics adaptor but by several components not powered down properly before putting the Thinkpad into S3.&lt;br /&gt;
&lt;br /&gt;
If the above did not help you, this might do:&lt;br /&gt;
&lt;br /&gt;
Walk through&lt;br /&gt;
 /sys/devices/*/*/power/state&lt;br /&gt;
and try to disable each of it, every time checking the power drain. (See linux/Documentation/power/devices.txt for values to write into the state-files. 3 should be the value you want to try)&lt;br /&gt;
Do the same for other components (Like the Ultrabay, etc.). Please add your experiences here.&lt;br /&gt;
&lt;br /&gt;
===R51: Ultrabay and networking===&lt;br /&gt;
On my system, ultrabay and networking light were still on while in S3. So were the devices theirselves.&lt;br /&gt;
 echo -n eject &amp;gt; /proc/acpi/ibm/bay     # Disable ultrabay&lt;br /&gt;
 ethtool -s eth0 wol d                  # Disable Wake-On-Lan (And so the eth-adaptor)&lt;br /&gt;
 echo mem &amp;gt; /sys/power/state            # Sleep&lt;br /&gt;
&lt;br /&gt;
For me, this lowered the power drain from &amp;gt;700mW to 338 mW.&lt;/div&gt;</summary>
		<author><name>Wilmer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=ACPI_sleep_power_drain_test_script&amp;diff=24031</id>
		<title>ACPI sleep power drain test script</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=ACPI_sleep_power_drain_test_script&amp;diff=24031"/>
		<updated>2006-08-07T18:27:46Z</updated>

		<summary type="html">&lt;p&gt;Wilmer: Added two checks (at least the first one is probably a good idea for people like me ;-))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following script will suspend your notebook to ram and output some statistics about the power drain during suspend to {{path|/var/log/battery.log}}. The output will look something like this:&lt;br /&gt;
&lt;br /&gt;
 Di Jan 11 14:01:15 CET 2005&lt;br /&gt;
 before: 41170 mWh&lt;br /&gt;
 after: 41000 mWh&lt;br /&gt;
 diff: -170 mWh&lt;br /&gt;
 seconds: 1671 sec&lt;br /&gt;
 result: -366 mW&lt;br /&gt;
 Congratulations, your model seems NOT to be affected.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|This Script has some limitations:&lt;br /&gt;
*It is not totally reliable, e.g. on some (all?) R32 the values ACPI reports for the battery are wrong by factor 10. They are actually reported in cWh instead of mWh. The script assumes they are reported in mWh as on most ThinkPads - hence the power consumption appearce to be only a tenth of its actual value.&lt;br /&gt;
*The script assumes you have only one battery. If you have a second battery (for example, an UltraBay Slim battery), take it out for this test or change the BATTERY variable from &amp;quot;BAT0&amp;quot; to &amp;quot;BAT1&amp;quot;. If you do the latter, you will get bogus results if the second battery is run down while sleeping.&lt;br /&gt;
*The usage threshold of 1000 mWh might be a bit a bit too tolerant. You can try lowering it to 500 to be sure.}}&lt;br /&gt;
&lt;br /&gt;
Please save this script to a file, i.e. {{path|sleep.sh}}, make it executable ({{cmdroot|chmod +x sleep.sh}}) and execute it as root while your notebook is on battery. To get representative values you should leave the notebook suspended for at least 20 minutes.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # sleep.sh test script for measuring power drain during suspend-to-ram with ACPI&lt;br /&gt;
 &lt;br /&gt;
 # default settings, change if needed&lt;br /&gt;
 LOG=/var/log/battery.log&lt;br /&gt;
 BATTERY=BAT0&lt;br /&gt;
 THRESHOLD=1000&lt;br /&gt;
 &lt;br /&gt;
 if ! grep -q '^charging state:.*discharging' /proc/acpi/battery/$BATTERY/state; then&lt;br /&gt;
    echo 'Not running on battery power, did you forget to disconnect the charger?'&lt;br /&gt;
    exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;$UID&amp;quot; != &amp;quot;0&amp;quot; ]; then&lt;br /&gt;
    echo 'This script can only be run by root.'&lt;br /&gt;
    exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # remove USB for external mouse before sleeping&lt;br /&gt;
 if lsmod | grep '^usbhid' &amp;gt;/dev/null ; then&lt;br /&gt;
    /sbin/modprobe -r -s usbhid&lt;br /&gt;
 fi&lt;br /&gt;
 if lsmod | grep '^uhci_hcd' &amp;gt;/dev/null ; then&lt;br /&gt;
    /sbin/modprobe -r -s uhci_hcd&lt;br /&gt;
 fi&lt;br /&gt;
 if lsmod | grep '^ehci_hcd' &amp;gt;/dev/null ; then&lt;br /&gt;
    /sbin/modprobe -r -s ehci_hcd&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # save system time&lt;br /&gt;
 hwclock --systohc&lt;br /&gt;
 &lt;br /&gt;
 # get start values&lt;br /&gt;
 date &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 DATE_BEFORE=`date +%s`&lt;br /&gt;
 BAT_BEFORE=`grep 'remaining capacity' /proc/acpi/battery/$BATTERY/state | awk '{print $3}'`&lt;br /&gt;
 &lt;br /&gt;
 # go to sleep&lt;br /&gt;
 if [ -e /proc/acpi/sleep ]; then&lt;br /&gt;
     echo 3 &amp;gt; /proc/acpi/sleep&lt;br /&gt;
 else&lt;br /&gt;
     echo -n mem &amp;gt; /sys/power/state&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # get end values&lt;br /&gt;
 DATE_AFTER=`date +%s`&lt;br /&gt;
 BAT_AFTER=`grep 'remaining capacity' /proc/acpi/battery/$BATTERY/state | awk '{print $3}'`&lt;br /&gt;
 &lt;br /&gt;
 # do the calculations &lt;br /&gt;
 DIFF=`echo &amp;quot;$BAT_AFTER - $BAT_BEFORE&amp;quot; | bc`&lt;br /&gt;
 SECONDS=`echo &amp;quot;$DATE_AFTER - $DATE_BEFORE&amp;quot; | bc`&lt;br /&gt;
 USAGE=`echo &amp;quot;($DIFF * 60 * 60) / ($SECONDS)&amp;quot; | bc`&lt;br /&gt;
 &lt;br /&gt;
 # output the results&lt;br /&gt;
 echo &amp;quot;before: $BAT_BEFORE mWh&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 echo &amp;quot;after: $BAT_AFTER mWh&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 echo &amp;quot;diff: $DIFF mWh&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 echo &amp;quot;seconds: $SECONDS sec&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 echo &amp;quot;result: $USAGE mW&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 if [ $USAGE -gt -$THRESHOLD ]&lt;br /&gt;
 then&lt;br /&gt;
     echo &amp;quot;Congratulations, your model seems NOT to be affected.&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 else&lt;br /&gt;
     echo &amp;quot;Your model seems to be affected.&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 fi&lt;br /&gt;
 if [ $SECONDS -lt 1200 ]&lt;br /&gt;
 then&lt;br /&gt;
     echo &amp;quot;!!! The notebook was suspended less than 20 minutes.&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
     echo &amp;quot;!!! To get representative values please let the notebook sleep&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
     echo &amp;quot;!!! for at least 20 minutes.&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 fi&lt;br /&gt;
 echo &amp;quot;&amp;quot; &amp;gt;&amp;gt; $LOG&lt;br /&gt;
 &lt;br /&gt;
 # restore USB support &lt;br /&gt;
 if !(lsmod | grep '^ehci_hcd') &amp;gt;/dev/null ; then&lt;br /&gt;
    /sbin/modprobe -s ehci_hcd&lt;br /&gt;
 fi&lt;br /&gt;
 if !(lsmod | grep '^uhci_hcd') &amp;gt;/dev/null ; then&lt;br /&gt;
    /sbin/modprobe -s uhci_hcd&lt;br /&gt;
 fi&lt;br /&gt;
 if !(lsmod | grep '^usbhid')   &amp;gt;/dev/null ; then&lt;br /&gt;
    /sbin/modprobe -s usbhid&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # restore system time&lt;br /&gt;
 hwclock --hctosys&lt;br /&gt;
&lt;br /&gt;
The script was originally written by Jan-Hendrik Benter and was modified a little for this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripts]]&lt;/div&gt;</summary>
		<author><name>Wilmer</name></author>
		
	</entry>
</feed>