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 01-11-2014, 09:48 PM   #1
vecciora
Member
 
Registered: Jan 2009
Distribution: Mageia & Vine Linux
Posts: 43

Rep: Reputation: 0
No sound after suspending to RAM


There is no sound after suspending to RAM even though the channels were unmuted.

Here is some info about my environment.

aplay -l output:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
lsmod | grep snd output:
Code:
snd_hda_codec_realtek    55667  1 
snd_hda_codec_hdmi     41117  1 
snd_hda_intel          44059  5 
snd_hda_codec         192638  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              17698  1 snd_hda_codec
snd_pcm               101961  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
snd_timer              29370  1 snd_pcm
snd                    83267  17 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore              15047  1 snd
There is no /etc/modprobe.d/alsa-base.conf file. The kernel is 3.11.8-nrjQL-desktop-1omv (OpenMandriva Lx 2013.0). The PC is a ASUS 1215b laptop.
 
Old 01-11-2014, 11:56 PM   #2
vecciora
Member
 
Registered: Jan 2009
Distribution: Mageia & Vine Linux
Posts: 43

Original Poster
Rep: Reputation: 0
After tried to go into sleep mode with a headphone connected, I found that the 'Speaker' section in alsamixer is marked 'MM' which I think is mute because the 'Headphone' channel is '00' and the headphone producing sound.

This is the output of amixer scontents -c1:
Code:
  Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
Seems like the 'Speaker' is off. But, when I can't enable it.
Code:
boby@localhost ~]$ amixer sset Speaker unmute
amixer: Unable to find simple control 'Speaker',0
Why is this?

**Update

After removing the headphone, the 'Speaker' channel turned from 'MM' to '00', but no sound. And after I insert the headphone again, 'Speaker' turned 'MM' and the headphone producing sound.

Last edited by vecciora; 01-12-2014 at 12:02 AM.
 
Old 01-12-2014, 04:04 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

firstly the headphone inserted muting the speakers is what I would expect of a decent sound card
and decent software

1) can you show also aplay -L outuput as I suspect you have pulseaudio running
---PA is famous for muting after a while
 
Old 01-12-2014, 04:16 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
secondly your command needs a change or two

Code:
amixer -c1 sset Speaker,1 unmute
but if you can take a snapshot of your alsamixer -c1 image and upload it somewhere and link to it
-----with your final settings you may find you need more than one command to get there

also I suspect you can't just use simple controls but the elongated ones


##############

I wonder about you mixing up card 0 (index 0) and 1

so you might be better off showing both the input command and its output so we can be sure pls

I may be wrong but me thinks you have not used the card index number correctly

Last edited by aus9; 01-12-2014 at 04:19 AM.
 
Old 01-12-2014, 07:26 AM   #5
vecciora
Member
 
Registered: Jan 2009
Distribution: Mageia & Vine Linux
Posts: 43

Original Poster
Rep: Reputation: 0
Okay, this is the aplay -L output:
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
default
    Default ALSA Output (currently PulseAudio Sound Server)
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
sysdefault:CARD=SB
    HDA ATI SB, ALC269VB Analog
    Default Audio Device
front:CARD=SB,DEV=0
    HDA ATI SB, ALC269VB Analog
    Front speakers
surround40:CARD=SB,DEV=0
    HDA ATI SB, ALC269VB Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
    HDA ATI SB, ALC269VB Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
    HDA ATI SB, ALC269VB Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
    HDA ATI SB, ALC269VB Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
    HDA ATI SB, ALC269VB Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
Regarding the alsamixer -c1, the 'Speaker' is being muted by inserting headphone and being unmuted by removing it. I know that it's normal. The thing is the speaker doesn't produce any sound even though alsamixer showed that it was unmuted. This is the snapshot of my alsamixer -c1 when the headphone is removed: http://i39.tinypic.com/256teeg.jpg.

But, it is strange that the speaker now produce the sound even after the system being suspended. It wasn't like this before. Before, the speaker didn't produce any sound even though alasmixer showed that it was unmuted.

** Update

I suspended it again without a headphone connected and now the speaker doesn't make any sound. The alsamixer -c1 is identical to the one which I took the snapshot of it.

Running amixer -c1 sset Speaker unmute doesn't help. Still no sound. But, there is sound from the headphone if I connect it.

Last edited by vecciora; 01-19-2014 at 12:02 AM.
 
Old 01-12-2014, 05:56 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I have made a mistake try]

Code:
amixer -c1 sset Speaker,0 unmute
the zero is for the first and only control, 1 assumes you have 2 speaker controls....silly me

2) you have auto mute mode enabled in alsa

go back into alsamixer -c1
right arrow to it
press the up or down arrow to show its disabled pls

3) lets try that again

me thinks you need longer amixer commands but your image does not show what it was

can you now post an image of alsamixer -c1......without changing anything....just after you re-wake computer pls

b) you have a separate control for headphone so you may not necessarily have a control in alsa for headphone sense

4) as suspected you also have pulseaudio
and that has a susspension function as default

So it gets messier

Do you have more than one user on this computer?
if so you should keep the /etc/pulse configs and edit them with root powers

otherwise copy some configs into your home folder as per this wiki explanation for PA

try independent test of alsamixer....first

after re-awake

follow this guide
https://wiki.archlinux.org/index.php...e_from_suspend

Code:
/usr/bin/pasuspender /bin/true
if you did not need to do anything with alsamixer, you can now create a simple script to have on your desktop

if you need to do amixer commmands.....we need before and after images to translate the alsamixer images into amixer commmands
----and I suspect you can't use the simple controls.....but lets wait for your report

good luck

PS

don't create the systemd stuff as per wiki.....a script is quicker

create a text file with

Code:
echo "#!/bin/sh
/usr/bin/pasuspender /bin/true
# optional amixer commands are inserted here
" > /home/boby/Desktop/wakeup

chmod 755 /home/boby/Desktop/wakeup
 
Old 01-13-2014, 10:10 AM   #7
vecciora
Member
 
Registered: Jan 2009
Distribution: Mageia & Vine Linux
Posts: 43

Original Poster
Rep: Reputation: 0
1) Okay, I understand about the amixer command now. I've unmuted the speaker channel from card #1 after suspending, but still no sound from the speaker. There is sound from the headphone though.

2) Okay, I've disabled the Auto-Mute Mode.

3) Here: hhttp://i41.tinypic.com/24m58op.jpg. Everything looks fine

4) It doesn't help. $ /usr/bin/pasuspender /bin/true doesn't help. Still no sound.

Last edited by vecciora; 01-19-2014 at 12:01 AM.
 
Old 01-13-2014, 06:03 PM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

no image in link

b) I should have checked my debian to see if it had the same command so suspect you have the same issue no such file as /usr/bin/pasuspender
until you install this package pls

pulseaudio-utils

c) leaping ahead

I need to see the image before you do any alsamixer (amixer) work
but we have the final image

if the resume pulseaudio does not work, once installed
then you may need more than one amixer command

possible for the PCM control etc

d) by comparing before and after images
if the pasuspender is not enough
you had amixer commands to get to resultant image

is that clearer?

Last edited by aus9; 01-13-2014 at 06:07 PM.
 
Old 01-13-2014, 08:00 PM   #9
vecciora
Member
 
Registered: Jan 2009
Distribution: Mageia & Vine Linux
Posts: 43

Original Poster
Rep: Reputation: 0
b) There are pulseaudio-utils package and pasuspender command.

c) Here is the image which of alsamixer -c1 before I do any alsamixer (amixer) work (just after booting) http://i39.tinypic.com/2eqgvmp.jpg.

d) The only difference from all images I upload is the Auto-Mute Mode.

So this is the image of alsamixer before doing anything http://i39.tinypic.com/2eqgvmp.jpg. I didn't connect the headphone. I played a video. There was sound.

Then I went into sleep mode and wake from it. The alsamixer was still the same. Nothing was muted. Muted stuffs are just the result of connecting a headphone. I played a video. No sound.

I ran amixer -c 1 set Speaker,0 100% unmute. Still no sound.

I ran pasuspender /bin/true. Still no sound.

But, there is always sound if it's from headphone. There is no sound from the speaker.

Last edited by vecciora; 01-19-2014 at 12:00 AM.
 
Old 01-13-2014, 10:23 PM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
sorry no images in FF or google chrome

could you consider looking at "sharing" keep link
then logout and test your own link?

otherwise can you consider using tinypic.com (no expiry)
free to join

or with expiry
http://imagebin.org/index.php?page=add

2) until I see the images, even tho you say there is no difference
I am reluctant to comment further

but will as we appear to be in diff timezones

3) can you look without posting images of
pavucontrol

does it show any speaker mutes?

when you play sounds from headphones and speakers, do you see any changes in outputs?
report if you see any thanks
 
Old 01-19-2014, 12:02 AM   #11
vecciora
Member
 
Registered: Jan 2009
Distribution: Mageia & Vine Linux
Posts: 43

Original Poster
Rep: Reputation: 0
Sorry for abandoning this thread for days. I've updated all the picture links to TinyPic.
 
Old 01-19-2014, 01:00 AM   #12
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
you had an extra h in link

this looks like it tho

http://oi41.tinypic.com/24m58op.jpg

---------- Post added 19-01-14 at 15:01 ----------

and if it is, auto mute is still showing as enabled pls disable it
 
Old 01-19-2014, 06:12 AM   #13
vecciora
Member
 
Registered: Jan 2009
Distribution: Mageia & Vine Linux
Posts: 43

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
you had an extra h in link

this looks like it tho

http://oi41.tinypic.com/24m58op.jpg

---------- Post added 19-01-14 at 15:01 ----------

and if it is, auto mute is still showing as enabled pls disable it
Yeah, I've disabled it, but it doesn't make any difference. Still no sound from speaker after sleeping.

pavucontrol shows that there is sound though http://i44.tinypic.com/ao50y8.png.
 
Old 01-19-2014, 06:00 PM   #14
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ahhh we are getting somewhere

that last image shows you have set up the output device as hdmi which is not analog so no headphone or speaker

1) did you realise that?
pavucontrol ---click on configuration tab ---pulldown and select "headphones" or analog depending on options available

2) are you looking for simultaneous outputs? hdmi plus analog
install paprefs and config for simulataneous outputs ....the extreme RH tab
 
Old 01-20-2014, 02:48 AM   #15
vecciora
Member
 
Registered: Jan 2009
Distribution: Mageia & Vine Linux
Posts: 43

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
ahhh we are getting somewhere

that last image shows you have set up the output device as hdmi which is not analog so no headphone or speaker

1) did you realise that?
pavucontrol ---click on configuration tab ---pulldown and select "headphones" or analog depending on options available

2) are you looking for simultaneous outputs? hdmi plus analog
install paprefs and config for simulataneous outputs ....the extreme RH tab
There is sound from headphone and speaker before sleep. There is no sound from speaker, but there is from headphone after waking up from sleep.

I think everything is normal. alsamixer -c0 is for HD-Audio Generic (ATI R6xx HDMI) and alsamixer -c1 is for HDA ATI SB (Realtek ALC269VB).

Maybe these screenshot of pavucontrol will help:
http://i39.tinypic.com/261oh9y.png --> Output Devices tab
http://i44.tinypic.com/n5lmw3.png --> Configuration tab
 
  


Reply

Tags
asus, hda, intel, sound, suspend


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
After suspending sound works in MX7515- know why?? jacobjacob Linux - Hardware 0 12-24-2008 09:52 AM
suspending to disk vs. to RAM newbiesforever MEPIS 2 08-24-2008 07:18 PM
issue with suspending to disk/ram qanopus Linux - Laptop and Netbook 1 11-30-2006 01:45 AM
Playing '.ram' sound file gletare Linux - Software 1 01-12-2006 07:02 AM
Newbie Problems: RAM, Sound, and codecs Dillius Mandriva 3 01-21-2005 04:36 PM

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

All times are GMT -5. The time now is 06:53 PM.

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
Open Source Consulting | Domain Registration