how to suspend/wake-up a FreeBSD machine?

2007-12-29 Thread Mikhail T.
Hello!

I managed to suspend some of my computers a few times (using
either ``zzz'' or ``acpiconf -s 1''), but I could never successfully
wake the system up after this, requiring a full reboot.

What's the proper procedure? I tried the power-button (no effect) and
hitting random keyboard keys (no effect). How is it supposed to work?

Thanks!

-mi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to suspend/wake-up a FreeBSD machine?

2007-12-29 Thread Nate Lawson
Mikhail T. wrote:
> Hello!
> 
> I managed to suspend some of my computers a few times (using
> either ``zzz'' or ``acpiconf -s 1''), but I could never successfully
> wake the system up after this, requiring a full reboot.
> 
> What's the proper procedure? I tried the power-button (no effect) and
> hitting random keyboard keys (no effect). How is it supposed to work?
> 
> Thanks!

The power button or lid is the most common way to wake.  Since
suspend/resume support needs debugging on many machines, it may not work
for you.

-- 
Nate
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to suspend/wake-up a FreeBSD machine?

2007-12-30 Thread Henrik Brix Andersen
On Sat, Dec 29, 2007 at 11:24:44AM -0500, Mikhail T. wrote:
> I managed to suspend some of my computers a few times (using
> either ``zzz'' or ``acpiconf -s 1''), but I could never successfully
> wake the system up after this, requiring a full reboot.
> 
> What's the proper procedure? I tried the power-button (no effect) and
> hitting random keyboard keys (no effect). How is it supposed to work?

That depends largely on the hardware - on e.g. ThinkPads you need to
press the 'Fn' button to wake up the laptop after sleep.

Brix
-- 
Henrik Brix Andersen <[EMAIL PROTECTED]>


pgpGogavgPWRn.pgp
Description: PGP signature


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-03 Thread Norberto Meijome
On Sun, 30 Dec 2007 11:51:41 +0100
Henrik Brix Andersen <[EMAIL PROTECTED]> wrote:

> That depends largely on the hardware - on e.g. ThinkPads you need to
> press the 'Fn' button to wake up the laptop after sleep.

hmm i think it's not so much the Fn key, u need to do anything that triggers an 
ACPI event in the BIOS - like opening the lid , or pressing Fn. I *think* 
'thinkVantage' blue btn should work too.

_
Norberto Meijome
Octantis Pty Ltd

"I'm not afraid of dying, I just don't want to be there when it happens."
  Woody Allen




NOTICE: The contents of this email and its attachments are confidential and 
intended only for the individuals or entities named above. If you have received 
this message in error, please advise the sender by reply email and immediately 
delete the message and any attachments without using, copying or disclosing the 
contents. Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-03 Thread Norberto Meijome
On Sun, 30 Dec 2007 11:51:41 +0100
Henrik Brix Andersen <[EMAIL PROTECTED]> wrote:

> That depends largely on the hardware - on e.g. ThinkPads you need to
> press the 'Fn' button to wake up the laptop after sleep.

hmm i think it's not so much the Fn key, u need to do anything that triggers an 
ACPI event in the BIOS - like opening the lid , or pressing Fn. I *think* 
'thinkVantage' blue btn should work too.

_
{Beto|Norberto|Numard} Meijome

"Discovery consists of looking at the same thing as everyone else does and 
thinking something different."
  Albert Szent-Gyorgyi, 1937 Nobel Prize in Physiology and Medicine

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread Ian Smith
On Fri, 4 Jan 2008, Norberto Meijome wrote:
 > On Sun, 30 Dec 2007 11:51:41 +0100
 > Henrik Brix Andersen <[EMAIL PROTECTED]> wrote:
 > 
 > > That depends largely on the hardware - on e.g. ThinkPads you need to
 > > press the 'Fn' button to wake up the laptop after sleep.
 > 
 > hmm i think it's not so much the Fn key, u need to do anything that
 > triggers an ACPI event in the BIOS - like opening the lid , or
 > pressing Fn. I *think* 'thinkVantage' blue btn should work too. 

On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
have to use the Fn key to wake.  No other keys do that on mine including
the ThinkPad key, so then called.

While consulting 'sysctl hw.acpi' about that I see:
hw.acpi.lid_switch_state: NONE
which I assume reflects my don't-do-that BIOS setting.

And confirming:
# sysctl hw.acpi.lid_switch_state=1 # (or =0)
hw.acpi.lid_switch_state: NONE
sysctl: hw.acpi.lid_switch_state: Invalid argument

which makes sense and was expected .. except that since doing that,
closing the lid while awake still just blanks screen, but opening lid
now wakes the laptop from sleep!  No big deal, just slightly odd .. 

Cheers, Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread Norberto Meijome
On Fri, 4 Jan 2008 19:13:20 +1100 (EST)
Ian Smith <[EMAIL PROTECTED]> wrote:

> On Fri, 4 Jan 2008, Norberto Meijome wrote:
>  > On Sun, 30 Dec 2007 11:51:41 +0100
>  > Henrik Brix Andersen <[EMAIL PROTECTED]> wrote:
>  > 
>  > > That depends largely on the hardware - on e.g. ThinkPads you need to
>  > > press the 'Fn' button to wake up the laptop after sleep.
>  > 
>  > hmm i think it's not so much the Fn key, u need to do anything that
>  > triggers an ACPI event in the BIOS - like opening the lid , or
>  > pressing Fn. I *think* 'thinkVantage' blue btn should work too. 
> 
> On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
> have to use the Fn key to wake.  No other keys do that on mine including
> the ThinkPad key, so then called.

ah yes :)

> 
> While consulting 'sysctl hw.acpi' about that I see:
> hw.acpi.lid_switch_state: NONE
> which I assume reflects my don't-do-that BIOS setting.
> 
> And confirming:
> # sysctl hw.acpi.lid_switch_state=1   # (or =0)
> hw.acpi.lid_switch_state: NONE
> sysctl: hw.acpi.lid_switch_state: Invalid argument
> 
> which makes sense and was expected .. except that since doing that,
> closing the lid while awake still just blanks screen, but opening lid
> now wakes the laptop from sleep!  No big deal, just slightly odd .. 

hmm mine reads :

hw.acpi.lid_switch_state: NONE

dev.acpi_lid.0.wake: 1

FreeBSD ayiin.octantis.com.au 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #1: Fri Jan 
 4 09:44:17 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386


_
{Beto|Norberto|Numard} Meijome

"Great spirits have often encountered violent opposition from mediocre minds."
  Albert Einstein

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread Ian Smith
On Fri, 4 Jan 2008, Norberto Meijome wrote:
 > On Fri, 4 Jan 2008 19:13:20 +1100 (EST)
 > Ian Smith <[EMAIL PROTECTED]> wrote:
[..]
 > > On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
 > > have to use the Fn key to wake.  No other keys do that on mine including
 > > the ThinkPad key, so then called.
 > 
 > ah yes :)
 > 
 > > 
 > > While consulting 'sysctl hw.acpi' about that I see:
 > > hw.acpi.lid_switch_state: NONE
 > > which I assume reflects my don't-do-that BIOS setting.
 > > 
 > > And confirming:
 > > # sysctl hw.acpi.lid_switch_state=1# (or =0)
 > > hw.acpi.lid_switch_state: NONE
 > > sysctl: hw.acpi.lid_switch_state: Invalid argument
 > > 
 > > which makes sense and was expected .. except that since doing that,
 > > closing the lid while awake still just blanks screen, but opening lid
 > > now wakes the laptop from sleep!  No big deal, just slightly odd .. 
 > 
 > hmm mine reads :
 > 
 > hw.acpi.lid_switch_state: NONE
 > 
 > dev.acpi_lid.0.wake: 1

Sorry Beto, I must have been dreaming :)  I have that too, but did try
'sysctl dev.acpi_lid.0.wake=0'.  With that, no keys at all but only
pressing the power button (not for too long!) will wake it up (phew).

Anyway, after a reboot - having noticed that since my verbose boot the
other day, each ACPI suspend/resume is VERY chatty in messages - it's
still working the same.  So eat this message .. 

 > FreeBSD ayiin.octantis.com.au 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE
 > #1: Fri Jan 4 09:44:17 EST 2008
 > [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386

Happy new job ..

cheers, Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread John Baldwin
On Friday 04 January 2008 03:13:20 am Ian Smith wrote:
> On Fri, 4 Jan 2008, Norberto Meijome wrote:
>  > On Sun, 30 Dec 2007 11:51:41 +0100
>  > Henrik Brix Andersen <[EMAIL PROTECTED]> wrote:
>  > 
>  > > That depends largely on the hardware - on e.g. ThinkPads you need to
>  > > press the 'Fn' button to wake up the laptop after sleep.
>  > 
>  > hmm i think it's not so much the Fn key, u need to do anything that
>  > triggers an ACPI event in the BIOS - like opening the lid , or
>  > pressing Fn. I *think* 'thinkVantage' blue btn should work too. 
> 
> On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
> have to use the Fn key to wake.  No other keys do that on mine including
> the ThinkPad key, so then called.
> 
> While consulting 'sysctl hw.acpi' about that I see:
> hw.acpi.lid_switch_state: NONE
> which I assume reflects my don't-do-that BIOS setting.

No, that's the FreeBSD default.

> And confirming:
> # sysctl hw.acpi.lid_switch_state=1   # (or =0)
> hw.acpi.lid_switch_state: NONE
> sysctl: hw.acpi.lid_switch_state: Invalid argument

This is because this sysctl is not an on/off, but it takes an Sx state to 
suspend to when you close the lid.  So if you set this to S1 it will try to 
enter S1 when you close the lid, etc.  For example:

sysctl hw.acpi.lid_switch_state=S3

Would make it enter S3 when you closed the lid.

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to suspend/wake-up a FreeBSD machine?

2008-01-04 Thread Ian Smith
On Fri, 4 Jan 2008, John Baldwin wrote:
 > On Friday 04 January 2008 03:13:20 am Ian Smith wrote:
 > > On Fri, 4 Jan 2008, Norberto Meijome wrote:
 > >  > On Sun, 30 Dec 2007 11:51:41 +0100
 > >  > Henrik Brix Andersen <[EMAIL PROTECTED]> wrote:
 > >  > 
 > >  > > That depends largely on the hardware - on e.g. ThinkPads you need to
 > >  > > press the 'Fn' button to wake up the laptop after sleep.
 > >  > 
 > >  > hmm i think it's not so much the Fn key, u need to do anything that
 > >  > triggers an ACPI event in the BIOS - like opening the lid , or
 > >  > pressing Fn. I *think* 'thinkVantage' blue btn should work too. 
 > > 
 > > On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to
 > > have to use the Fn key to wake.  No other keys do that on mine including
 > > the ThinkPad key, so then called.
 > > 
 > > While consulting 'sysctl hw.acpi' about that I see:
 > > hw.acpi.lid_switch_state: NONE
 > > which I assume reflects my don't-do-that BIOS setting.
 > 
 > No, that's the FreeBSD default.

Um, der .. I see that and other sysctls are in acpi(4) now, but weren't
in my (oldish) 5.5-STABLE nor 6.1-RELEASE.  Time for upgrades for sure! 

 > > And confirming:
 > > # sysctl hw.acpi.lid_switch_state=1# (or =0)
 > > hw.acpi.lid_switch_state: NONE
 > > sysctl: hw.acpi.lid_switch_state: Invalid argument
 > 
 > This is because this sysctl is not an on/off, but it takes an Sx state to 
 > suspend to when you close the lid.  So if you set this to S1 it will try to 
 > enter S1 when you close the lid, etc.  For example:
 > 
 > sysctl hw.acpi.lid_switch_state=S3
 > 
 > Would make it enter S3 when you closed the lid.

Thanks John.  S3 works on mine, but S1 doesn't.  Didn't try S5 :) but
NONE is really what I want there anyway.

cheers, Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"