Re: [HEADSUP] amd64 suspend/resume code to be comitted

From: Robert Noland <rnoland_at_FreeBSD.org>
Date: Tue, 24 Mar 2009 14:02:22 -0500
On Tue, 2009-03-24 at 11:06 -0500, Brandon Gooch wrote:
> On Tue, Mar 24, 2009 at 10:21 AM, Gustau Perez <gperez_at_entel.upc.edu> wrote:
> > Brandon Gooch wrote:
> >>
> >> On Mon, Mar 16, 2009 at 7:53 PM, Jung-uk Kim <jkim_at_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_at_
> >>>> 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.  Please resync
> >>> the source if you tested the old version.
> >>>
> >>> Cheers,
> >>>
> >>> Jung-uk Kim
> >>> _______________________________________________
> >>> freebsd-current_at_freebsd.org mailing list
> >>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> >>> To unsubscribe, send any mail to
> >>> "freebsd-current-unsubscribe_at_freebsd.org"
> >>>
> >>>
> >>
> >>
> >
> >  Hi there,
> >
> >  in my Latitude D630 with 8-0 current updated this morning (+1 UTC) it seems
> > is trying to worOn Tue, 2009-03-24 at 11:06 -0500, Brandon Gooch wrote:
On Tue, Mar 24, 2009 at 10:21 AM, Gustau Perez <gperez_at_entel.upc.edu>
wrote:
> > Brandon Gooch wrote:
> >>
> >> On Mon, Mar 16, 2009 at 7:53 PM, Jung-uk Kim <jkim_at_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_at_
> >>>> 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.  Please
resync
> >>> the source if you tested the old version.
> >>>
> >>> Cheers,
> >>>
> >>> Jung-uk Kim
> >>> _______________________________________________
> >>> freebsd-current_at_freebsd.org mailing list
> >>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> >>> To unsubscribe, send any mail to
> >>> "freebsd-current-unsubscribe_at_freebsd.org"
> >>>
> >>>
> >>
> >>
> >
> >  Hi there,
> >
> >  in my Latitude D630 with 8-0 current updated this morning (+1 UTC)
it seems
> > is trying to wor
> k. It has no xorg, just text console.
> >
> >  First got to compile if_bge as a module, kldunloading it before acpiconf -s
> > 3. With if_bge compiled in the kernel I started to see some bge0 : ... PHY
> > read timeout, and then the machine freezed.
> >
> >  Then, 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_video
> > with no success. The other one I tried was debug.acpi.suspend_bounce. No
> > luck.
> >
> >   Do you have any alternatives I can try ?
> >
> >  Greets,
> >
> >  Gus
> >
> >  PD : is there any plan to work it to  i386 ?
> >>
> >> _______________________________________________
> >> freebsd-current_at_freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> >> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> >>
> >
> > _______________________________________________
> > freebsd-current_at_freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> >
> 
> For now, it seems X is required. The "switch-to-VTY-and-back-again"
> solution works for me:

Yes, drm has all the magic to save off the card state pre/post suspend.

robert.

> 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
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
-- 
Robert Noland <rnoland_at_FreeBSD.org>
FreeBSD

Received on Tue Mar 24 2009 - 18:02:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:44 UTC