Skip to contentSkip to conversation

S1bios

DISCUSSION Luís Miguel Pires Neves 5 participants 5 messages Mar 10, 2003 – Mar 13, 2003 3 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi!

This is just a request (desire).

As S1 is not completely working (backlight, disks spinning...), I wonder if one couldn't find a temporary solution similar to S4bios for machines that have S1 in bios.

I apologise if what I'm saying is stupid as I'm not a developper, just a ordinary Linux user who has been following the development of ACPI and swsusp in order to have it's Laptop with the usual functionality of laptops..

In my first times with Linux in this machine (COMPAQ Presario 12XL515) I used APM with kernel 2.2.17 (Debian Potato's version) and I had "S1" behaviour with apm -S. At the time it was the single working function as the battery status/information wasn't there, and "S4" seemed also to be absent ( I know now that it was there but it needed a proper configured partition). However with more recent kernels, both 2.2 and 2.4 (not patched with Debian patches) I never had the APM sleeping function working again.

Anyway I started using ACPI for battery information, and Swsusp for hibernation purposes, but I still miss the ability of putting the system in a soft sleep so that I can move it from one place to another, or have a cup of coffee without having to wait still some time for a swsusp suspend/resume cycle.

As S4Bios was created to use the ability of the machines who still have some APM support to overcome the current limitations and difficulties of swsusp, isn't it possible to do the same with S1?

Best regards,

Luís Neves

-------------------------------------------------------
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): [email protected]

#2 lore raw
Quoted 4 lines

As S4Bios was created to use the ability of the machines who still have some APM support to overcome the current limitations and difficulties of swsusp, isn't it possible to do the same with S1?

No. S1 is a very simple suspend state, and IIRC, doesn't require that devices even be powered down.

There are two solutions to your problem - a quick easy one that anyone can do, and a right one that we desparately need people to start doing.

The first: userspace. You may be able to turn off the backlight via some command. I've seen it done before, but it's been a long time. You may also be able to spin down the disks.

The right way to do it is to fix the drivers to properly handle suspend/ resume transitions. It's needed for all power states, as well as supporting runtime power management.

-pat

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

A message that is not in the archive (sent off-list or not yet received): Pine.LNX.4.33.0303110908260.1003-100000-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]

#4 lore raw

Hi!

Quoted 7 lines
Quoted 3 lines

As S4Bios was created to use the ability of the machines who still have some APM support to overcome the current limitations and difficulties of swsusp, isn't it possible to do the same with S1?

No. S1 is a very simple suspend state, and IIRC, doesn't require that devices even be powered down.

Quoted 6 lines

There are two solutions to your problem - a quick easy one that anyone can do, and a right one that we desparately need people to start doing.

The first: userspace. You may be able to turn off the backlight via some command. I've seen it done before, but it's been a long time. You may also be able to spin down the disks.

Actually, I have not found out a way to turn off backlight on toshiba 4030cdt without using APM. Nor I know how to turn off backlight on hp omnibook.

Quoted 3 lines

The right way to do it is to fix the drivers to properly handle suspend/ resume transitions. It's needed for all power states, as well as supporting runtime power management.

Well, and should S1 turn backlight off? It seems like the original poster wants S3, not S1.
Pavel

Signature · 9 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

A message that is not in the archive (sent off-list or not yet received): 20030312215246.GA136-I/[email protected]

#6 lore raw

Em Quarta, 12 de Março de 2003 21:52, escreveste:

Quoted 1 line

Hi!

..............

Quoted 7 lines
Quoted 3 lines

The right way to do it is to fix the drivers to properly handle suspend/ resume transitions. It's needed for all power states, as well as supporting runtime power management.

Well, and should S1 turn backlight off? It seems like the original poster wants S3, not S1.
Pavel

Not exactly. As far as I understood, S3 is a deep sleep state, S1 is a soft sleep, and in fact my machine doesn't support S3. Only S1 and S4.

I use hdparm -Y /dev/hda to stop the disk when moving but sometimes it starts spinning again before arriving to the new spot. Anyway, currently S1 is broken for me (2.4.20+ acpi20021212) : it doesn't wake.

Best regards and keep up the good work,

Luís Neves

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

#7 lore raw
In reply to a message not in the archive
Quoted 7 lines · Luís Miguel Pires Neves

Hi!

This is just a request (desire).

As S1 is not completely working (backlight, disks spinning...), I wonder if one couldn't find a temporary solution similar to S4bios for machines that have S1 in bios.

S4Bios was easy. It is documented in specs. An equivalent to S1 (or S3 btw) would require hackeries (something like call bios to switch to legacy mode, then call apm suspend, then recall bios to switch to acpi mode).

I don't have a platform that have correct apm support, and I can only provide untested patch in that area. Worst, I think that S1 is not the real problem actually, but more a driver problem (especially with 2.4 series). And controlling the backlight for example is somehow hard to achieve in a generic way (I will be happy if someone can provide me interresting info btw).

Quoted 11 lines

I apologise if what I'm saying is stupid as I'm not a developper, just a ordinary Linux user who has been following the development of ACPI and swsusp in order to have it's Laptop with the usual functionality of laptops..

In my first times with Linux in this machine (COMPAQ Presario 12XL515) I used APM with kernel 2.2.17 (Debian Potato's version) and I had "S1" behaviour with apm -S. At the time it was the single working function as the battery status/information wasn't there, and "S4" seemed also to be absent ( I know now that it was there but it needed a proper configured partition). However with more recent kernels, both 2.2 and 2.4 (not patched with Debian patches) I never had the APM sleeping function working again.

If you can not use anymore APM with 2.4 even with the working apm -S for the debian's 2.2.17, then there is a generic problem here (regression). I have not tryied this version of kernel. Perhaps the only difference is that it worked for you because most of the drivers with the 2.2.17 was shipped as modules?

Cheers,

Signature · 11 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en