Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2009 11:06:19 -0500
From:      Brandon Gooch <jamesbrandongooch@gmail.com>
To:        Gustau Perez <gperez@entel.upc.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [HEADSUP] amd64 suspend/resume code to be comitted
Message-ID:  <179b97fb0903240906w19629407u36fb737348f2a41e@mail.gmail.com>
In-Reply-To: <49C8FA92.7020104@entel.upc.edu>
References:  <1236802980.00085518.1236789602@10.7.7.3> <49BEE5BC.30703@FreeBSD.org> <200903162053.28614.jkim@FreeBSD.org> <179b97fb0903231416j4659101eu88dcc5ecf578167b@mail.gmail.com> <49C8FA92.7020104@entel.upc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 24, 2009 at 10:21 AM, Gustau Perez <gperez@entel.upc.edu> wrote=
:
> Brandon Gooch wrote:
>>
>> On Mon, Mar 16, 2009 at 7:53 PM, Jung-uk Kim <jkim@freebsd.org> wrote:
>>
>>>
>>> On Monday 16 March 2009 07:50 pm, Alexander Motin wrote:
>>>
>>>>
>>>> Jung-uk Kim wrote:
>>>>
>>>>>
>>>>> With popular demands, I will commit the following patch in next
>>>>> few days unless a showstopper is found or "over-my-dead-body"
>>>>> type of review is received. ;-)
>>>>>
>>>>> http://people.freebsd.org/~jkim/amd64_suspend-20090311.diff
>>>>>
>>>>> FYI, it was originally posted here:
>>>>>
>>>>> http://docs.freebsd.org/cgi/mid.cgi?200810211228.31028.jkim
>>>>>
>>>>> and here:
>>>>>
>>>>> http://docs.freebsd.org/cgi/mid.cgi?200812102120.03788.jkim
>>>>>
>>>>> Please read the original threads for more information about the
>>>>> patch.
>>>>>
>>>>
>>>> Have just retested this with just updated 8-CURRENT. Still works
>>>> fine as before with my Acer TM6292
>>>> (Core2Duo+i965GM+ICH8M+bge+iwn+sdhci amd64 SMP). Writing this
>>>> letter just after successful resume.
>>>>
>>>> There is still some DRI resume problems (will try one rnoland@
>>>> patch tomorrow) and my touch pad does not wakes up for some reason,
>>>> but that is probably unrelated.
>>>>
>>>
>>> I went ahead and committed slightly different version. =A0Please resync
>>> the source if you tested the old version.
>>>
>>> Cheers,
>>>
>>> Jung-uk Kim
>>> _______________________________________________
>>> freebsd-current@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>>> To unsubscribe, send any mail to
>>> "freebsd-current-unsubscribe@freebsd.org"
>>>
>>>
>>
>>
>
> =A0Hi there,
>
> =A0in my Latitude D630 with 8-0 current updated this morning (+1 UTC) it =
seems
> is trying to work. It has no xorg, just text console.
>
> =A0First got to compile if_bge as a module, kldunloading it before acpico=
nf -s
> 3. With if_bge compiled in the kernel I started to see some bge0 : ... PH=
Y
> read timeout, and then the machine freezed.
>
> =A0Then, when resuming I got no video(but the keyboard was working, I was=
 able
> to echo "Hi there" > /tmp/prova with success!). I tried hw.acpi.reset_vid=
eo
> with no success. The other one I tried was debug.acpi.suspend_bounce. No
> luck.
>
> =A0 Do you have any alternatives I can try ?
>
> =A0Greets,
>
> =A0Gus
>
> =A0PD : is there any plan to work it to =A0i386 ?
>>
>> _______________________________________________
>> freebsd-current@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.or=
g"
>>
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"
>

For now, it seems X is required. The "switch-to-VTY-and-back-again"
solution works for me:

http://www.freebsd.org/doc/en/articles/laptop/power-management.html

In my /etc/rc.suspend:

...
/usr/sbin/vidcontrol -s 1 < /dev/console
...

In my /etc/rc.resume:

...
/usr/sbin/vidcontrol -s 9 < /dev/console
...

I've also seen various posts in forums and on mailing lists
about using the "vbetool" program (in ports), but I haven't messed
with it myself.

See here for more detail on this issue (under "Low Priority Tasks"):

http://www.freebsd.org/projects/acpi/#todo-list

-Brandon



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