Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Dec 2004 07:44:27 -0800
From:      Nate Lawson <nate@root.org>
To:        Aurelien Nephtali <aurelien.nephtali@wanadoo.fr>
Cc:        acpi@freebsd.org
Subject:   Re: suspend/resume improved?
Message-ID:  <41B5CFDB.4090203@root.org>
In-Reply-To: <41B554B1.7070508@wanadoo.fr>
References:  <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> <41B554B1.7070508@wanadoo.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Aurelien Nephtali wrote:
> Nate Lawson wrote:
> 
>>
>> It's pretty straightforward but arduous work.  First strip down your 
>> system, removing all drivers except for the hard drive and keyboard 
>> (no USB, network, etc.)  Don't run X.  Try S3.  If it works, add back 
>> in drivers until it fails.
>>
>> If it fails, try to find out where it fails.  Does it truly make it to 
>> sleep or does it immediately resume?  Add the beep code Warner posted 
>> a while back to the resume code and see if you get a beep.  If you get 
>> a beep but a dead system, it's something in driver resume.  Try to 
>> enable the network driver and ssh into your system after resume.  If 
>> it works, it's a video driver problem and you need to mess with 
>> resuming the VESA BIOS.  Don't run DRM with X.
>>
>> A lot of this is in the ACPI section of the handbook (which no one 
>> appears to have seen for some reason).  More info about specific 
>> issues can be found on my web page:
>>
>> http://www.root.org/~nate/freebsd/acpi-todo.html
>>
> 
> I will follow this procedure since resume still doesn't work on my
> system (Compaq Presario 2157EA).
> 
> But I have a question : the speaker is correctly detected [1] but the 
> system  never produced a "beep" and spkrtest neither. So I think using 
> the Warner "beep-code" won't help me much ?

The beep code is very heavy-handed.  It just writes directly to the 
speaker port in real mode so it really doesn't matter what devices you 
have configured.  That's why it's for debug only.  Warner, could you 
commit the patch under an appropriate kernel option (ACPI_DEBUG_BEEP or 
something)?

-- 
Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41B5CFDB.4090203>