Does hybernate/wakeup work?

View: New views
7 Messages — Rating Filter:   Alert me  

Does hybernate/wakeup work?

by Yuri-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried to make system hybernate with 'acpiconf -s4' on my laptop.
It quickly turned off, but when I press the power button it boots like
no hybernate and begins to check disks.

What can be wrong?

Yuri

_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Does hybernate/wakeup work?

by Paul B Mahol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/23/09, Yuri <yuri@...> wrote:
> I tried to make system hybernate with 'acpiconf -s4' on my laptop.
> It quickly turned off, but when I press the power button it boots like
> no hybernate and begins to check disks.
>
> What can be wrong?

OS S4 is not implemented, but BIOS S4 is possible on some machines ...
And on 8.0 and 9.0 i386 SMP doesnt resume properly (amd64 works).
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Does hybernate/wakeup work?

by Yuri-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul B Mahol wrote:

> On 10/23/09, Yuri <yuri@...> wrote:
>  
>> I tried to make system hybernate with 'acpiconf -s4' on my laptop.
>> It quickly turned off, but when I press the power button it boots like
>> no hybernate and begins to check disks.
>>
>> What can be wrong?
>>    
>
> OS S4 is not implemented, but BIOS S4 is possible on some machines ...
> And on 8.0 and 9.0 i386 SMP doesnt resume properly (amd64 works).
>  

'acpiconf -s4' also brings laptop to unwakeable state. Power button begins to flash, when I press any button there is some disk activity, power button light turns on. And nothing happens.
'apm -z' produces similar result.


Maybe it's better to ask what works?
Is there any way I can use suspend/sleep mode? Any basic way to make it sleep?

Yuri

_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Does hybernate/wakeup work?

by Gonzalo Nemmi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 3, 2009 at 7:56 PM, Yuri <yuri@...> wrote:

> Paul B Mahol wrote:
>
>> On 10/23/09, Yuri <yuri@...> wrote:
>>
>>
>>> I tried to make system hybernate with 'acpiconf -s4' on my laptop.
>>> It quickly turned off, but when I press the power button it boots like
>>> no hybernate and begins to check disks.
>>>
>>> What can be wrong?
>>>
>>>
>>
>> OS S4 is not implemented, but BIOS S4 is possible on some machines ...
>> And on 8.0 and 9.0 i386 SMP doesnt resume properly (amd64 works).
>>
>>
>
> 'acpiconf -s4' also brings laptop to unwakeable state. Power button begins
> to flash, when I press any button there is some disk activity, power button
> light turns on. And nothing happens.
> 'apm -z' produces similar result.
>
>
> Maybe it's better to ask what works?
> Is there any way I can use suspend/sleep mode? Any basic way to make it
> sleep?
>
> Yuri
>

acpiconf -s3 should put it to sleep .. you can also set
hw.acpi.lid_switch_state: S3 in /etc/sysctl.conf so you can close the lid
and send the laptop to S3 ... the problem might be getting the system to
resume ..

Best Regards
Gonzalo
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Parent Message unknown Re: Does hybernate/wakeup work?

by Ian Smith-12 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In freebsd-questions Digest, Vol 283, Issue 5, Message 13
On Tue, 03 Nov 2009 10:56:24 -0800 Yuri <yuri@...> wrote:
 > Paul B Mahol wrote:
 > > On 10/23/09, Yuri <yuri@...> wrote:
 > >  
 > >> I tried to make system hybernate with 'acpiconf -s4' on my laptop.
 > >> It quickly turned off, but when I press the power button it boots like
 > >> no hybernate and begins to check disks.
 > >>
 > >> What can be wrong?
 > >>    
 > >
 > > OS S4 is not implemented, but BIOS S4 is possible on some machines ...
 > > And on 8.0 and 9.0 i386 SMP doesnt resume properly (amd64 works).

 > 'acpiconf -s4' also brings laptop to unwakeable state. Power button
 > begins to flash, when I press any button there is some disk activity,
 > power button light turns on. And nothing happens. 'apm -z' produces
 > similar result.
 >
 > Maybe it's better to ask what works?
 > Is there any way I can use suspend/sleep mode? Any basic way to make it sleep?

As Paul said, hibernation only works if the machine's BIOS supports it
(hw.acpi.s4bios = 1) AND you've already prepared a suitable disk area,
usually a separate slice (DOS partition) or as a file in a 'doze slice.

To make even a vaguely informed guess as to whether hibernation and/or
acpiconf -s3 (suspend/resume) might work, we'd need to know:

 What version of FreeBSD on which architecture?  (output of 'uname -a')

 What make and model of laptop?  (someone may know if that one works)

 Whether it runs a single or multiple CPUs?  (see /var/run/dmesg.boot)

 The output of 'sysctl hw.acpi' ?

cheers, Ian
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Does hybernate/wakeup work?

by Yuri-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ian Smith wrote:

> As Paul said, hibernation only works if the machine's BIOS supports it
> (hw.acpi.s4bios = 1) AND you've already prepared a suitable disk area,
> usually a separate slice (DOS partition) or as a file in a 'doze slice.
>
> To make even a vaguely informed guess as to whether hibernation and/or
> acpiconf -s3 (suspend/resume) might work, we'd need to know:
>
>  What version of FreeBSD on which architecture?  (output of 'uname -a')
>
>  What make and model of laptop?  (someone may know if that one works)
>
>  Whether it runs a single or multiple CPUs?  (see /var/run/dmesg.boot)
>
>  The output of 'sysctl hw.acpi' ?
>
> cheers, Ian
>  

Here is this information:
FreeBSD-8.0-RC2
Laptop is Lenovo S10-2, single CPU, Intel Atom.

--- sysctl hw.acpi output ---

hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S3
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: NONE
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.disable_on_reboot: 0
hw.acpi.handle_reboot: 0
hw.acpi.reset_video: 0
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.user_override: 0
hw.acpi.thermal.tz0.temperature: 43.0C
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.passive_cooling: 0
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: -1
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 102.0C
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.thermal.tz0._TC1: -1
hw.acpi.thermal.tz0._TC2: -1
hw.acpi.thermal.tz0._TSP: 300
hw.acpi.battery.life: -1
hw.acpi.battery.time: -1
hw.acpi.battery.state: 7
hw.acpi.battery.units: 1
hw.acpi.battery.info_expire: 5
hw.acpi.acline: 1
hw.acpi.cpu.cx_lowest: C1


Yuri
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Does hybernate/wakeup work?

by Ian Smith-12 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 3 Nov 2009, Yuri wrote:
 > Ian Smith wrote:
 > > As Paul said, hibernation only works if the machine's BIOS supports it
 > > (hw.acpi.s4bios = 1) AND you've already prepared a suitable disk area,
 > > usually a separate slice (DOS partition) or as a file in a 'doze slice.
 > >
 > > To make even a vaguely informed guess as to whether hibernation and/or
 > > acpiconf -s3 (suspend/resume) might work, we'd need to know:
 > >
 > >  What version of FreeBSD on which architecture?  (output of 'uname -a')
 > >
 > >  What make and model of laptop?  (someone may know if that one works)
 > >
 > >  Whether it runs a single or multiple CPUs?  (see /var/run/dmesg.boot)
 > >
 > >  The output of 'sysctl hw.acpi' ?
 > >
 > > cheers, Ian
 > >  
 >
 > Here is this information:
 > FreeBSD-8.0-RC2

i386 or amd64?  It matters, which is why we ask for uname -a .. obscure
your hostname etc if needed.  Some Atom models (230 and 330, I read)
have feature 'LM' and so can run amd64; others don't and must run i386.

 > Laptop is Lenovo S10-2, single CPU, Intel Atom.

But with hyperthreading enabled or not?  How many CPUs launched (dmesg)?
Again, it matters.  As I understand it, on 8.0 amd64 SMP suspend/resume
(S3) should work, i386 SMP is currently broken, i386 non-SMP should
(still) work, but I'm really not sure about the Atoms.

head -50 /var/run/dmesg.boot (or so) should clear this up.  We don't
need the whole thing, but show anything to do with ACPI and CPU(s).

 > --- sysctl hw.acpi output ---
 >
 > hw.acpi.supported_sleep_state: S3 S4 S5
 > hw.acpi.power_button_state: S5
 > hw.acpi.sleep_button_state: S3
 > hw.acpi.lid_switch_state: NONE
 > hw.acpi.standby_state: NONE
 > hw.acpi.suspend_state: S3
 > hw.acpi.sleep_delay: 1
 > hw.acpi.s4bios: 0

So, hibernate won't work.  There was talk of someone doing that for a
Google SoC project but I've heard no more about it for a long while.

 > hw.acpi.verbose: 0
 > hw.acpi.disable_on_reboot: 0
 > hw.acpi.handle_reboot: 0
 > hw.acpi.reset_video: 0
 > hw.acpi.thermal.min_runtime: 0
 > hw.acpi.thermal.polling_rate: 10
 > hw.acpi.thermal.user_override: 0
 > hw.acpi.thermal.tz0.temperature: 43.0C
 > hw.acpi.thermal.tz0.active: -1
 > hw.acpi.thermal.tz0.passive_cooling: 0

Slightly surprising, but again I know nothing about Atom BIOSes.

 > hw.acpi.thermal.tz0.thermal_flags: 0
 > hw.acpi.thermal.tz0._PSV: -1
 > hw.acpi.thermal.tz0._HOT: -1
 > hw.acpi.thermal.tz0._CRT: 102.0C
 > hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
 > hw.acpi.thermal.tz0._TC1: -1
 > hw.acpi.thermal.tz0._TC2: -1
 > hw.acpi.thermal.tz0._TSP: 300
 > hw.acpi.battery.life: -1
 > hw.acpi.battery.time: -1
 > hw.acpi.battery.state: 7
 > hw.acpi.battery.units: 1
 > hw.acpi.battery.info_expire: 5
 > hw.acpi.acline: 1
 > hw.acpi.cpu.cx_lowest: C1

If this is either i386 uniprocessor or amd64 SMP, suspend/resume should
work, though possibly needing some settings tweaked and/or some modules
unloaded/reloaded in /etc/rc.{suspend,resume} to do so successfully.

If so, I'd next try the freebsd-mobile@ list where several people who
should be able to advise on this tend to hang out.  If not, you may be
out of luck at this stage.

cheers, Ian
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."