LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-15-2019, 09:51 AM   #1
ItayXD
LQ Newbie
 
Registered: Aug 2019
Posts: 1

Rep: Reputation: Disabled
Sound doesn't come back after hibernation


I tried to debug it myself and had some success, but still need some advice in order to solve the problem properly.
The Problem: After I put my computer to hibernation I have no sound (suspend works fine).
My system: HP spectre X360 4100 - Broadwell
The error message: dmesg shows
Code:
rt286 i2c-INT343A:00: I2C error -110
The partial solution:
I can get the sound back if I go to pavucontrol, switch to headset and then back to built-in speakers. But it's too loud, I have to open alsamixer, choose the card and lower the volume on master. That will bring the sound back to normal.

The questions:
  1. Does anyone have an idea why this is happening based on the error message or the "solution"?
  2. Does anyone have a way to automate the "solution"?
  3. Any other insights?

I'd be happy to supply any additional necessary info...


Bonus:
If I set
Code:
acpi_osi='!Windows 2013' acpi_osi='!Windows 2012'
on grub, the sound works, and keep working even after hibernation but then there is a problem with the accelerometer, and `monitor-sensor` reports it as "undefined".
When I do that aplay gives different output for the card:
Code:
card 1: PCH [HDA Intel PCH], device 0: ALC3242 Analog [ALC3242 Analog]
might be a different approach to solving the problem, but I don't know enough about ACPI...
normal output from `aplay -l`:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: broadwellrt286 [broadwell-rt286], device 0: System Playback/Capture (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: broadwellrt286 [broadwell-rt286], device 1: Offload0 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: broadwellrt286 [broadwell-rt286], device 2: Offload1 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 
Old 08-16-2019, 02:52 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,903
Blog Entries: 21

Rep: Reputation: 125Reputation: 125
which distribution and version are you running? does pavucontrol not let you adjust the volume?
 
Old 08-16-2019, 04:44 PM   #3
r37
LQ Newbie
 
Registered: Mar 2015
Distribution: in the past Mandrake, Debian, Knoppix, now Antix, Devuan
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaperen View Post
which distribution and version are you running?
And more: Do you use systemd or SysVinit?
(Nevertheless, I consider your question really nicely formulated and I honor your debugging.)
 
Old 08-17-2019, 05:54 AM   #4
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 781
Blog Entries: 6

Rep: Reputation: 188Reputation: 188
Do you need to Hibernate or could you get away with Sleep instead? (I personally very much prefer sleep mode and see hibernate as "obsolete" with modern hardware)

Regarding Hibernate, various hardware (also soundcards) have various power saving modes etc, it seems that when you hibernate, these do not return from their hibernation power mode (off/idle) when you boot up your hibernation image. When you "do something" it wakes it up from power mode X to normal power mode.

It should be a fairly simple solution in the end, but getting there correctly could be fairly complicated.

I'm not an expert, but I bet the I2C interface is the one used to "wake" your soundcard from the idle state and report the result to motherboard. Judging by this error, I would think it would succeed in "waking" your sound card from "idle" if you try the same thing with suspend mode (as you stated you did).

It could perhaps have something to do with the order of the hardware returning from idle, and some still idle hardware which is required to wake the sound card after hibernation could cause this issue. Waking hardware from hibernation is more complicated than doing it from sleep, sine hardware info/states is stored on a static image.

Last edited by zeebra; 08-17-2019 at 05:56 AM.
 
Old 08-19-2019, 01:05 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,486

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
+1 to that.

Hibernate is indeed being left behind. Hibernate reboots on the kernel, restores an image, and expects everything to be as it was. In my case, it restores THE HIBERNATE SIGNAL, so the first thing it does when it is restored is to hibernate again. In runlevel 5 (under X) you not only have acpid monitoring power management, but your window manager's power manager as well. I can probably solve things here by configuring the XFCE power manager to go and play in the traffic, but I'm not bothered. With today's cpus, gpus & displays eating battery life, hibernating isn't worth it except in special circumstances. And a good battery lasts well on suspend, although you want a psu at the other end.
 
Old 08-20-2019, 01:30 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,307
Blog Entries: 9

Rep: Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310
I wouldn't say it's impossible.
I once had hibernation working reliably.
I don't use laptops that much, but counting all distros I ever tried that with the success rate is definitely less than 50%. More like 10%.
 
Old 08-21-2019, 04:07 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,486

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
I have had it too. But you're asking a new instance of each daemon to pick up the config & state of play of the previous instance, which I think is always going to be trouble prone.
 
Old 08-21-2019, 01:51 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,307
Blog Entries: 9

Rep: Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310Reputation: 3310
Quote:
Originally Posted by ondoho View Post
I once had hibernation working reliably.
What I meant:
I had it working reliably on one distro on one laptop - for a long time. It wasn't error prone.
 
Old 08-22-2019, 04:22 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,486

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
This box I have now used hibernate error free. But I'm not putting in the few hours of reading, farting about, and (probably) point & click configuring to get it right; On a list like this I'd have to test it a number of times to avoid looking like a twit anyhow. I can simply dispense with the option. Battery times here disappointing to put it mildly. And It's impractical for me to move it anyhow.
 
Old 08-22-2019, 04:30 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,911
Blog Entries: 1

Rep: Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829
Your soundcard might have changed index # and stuff.

$ cat /proc/asound/cards

Before and After the hibernate. See if it's different. It might be as simple as running pavucontrol and disable/enable the soundcard (which you sometimes have to do without doing anything related to hibernate). Or more complex like changing configurations to adapt. Or worse, logging out and back in to have sound again.
 
Old 08-22-2019, 08:45 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,486

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
I've just had a morning of farting with my sound system and given myself a lesson on the interdependent unreality that sound is these days. As a simple shot to nothing try this:
Code:
alsamixer # set then quit
alsactl store
Can't do any harm but returned reality here, because my system was only restoring.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless doesn't come back up after resume from suspend firebirdsql Linux - Newbie 0 06-17-2012 02:12 PM
Touchpad not working after resuming back from suspend/hibernation nelufarup Fedora 3 02-19-2010 04:10 PM
Computer wont come out of hibernation bamagirl485 Linux - Hardware 1 02-02-2010 12:59 AM
RedHat video not coming back after suspend/hibernation jeriryan Linux - Hardware 0 06-24-2008 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration