Re: swsusp for Debian was: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-31 Thread mody
On Tue, Jul 29, 2003 at 10:56:09AM +0300, Micha Feigin wrote:
 AFAIK swspnd has been integrated into acpi. For kernle 2.4.21 you need
 the acpi patch though, it is not included in the partial acpi support in
 the kernel.
 On the debian version of the kernel you will get a lot of regects,
 mainly on all the makefiles which don't pass the patch at all and I if I
 remember correctly, something in the config don't remember about the
 other files.

Yes, makefiles mainly.

 If you want to skip the rejects use a regular kernel from
 www.kernel.org. I don't know what the debian patches change in the
 kernel so I don't know what you loose in return.

I'd rather stay with the Debian source. Look at
/usr/share/doc/kernel-source-2.4.21/changelog.gz 

Mody


pgp0.pgp
Description: PGP signature


Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-31 Thread Marino Fernandez
Thank you everybody, specially Micha and Mark. OK, this almost worked.

This is my setting. On a Kernel 2.6.0-test2 I have this built-inl:
CONFIG_PM=y
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_ACPI=y
# CONFIG_ACPI_HT_ONLY is not set
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y

$ cat /proc/acpi/sleep gives me back:
S0 S3 S4 S5

sudo echo 3  /proc/acpi/sleep
two beeps, black screen within one second, computer off... The problem is 
waking it up. If I hit the power button (the way I use to wake up the machine 
with APM/suspend and MSWindowsACPI/suspend), the screen lights up (but still 
is black, the fan turns on, and that's it. I have to reset computer (turn it 
off and reboot).

sudo echo 4  /proc/acpi/sleep
Bunch of processes entered the refrigerator
Freeing memory.
Black screen, but still powered up, then after a minute I get this text:

[nosave c040a000] critical section/:done (62163 pages copied)
uhci-hcd :00:1d.0: Resume
uhci-hcd :00:1d.1: Resume
eth0: Setting half-duplex based on auto-negotiated partner ability 
hda: wake up request initiated, waiting for !BSY
hda: start_power_step (step: 1000)
hda: completing PM request, Resume
writting data to swap (62163 pages)

And again thats it, hangs and I have to turn it off and reboot.

Any ideas?

PS. I do not know if acpid is running, when I try to fire it up I get this: 
can't open /proc/acpi/event: No such file or directory




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-30 Thread Mark Roach
On Wed, 2003-07-30 at 02:00, Marino Fernandez wrote:
 On Tuesday 29 July 2003 11:19 pm, Mark Roach wrote:
  On Tue, 2003-07-29 at 23:43, Marino Fernandez wrote:
[...]
   How do you do or try swsusp... how do you suspend the machine?.
 
  I don't personally, I tried it once, didn't work easily, so I just leave
  the thing running :-) Getting versions of acpi and swsusp for the same
  kernel, modifying osl.c to import my modified dsdt, etc. I am lazy.
 
  If you are more ambitious than I, look at swsusp.sf.net or just do like
  I do and wait for the 2.6 series kernels to be released with all the
  hard stuff done for you... well, most of the hard stuff anyway
 
 I am running 2.6.0-test2 (with all the acpi stuff compiled into the kernel), 
 that is the reason I am perplexed, I though I had everything set, but 
 apparently klaptop needs some command to suspend or hibernate my laptop. 

did you also compile in swsusp? (Under power management options)? If
not, you'll want to recompile. If so, read swsusp.sf.net for more info
on how to use swsusp. I can't help you with klaptop, you should try to
get it working manually first.

-Mark


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



swsusp for Debian was: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-30 Thread mody
On Tue, Jul 29, 2003 at 05:05:21PM -0400, Mark Roach wrote:
 Look here for starters. 
 http://acpi.sourceforge.net/documentation/sleep.html
 
 My laptop only gives:
 $ cat /proc/acpi/sleep
 S0 S3 S4 S5
 
 so no acpi sleep for me. If you have a similar situation, try swsusp

Do anyone have swsusp patch that would apply against Debian 2.4.21 kernel
source? I've tried patches from swsusp.sf.net but there is lot of rejects.
I'm not experienced enough to edit kernel files by hand.

Thanks

Mody


pgp0.pgp
Description: PGP signature


Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-30 Thread tallison
 On Tuesday 29 July 2003 11:19 pm, Mark Roach wrote:
 On Tue, 2003-07-29 at 23:43, Marino Fernandez wrote:
  On Tuesday 29 July 2003 4:05 pm, Mark Roach wrote:

 [snip]

   My laptop only gives:
   $ cat /proc/acpi/sleep
   S0 S3 S4 S5
  
   so no acpi sleep for me. If you have a similar situation, try swsusp
 
  Thank you Mark
 
  I have the same as you do in /proc/acpi/sleep
 
  How do you do or try swsusp... how do you suspend the machine?.

 I don't personally, I tried it once, didn't work easily, so I just leave
 the thing running :-) Getting versions of acpi and swsusp for the same
 kernel, modifying osl.c to import my modified dsdt, etc. I am lazy.

 If you are more ambitious than I, look at swsusp.sf.net or just do like
 I do and wait for the 2.6 series kernels to be released with all the
 hard stuff done for you... well, most of the hard stuff anyway

 I am running 2.6.0-test2 (with all the acpi stuff compiled into the
 kernel),
 that is the reason I am perplexed, I though I had everything set, but
 apparently klaptop needs some command to suspend or hibernate my laptop.


I have a related question that came about as the result of a brief
exploration into SuSE 8.2 on my notebook.

Suse 8.2 only has ACPI support and nothing for APM.
Prior to this I had a reasonably working APM configuration on my Debian
installation.  Reasonably, but not perfect, my PCMCIA NIC was a problem
because it refused to suspend.

However, what I have since discovered is that my notebook, while claiming
support for ACPI, doesn't actually do anything when I press various
buttons which used to work under APM for suspend, sleep, hibernate (I know
this won't work right now because I removed my FAT partition).

I'm trying to figure out what I need to do in order to have ACPI power
management support on this notebook (hopefully it will allow more
functionality than APM).

It seems that the buttons were only recognized under APM.  Is this a BIOS
setting?  Is there anything I can do to get these working on the newer
power management schemes?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-30 Thread Micha Feigin
On Tue, 2003-07-29 at 16:32, Marino Fernandez wrote:
 On Tuesday 29 July 2003 6:02 am, Wim De Smet wrote:
  On Tue, 29 Jul 2003 01:24:05 -0500
 
  Marino Fernandez [EMAIL PROTECTED] wrote:
   Does anybody knows how to do this?
  
   I've learned in the net that, for example in Mandrake 9.1 you have to
   install a package with some scripts (i.e. for suspend
   suspend-scripts), and that latter you can invoke them from
   /usr/bin/pmsuspend... again, this in mandrake.
  
   In klaptop there is the configure acpi option, and then it ask for you
   to enter the comands your system uses for 'standby' (temporary
   sleep), 'suspend' (suspend-to-RAM) and 'hibernate'
   (supend-to-disk)...
  
   Anybody knows how to do this in debian?
  
   Thanks
 
  AFAIK all you need is the necessary kernel drivers and the acpid
  package. Everything should work then.
  (I don't really know if acpi is available in the stock kernels, since
  it's marked experimental in 2.4.2x)
 
 I compiled ACPI support in the kernel on 2.6.0-test2, and I have acpid already 
 up... I just do not know how to tell my machine to go to sleep!
 

There is some script I found on the software suspend (i think its under
swspnd) page under sourceforge. Its somewhat old but it works as far as
I can tell.
What it does is bring down services modules and programs specified and
then brings them back up when the computer wakes up, so that usb/pcmcia
etc won't lock the computer.
Its an install script called sleep.sh that installs
/usr/local/bin/hibernate.
I know there is some patch to init I think but I am not sure, never used
it.
To just make the computer hibernate do
echo 4  /proc/acpi/sleep
To make the computer sleep try either
echo 1  /proc/acpi/sleep
echo 3  /proc/acpi/sleep
they are two different levels of power down, 3 is more problematic and
is broken on my laptop.
You may need the script to stop some probelmatic services and drivers
like I said but it depends on your setup.

Email me privately if you want me to mail you the script.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-29 Thread Marino Fernandez
Does anybody knows how to do this?

I've learned in the net that, for example in Mandrake 9.1 you have to install 
a package with some scripts (i.e. for suspend suspend-scripts), and that 
latter you can invoke them from /usr/bin/pmsuspend... again, this in 
mandrake.

In klaptop there is the configure acpi option, and then it ask for you to 
enter the comands your system uses for 'standby' (temporary sleep), 
'suspend' (suspend-to-RAM) and 'hibernate' (supend-to-disk)... 

Anybody knows how to do this in debian?

Thanks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-29 Thread Wim De Smet
On Tue, 29 Jul 2003 01:24:05 -0500
Marino Fernandez [EMAIL PROTECTED] wrote:
 Does anybody knows how to do this?
 
 I've learned in the net that, for example in Mandrake 9.1 you have to
 install a package with some scripts (i.e. for suspend
 suspend-scripts), and that latter you can invoke them from
 /usr/bin/pmsuspend... again, this in mandrake.
 
 In klaptop there is the configure acpi option, and then it ask for you
 to enter the comands your system uses for 'standby' (temporary
 sleep), 'suspend' (suspend-to-RAM) and 'hibernate'
 (supend-to-disk)... 
 
 Anybody knows how to do this in debian?
 
 Thanks
 

AFAIK all you need is the necessary kernel drivers and the acpid
package. Everything should work then.
(I don't really know if acpi is available in the stock kernels, since
it's marked experimental in 2.4.2x)

greets,
Wim


-- 
Only two things are infinite: human stupidity and the universe, and I'm
not sure about the latter. -- Albert Einstein


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-29 Thread Marino Fernandez
On Tuesday 29 July 2003 6:02 am, Wim De Smet wrote:
 On Tue, 29 Jul 2003 01:24:05 -0500

 Marino Fernandez [EMAIL PROTECTED] wrote:
  Does anybody knows how to do this?
 
  I've learned in the net that, for example in Mandrake 9.1 you have to
  install a package with some scripts (i.e. for suspend
  suspend-scripts), and that latter you can invoke them from
  /usr/bin/pmsuspend... again, this in mandrake.
 
  In klaptop there is the configure acpi option, and then it ask for you
  to enter the comands your system uses for 'standby' (temporary
  sleep), 'suspend' (suspend-to-RAM) and 'hibernate'
  (supend-to-disk)...
 
  Anybody knows how to do this in debian?
 
  Thanks

 AFAIK all you need is the necessary kernel drivers and the acpid
 package. Everything should work then.
 (I don't really know if acpi is available in the stock kernels, since
 it's marked experimental in 2.4.2x)

I compiled ACPI support in the kernel on 2.6.0-test2, and I have acpid already 
up... I just do not know how to tell my machine to go to sleep!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-29 Thread Mark Roach
On Tue, 2003-07-29 at 09:32, Marino Fernandez wrote:
 On Tuesday 29 July 2003 6:02 am, Wim De Smet wrote:
  On Tue, 29 Jul 2003 01:24:05 -0500
 
  Marino Fernandez [EMAIL PROTECTED] wrote:
[snip]
   In klaptop there is the configure acpi option, and then it ask for you
   to enter the comands your system uses for 'standby' (temporary
   sleep), 'suspend' (suspend-to-RAM) and 'hibernate'
   (supend-to-disk)...
  
   Anybody knows how to do this in debian?
  
   Thanks
 
  AFAIK all you need is the necessary kernel drivers and the acpid
  package. Everything should work then.
  (I don't really know if acpi is available in the stock kernels, since
  it's marked experimental in 2.4.2x)
 
 I compiled ACPI support in the kernel on 2.6.0-test2, and I have acpid already 
 up... I just do not know how to tell my machine to go to sleep!
 

Look here for starters. 
http://acpi.sourceforge.net/documentation/sleep.html

My laptop only gives:
$ cat /proc/acpi/sleep
S0 S3 S4 S5

so no acpi sleep for me. If you have a similar situation, try swsusp

-Mark


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-29 Thread Marino Fernandez
On Tuesday 29 July 2003 4:05 pm, Mark Roach wrote:
 On Tue, 2003-07-29 at 09:32, Marino Fernandez wrote:
  On Tuesday 29 July 2003 6:02 am, Wim De Smet wrote:
   On Tue, 29 Jul 2003 01:24:05 -0500
  
   Marino Fernandez [EMAIL PROTECTED] wrote:

 [snip]
my machine to go to sleep!

 Look here for starters.
 http://acpi.sourceforge.net/documentation/sleep.html

 My laptop only gives:
 $ cat /proc/acpi/sleep
 S0 S3 S4 S5

 so no acpi sleep for me. If you have a similar situation, try swsusp

Thank you Mark

I have the same as you do in /proc/acpi/sleep

How do you do or try swsusp... how do you suspend the machine?.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-29 Thread Mark Roach
On Tue, 2003-07-29 at 23:43, Marino Fernandez wrote:
 On Tuesday 29 July 2003 4:05 pm, Mark Roach wrote:
[snip]
 
  My laptop only gives:
  $ cat /proc/acpi/sleep
  S0 S3 S4 S5
 
  so no acpi sleep for me. If you have a similar situation, try swsusp
 
 Thank you Mark
 
 I have the same as you do in /proc/acpi/sleep
 
 How do you do or try swsusp... how do you suspend the machine?.
 

I don't personally, I tried it once, didn't work easily, so I just leave
the thing running :-) Getting versions of acpi and swsusp for the same
kernel, modifying osl.c to import my modified dsdt, etc. I am lazy. 

If you are more ambitious than I, look at swsusp.sf.net or just do like
I do and wait for the 2.6 series kernels to be released with all the
hard stuff done for you... well, most of the hard stuff anyway

-Mark


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Activating ACPI supend and ACPI Hibernate in klaptop

2003-07-29 Thread Marino Fernandez
On Tuesday 29 July 2003 11:19 pm, Mark Roach wrote:
 On Tue, 2003-07-29 at 23:43, Marino Fernandez wrote:
  On Tuesday 29 July 2003 4:05 pm, Mark Roach wrote:

 [snip]

   My laptop only gives:
   $ cat /proc/acpi/sleep
   S0 S3 S4 S5
  
   so no acpi sleep for me. If you have a similar situation, try swsusp
 
  Thank you Mark
 
  I have the same as you do in /proc/acpi/sleep
 
  How do you do or try swsusp... how do you suspend the machine?.

 I don't personally, I tried it once, didn't work easily, so I just leave
 the thing running :-) Getting versions of acpi and swsusp for the same
 kernel, modifying osl.c to import my modified dsdt, etc. I am lazy.

 If you are more ambitious than I, look at swsusp.sf.net or just do like
 I do and wait for the 2.6 series kernels to be released with all the
 hard stuff done for you... well, most of the hard stuff anyway

I am running 2.6.0-test2 (with all the acpi stuff compiled into the kernel), 
that is the reason I am perplexed, I though I had everything set, but 
apparently klaptop needs some command to suspend or hibernate my laptop. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]