[ltp] Possible solution to ACPI power drain with 2.6.10
Bob Alexander
linux-thinkpad@linux-thinkpad.org
Thu, 20 Jan 2005 10:36:15 +0100
Michele Lamarca wrote:
> Save it as radeon-patch, then
>
> # cp radeon-patch /usr/src/linux
> # cd /usr/src/linux
> # patch -p1 < radeon-patch
>
> And gook luck!
Michele,
automatic patching fails maybe because of my previous attempts at
editing that file.
I tried manually.
Is this the result we want ?
#include "radeonfb.h"
#include <linux/console.h>
#include <linux/agp_backend.h>
/*
* Currently, only PowerMac do D2 state
* Let's try on a ThinkPad!
*/
#define CONFIG_RADEON_HAS_D2
#ifdef CONFIG_RADEON_HAS_D2
static inline int radeon_suspend_to_d2(struct radeonfb_info *rinfo, u32
state)
{
return rinfo->is_mobility;
}
#endif /* CONFIG_RADEON_HAS_D2 */
(rest of the file is not changed).
TIA e buongiorno anche a te (Roma),
Bob