**** BEGIN LOGGING AT Tue Aug 07 03:00:01 2018 Aug 07 12:22:49 Anyone got experience getting USB audio working on a N800 with OS2008? Aug 07 12:23:21 yeah, works for some time then craps badly Aug 07 12:23:22 I'd like to continue using it as jukebox, got the USB hub and keyboard connected, also snd-usb-audio module loaded. Aug 07 12:23:29 craps? Aug 07 12:23:43 afair hardcrashes the kernel Aug 07 12:23:52 but it was LONG time ago Aug 07 12:24:03 My issue is that I cannot convince a player to use the device, although /proc/asound/cards suggests there is hw:1,0, that is not accepted. Aug 07 12:24:26 use the player that uses alsa, not oss/esd Aug 07 12:24:42 KotCzarny: I'm using my own build of mpg123/ Aug 07 12:24:54 * sobukus is actually mpg123 upstream maintainer Aug 07 12:25:24 check what device it actually opens with strace Aug 07 12:26:36 I get snd_pcm_open_noupdate(): Unknown PCM hw:1,0 … after telling mpg123 explicitly to use that (-o alsa -a hw:1,0) Aug 07 12:27:08 try 1.0 ? Aug 07 12:27:11 (wild guess) Aug 07 12:27:15 The /usr/share/alsa/alsa.conf has some trickery to route ALSA to ESD, I presume … that's why the default device plays through the speakers. Aug 07 12:27:33 nah Aug 07 12:28:51 What is also strange, I cannot get a listing of ALSA devices using snd_device_name_hint() because that errors out on the card 0 that only has a control, but no pcm. Aug 07 12:29:12 I wonder how "normal" the ALSA setup on OS2008 is. Aug 07 12:29:14 i would assume they've hacked alsa hard Aug 07 12:29:40 try static compile of mpg123 with libasound Aug 07 12:29:56 vanilla one, not the sdk one Aug 07 12:30:27 Hm. So far I just built things on the device itself. You mean I should try to cross-compile a normal libasound … Aug 07 12:30:49 Or, hm, I could just try to build a vanilla one (old source tarball) … Aug 07 12:30:53 since you are in fiddling mode, yeah Aug 07 12:31:10 or check what patches the sdk one has Aug 07 12:31:44 To be sure: 1.0.14sa-2maemo2 is a version hacked by Nokia? Aug 07 12:31:52 but i think i was using usbaudio with n800 and some player Aug 07 12:32:28 disclaimer: i havent touched n800 sdk for many years Aug 07 12:32:46 I'll try to download some alsa-lib and alsa-utils sources to test things. Aug 07 12:34:12 Of course I know that it's a bit silly hanging onto the old beast for that. Aug 07 12:34:28 n800 is nice Aug 07 12:35:06 i've turned mine into audio box with my audio player Aug 07 12:35:22 I had a HP Jornada 720 here for a short period … can take large SD cards via CF for music and has built-in keyboard for easy control … but the onboard sound is crappy. Aug 07 12:35:41 yup, same with n800 Aug 07 12:35:44 unfortunatelly Aug 07 12:35:59 N800 might be able to use proper DAC via usb … as the audio playback is not that suberb with the onboard ESD-stype thingie. Aug 07 12:36:25 The noise might be OK, but I struggle to have gapless playback … it has the odd interruption from time to time. Aug 07 12:52:37 Oh, the bloat … libncurses5-dev needs 5M of storage (needed for alsa-utils). But it's really nice that the repos for apt are still present! Aug 07 12:58:44 You should be able to uninstall libncurses5-dev after using it to build whatever you need. Aug 07 13:00:26 yeah Aug 07 13:01:18 I still got whopping 45.5M free on / ;-) Aug 07 13:01:39 moving /usr/include to sdcard works ok Aug 07 13:01:49 as long you have ext2/3/4 there Aug 07 13:01:58 pop a symlink and it's ok Aug 07 13:02:12 same for /usr/lib/gccsomething Aug 07 13:02:29 Yes, I got a 32G sd card with ex Aug 07 13:02:31 t Aug 07 13:02:38 (and another one full with music) Aug 07 13:02:54 I wonder, though, would the n800 take larger ones? Aug 07 13:02:59 yup Aug 07 13:03:24 i think there is a thread for that on tmo [tm] Aug 07 13:04:50 I'll try my 200G one;-) Aug 07 13:06:13 alsa-utils 1.0.14 built … aplay -l complains about Invalid CTL hw:0 and Invalid CTL hw:1 Aug 07 13:06:32 update your asound.conf to include ctl nodes too Aug 07 13:07:00 In general, SD sizes are not compatibility issues, unless you're using a device with a funny operating system that might have been designed without considering large sizes. Aug 07 13:07:51 KotCzarny: the /usr/share/alsa/alsa.conf has ctl.!default … but it is this dsp_ctl thing that redirects to /dev/dsptask Aug 07 13:08:12 and ctl.!master{ type hw; card 0 } Aug 07 13:08:41 I'd figure that the bare hw: devices should be visible without an alsa config, no? Aug 07 13:09:20 try playing only with card 1 (the usb one) Aug 07 13:09:29 playing / fiddling Aug 07 13:10:10 Do you mean in the alsa.conf / asoundrc? Because that is what confuses me … I cannot make things use hw:1,0 Aug 07 13:10:21 * sobukus trying a vanilla build of alsa-lib Aug 07 13:10:30 /etc/asound... Aug 07 13:11:54 /etc/asound.conf to be exact Aug 07 13:12:04 KotCzarny: by default, there is no /etc/asound.conf here Aug 07 13:12:27 make one? Aug 07 13:12:50 I'm using bare ALSA on my linux desktops … I don't need any asound.conf if I don't want to cofigure some plugins (like 5.1 → 2.0 mixing). Aug 07 13:13:16 What would I write into an asound.conf for "just give me the bare devices"? Aug 07 13:13:24 i usually dont touch system's config files, only the one in /etc or ~ Aug 07 13:14:07 try that one: https://pastebin.com/raw/981gYD5a Aug 07 13:14:24 it's copied from example when default card is the wrong one Aug 07 13:15:41 Yeah, I tried something similar before. I'm testing your example in /etc/asound.conf to be sure Aug 07 13:18:20 Heh. System freeze. Reboot. Aug 07 13:18:24 ;) Aug 07 13:18:25 told'ya Aug 07 13:18:37 too bad Aug 07 13:18:42 i think it's power related Aug 07 13:18:53 Uh? The USB device is externally powered. Aug 07 13:18:57 because it was working sometimes, and crapping sometimes Aug 07 13:19:05 I have the n800 hooked up to a powered hub. Aug 07 13:19:18 since when n800 takes power from hub? Aug 07 13:19:29 The USB audio takes power from hub. Aug 07 13:19:34 ahm, k Aug 07 13:19:58 And the n800, actually, since I got it hooked with a USB power cable I had from a Nokia phone. Aug 07 13:20:41 without serial cable it's hard to debug hard crashes Aug 07 13:20:54 that's why i'm only guessing Aug 07 13:21:15 maybe you can try connecting usbaudio directly? Aug 07 13:21:20 I wonder if the device will come back … since it'll try to use /etc/asound.conf … Aug 07 13:21:36 Didn't the n800 not supply power at all? Aug 07 13:22:10 i think in my experiments i was using simple usbotg cable Aug 07 13:23:22 Hm. I guess I should be using a RasPi for stuff like that … or, Lord behold, an actual dedicated music player with Rockbox. Aug 07 13:23:34 hmm, if i find my microusbotg cable i might check Aug 07 13:23:46 nah, never a raspi Aug 07 13:23:50 hehe Aug 07 13:23:52 overpiced and crippled Aug 07 13:24:03 oranges + good dac/amp are good idea tho Aug 07 13:24:51 for casual listening even onboard audio is ok paired with pam based microamp Aug 07 13:25:11 https://imgur.com/a/jFygV Aug 07 13:25:21 I got a monster amp with two bridged TPA3110D2;-) Aug 07 13:25:33 i've bought tpa3116 recently Aug 07 13:25:44 will use it soon Aug 07 13:26:03 But indeed also a little speaker built with flexible air duct as casing that has a PAM inside, usually powered by solar cells;-) Aug 07 13:26:06 pity there are still no 325X solutions yet Aug 07 13:26:33 3116 is nice, has plenty of power for normal HiFi listening Aug 07 13:26:34 those seem better (according to spec sheets) Aug 07 13:27:39 Also I learned that these amps do not care about noisy psus (burst mode) … you only need to take care of the preamp (little linear psu). Aug 07 13:29:06 btw. i've added boot menu to my n800, so i can choose what and where it shall boot Aug 07 13:29:07 my desktop amp with the two 3110 uses one noisy psu just with a normal linear regulator (not low drop) for the preamp (lm1036). Noise level is OK-ish with that. Aug 07 13:29:21 My n800 seems to be in a boot loop now. Aug 07 13:29:59 How do I get rid of the /etc/asound.conf now? Aug 07 13:30:19 hmm Aug 07 13:30:30 I don't blame you … I was careless. Aug 07 13:30:50 i need to refresh my diablo memory Aug 07 13:31:10 I guess there's a rescue shell in the initrd? Aug 07 13:31:26 n900 can boot from usb Aug 07 13:31:35 i wonder if n800 has similar capability Aug 07 13:32:29 Hey, it came back! After pulling the battery, I got a desktop now again. Aug 07 13:32:42 make a backup Aug 07 13:32:51 and/or add sdcard booting option Aug 07 13:32:51 :) Aug 07 13:32:55 and how'd I restore if it is bricked? Aug 07 13:33:03 yeah, booting options Aug 07 13:33:21 cloning os to sdcard helps Aug 07 13:33:58 and generally i've left working os on internal flash and only fiddle with sdcard Aug 07 13:34:34 flasher-3.0 --set-root-device mmc Aug 07 13:34:50 interestingly you can also set boot device via flasher Aug 07 13:35:04 sudo hm, never used that Aug 07 13:35:24 I actually only got the n800 used and it always was a jukebox without further fiddling Aug 07 13:35:39 it tries to power the audio device, btw, without the hub. Aug 07 13:35:54 I just don't have the virtual keyboard anymore then, as it thinks there is a USB hid. Aug 07 13:36:11 ssh? Aug 07 13:36:36 Uh … I could … from the phone that does the WLAN hotspot … Aug 07 13:37:14 Just tried the playback again … it is consistent: crash, immediate Aug 07 13:38:27 also, try different usbaudio card Aug 07 13:39:03 hm, the device crashes again when it would want to play a sound Aug 07 13:39:18 I need to be careful to delete the asound.conf without causing a beep. Aug 07 13:39:18 maybe change !default into some card name Aug 07 13:47:00 just booted my n800, i have the config i've pasted with !default changed into usb Aug 07 13:47:33 and? Aug 07 13:47:45 dont have my miniusbotg cable here Aug 07 13:48:24 i will try to remember to check it later this week tho Aug 07 13:50:08 Oh, no bother … but I'll hang around here for the case you do;-) Aug 07 13:52:09 another thing is i've modified ~/.asoundrc Aug 07 14:02:41 /root/.asoundrc to be even more exact Aug 07 14:02:46 hm Aug 07 14:03:03 I'm waiting for it to get out of the boot loop this second time Aug 07 14:03:04 so my experiments were tied to running commands as root Aug 07 14:22:50 me, got rid of /etc/asound.conf, but triggered a reboot now as root with asoundrc Aug 07 14:23:09 and now the display faded with an eerie hardware effect Aug 07 14:23:35 got another usbaudio dongle? Aug 07 14:23:55 not right now Aug 07 22:04:31 Why does sso.godaddy.com currently resolve with 1.1.1.1 (CloudFlare public DNS) but not with Google public DNS nor with the DNS of my ISP (Telus in Metro Vancouver, Canada)? 0_o I need to update some DNS records for a customer whose domain name is hosted by GoDaddy but I cannot access the GoDaddy account because of this problem. Aug 07 22:35:55 The problem now seems to be resolved, no pun intended. **** ENDING LOGGING AT Wed Aug 08 03:00:01 2018