| rrq | fsmithred: I'm testing the ISO in a qemu setup on an Acer laptop; seems to not have a working pc speaker, and I'm still fiddling with getting audio out of it. | 00:13 |
|---|---|---|
| rrq | the console boot seems to have some speech happening, but I can't hear it (yet) | 00:14 |
| fsmithred | rrq, what's the name of your card0? | 00:15 |
| rrq | eh, "name"? | 00:15 |
| fsmithred | yeah, aplay -l and it's after the card number | 00:16 |
| fsmithred | PCH, HDMI | 00:16 |
| fsmithred | Device | 00:16 |
| fsmithred | something like that | 00:16 |
| rrq | Card 0: Intel [HDA Intel], .... | 00:17 |
| rrq | I can pick other sound cards of course | 00:17 |
| fsmithred | oh yeah, qemu | 00:17 |
| fsmithred | I just booted it in qemu and have sound. console boot | 00:20 |
| fsmithred | -device intel-hda -device hda-duplex | 00:21 |
| rrq | will try those.. | 00:22 |
| fsmithred | do you have any boxes that have HDMI as card0 and you are using it for audio? | 00:25 |
| fsmithred | I'm wondering if that configuration works | 00:25 |
| rrq | no, no boxes I can reboot willy-nilly | 00:26 |
| rrq | apl | 00:27 |
| rrq | oops | 00:27 |
| fsmithred | I have one laptop with hdmi plug. I might try it with the TV. | 00:28 |
| fsmithred | but not today. There's football happening in the tv room. (the pointy-end kind) | 00:29 |
| rrq | ah the not-a-ball being carried-and-thrown kind of football | 00:30 |
| mason | hand-egg | 00:32 |
| fsmithred | lol | 01:15 |
| fsmithred | I guess onefang is napping, but I have an alternate name for his lua script - JackOffAllDevices (until one sings for you) | 01:19 |
| rrq | getting late I suppose :) | 01:24 |
| rrq | I have difficulty getting qemu to use my audio | 01:25 |
| rrq | the guest seems fine, but the host hookup is a problem | 01:25 |
| rrq | need to look at it later | 01:25 |
| onefang | Jackoffalldevices was an early name for the "shut down what you started" script. | 02:12 |
| onefang | Which is still in there, I haven't removed it yet now they are all one script. | 02:13 |
| onefang | fsmithred's "weird results" doesn't sound like anything to do with what my script is doing. Did that get tested? | 02:19 |
| fsmithred | no, I have no idea what to do with your script | 02:19 |
| onefang | Did you read the help text? | 02:20 |
| fsmithred | no, I skimmed through the code | 02:20 |
| onefang | Help text is the big blob of text near the top, after the LSB blob. | 02:21 |
| onefang | Or aataaj --help | 02:21 |
| onefang | As for skimming the code, the loop that starts "print('Scanning for audio devices.')" on line 276 is most relevant to what you have been talking about. | 02:28 |
| onefang | APT.exe() sets up to call shell commands, the :Do() or :fork() bit at the end actually runs them. | 02:32 |
| onefang | Um, ignore the insane smiley if that's what you see in that last line I posted. Sometimes IRC clients will trigger that on source code snippets. lol | 02:34 |
| onefang | So it starts with ls -d1 /proc/asound/card[0-9]*, probes around the results looking for the details, and for playback devices it throws an ALSA_CARD=i espeak "Found playback device ' .. | 02:37 |
| onefang | Well technically it's i - 1, coz off by one errors and naming things... | 02:38 |
| onefang | Lua counts from 1, espeak counts from 0. | 02:39 |
| onefang | The blob of help text starts at line 18. Which is why I pointed to the tree view rather than the plain view, coz that part should be in red on the page without scrolling. Thought it would have stood out. | 02:46 |
| onefang | The first 15 lines are ployglot coding, a mixture of Lua and shell, that both understand languages. The magic that makes it work as a sys V init script. | 02:48 |
| onefang | Er "both languages understand". | 02:48 |
| onefang | And "polyglot coding". Damn confused fingers, this testing means I'm constantly swapping between QWERTY, Dvorak, and piano keyboards all day. | 02:49 |
| onefang | Another typo in line 5. lol | 02:53 |
| onefang | Not important, but fixed now anyway. | 02:54 |
| onefang | More details on request, think I bored everyone on your side of the planet to sleep, but it's night there anyway. | 02:56 |
| fsmithred | yeah, I'm going to bed soon | 03:04 |
| fsmithred | I read the README and I'll play with it tomorrow. | 03:05 |
| onefang | G'night, and have fun tomorrow. | 03:06 |
| onefang | The README.md is out of date. lol | 03:07 |
| * onefang updates it. Then goes to do something else for the day. I have actual music to make now. B-) | 03:09 | |
| onefang | Rebooted my super desktop with this latest aataaj.lua script. At boot I heard 4 of the 13 playback devices it detected, which are the 4 with speakers attached. The others actually exist, just no speakers on them. | 15:03 |
| fsmithred | onefang, can I install the prereqs without Recommends or do I need those? | 16:26 |
| onefang | Recommends not needed. Only luajit needed if you are not using the JACK stuff. | 16:30 |
| fsmithred | yeah, I looked closer and most of the recommends are qt for qjackctl | 16:31 |
| fsmithred | thanks | 16:31 |
| fsmithred | do I need realtime priority or not? | 16:32 |
| onefang | Nope. | 16:32 |
| fsmithred | cool. | 16:32 |
| fsmithred | aataj.lua goes in /etc/init.d like update-rc.d complains? not /etc/boot.d which does not exist. | 16:42 |
| onefang | Correct. | 16:43 |
| fsmithred | update-rc.d: error: initscript does not exist: /etc/init.d/aataj.lua | 16:44 |
| fsmithred | root@devuan:/home/snapshot/JackOnAllDevices# ls -l /etc/init.d/aataaj.lua | 16:44 |
| fsmithred | -rwxr-xr-x 1 root root 17322 Oct 14 10:42 /etc/init.d/aataaj.lua | 16:44 |
| * onefang corrects the docs. | 16:44 | |
| fsmithred | it's there but something is wrong | 16:44 |
| fsmithred | do I need to remove "This block...expects..." | 16:45 |
| onefang | update-rc.d: error: initscript does not exist: /etc/init.d/aataj.lua - looks like you spelled it wrong. | 16:46 |
| fsmithred | oh | 16:47 |
| fsmithred | oops. works now. sorry. | 16:48 |
| onefang | YAY! | 16:48 |
| fsmithred | ok, I put snd-aloop in /etc/modules and made /etc/asoundrc | 16:52 |
| fsmithred | not sure where to put "aataaj JACK" | 16:52 |
| onefang | That'll be for your user at login. | 16:52 |
| fsmithred | yeah, I'm not familiar with mate. | 16:53 |
| fsmithred | I can't put it in /etc/rc.local? | 16:53 |
| onefang | Neither am I. Just start up a terminal and try it there. | 16:53 |
| onefang | The JACK stuff is user specific, so needs to be run by the user at login. | 16:54 |
| onefang | But you can ignore the JACK stuff for now. I want to know if you hear things at boot time. | 16:55 |
| fsmithred | ok, I guess I'm ready to reboot | 16:55 |
| onefang | G'luck. | 16:55 |
| fsmithred | yeah, it started talking when it went into runlevel 2 just as it always does | 16:57 |
| fsmithred | not as loud, though. But I've got it turned way down anyway. I just hear voice, not words. | 16:57 |
| fsmithred | on purpose | 16:58 |
| onefang | No text saying it found your various devices before run level 2? | 16:58 |
| fsmithred | I don't think so. I'll try again with volume up. It's clear at 66% | 16:59 |
| onefang | It should be running in run level S, check if it did install itself there when you did the update-rc.d. | 17:00 |
| onefang | That's S, not 5. Letter, not digit. | 17:00 |
| fsmithred | ok. First thing is "entering runlevel 2" | 17:01 |
| fsmithred | yeah S13 in rcS.d | 17:02 |
| fsmithred | and espeakup is S17 | 17:02 |
| fsmithred | should I make aataaj later? | 17:03 |
| onefang | Do you see the "Scanning for audio devices." message? | 17:03 |
| onefang | "X-Start-Before: alsa-utils espeakup" It wants to start before any other ALSA stuff starts. | 17:03 |
| onefang | So that line worked at least. B-) | 17:04 |
| fsmithred | message in syslog? no. nor in dmesg | 17:04 |
| onefang | On screen during boot. | 17:04 |
| fsmithred | I wasn't watching the whole time | 17:04 |
| fsmithred | reboot... | 17:05 |
| onefang | I haven't implemented proper logging stuff yet, just print(). | 17:05 |
| fsmithred | :) :) :) | 17:06 |
| fsmithred | two capture and one playback found | 17:06 |
| onefang | Good start. Is that what you actually have? | 17:07 |
| fsmithred | probably | 17:07 |
| fsmithred | it's a laptop | 17:07 |
| onefang | Did you hear it speaking about them during boot, or just the text on screen before runlevel 2? | 17:09 |
| fsmithred | just text | 17:09 |
| onefang | Damn. | 17:09 |
| fsmithred | and how does it keep talking on shutdown after it shuts down alsa? | 17:09 |
| onefang | What shutdown of ALSA? ALSA isn't a deamon or anything, each ALSA using program loads up ALSA individually. That's why you can change your .asoundrc and see the changes in the next ALSA program you start up. | 17:10 |
| onefang | JACK on the other hand is a daemon. | 17:11 |
| onefang | So espeak opens up ALSA when it starts, then closes it down when it's done talking. | 17:12 |
| * onefang wonders if previously set volume levels persist across reboots BEFORE any ALSA stuff tries to set them? | 17:17 | |
| fsmithred | yeah, I think alsactl store does that | 17:18 |
| fsmithred | in /var/lib/alsa/asound.state | 17:18 |
| onefang | That's getting run as part of alsa-utils if I recall, which aataaj is running before. | 17:19 |
| onefang | My question was what state is the hardware left in before anything sets that, but after you set it in your previous boot. | 17:20 |
| fsmithred | between shutting down hotplug and shutting down remaining processes, it says Shutting down ALSA... done | 17:20 |
| onefang | Ah, that's the storing of the state. | 17:20 |
| fsmithred | in this case, the hardware is virtualbox | 17:21 |
| onefang | Not tried viltualbox, and I haven't tried the latest with qemu yet. | 17:22 |
| onefang | Got some real hardware to test on? | 17:22 |
| fsmithred | only with a live-iso | 17:24 |
| fsmithred | I have one with peristence so I can make changes and test without making a new iso every time | 17:25 |
| fsmithred | just need to make one with the new stuff | 17:25 |
| onefang | The problem you where having before was your testing worked on virtualbox, but not real hardware, this is trying to solve the real hardware problem. Afterwards I'll go back to qemu and test there. | 17:26 |
| fsmithred | no, the problem I'm having is if HDMI is card 0 | 17:26 |
| fsmithred | it works on hardware that has PCH for card 0. It might work on HDMI but I don't have any speakers on that | 17:27 |
| fsmithred | and I can't get it to work by setting PCH as the default. | 17:27 |
| onefang | That's why I was happy to hear it speaking through my monitor and the other sound cards with speakers. | 17:28 |
| fsmithred | yesterday I did try with a USB headset on the machine with the HDMI | 17:28 |
| fsmithred | I edited modprobe.d/alsa.conf to put snd-usb-audio first and snd-hda-intel after but it didn't work | 17:29 |
| fsmithred | alsamixer saw PCH as default but aplay -l still said HDMI was card 0 | 17:29 |
| fsmithred | no sound | 17:29 |
| onefang | I couldn't get that to work either. | 17:29 |
| fsmithred | brb | 17:30 |
| fsmithred | and the laptop with the hdmi issue does not have a place to plug in an hdmi cable. | 17:32 |
| fsmithred | wtf? | 17:32 |
| onefang | Sounds like my graphics card, six audio devices on it, only 4 actual sockets to plug things into. For your laptop, the HDMI will be for the screens graphic chip, which might be connected via HDMI internally. | 17:36 |
| onefang | Or my motherboard, it has two sound chips on it, one is just there so they can talk USB to the other one. Us engineers do some crazy shit sometimes. lol | 17:37 |
| fsmithred | someone had leftover parts to use? | 17:38 |
| onefang | I didn't ask them why. | 17:38 |
| onefang | I'm just surprised the RGBling on the motherboard didn't have a sound chip so you can drive them with music. | 17:39 |
| fsmithred | booted live-usb on old thinkpad. Still first sound is at runlevel 2 | 18:29 |
| fsmithred | you want a copy of the boot log that shows it's looking for hardware? | 18:29 |
| fsmithred | aplay shows my sound card and also a loopback devuce (card 1) | 18:29 |
| fsmithred | I'll try it on the laptop with the hdmi issue next. That's this one I'm using now. Have to reboot both. | 18:30 |
| fsmithred | in a couple minutes. Or maybe more. | 18:30 |
| fsmithred | need food | 18:30 |
| fsmithred | switching computers. brb. | 18:51 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!