Comment 155 for bug 1958019

Revision history for this message
In , zanto98 (zanto98-linux-kernel-bugs) wrote :

(In reply to Vincent Morel from comment #141)
> (In reply to wave from comment #140)
> > (In reply to Vincent Morel from comment #137)
> > > (In reply to DavidLenovo from comment #134)
> > > > (In reply to Vincent Morel from comment #130)
> > > > > (In reply to DavidLenovo from comment #127)
> > > > > > (In reply to Vincent Morel from comment #125)
> > > > > > > On the 13S Gen 2, there is only 2 speakers, and S3 is
> activated...
> > > > > >
> > > > > > Hi, I have similar result in hwinfo --sound, but it's not exactly
> the
> > > > same
> > > > > > card.
> > > > > >
> > > > > > Your have only 2 speakers working ? Ore no one ?
> > > > > >
> > > > > > You have try Ubuntu 20.04 with kernel 5.11.5 ?
> > > > >
> > > > > No speaker working (but headphone, hdmi... are working).
> > > > >
> > > > > I did not try kernel 5.11.5 (My Pop Os is in 5.11.0 but I remember
> > trying
> > > > > Ubuntu 21.04 and there was no sound also).
> > > >
> > > > (In reply to Vincent Morel from comment #132)
> > > > > (In reply to DavidLenovo from comment #127)
> > > > > > (In reply to Vincent Morel from comment #125)
> > > > > > > On the 13S Gen 2, there is only 2 speakers, and S3 is
> activated...
> > > > > >
> > > > > > Hi, I have similar result in hwinfo --sound, but it's not exactly
> the
> > > > same
> > > > > > card.
> > > > > >
> > > > > > Your have only 2 speakers working ? Ore no one ?
> > > > > >
> > > > > > You have try Ubuntu 20.04 with kernel 5.11.5 ?
> > > > >
> > > > > Just tried with kernel 5.11.5... No luck...
> > > > >
> > > > > How ACL3306 not recognise, can we find some spec or information about
> > it?
> > > > > Seems Realtek codec information is nowhere to be found... :(
> > > >
> > > > Could you recheck, please :
> > > > cat /sys/power/mem_sleep
> > > >
> > > > sudo dmesg |grep ACPI|grep supports
> > > >
> > > > Do you have try, to play a long sound with VLC, y choose PulseAudio
> > Server
> > > > if it is available, on another session I just have sof-hda-dsp Speaker
> +
> > > > Headphone (it work on both). If your change the sound output, stop and
> > > > restart the sound.
> > > > Let the sound playing and put in sleep, put the computer on, and the
> > sound
> > > > work. It lagging for me at the beginning, and after few seconds it is
> ok.
> > > >
> > > > You have ALC287 or ALC3306 ? You seem to have ALC3306, no ?
> > > > Not sure Ubuntu is work well for it.
> > > >
> > > > I think your problem is to enable S3.
> > > > It is probably not the same patch for you with you Lenovo Think Book
> 13s
> > > Gen
> > > > 2. The patch is for Yoga 7i 14" and 15"
> > > >
> > > > The user Wave could you help me more I think, my knowledge is limited.
> > >
> > > Sure thanks, here is my outputs! :)
> > > cat /sys/power/mem_sleep
> > > [s2idle] deep
> > >
> > > sudo dmesg |grep ACPI|grep supports
> > > [ 0.242864] ACPI: (supports S0 S3 S4 S5)
> > >
> > > VLC -> played long song, plugged headphone (sound on headphone works),
> > > changing output to speaker, no sound (note that sound meter show sound in
> > > preference, but sounds do not output to the speaker).
> > >
> > > Put computer into sleep while playing. After resume, still no sound in
> > > speaker...
> > >
> > > I have ALC3306. The only "not Ubuntu" I tried was Calculate Linux
> (Gentoo).
> > > I use PopOs, tried Ubuntu 21.04 also.
> > >
> > > Only informations I found on the web always point back here.
> > >
> > > Some infos: https://afterhourscoding.wordpress.com/tag/backlight/
> > > And the kernel part:
> > >
> https://github.com/torvalds/linux/blob/master/sound/pci/hda/patch_realtek.c
> > >
> > > At this point I fear it's becoming little too hard for me, but I can
> still
> > > try to do something.
> > >
> > > If I understand well this sentence 'According to Jaroslav Kysela Lenovo
> is
> > > using amplifier chips for the integrated speakers on recent hardware
> which
> > > must be initialized too. Much of that is undocumented.' we have to find a
> > > way to initialize the amplifier chip...
> >
> > For a quick test without having to change your grub config you can also run
> > echo deep > /sys/power/mem_sleep
> > as root and then try playing sound and hibernating again.
>
> Thanks for all those precious infos! Just to make things more complicated,
> PopOs use systemd-boot and not grub.
> Anyway I was able to activate 'deep' sleep with this command:
>
> sudo kernelstub -a "mem_sleep_default=deep"
>
> and after reboot I have:
> cat /sys/power/mem_sleep
> s2idle [deep]
>
>
> But my computer is not able to exit from sleep now. It goes into deep sleep
> (I see the led in sleeping mode) but as soon as I press a key the computer
> turn off. I have to turn it on and it boots...
>
> I also try to do it by adding mem_sleep_default=deep in
> /boot/efi/loader/entries/pop_OS-current.conf (that's where you put option in
> systemd-boot)
>
> Same result... I'll try a totally different distribution when I have time
> (not ubuntu based) to see if I can do it.

Did you have to patch the DSDT table in order to get S3 sleep and if yes did the patch apply cleanly?

Does the problem also occur if you do
systemctl hibernate
explicitly?