You are not logged in.
I used to get this message before the audio began to stutter and then the whole computer would freeze up:
Aug 11 20:09:35 localhost kernel: snd_hda_intel 0000:00:1b.0: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.My kernel boot parameters now look like this (I'm not sure about 32 either, I just guessed...):
APPEND root=/dev/sda3 rw quiet snd_hda_intel.bdl_pos_adj=32I was able to play games for a while with no problem, even played audio from a browser in the background, everything seemed great. But after doing work all day today and trying to play a game in the evening I got these errors before the stuttering and lockup:
Aug 14 22:18:52 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 14 22:18:53 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 14 22:18:54 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 14 22:18:55 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^
...My asoundrc was generated asoundconf.
My sound card is: card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
I only seem to get this problem if I do other stuff before playing, if I reboot and just play games things work smoothly.
Offline
Why do you use kernel parameters for this? Modprobe also accepts align_buffer_size for the snd-hda-intel module as an option, try that with one of these values: 1024, 2048, 4096, 8192, 16384, 32768, 65536 and 131072. There is an upper limit, some of these might be over it.
How about showing that asoundrc?
Edit: To clarify, set buffer_size to those levels not align_buffer_size.
Last edited by emeres (2014-08-15 23:12:36)
Offline
Why do you use kernel parameters for this? Modprobe also accepts align_buffer_size for the snd-hda-intel module as an option, try that with one of these values: 1024, 2048, 4096, 8192, 16384, 32768, 65536 and 131072. There is an upper limit, some of these might be over it.
How about showing that asoundrc?
Edit: To clarify, set buffer_size to those levels not align_buffer_size.
Ok, here's the asoundrc and asoundrc.asoundconf:
# ALSA library configuration file
# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</home/nak/.asoundrc.asoundconf>
defaults.pcm.dmix.rate 44100
defaults.pcm.dmix.buffer_size 8192
-------- .asoundrc.asoundconf -----------------
# ALSA library configuration file managed by asoundconf(1).
#
# MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!
#
# Manual changes to the ALSA library configuration should be implemented
# by editing the ~/.asoundrc file, not by editing this file.
!defaults.pcm.card Intel
defaults.ctl.card Intel
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.nonblock 1
defaults.pcm.compat 0
defaults.pcm.minperiodtime 5000
defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format "unchanged"
defaults.pcm.dmix.card defaults.pcm.card
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.card defaults.pcm.card
defaults.pcm.dsnoop.device defaults.pcm.device
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
defaults.pcm.rear.device defaults.pcm.device
defaults.pcm.center_lfe.card defaults.pcm.card
defaults.pcm.center_lfe.device defaults.pcm.device
defaults.pcm.side.card defaults.pcm.card
defaults.pcm.side.device defaults.pcm.device
defaults.pcm.surround40.card defaults.pcm.card
defaults.pcm.surround40.device defaults.pcm.device
defaults.pcm.surround41.card defaults.pcm.card
defaults.pcm.surround41.device defaults.pcm.device
defaults.pcm.surround50.card defaults.pcm.card
defaults.pcm.surround50.device defaults.pcm.device
defaults.pcm.surround51.card defaults.pcm.card
defaults.pcm.surround51.device defaults.pcm.device
defaults.pcm.surround71.card defaults.pcm.card
defaults.pcm.surround71.device defaults.pcm.device
defaults.pcm.iec958.card defaults.pcm.card
defaults.pcm.iec958.device defaults.pcm.device
defaults.pcm.modem.card defaults.pcm.card
defaults.pcm.modem.device defaults.pcm.device
defaults.pcm.file_format "raw"
defaults.pcm.file_truncate true
defaults.rawmidi.card 0
defaults.rawmidi.device 0
defaults.rawmidi.subdevice -1
defaults.hwdep.card 0
defaults.hwdep.device 0
defaults.timer.class 2
defaults.timer.sclass 0
defaults.timer.card 0
defaults.timer.device 0
defaults.timer.subdevice 0
defaults.namehint.showall off
defaults.namehint.basic on
defaults.namehint.extended offSort of confused about your first paragraph, I was getting an error suggesting a bigger bdl_pos_adj.
I'm really not too familiar with modprobe, I think I did try to adjust bdl_pos_adj with modprobe and the value in `/sys/module/snd_hda_intel/parameters/bdl_pos_adj` didn't change, so I figured the module was compiled into the kernel and needed to be on the param line... I forget where I was reading.
I added that `defaults.pcm.dmix.buffer_size 8192` line to my config which is what I think you might've been suggesting looking at the edit and link.
I haven't restarted, or restarted alsa (I can restart alsa without rebooting with `alsactl restore 0` right?)
Thanks for the help emeres
Offline
If the irq messages continue try different values for bdl_pos_adj, but I assume you already did that, maybe you can report what values you used exactly. Other parameters worth looking into would be 'model' for your specific hardware, that you still have not mentioned - the codec alone is somewhat unspecific, and position_fix. Buffer size can be probably 4 times as large as you set it right now in your case. Put those lines behind the configuration. The first '!defaults.pcm.cards' deletes everything in the defaults node, so your previous buffer_size is back to default. You may want to use 'defaults.!pcm.card' instead. For more explanation read our alsa wiki, basic syntax section.
For modprobe options create a file in /etc/modprobe.d:
$ cat /etc/modprobe.d/50-alsa-base.conf
options snd-hda-intel model=generic bdl_pos_adj=128 position_fix=-1 align_buffer_size=0Those are values I would try, you provided so little information, it is a guess. Obviously some may need to be dropped or be changed.
If nothing uses alsa devices then 'alsactl restore' or 'alsactl init' should work. It should be possible to try different module options without restarting, only by reloading the module, check 'man modprobe'.
Provide more information on your setup, some for completeness sake:
aplay -lL;
lspci -nn | grep -i audio;
lsmod | grep ^snd;
systool -v -m snd_hda_intelEdit: Corrected one parameter.
Last edited by emeres (2014-08-17 08:12:37)
Offline
I'm not getting IRQ errors mentioning bdl_pos_adj anymore, just those "buffer size too low" errors when it does crash.
I'll use that modprobe file instead of the kernel line to see how that does.
I'm using onboard audio on a Dell XPS 435mt motherboard: http://www.dell.com/us/dfh/p/studio-xps-435/pd
it just says "Intel® 7.1 channel High Definition Audio"
Here's the *updated* output from those commands:
$ aplay -lL;
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default:CARD=Intel
HDA Intel, ALC1200 Analog
Default Audio Device
sysdefault:CARD=Intel
HDA Intel, ALC1200 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC1200 Analog
Front speakers
surround21:CARD=Intel,DEV=0
HDA Intel, ALC1200 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC1200 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC1200 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC1200 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC1200 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC1200 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, ALC1200 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
HDMI Audio Output
default:CARD=U49
Default Audio Device
sysdefault:CARD=U49
Default Audio Device
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC1200 Digital [ALC1200 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
[nak@arch log]$ lspci -nn | grep -i audio;
00:1b.0 Audio device [0403]: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller [8086:3a3e]
05:00.1 Audio device [0403]: NVIDIA Corporation GF110 High Definition Audio Controller [10de:0e09] (rev a1)
[nak@arch log]$ lsmod | grep ^snd;
snd_usb_audio 131860 0
snd_usbmidi_lib 21428 1 snd_usb_audio
snd_rawmidi 20278 1 snd_usbmidi_lib
snd_hda_codec_hdmi 40396 4
snd_hda_codec_realtek 54803 1
snd_hda_codec_generic 56366 2 snd_hda_codec_realtek
snd_hda_intel 22831 2
snd_hda_controller 22975 1 snd_hda_intel
snd_hda_codec 104665 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 6652 2 snd_usb_audio,snd_hda_codec
snd_pcm 83207 5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_seq_dummy 1463 0
snd_seq_oss 30000 0
snd_seq_midi_event 5724 1 snd_seq_oss
snd_seq 54213 5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device 5244 4 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_dummy
snd_timer 19294 2 snd_pcm,snd_seq
snd 61276 18 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device
[nak@arch log]$ systool -v -m snd_hda_intel
Module = "snd_hda_intel"
Attributes:
coresize = "22831"
initsize = "0"
initstate = "live"
refcnt = "2"
taint = ""
uevent = <store method only>
Parameters:
align_buffer_size = "0"
bdl_pos_adj = "128,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
beep_mode = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
enable_msi = "-1"
enable = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
id = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
index = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
jackpoll_ms = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
model = "generic,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
patch = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
position_fix = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
power_save = "0"
power_save_controller= "Y"
probe_mask = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
probe_only = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
single_cmd = "N"
snoop = "Y"
Sections:
.bss = "0xffffffffa0a4edc0"
.data = "0xffffffffa0a4e340"
.data.unlikely = "0xffffffffa0a4eb10"
.exit.text = "0xffffffffa0a4c950"
.gnu.linkonce.this_module= "0xffffffffa0a4eb40"
.init.text = "0xffffffffa0a51000"
.note.gnu.build-id = "0xffffffffa0a4c964"
.rodata = "0xffffffffa0a4c9c0"
.rodata.str1.1 = "0xffffffffa0a4d882"
.rodata.str1.8 = "0xffffffffa0a4dc60"
.smp_locks = "0xffffffffa0a4df98"
.strtab = "0xffffffffa0a53558"
.symtab = "0xffffffffa0a51020"
.text = "0xffffffffa0a4a000"
__mcount_loc = "0xffffffffa0a4e1c8"
__param = "0xffffffffa0a4dfa8"
__verbose = "0xffffffffa0a4e980"Thank you
*edit* well, I didn't get any stuttering/freeze today after making the changes: modprobe config file (had to use 0 instead of off), 4x buffer and moving the commands in asoundrc. I'll mark it [solved] if everything is still fine on Tuesday ![]()
Last edited by uberscientist (2014-08-17 22:14:36)
Offline
You are welcome, I hope it will work out.
'lspci -nn' "[shows] PCI vendor and device codes as both numbers and names", which enables other users to locate this thread more easily, exactly because of vid and pid.
I will correct the previous post.
Offline
Aug 17 14:56:41 localhost slim[418]: Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Aug 17 15:01:56 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:01:57 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:01:58 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:01:59 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:00 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:01 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:02 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:03 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:04 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:05 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:06 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:07 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:08 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:09 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:10 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:11 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:12 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:13 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:14 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:15 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:16 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:17 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:18 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:19 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:20 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:21 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:22 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:23 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:24 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:25 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:26 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:27 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:28 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:29 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
Aug 17 15:02:30 localhost slim[418]: AL lib: ALSAProc: Wait timeout... buffer size too low?
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^Darn... same problem, was doing other things all day (mainly browsing with Chromium), then tried to play the game (Dungeon Defenders Eternity through Steam) and we froze.
I'll update my other post with the new output from the commands (including lspci -nn)
Offline
You could try setting enable_msi parameter to either 1 or 0, yes try both. Other than that, run 'speaker-test -c2 -twav' on the sound card in question, it should display in 8th line your possible maximum buffer size, set it to that value. Do you use any usb sound devices? Or anything else using the same bus?
You might want to add 'index=0' to that options line. Should your hdmi become the default sound card after reboot, use 'index=1' instead.
Edit: Is this related to one particular game or do others crash your system also? How did you set up the game, wine, environment and do you run it?
Last edited by emeres (2014-08-17 22:44:25)
Offline
You could try setting enable_msi parameter to either 1 or 0, yes try both. Other than that, run 'speaker-test -c2 -twav' on the sound card in question, it should display in 8th line your possible maximum buffer size, set it to that value. Do you use any usb sound devices? Or anything else using the same bus?
You might want to add 'index=0' to that options line. Should your hdmi become the default sound card after reboot, use 'index=1' instead.
Edit: Is this related to one particular game or do others crash your system also? How did you set up the game, wine, environment and do you run it?
I don't have any USB sound devices (unless a MIDI keyboard counts (M-Audio Axiom 49)? This problem may have started around the same time I installed the keyboard actually... It's not normally plugged in though).
It seems to be only Dungeon Defenders: Eternity now, Team Fortress 2 used to freeze, but not since adjusting the bdl_pos_adj. DDE is run through steam... and then another launcher called "PlayVerse" (danged unfree software)
I've made the changes, I haven't tried playing DDE yet today, I'll update this evening when I do.
Offline
Your lsmod listed snd_usb_audio, does the Axiom use that also? I wonder what my Novation Remote SL MK2 would use, but I doubt the usb audio module would get loaded.
I installed steam once, because I won Enclave, which runs without problems. Other than that I do not use it and always try to launch the relevant software directly, unless a launcher is necessary. You may want to try that, should it be possible with playverse. All of this is native, right?
Offline