_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"
In principle, yes..
However there is no support in FreeBSD for suspending to disk so you are out
of luck..
In theory your BIOS could support S4BIOS which means it does most of the work,
but I don't think anyone has ever had that work either.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5
I had this working on a Dell Inspiron 4150, but it turned out to be much
slower than just rebooting the thing (about 60 seconds for reading/writing it
all to disk vs about 30 seconds for booting). I needed to get a Dell utility
from the website (S2D.EXE iirc) and create a suspend to disk partition *as
the first partition on the disk*.
And of course, resuming within X was not really supported because some things
like the display failed to properly reinitialize, just like with S3.
In the end I decided to dedicate the space to something else. It wasn't worth
it IMHO. An OS-based S4 might turn out to be much more useful.
--Stijn
--
"I used to think I was indecisive, but now I'm not so sure."
Actually, I remember installing FreeBSD 4.0 on my Dell Inspiron 7500, both
suspend to disk, and suspend to memory worked *perfectly*
Unfortunatly it hasn't worked on any recent versions of FreeBSD, not sure when
it broke. Inspiron 7600's do S4 via the BIOS and write the memory contents to a
fat32 partition, there is a small utility to set the 'save-to-disk' file.
It was also fine in 4.1 IIRC, some day i'll find the time to figure out why it
dosn't work anymore.
Amar.
--
http://www.ten15.org
OK, interesting :)
I have an Inspiron 8000 and in 4.x I could suspend to disk using the BIOS
after making an image partition.
> And of course, resuming within X was not really supported because some
> things like the display failed to properly reinitialize, just like with S3.
I added a vidcontrol command to switch to the console on suspend, and to X on
resume which fixed the minor glitch I got at the top of the screen.
> In the end I decided to dedicate the space to something else. It wasn't
> worth it IMHO. An OS-based S4 might turn out to be much more useful.
Yeah same here, the BIOS suspend is crippled because it can't do DMA (I
believe) and doesn't know what can be thrown away so it takes ages. Not to
mention the PITA factor if you upgrade the amount of RAM you have..
You might have to wait a while for it to finish resuming. My dell laptop
takes about 50 seconds to a minute to fully come back after an S3 resume. It
seems to be hung during that minute as the disk doesn't do anything, but it
does eventually come back if I wait long enough.
--
John Baldwin <j...@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
Yep..
Unless you want to write suspend to disk code 8-)
> machine into the sleep with red-blinking power led (i think it's abnormal),
> and when I power it on led turns on back and shows me command line but
> mackine freezes.
I'm only new to this ACPI stuff myself, so I don't know any handy tricks :(
nor so i. for example, my laptop seems to suspend with -s3. but
closing the lid, which suspends it in winxp, does not suspend it,
only dims the screen. is there somewhere can i read about this in
a useful, pragmitic, "to get result X configure it this way"
manner?
randy
sysctl hw.acpi.lid_switch_state=S3
It can also be done via devd.conf, I imagine
> is there somewhere can i read about this in
> a useful, pragmitic, "to get result X configure it this way"
> manner?
Most event-based stuff can be configured via devd, and available
sysctl values can be seen via sysctl -a ...
Also, for most well-established features the handbook and faq are good
places to look.
Rahul
yes! thanks.
> It can also be done via devd.conf, I imagine
so can a lot of things, i suspect. but the learning curve ...
i will start reading on acpi i guess. wasn't apm bad enough?
randy
i lied.
this works if X has not been started. once X starts, this does not
work in X or in a console vty.
randy
This looks good. However, when you power your machine on again, you have
to tell it to boot from the suspend partition, and not from your normal
boot partition.
This is at least how it works on my laptop (Dell).
Mark
I added some stuff to /etc/rc.suspend to run boot0cfg to change my default
boot partition (and to /etc/rc.resume to change it back to FreeBSD)
Basically boot0cfg -s X /dev/ad0
I also used..
vidcontrol -s 1 </dev/ttyv0
and
vidcontrol -s 9 </dev/ttyv0
to prevent video corruption on suspend.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5
_______________________________________________
It's a hook into the BIOS indeed. The ACPI system reports to the OS
whether S4BIOS is available.
When it is, the OS doesn't need to do much itself and the BIOS does most
of the work. The tasks of the OS is to make sure all drivers are having
the right state and turning devices on and off.
> I can't believe Windows modifies the MBR on suspend...
Correct, Windows doesn't use S4BIOS at all, it's fully inplemented in
software and therefore a regular S4.
Mark
<shrugs>
WinME and higher don't use S4BIOS anyway so it's irrelevant.
Prior to that it was dependant on the BIOS and on at least on laptop we have
at work it did modify the MBR to boot off the correct partition after an APM
suspend to disk.
>> nor so i. for example, my laptop seems to suspend with -s3. but
>> closing the lid, which suspends it in winxp, does not suspend it,
>> only dims the screen.
> sysctl hw.acpi.lid_switch_state=S3
well, this had been working for some days.
now suspend of any form locks it up solid
o i shut bluetooth down
o i am in a console vty
o either
- lid, or
- acpictl -s3
just licks the box up solid
randy