Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Gentoo No sound about 10 minutes after starting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Wed Nov 26, 2014 1:58 pm    Post subject: [SOLVED]Gentoo No sound about 10 minutes after starting Reply with quote

My Gentoo no sound after 10 minutes when i player movie or audio . i must rebooting the computer, but will shows the same situation.

Code:
Gentoo tyler # lsmod | grep 'snd'
Gentoo tyler #


Code:
Gentoo tyler # amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 74
  Mono: Playback 66 [89%] [-8.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 74 [100%] [0.00dB] [on]
  Front Right: Playback 74 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 74 [100%] [0.00dB] [on]
  Front Right: Playback 74 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 4
  Front Left: 2 [50%] [20.00dB]
  Front Right: 2 [50%] [20.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 80 [100%] [6.00dB] [on]
  Front Right: Capture 80 [100%] [6.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 4
  Front Left: 2 [50%] [24.00dB]
  Front Right: 2 [50%] [24.00dB]


Code:
Gentoo tyler # alsactl init
Found hardware: "HDA-Intel" "Intel IbexPeak HDMI" "HDA:14f15069,17aa2155,00100302 HDA:80862804,17aa21b5,00100000" "0x17aa" "0x215e"
Hardware is initialized using a generic method


Code:
Gentoo tyler # lspci | grep 'Audio'
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)


Code:
Gentoo tyler # modprobe -c
alias char_major_10_175 agpgart
alias char_major_10_200 tun
alias char_major_81 bttv
alias char_major_108 ppp_generic
alias /dev/ppp ppp_generic
alias tty_ldisc_3 ppp_async
alias tty_ldisc_14 ppp_synctty
alias ppp_compress_21 bsd_comp
alias ppp_compress_24 ppp_deflate
alias ppp_compress_26 ppp_deflate
alias loop_xfer_gen_0 loop_gen
alias loop_xfer_3 loop_fish2
alias loop_xfer_gen_10 loop_gen
alias cipher_2 des
alias cipher_3 fish2
alias cipher_4 blowfish
alias cipher_6 idea
alias cipher_7 serp6f
alias cipher_8 mars6
alias cipher_11 rc62
alias cipher_15 dfc2
alias cipher_16 rijndael
alias cipher_17 rc5
alias char_major_89 i2c_dev
alias char_major_116 snd
alias char_major_14 soundcore
alias sound_service_0_0 snd_mixer_oss
alias sound_service_0_1 snd_seq_oss
alias sound_service_0_3 snd_pcm_oss
alias sound_service_0_8 snd_seq_oss
alias sound_service_0_12 snd_pcm_oss
alias /dev/mixer snd_mixer_oss
alias /dev/dsp snd_pcm_oss
alias /dev/midi snd_seq_oss
alias parport_lowlevel parport_pc
alias char_major_10_144 nvram
alias binfmt_0064 binfmt_aout
alias char_major_10_135 rtc
alias char_major_108 ppp_generic
alias /dev/ppp ppp_generic
alias tty_ldisc_3 ppp_async
alias tty_ldisc_13 n_hdlc
alias tty_ldisc_14 ppp_synctty
alias ppp_compress_18 ppp_mppe
alias ppp_compress_21 bsd_comp
alias ppp_compress_24 ppp_deflate
alias ppp_compress_26 ppp_deflate
alias net_pf_24 pppoe
options snd cards_limit=1
softdep uhci_hcd pre: ehci_hcd
softdep ohci_hcd pre: ehci_hcd

# End of configuration files. Dumping indexes now:

alias char_major_10_229 fuse
alias cpu:type:x86,ven0000fam*mod*:feature:*00E6* x86_pkg_temp_thermal
alias devname:fuse fuse
alias fs_fuse fuse
alias fs_fuseblk fuse
alias fs_fusectl fuse
alias pci:v00008086d00000958sv*sd*bc*sc*i* iosf_mbi
alias pci:v00008086d00000F00sv*sd*bc*sc*i* iosf_mbi
alias symbol:fuse_abort_conn fuse
alias symbol:fuse_conn_get fuse
alias symbol:fuse_conn_init fuse
alias symbol:fuse_conn_kill fuse
alias symbol:fuse_conn_put fuse
alias symbol:fuse_dev_operations fuse
alias symbol:fuse_dev_release fuse
alias symbol:fuse_direct_io fuse
alias symbol:fuse_do_ioctl fuse
alias symbol:fuse_do_open fuse
alias symbol:fuse_file_poll fuse
alias symbol:fuse_get_req fuse
alias symbol:fuse_get_req_for_background fuse
alias symbol:fuse_put_request fuse
alias symbol:fuse_request_alloc fuse
alias symbol:fuse_request_send fuse
alias symbol:fuse_request_send_background fuse
alias symbol:fuse_sync_release fuse
alias symbol:iosf_mbi_available iosf_mbi
alias symbol:iosf_mbi_modify iosf_mbi
alias symbol:iosf_mbi_read iosf_mbi
alias symbol:iosf_mbi_write iosf_mbi


Last edited by Heren on Tue Dec 02, 2014 11:13 am; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Wed Nov 26, 2014 2:05 pm    Post subject: Reply with quote

Are your sound drivers compiled as module or built-in ?

Please check your kenel configuration.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Wed Nov 26, 2014 2:54 pm    Post subject: Reply with quote

xaviermiller wrote:
Are your sound drivers compiled as module or built-in ?

Please check your kenel configuration.


i compiled as kernel.

now ,i recompiled the sound drivers as module. but it still have the same questions.

Code:
Gentoo linux # lsmod
Module                  Size  Used by
snd_hda_codec_hdmi     32854  1
snd_hda_codec_generic    43720  1
snd_hda_intel          13511  0
snd_hda_controller     15789  1 snd_hda_intel
snd_hda_codec          75730  4 snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep               4770  1 snd_hda_codec
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Thu Nov 27, 2014 8:09 am    Post subject: Reply with quote

OK, the modules are loaded.

Are the tracks unmuted ? Take a look with alsamixer.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Thu Nov 27, 2014 11:51 am    Post subject: Reply with quote

xaviermiller wrote:
OK, the modules are loaded.

Are the tracks unmuted ? Take a look with alsamixer.


i checked the alsamixer , it's normal.

Code:
Card: HDA Intel MID                                  F1:  Help               │
│ Chip: Intel IbexPeak HDMI                            F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All             F6:  Select sound card  │
│ Item: Master [dB gain: -4.00]                        Esc: Exit               │
│                                                                              │
│     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐                       ┌──┐      │
│     │  │     │▒▒│     │▒▒│     │▒▒│     │  │                       │  │      │
│     │  │     │▒▒│     │▒▒│     │▒▒│     │  │                       │  │      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                       │  │      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                       │  │      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                       │  │      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                       │  │      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                       │  │      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                       │  │      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│                       │▒▒│      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│                       │▒▒│      │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│                       │▒▒│      │
│     ├──┤     ├──┤     ├──┤     └──┘     └──┘     ┌──┐   Enabled    └──┘      │
│     │OO│     │OO│     │OO│                       │OO│                        │
│     └──┘     └──┘     └──┘                       └──┘                        │
│      85    100<>100 100<>100 100<>100  32<>32                     28<>28     │
│  < Master >Headphon Speaker    PCM    Mic Boos  S/PDIF  Auto-Mut Internal    │
└─────────────────────────────────────────────────────────────────────────
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Thu Nov 27, 2014 12:00 pm    Post subject: Reply with quote

Can you hear sound with the test ?
Code:
aplay /usr/share/sounds/alsa/Front_Center.wav


Are there other applications that block sound ?
- pulseaudio
- jack
- any software
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Thu Nov 27, 2014 12:07 pm    Post subject: Reply with quote

Oh, I see: its the HDMI output. Is the sound coming from the HDMI cable ?

If not, you have to change the default card to point to the good one.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Thu Nov 27, 2014 1:01 pm    Post subject: Reply with quote

xaviermiller wrote:
Can you hear sound with the test ?
Code:
aplay /usr/share/sounds/alsa/Front_Center.wav


Are there other applications that block sound ?
- pulseaudio
- jack
- any software


No sound

Code:
Gentoo tyler # aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Thu Nov 27, 2014 1:11 pm    Post subject: Reply with quote

xaviermiller wrote:
Oh, I see: its the HDMI output. Is the sound coming from the HDMI cable ?

If not, you have to change the default card to point to the good one.


I using notebook no HDMI cable

I don't know how to configure kernel

as follows:
Code:
^(-)───────────────────────────
  │ │    [*]   Support old ALSA API                                       
  │ │    [*]   Verbose procfs contents                                 
  │ │    [ ]   Verbose printk                                           
  │ │    [ ]   Debug                                                     
  │ │    [*]   Generic sound devices  --->                               
  │ │    [*]   PCI sound devices  --->                                     
  │ │          HD-Audio  --->                                             
  │ │    [*]   USB sound devices  --->                                   
  │ │    [*]   PCMCIA sound devices  --->                                 
  │ │    < >   ALSA for SoC audio support  ---- 

<M> HD Audio PCI                                                 
  │ │    (64) Pre-allocated buffer size for HD-audio driver               
  │ │    [*] Build hwdep interface for HD-audio driver   
<M> Build HDMI/DisplayPort HD-audio codec support 
<M> Enable generic HD-audio codec parser
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Fri Nov 28, 2014 8:14 am    Post subject: Reply with quote

If you don't want to have sound through HDMI, disable the HDMI sound module seen in your extract.
And remove the module in /lib/modules

Then rety.

The other option is to see what soundcards are recognized with
Code:
cat /proc/asound/cards

then order them in the alsa.conf module file (using the "*index" configuration variable), in order to set the default card as card #0.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Fri Nov 28, 2014 9:48 am    Post subject: Reply with quote

xaviermiller wrote:
If you don't want to have sound through HDMI, disable the HDMI sound module seen in your extract.
And remove the module in /lib/modules

Then rety.

The other option is to see what soundcards are recognized with
Code:
cat /proc/asound/cards

then order them in the alsa.conf module file (using the "*index" configuration variable), in order to set the default card as card #0.


I recompiled the sound driver and disable the HDMI .


Code:
Gentoo linux # cat /proc/asound/cards
 0 [MID            ]: HDA-Intel - HDA Intel MID
                      HDA Intel MID at 0xf2520000 irq 17


i can't found the alsa.conf files.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Fri Nov 28, 2014 10:46 am    Post subject: Reply with quote

As I see, you only have the HDMI sound card. Have you enabled all Intel HD and Realtek sound modules ?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Nov 28, 2014 12:47 pm    Post subject: Reply with quote

Look at what codec your cards needs (even many use realtek, not all are using realtek codec):
Code:
grep Codec /proc/asound/card?/codec#?

And check your kernel have it (for me, i just compile them all and let it pickup the one it need):
Code:
grep HDA_CODEC /usr/src/linux/.config
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_HDMI=y
CONFIG_SND_HDA_CODEC_CIRRUS=y
CONFIG_SND_HDA_CODEC_CONEXANT=y
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CA0132=y
CONFIG_SND_HDA_CODEC_CMEDIA=y
CONFIG_SND_HDA_CODEC_SI3054=y
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Sat Nov 29, 2014 1:32 am    Post subject: Reply with quote

i disable them all
Code:
Gentoo tyler # grep Codec /proc/asound/card?/codec#?
/proc/asound/card0/codec#0:Codec: Conexant ID 5069
/proc/asound/card0/codec#3:Codec: Intel ID 2804


Code:
Gentoo tyler # grep HDA_CODEC /usr/src/linux/.config
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set


Last edited by Heren on Sat Nov 29, 2014 1:46 am; edited 1 time in total
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Sat Nov 29, 2014 1:35 am    Post subject: Reply with quote

xaviermiller wrote:
As I see, you only have the HDMI sound card. Have you enabled all Intel HD and Realtek sound modules ?


i have disable the HDMI

Code:
Gentoo tyler # lsmod
Module                  Size  Used by
snd_hda_codec_generic    43720  2
snd_hda_intel          14191  3
snd_hda_controller     15885  1 snd_hda_intel
snd_hda_codec          74894  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_pcm                63315  4 snd_hda_codec,snd_hda_intel,snd_hda_controller
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Nov 29, 2014 8:53 am    Post subject: Reply with quote

Just enable them all or at least the conexant one (assuming without reading doc that the conexant id 5069 is handle by it)
Bah, just enable them all...
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Tue Dec 02, 2014 11:12 am    Post subject: Reply with quote

krinn wrote:
Just enable them all or at least the conexant one (assuming without reading doc that the conexant id 5069 is handle by it)
Bah, just enable them all...


I solved the sound device problem, i downgrade the kernel from 3.16.5 to 3.12.21-r1.

thanks guys.
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 245
Location: Bavaria

PostPosted: Wed Dec 03, 2014 4:28 pm    Post subject: Reply with quote

This is interesting.
I also had to downgrade from 3.16.5 (to 3.14.14) because sound problems.
Does dmesg | grep sound show any errors when the sound disappears?
I often have to boot twice to get working sound using 3.16.5, and when sound does not work "dmesg | grep sound" shows these 2 extra lines:
sound hdaudioC0D0: rates == 0 (nid=0x10, val=0x0, ovrd=1)
sound hdaudioC0D0: cannot attach PCM stream 0 for codec #0
Looks like some codec recognition/timing problem...
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Fri Dec 05, 2014 4:43 pm    Post subject: Reply with quote

tomtom69 wrote:
This is interesting.
I also had to downgrade from 3.16.5 (to 3.14.14) because sound problems.
Does dmesg | grep sound show any errors when the sound disappears?
I often have to boot twice to get working sound using 3.16.5, and when sound does not work "dmesg | grep sound" shows these 2 extra lines:
sound hdaudioC0D0: rates == 0 (nid=0x10, val=0x0, ovrd=1)
sound hdaudioC0D0: cannot attach PCM stream 0 for codec #0
Looks like some codec recognition/timing problem...


I can't answer your problem, because i didn't perform this command when sound does not work.
Back to top
View user's profile Send private message
Heren
n00b
n00b


Joined: 19 May 2014
Posts: 72
Location: China

PostPosted: Wed Dec 17, 2014 12:40 am    Post subject: Reply with quote

tomtom69 wrote:
This is interesting.
I also had to downgrade from 3.16.5 (to 3.14.14) because sound problems.
Does dmesg | grep sound show any errors when the sound disappears?
I often have to boot twice to get working sound using 3.16.5, and when sound does not work "dmesg | grep sound" shows these 2 extra lines:
sound hdaudioC0D0: rates == 0 (nid=0x10, val=0x0, ovrd=1)
sound hdaudioC0D0: cannot attach PCM stream 0 for codec #0
Looks like some codec recognition/timing problem...


my sound device still no sound when play multimedia after 2 hours, but now, I solved this problems, I disable the [ ] Build hwdep interface for HD-audio driver ,that's default by gentoo-soures.
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 245
Location: Bavaria

PostPosted: Tue Dec 23, 2014 7:33 pm    Post subject: Reply with quote

for me an update to kernel version 3.17.7 solved all sound problems that were present with 3.16.5
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum