Repeated sound on Acer Aspire E1-521 Laptop
1 Attachment(s)
I'm trying to get the sound to work properly on my Acer Aspire E1-521-0851 Laptop, but it just doesn't want to play nice.
When I go to System -> Administration -> Soundcard Detection. Two devices are detected. 1. AMD Hudson Azalia Controller using module snd-hda-intel 2. AMD nee ATI Wrestler HDMI Audio [Radeon HD 6250/6310] using module snd-hda-intel When I sound test the first (Hudson Azalia Controller), sound does play but it is very choppy and echoed. It's also very low and I have to adjust the slider to the right to hear anything. The sound test on the second does not produce anything. Is there a bug, conflict, or some misconfiguration going on? Here is my system information: # cat /etc/redhat-release CentOS release 5.9 (Final) Note: I started with CentOS 5.7 and did a #yum update # uname -rmi 2.6.18-348.16.1.el5PAE i686 i386 I did see something at kernel.org https://www.kernel.org/doc/Documenta...a/HD-Audio.txt That mentioned if I got this in my dmesg: hda-intel: Invalid position buffer, using LPIB read method instead. That.... `position_fix=2` means to use the position-buffer. 0 is the default value, the automatic check and fallback to LPIB as described in the above. If you get a problem of repeated sounds, this option might help. How can I set this option without recompiling my kernel. I would like to send a kernel parameter at boot or do some configuration in modprobe.conf or asound.conf. Follow is some more information that may be helpful. I also attached the output from the also-info.sh script. [root@localhost ~]# lspci 00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 14h Processor Root Complex 00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Device 9809 00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Wrestler HDMI Audio [Radeon HD 6250/6310] 00:10.0 USB controller: Advanced Micro Devices [AMD] Hudson USB XHCI Controller (rev 03) 00:11.0 SATA controller: Advanced Micro Devices [AMD] Hudson SATA Controller [AHCI mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices [AMD] Hudson USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11) 00:13.2 USB controller: Advanced Micro Devices [AMD] Hudson USB EHCI Controller (rev 11) 00:14.0 SMBus: Advanced Micro Devices [AMD] Hudson SMBus Controller (rev 14) 00:14.2 Audio device: Advanced Micro Devices [AMD] Hudson Azalia Controller (rev 01) 00:14.3 ISA bridge: Advanced Micro Devices [AMD] Hudson LPC Bridge (rev 11) 00:14.4 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI Bridge (rev 40) 00:15.0 PCI bridge: Advanced Micro Devices [AMD] Device 43a0 00:15.1 PCI bridge: Advanced Micro Devices [AMD] Device 43a1 00:15.3 PCI bridge: Advanced Micro Devices [AMD] Device 43a3 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 (rev 43) 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6 00:18.6 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5 00:18.7 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7 02:00.0 Ethernet controller: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet (rev c0) 06:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01) 07:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01) [root@localhost ~]# lsmod Module Size Used by nls_utf8 6209 1 autofs4 28741 3 hidp 22977 2 rfcomm 42457 0 l2cap 29889 10 hidp,rfcomm bluetooth 53797 5 hidp,rfcomm,l2cap lockd 63209 0 sunrpc 149373 2 lockd cpufreq_ondemand 12493 2 powernow_k8 24865 0 mperf 6337 1 powernow_k8 ip_conntrack_netbios_ns 6977 0 ipt_REJECT 9537 1 xt_state 6209 6 ip_conntrack 53665 2 ip_conntrack_netbios_ns,xt_state nfnetlink 10713 1 ip_conntrack xt_tcpudp 7105 8 iptable_filter 7105 1 ip_tables 17029 1 iptable_filter ip6_tables 18181 0 x_tables 17349 5 ipt_REJECT,xt_state,xt_tcpudp,ip_tables,ip6_tables be2iscsi 60757 0 ib_iser 35609 0 rdma_cm 39929 1 ib_iser ib_cm 38061 1 rdma_cm iw_cm 13253 1 rdma_cm ib_sa 40117 2 rdma_cm,ib_cm ib_mad 38741 2 ib_cm,ib_sa ib_core 65985 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad ib_addr 12741 1 rdma_cm iscsi_tcp 20041 0 bnx2i 47581 0 cnic 52693 1 bnx2i ipv6 272929 3 rdma_cm,ib_addr,cnic xfrm_nalgo 13381 1 ipv6 crypto_api 12609 1 xfrm_nalgo uio 14793 1 cnic cxgb3i 31177 0 libcxgbi 54477 1 cxgb3i cxgb3 168985 1 cxgb3i 8021q 26313 1 cxgb3 libiscsi_tcp 22213 3 iscsi_tcp,cxgb3i,libcxgbi libiscsi2 42693 7 be2iscsi,ib_iser,iscsi_tcp,bnx2i,cxgb3i,libcxgbi,libiscsi_tcp scsi_transport_iscsi2 37709 8 be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2 scsi_transport_iscsi 6085 1 scsi_transport_iscsi2 dm_mirror 24393 0 dm_multipath 27213 0 scsi_dh 12481 1 dm_multipath video 21193 0 backlight 10049 1 video sbs 18533 0 power_meter 16461 0 hwmon 7365 1 power_meter i2c_ec 9025 1 sbs dell_wmi 8401 0 wmi 12137 1 dell_wmi button 10705 0 battery 13637 0 asus_acpi 19289 0 ac 9157 0 parport_pc 29669 0 lp 15849 0 parport 37513 2 parport_pc,lp snd_hda_intel 401453 1 snd_seq_dummy 7877 0 snd_seq_oss 32577 0 snd_seq_midi_event 11073 1 snd_seq_oss snd_seq 49585 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_seq_device 11725 3 snd_seq_dummy,snd_seq_oss,snd_seq snd_pcm_oss 42817 0 snd_mixer_oss 19009 1 snd_pcm_oss uvcvideo 53833 0 sr_mod 19813 1 compat_ioctl32 5569 1 uvcvideo cdrom 36705 1 sr_mod videodev 25793 1 uvcvideo snd_pcm 72517 2 snd_hda_intel,snd_pcm_oss sg 36973 0 v4l1_compat 16069 2 uvcvideo,videodev v4l2_common 24385 2 uvcvideo,videodev snd_timer 24517 2 snd_seq,snd_pcm snd_page_alloc 14281 2 snd_hda_intel,snd_pcm snd_hwdep 12869 1 snd_hda_intel snd 57797 11 snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwd ep tpm_tis 16713 0 tpm 19041 1 tpm_tis soundcore 11553 1 snd tpm_bios 11073 1 tpm pcspkr 7105 0 serio_raw 10693 0 i2c_piix4 13133 0 i2c_core 24897 2 i2c_ec,i2c_piix4 fglrx 2418460 0 atl1e 73888 0 dm_raid45 67273 0 dm_message 6977 1 dm_raid45 dm_region_hash 15681 1 dm_raid45 dm_log 14785 3 dm_mirror,dm_raid45,dm_region_hash dm_mod 63993 4 dm_mirror,dm_multipath,dm_raid45,dm_log dm_mem_cache 9537 1 dm_raid45 usb_storage 80545 0 ahci 39373 4 libata 158341 1 ahci sd_mod 25409 4 scsi_mod 144405 13 be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2,scsi_transport_iscsi2,scsi_dh,sr_mod,sg,usb_stor age,libata,sd_mod ext3 126281 2 jbd 57705 1 ext3 uhci_hcd 25549 0 ohci_hcd 25065 0 ehci_hcd 34765 0 [root@localhost ~]# cat /etc/modprobe.conf alias scsi_hostadapter ahci alias scsi_hostadapter1 usb-storage alias net-pf-10 off alias ipv6 off options ipv6 disable=1 alias snd-card-0 snd-hda-intel options snd-card-0 index=0 options snd-hda-intel index=1 remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel alias eth1 atl1e #options snd-hda-intel enable-msi=1 #options snd-hda-intel model=generic I did adjust this file manually (/etc/asound.conf), because when I ran alsamixer is would display the ATI Wrestler HDMI Audio [Radeon HD 6250/6310] card, but without any controls. After that alsamixer would display controls with Card: HD-Audio Generic Chip: Realtek ALC269VB. [root@localhost etc]# cat asound.conf #Generated by system-config-soundcard, do not edit by hand #HWCONF #DEV 0 pcm.!default { type hw card 1 device 0 } ctl.!default { type hw card 1 } [root@localhost etc]# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog [ALC269VB Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 I hope this is enough information to give me some hints on how to fix this problem. Thanks for any information you can provide and if you need more info., I'll get it right away. Regards, Antonio |
Hi
Quote:
pls study this part of your attachment Quote:
Do you need to swap between devices for any reason? If so, leaping ahead, because its the same kernel module for both devices ---you may be better off installing pulseaudio In the meantime, you may prefer to delete that system wide config and replace with a home user created file called .asoundrc contents to be (initially) as per http://alsa.opensrc.org/Asoundrc Quote:
then adjust full reboot and test with a modified asoundrc for card 1----ok? last being lazy I have not done the research but trust you so if Quote:
Quote:
it may take longer but in the long run you will be able to give better feedback if my advice is not helpful and run Code:
alsamixer you can also have different sound levels set for each device, but as you a newbie, you may be better off with pulseaudio we will await your results first eh? |
Hello Aug9
Thank you very much for the reply. It looks like you’re from Australia. I love that place. I spent two years up in the Gold Coast area. Unfortunately I had to leave. Re: testing on the HDMI device – I thought the sound card utility would send it to the regular speakers, because the utility asked me if I heard a sound. But since you mention HDMI it would make more sense that it would need an HDMI device. (FYI – most of my experience is with kiosk and headless machines that don’t use sound. I did set my second device as default, because that was the only way I could get a controllable ALSA mixer interface and any test sounds when I would issue # aplay /usr/share/sounds/alsa/Front_Center.wav. I don’t need to swap between devices. I just need basic sound from my laptop speakers. Unfortunately I need to stick with CentOS 5.7-5.9 and it doesn’t look like the main distro repositories have Pulse. Ok, I created a /root/.asoundrc under card 0 and rebooted. Then ran # aplay /usr/share/sounds/alsa/Front_Center.wav, and got this error: ALSA lib pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave aplay: main:583: audio open error: No such file or directory So now I changed /root/.asoundrc to card 1 and rebooted. Quote:
Quote:
Quote:
Quote:
Doing a little research, it looks like adding position_fix=2 is for HDMI, which is really not what I need. As mentioned before regular speaker output is fine. All my alsamixer settings are unmuted and set to 100. One thing I did you was to enable the RPM Forge repository and download mplayer. And using mplayer, my .wav files play much better, but there is a little repeating at the end (but not nearly as bad as aplay) and .mp3 files play fine. Is it using its own sound configuration and not relying 100% on alsa. I think I need to dig deeper into the alsa configuration. If my problems would be solved with pulseaudio, that would be great, but I don’t think I can install it on my CentOS 5.7 system. I did test the same file in verbose mode using mplayer and aplay. Here is the output, maybe you see something that is causing the repeat issue. Once again, I really appreciate you trying to help me. aplay Quote:
Quote:
|
hi
firstly, its home/yourname/.asoundrc don't run sound as root please. delete the system wide /etc/asound* for the moment, we want nothing polluting your home folder setup create home user .asoundrc as above as Quote:
I will come back later have to go out now |
Hello
Thanks again for your help. I was running as root just in case any permissions where getting in the way. Usually when I have a problem, I’ll run as root and once it’s working as root, I know can also get it working as a non-root user. That being said, I am following your instructions to a tee. I’ve removed all /etc/asound* and created /home/antonio/.asoundrc, but the configuration Quote:
Quote:
Quote:
Quote:
It’s mentioned in this link (https://wiki.archlinux.org/index.php...rchitecture)if this does not work try Quote:
Quote:
So I adapted for my card and device and was able to get sound from my laptop speakers, but once again it is repeating Front Front Front Front Front Front Front Front Front Center Center Center Center Center Center Center Center Center Center. The output from the aplay command was… Quote:
This link was interesting https://www.kernel.org/doc/Documenta...a/HD-Audio.txt and mentioned `position_fix=1` means to use LPIB method explicitly. `position_fix=2` means to use the position-buffer. `position_fix=3` means to use a combination of both methods, needed for some VIA controllers. The capture stream position is corrected by comparing both LPIB and position-buffer values. `position_fix=4` is another combination available for all controllers, and uses LPIB for the playback and the position-buffer for the capture streams. 0 is the default value for all other controllers, the automatic check and fallback to LPIB as described in the above. If you get a problem of repeated sounds, this option might help. I’ve tried all 4 position_fixs in /etc/modprobe.conf (options snd-hda-intel index=0 position_fix=#) and rebooted between each and still get the repeat sound. Once again mplayer plays so much better than aplay. When it's mplayer with mp3s, it's perfect. Any more insight is appreciated. |
hi
Quote:
ok for now, delete all asoundrc asound* from /etc /home/yourname plse. full reboot and post the contents of this command pls Code:
cat /proc/asound/card0/codec#0 | grep Codec Quote:
|
Just to be blunt
when you use aplay without a timeout....you will hear repeated sounds.....thats normal You may have nothing wrong. |
Hello,
Per your request.. Quote:
Thanks again. Antonio |
Hello Aus9,
Just some more information, maybe it's helpful. I downloaded and install vlc and tried to test an MP3 and got alsa audio output error: cannot write: broken pipe. Also tried to test the same .wav file I was using with aplay and got the same results. Repeat sound. front front front front front front front front front front center center center center center center center center center center |
ok post the contents of these commands pls, if the same just show one
Code:
cat /proc/asound/devices Quote:
Quote:
############## pcm.!default { type hw card 0 device 0 } part two......go into alsamixer and if no laptop speaker sound....with volumes raised etc -----then and only then....mute the SPDIF control or its already muted unmute it |
Hello Aus,
Quote:
Quote:
If I leave modprobe.conf untouched, my current aplay –l is as follows. Please note, there are no asound* files under etc. and to be on the safe side I’ve done a reboot on each file modification. Quote:
Quote:
Quote:
Regards, |
no I can't spot off hand but if you ever choose to play sound thru a hdmi cable you would use this output
Quote:
Quote:
|
All times are GMT -5. The time now is 06:44 PM. |