Skip to contentSkip to conversation

Newbie questions

DISCUSSION Gustavo Sverzut Barbieri 2 participants 2 messages Aug 3, 2002 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hello,

I'm a newbie to ACPI (just bought a desknote(www.desknote.biz) laptop that ships w/ that). I'm trying to use ACPI withou success. The kernel 2.5.{29,30} don't even compile (error with: save_flags and restore_flags, listed below).

I'm using red hat 2.4.18-3 recompiled right now, that looks too old (I tried 2.5.24 before, the /proc/acpi subsys gives more info)

I got acpid, but I got nothing more than mapping the buttons (power and lid) to run what I desire. I wanna know how I put it to sleep (suspend, and how to come back)

Best regards.

Gustavo

--------------
make bzImage errors:

drivers/built-in.o: In function `acpi_system_suspend':
drivers/built-in.o(.text+0x3220e): undefined reference to save_flags' drivers/built-in.o(.text+0x3223b): undefined reference to restore_flags'

_______________________________________________________________________
Yahoo! PageBuilder
O super editor para criação de sites: é grátis, fácil e rápido.
http://br.geocities.yahoo.com/v/pb.html

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 20020803041040.10310.qmail-L8+/D2FWflyA/[email protected]

#2 lore raw

Hi Gustavo!

Quoted 3 lines · Gustavo Sverzut Barbieri

I'm trying to use ACPI withou success. The kernel 2.5.{29,30} don't even compile (error with: save_flags and restore_flags, listed below).

drivers/acpi/system.c lacks the inclusion of linux/interrupt.h.

So add
#include <linux/interrupt.h>
to drivers/acpi/system.c and it should build.

Quoted 4 lines

I got acpid, but I got nothing more than mapping the buttons (power and lid) to run what I desire. I wanna know how I put it to sleep (suspend, and how to come back)

Don't really know about but Pavel Machek is working on software suspend for 2.5 kernels. Tried it every now and then but it's not 100% working yet since it's still under development as the whole 2.5 kernel is.
Better is you stickt to 2.4 kernels.
To get acpid work with 2.5 kernels you need a patch for acpid to get it to work with latest acpi.

Regards,
Axel

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf