Re: Thinkpad suspend-to-disk regression

Guilherme Salgado
2007-05-04T16:08:39Z

On 5/4/07, Guilherme Salgado <gsalgado@gmail.com> wrote:
> On 5/4/07, Joerg Platte <lists@naasa.net> wrote:
> > Am Freitag, 4. Mai 2007 schrieb Guilherme Salgado:
> >
> > > This is what my hibernation script does, but I did it manually hoping
> > > that waiting a few seconds between changing /sys/power/disk and
> > > /sys/power/state could solve the problem. Unfortunately, it didn't; I
> > > still get no sound after resuming.
> >
> > I had a similar problem with a recent kernel (but not with 2.6.21-rc7) on my
> > T40p. Sound was lost after suspend-to-disk but could be re-activated by
> > suspending to RAM. I did not further debug this, because I'm using suspend to
> > disk regularly. You can try to suspend to RAM to see if it helps.
> >
>
> Yeah, I've heard reports that suspending to RAM brings the sound back,
> but that's not really a solution to the problem. The last kernel I
> tried was 2.6.21-rc4 and it has the problem; I'll pull the most recent
> one and give it a try.
>

Just tested and sound works fine after resuming a 2.6.21 kernel.

I just manually suspended my thinkpad twice. The first time with
/sys/power/disk set to 'shutdown' and the second with it set to
'platform'. In both cases I got sound after resuming. IOW, the problem
seems to be fixed.

Since I'd like to get this fix into Ubuntu's kernel, I guess I'll have
to play with git bisect some more. I'd appreciate any hints as to what
revision could have fixed this. I know for sure that it wasn't fixed
on 2.6.21-rc4 but it's fixed in 2.6.21.

Cheers,
Guilherme