[Pm-utils] pm-suspend working only after resuming from pm-hiberante

Jesse Barnes jbarnes at virtuousgeek.org
Wed Oct 8 09:27:21 PDT 2008


On Wednesday, October 8, 2008 9:13 am Leonardo Canducci wrote:
> Il giorno mar, 07/10/2008 alle 14.25 -0700, Jesse Barnes ha scritto:
> > On Tuesday, October 7, 2008 2:06 pm Leonardo Canducci wrote:
> > > > If you're using 2.6.25 or later it's also worth
> > > > checking whether you can do a
> > > > suspend/resume from the console directly:
> > > >   <boot to text mode>
> > > >   # modprobe i915
> > > >   # echo mem > /sys/power/state
> > > >   <resume>
> > > >
> > > > If that comes back then at least the basic kernel
> > > > functionality is working.
> > >
> > > It did come back with module i915 loaded in text mode. What can I try
> > > now?
> >
> > Excellent, that's a start.  Can you use the 'intel_reg_dumper' tool (part
> > of the xf86-video-intel driver tree) to capture register dumps from
> > before and after the suspend/resume cycle?
>
> If intel_reg_dumper is a command I suspect it's not included in debian
> xserver-xorg-video-intel package. Could you point me to some doc
> explaining how to get it and use it?

There are some docs about building the driver at 
http://www.intellinuxgraphics.org, but maybe Dan or one of the Debian guys 
could get intel_reg_dumper added to the package?  It's really handy for 
debugging problems...

Dan?

> > Now you should try the same thing, but with X running:
> >   <boot & login to your desktop env.>
> >   # chvt 1 (or ctl-alt-f1)
> >   <login as root>
> >   # echo mem > /sys/power/state
> >   <resume>
> >   # chvt 7 (or whatever your X VT # is)
>
> Ok. I tried invoking "echo mem > /sys/power/state" after switching to
> console with X running and got my laptop suspended and the freezed on
> resume.
> I don't know if it's relevant but when suspending from console display
> gets a little messy: white in the center with coloured borders than
> fades to black turning off. This happens in both cases (X running or
> not).

So just having X running in the background is enough to cause a hang, even if 
you do the suspend/resume cycle from the console?  Yuck.

Suspend should be a little prettier than what you describe, but I don't think 
fixing it would affect stability.

-- 
Jesse Barnes, Intel Open Source Technology Center


More information about the Pm-utils mailing list