**** BEGIN LOGGING AT Sun Feb 17 02:59:57 2013 Feb 17 13:06:43 hi guys Feb 17 15:17:26 hello...has anyone managed to get linphone working on debian? microphone doesn't seem to work but incoming audio can be heard... Feb 17 16:40:41 aloniv: what audio profile are you using? Feb 17 16:49:20 voip Feb 17 16:49:53 voip-handset.state Feb 17 16:50:20 it seems microphone isn't recording - i haven't had any luck with arecord either... Feb 17 16:50:46 (microphone works fine on other distros - i.e. i can make calls) Feb 17 17:01:32 aloniv: making calls doesn't mean anything. Have you read the http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem page? Feb 17 17:02:21 wouldn't the microphone need to work in order to make calls? Feb 17 17:02:30 yes i took a look there Feb 17 17:03:40 aloniv: when you make gsm calls, the sound is not going through SoC at all. Feb 17 17:03:44 That's the difference. Feb 17 17:04:09 aloniv: are you not able to record while having voip-handset state loaded at all? Is loaded without errors? Feb 17 17:05:02 i did alsactl -f voip-handset.state store/restore Feb 17 17:05:23 when i did restore first time there were some warnings yes Feb 17 17:05:32 (restore before storing that is) Feb 17 17:06:01 arecord file.wav produces an empty file Feb 17 17:06:59 aloniv: it would be nice if you looked closely at that page, check every setting with alsamixer and figure out why it doesn't record. Also the rate and channel selection might differ. Feb 17 17:14:35 I see "MM" under handset mic Feb 17 17:16:43 actually that's under playback... Feb 17 17:24:23 aloniv: for recording? Feb 17 17:24:26 Ah Feb 17 17:24:47 now i'm getting timed out errors using arecord... Feb 17 17:25:15 is that the only way to record quickly (via ssh)? Feb 17 17:32:03 under capture mic2 is at 100 percent and mic1 at zero Feb 17 17:34:04 aloniv: arecord is the most appropriate tool to test recording. Feb 17 17:59:28 when trying to run on internal memory (om2009) i get an error: dmix plugin supports only playback stream Feb 17 18:04:33 arecord -D hw:0,0 -r 8000 -f S16_LE -c 2 record.wav - this command worked in internal memory Feb 17 18:04:55 so i'm guessing i just need to use the voip headset file from internal then? Feb 17 18:07:09 aloniv: you'd need the same kernel then Feb 17 18:08:03 it's an old one though :( Feb 17 18:37:38 any way to get rid of read errors? Feb 17 18:54:07 on NAND, or where? Feb 17 19:04:56 sd card - seems to be because memory is full Feb 17 19:05:19 the read error is from arecord and now its just not responding... Feb 17 19:06:44 is there a quick command to free up memory (i'm not running anything other than e17) Feb 17 19:06:47 ? Feb 17 19:33:43 I am not an expert on that, but on Linux is normal situation that you have almost all the time full memory, except if something goes really wrong. And if it is on SD card, then only option is to remove unnecessary files. If you record something with arecord (which is ALSA record), and it uses too much memory, then maybe you can try some parameters like --buffer-time, --buffer-size. Can you write what type of memory you wish to free? Feb 17 19:36:52 i have less than 10 MB free Feb 17 19:37:06 and cannot really kill anything Feb 17 19:37:06 Camelek: i think he means normal space? Feb 17 19:37:20 memory not hard drive...i have swap too Feb 17 19:37:46 250 MB swap Feb 17 19:37:47 ah okay :) Feb 17 19:38:19 unfortunately arecord seems to use regaular and sometimes agrees to work when there is around 12-14 MB free Feb 17 19:38:30 *regular memory Feb 17 19:38:56 i tried arecord -d 5 for 5 seconds and it still failed :( Feb 17 19:40:30 can you test few things right now? :] Feb 17 19:40:39 sure... Feb 17 19:40:54 please try option -M Feb 17 19:41:11 for which programme? Feb 17 19:41:15 arecord Feb 17 19:41:28 arecord -M? Feb 17 19:42:00 arecord -M Feb 17 19:42:03 Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono Feb 17 19:42:04 RIFF$�WAVEfmt @@data�arecord: pcm_read:1801: read error: Connection timed out Feb 17 19:42:40 ah, so there is your read error, right? :] Feb 17 19:43:16 yeah but sometimes it works depending on how much memory i have free Feb 17 19:43:29 i'm guessing i nshould get rid of network-manager then? :) Feb 17 19:43:33 *should Feb 17 19:44:51 it is more like something with drivers, or alsa user config Feb 17 19:45:14 ~/.asoundrc Feb 17 19:46:06 how about recording in verbose mode? :] Feb 17 19:46:28 what command to run? Feb 17 19:46:32 --verbose or -v Feb 17 19:46:38 arecord -v? Feb 17 19:47:22 arecord -v Feb 17 19:47:23 Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono Feb 17 19:47:26 Plug PCM: Route conversion PCM (sformat=S16_LE) Feb 17 19:47:27 Transformation table: Feb 17 19:47:29 0 <- 0*0.5 + 1*0.5 Feb 17 19:47:32 Its setup is: Feb 17 19:47:33 stream : CAPTURE Feb 17 19:47:35 access : RW_INTERLEAVED Feb 17 19:47:38 format : U8 Feb 17 19:47:39 subformat : STD Feb 17 19:47:41 channels : 1 Feb 17 19:47:44 rate : 8000 Feb 17 19:47:46 exact rate : 8000 (8000/1) Feb 17 19:47:47 msbits : 8 Feb 17 19:47:50 buffer_size : 4096 Feb 17 19:47:51 period_size : 1024 Feb 17 19:47:53 period_time : 128000 Feb 17 19:47:55 tstamp_mode : NONE Feb 17 19:47:58 period_step : 1 Feb 17 19:47:59 avail_min : 1024 Feb 17 19:48:01 period_event : 0 Feb 17 19:48:04 start_threshold : 1 Feb 17 19:48:05 stop_threshold : 4096 Feb 17 19:48:07 silence_threshold: 0 Feb 17 19:48:09 silence_size : 0 Feb 17 19:48:11 boundary : 1073741824 Feb 17 19:48:13 Slave: Hardware PCM card 0 'neo1973gta02' device 0 subdevice 0 Feb 17 19:48:16 Its setup is: Feb 17 19:48:17 stream : CAPTURE Feb 17 19:48:19 access : MMAP_INTERLEAVED Feb 17 19:48:22 format : S16_LE Feb 17 19:48:23 subformat : STD Feb 17 19:48:26 channels : 2 Feb 17 19:48:28 rate : 8000 Feb 17 19:48:29 exact rate : 8000 (8000/1) Feb 17 19:48:31 msbits : 16 Feb 17 19:48:34 buffer_size : 4096 Feb 17 19:48:36 period_size : 1024 Feb 17 19:48:38 period_time : 128000 Feb 17 19:48:39 tstamp_mode : NONE Feb 17 19:48:42 period_step : 1 Feb 17 19:48:43 avail_min : 1024 Feb 17 19:48:45 period_event : 0 Feb 17 19:48:48 start_threshold : 1 Feb 17 19:48:49 stop_threshold : 4096 Feb 17 19:48:51 silence_threshold: 0 Feb 17 19:48:54 silence_size : 0 Feb 17 19:48:55 boundary : 1073741824 Feb 17 19:48:58 appl_ptr : 0 Feb 17 19:48:59 hw_ptr : 0 Feb 17 19:49:01 RIFF$�WAVEfmt @@data�arecord: pcm_read:1801: read error: Connection timed out Feb 17 19:52:13 aplay -l Feb 17 19:53:08 is it connected to something in USB? Feb 17 19:53:41 usb is just charging... Feb 17 19:53:58 can you plug it out? Feb 17 19:54:10 is there is an option? Feb 17 19:54:12 aplay -l Feb 17 19:54:15 **** List of PLAYBACK Hardware Devices **** Feb 17 19:54:17 card 0: neo1973gta02 [neo1973gta02], device 0: WM8753 HiFi WM8753 HiFi-0 [] Feb 17 19:54:18 Subdevices: 1/1 Feb 17 19:54:21 Subdevice #0: subdevice #0 Feb 17 19:54:23 card 0: neo1973gta02 [neo1973gta02], device 1: Voice WM8753 Voice-1 [] Feb 17 19:54:24 Subdevices: 1/1 Feb 17 19:54:27 Subdevice #0: subdevice #0 Feb 17 19:54:28 just did... Feb 17 19:55:22 it isn't even a real charger - just connected to a computer which is switched off... Feb 17 19:55:31 I read, that some devices could make troubles when something is plugged into USB (mostly reboot helps) Feb 17 19:55:43 (amazingly it still charges fast) Feb 17 19:55:54 aloniv: do not paste here more than 3 lines ever! Feb 17 19:55:54 should i reboot then? Feb 17 19:56:13 ok i'm guessing pastebin then or similar? Feb 17 19:56:19 aloniv: yes Feb 17 19:56:44 wklej.org Feb 17 19:57:00 can you show arecord -l Feb 17 19:58:10 http://wklej.org/id/958633/ Feb 17 19:58:14 aloniv: do you fully understand the routing diagram on the wiki page i mentioned? Feb 17 19:59:04 i took a look yes...however the mic recording did work in internal which makes me wonder whether it's a different issue... Feb 17 19:59:22 such as lack of memory... Feb 17 19:59:35 aloniv: i'd guess the state file is not ok for the kernel version you're using. Feb 17 19:59:51 aloniv: if you'd be low on mem, you'd have OOM killer acting Feb 17 20:00:01 OOM? Feb 17 20:00:10 out-of-memory Feb 17 20:00:38 I think the memory is because of enlightenment, network manager, bluetooth etc... Feb 17 20:01:23 How would it affect the ALSA kernel subsystem? Feb 17 20:01:24 the lack of memory that is Feb 17 20:01:36 i'm guessing it needs memory to recxord? Feb 17 20:01:51 because it does work when there is 15+ MB free Feb 17 20:02:11 I need to make it use swap Feb 17 20:02:28 and what about playing with buffer sizes? Feb 17 20:02:30 aloniv: come on, it totally looks like you're on the wrong way, and also very weird one Feb 17 20:02:56 so you suggest to use older kernel? Feb 17 20:03:18 how can i change buffer sizes? Feb 17 20:03:24 aloniv: of course not, i suggest to investigate the issue with the current kernel. Feb 17 20:03:42 the currecnt kernel is old also (it's the one in debian) Feb 17 20:04:01 which kernel are you using? Feb 17 20:05:03 if there is a working kernel with working alsa state files why bother investigating other kernels? Feb 17 20:05:37 (i understand i could learn from this but the point is to get sound working not to learn alsa... :) ) Feb 17 20:07:36 aloniv: i confirm with 2.6.39.4 and the voipheadset scenario from FSO i can't record anything from mic. Feb 17 20:07:45 arecord -D hw -f cd -d 5 -t wav file.wav Feb 17 20:08:25 sec I disconnected wifi but that didn;t free up any memory... Feb 17 20:08:48 here someone wrote about working recording using arecord: Feb 17 20:08:51 http://lists.openmoko.org/pipermail/community/2008-October/033193.html Feb 17 20:08:59 from 2008... Feb 17 20:09:03 in om2009 it works... Feb 17 20:09:20 but there i don;t have linphone or easy to use wifi :( Feb 17 20:09:45 what distro do you use? Feb 17 20:10:12 om2009 in internal (it's reliable), debian on sd card for software... Feb 17 20:10:53 I will try to record something on my own QTMoko, and see if I can recreate that error Feb 17 20:11:19 http://wklej.org/id/958657/ Feb 17 20:11:52 uname -r Feb 17 20:11:54 2.6.34-20101212.git049b71de Feb 17 20:12:32 It's possible that something in DAPM was broken along the way. Feb 17 20:12:42 DAPM? Feb 17 20:13:08 In-kernel alsa power management. Feb 17 20:13:39 is it possible to use older kernel from om2009 in debian? Feb 17 20:15:27 Current Debian has udev that adds a 60s delay when booted with older kernels afair. Feb 17 20:27:32 I can't recreate that error as for now Feb 17 20:27:42 I will try to find differences in our configs Feb 17 20:28:00 Camelek: do you mean you can record with internal mic with voip headset scenario with 2.6.34 kernel? Feb 17 20:31:06 only to try arecord error Feb 17 20:31:48 maybe something is blocking sound device? Feb 17 20:32:29 if it is possible devices should be changed to default instead of hw:0 Feb 17 20:32:35 Camelek: it looks to me like either incorrect scenario or kernel driver issue. Feb 17 20:33:05 Camelek: for testing low-level alsa behaviour using hw plugin is certainly recommended. Feb 17 20:37:16 unfortunately I am not so much in that area, but I see now how things could go complicated with all that frameworks of frameworks :] Feb 17 20:38:07 That's why i suggest to use arecord -Dhw:0,0 as that's the lowest you can go in the userspace. Feb 17 20:38:17 exactly Feb 17 20:46:24 happened this time :] Feb 17 20:46:38 after going from sleep mode Feb 17 20:57:49 funny behavior, when recording: Feb 17 20:57:51 arecord -Dhw:0,1 -d 5 -t wav -r 44100 -f S16_LE -c 1 plik.wav Feb 17 20:58:04 then I got segmentation fault Feb 17 20:59:13 yeah I got that too when I tried hw0,1 Feb 17 21:00:02 looks like trouble with driver Feb 17 21:00:37 seems like debian won't boot the old openmoko kernel... Feb 17 21:01:20 it has been stuck at "freeing init memory 136k" for a few mins Feb 17 21:04:31 first we need to find what device is that one from microphone Feb 17 21:04:40 and then experiment :] Feb 17 21:05:19 so i guess i'll just put back old kernel and help with the experiment? Feb 17 21:06:32 which kernel do you use Camelek Feb 17 21:06:53 ? Feb 17 21:07:02 Camelek: only 0,0 is the mic, see the diagram Feb 17 21:07:13 that one from QTMoko for FreeRunner :] Feb 17 21:09:51 so the error isn't debian speciaifc then? Feb 17 21:10:00 so when we tried hw:0,1 what it was? - becase arecord warned me that it doesn't support 2 channels and frequency 8000 Feb 17 21:10:39 not sure i tried that when i lost hope :) Feb 17 21:11:12 hw:0,1 freq 8000 and 1 channel Feb 17 21:11:16 one is hidef one is voice Feb 17 21:11:25 ah, thanks :] Feb 17 21:12:26 or hifi Feb 17 21:22:53 I read some comments where ppl got the same errror, and it seems, that most of them use some connection in .asoundrc Feb 17 21:25:08 now i get dreaded "no more processes in this runlevel"... Feb 17 21:32:28 I was playing with amixer Feb 17 21:32:35 and there are two Mic Feb 17 21:32:56 Mic1 and Mic2 Feb 17 21:33:16 you can find them by typing: Feb 17 21:33:18 amixer scontrols Feb 17 21:33:31 maybe later I will find a way for them :] Feb 17 21:34:12 good night everyone :] Feb 17 21:34:39 Aloniv: you need to search something in direction of amixer, and .asoundrc Feb 17 21:59:29 bye everyone and thank you for your help... **** ENDING LOGGING AT Mon Feb 18 02:59:58 2013