libera/#devuan-dev/ Monday, 2024-10-14

rrqfsmithred: 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
rrqthe console boot seems to have some speech happening, but I can't hear it (yet)00:14
fsmithredrrq, what's the name of your card0?00:15
rrqeh, "name"?00:15
fsmithredyeah, aplay -l and it's after the card number00:16
fsmithredPCH, HDMI00:16
fsmithredDevice00:16
fsmithredsomething like that00:16
rrqCard 0: Intel [HDA Intel], ....00:17
rrqI can pick other sound cards of course00:17
fsmithredoh yeah, qemu00:17
fsmithredI just booted it in qemu and have sound. console boot00:20
fsmithred -device intel-hda -device hda-duplex00:21
rrqwill try those..00:22
fsmithreddo you have any boxes that have HDMI as card0 and you are using it for audio?00:25
fsmithredI'm wondering if that configuration works00:25
rrqno, no boxes I can reboot willy-nilly00:26
rrqapl00:27
rrqoops00:27
fsmithredI have one laptop with hdmi plug. I might try it with the TV.00:28
fsmithredbut not today. There's football happening in the tv room. (the pointy-end kind)00:29
rrqah the not-a-ball being carried-and-thrown kind of football00:30
masonhand-egg00:32
fsmithredlol01:15
fsmithredI guess onefang is napping, but I have an alternate name for his lua script - JackOffAllDevices (until one sings for you)01:19
rrqgetting late I suppose :)01:24
rrqI have difficulty getting qemu to use my audio01:25
rrqthe guest seems fine, but the host hookup is a problem01:25
rrqneed to look at it later01:25
onefangJackoffalldevices was an early name for the "shut down what you started" script.02:12
onefangWhich is still in there, I haven't removed it yet now they are all one script.02:13
onefangfsmithred's "weird results" doesn't sound like anything to do with what my script is doing.  Did that get tested?02:19
fsmithredno, I have no idea what to do with your script02:19
onefangDid you read the help text?02:20
fsmithredno, I skimmed through the code02:20
onefangHelp text is the big blob of text near the top, after the LSB blob.02:21
onefangOr aataaj --help02:21
onefangAs 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
onefangAPT.exe() sets up to call shell commands, the :Do() or :fork() bit at the end actually runs them.02:32
onefangUm, 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.  lol02:34
onefangSo 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
onefangWell technically it's i - 1, coz off by one errors and naming things...02:38
onefangLua counts from 1, espeak counts from 0.02:39
onefangThe 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
onefangThe 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
onefangEr "both languages understand".02:48
onefangAnd "polyglot coding".  Damn confused fingers, this testing means I'm constantly swapping between QWERTY, Dvorak, and piano keyboards all day.02:49
onefangAnother typo in line 5.  lol02:53
onefangNot important, but fixed now anyway.02:54
onefangMore details on request, think I bored everyone on your side of the planet to sleep, but it's night there anyway.02:56
fsmithredyeah, I'm going to bed soon03:04
fsmithredI read the README and I'll play with it tomorrow.03:05
onefangG'night, and have fun tomorrow.03:06
onefangThe README.md is out of date.  lol03:07
* onefang updates it. Then goes to do something else for the day. I have actual music to make now. B-)03:09
onefangRebooted 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
fsmithredonefang, can I install the prereqs without Recommends or do I need those?16:26
onefangRecommends not needed.  Only luajit needed if you are not using the JACK stuff.16:30
fsmithredyeah, I looked closer and most of the recommends are qt for qjackctl16:31
fsmithredthanks16:31
fsmithreddo I need realtime priority or not?16:32
onefangNope.16:32
fsmithredcool.16:32
fsmithredaataj.lua goes in /etc/init.d like update-rc.d complains? not /etc/boot.d which does not exist.16:42
onefangCorrect.16:43
fsmithredupdate-rc.d: error: initscript does not exist: /etc/init.d/aataj.lua16:44
fsmithredroot@devuan:/home/snapshot/JackOnAllDevices# ls -l /etc/init.d/aataaj.lua16:44
fsmithred-rwxr-xr-x 1 root root 17322 Oct 14 10:42 /etc/init.d/aataaj.lua16:44
* onefang corrects the docs.16:44
fsmithredit's there but something is wrong16:44
fsmithreddo I need to remove "This block...expects..."16:45
onefangupdate-rc.d: error: initscript does not exist: /etc/init.d/aataj.lua  - looks like you spelled it wrong.16:46
fsmithredoh16:47
fsmithredoops. works now. sorry.16:48
onefangYAY!16:48
fsmithredok, I put snd-aloop in /etc/modules and made /etc/asoundrc16:52
fsmithrednot sure where to put "aataaj JACK"16:52
onefangThat'll be for your user at login.16:52
fsmithredyeah, I'm not familiar with mate.16:53
fsmithredI can't put it in /etc/rc.local?16:53
onefangNeither am I.  Just start up a terminal and try it there.16:53
onefangThe JACK stuff is user specific, so needs to be run by the user at login.16:54
onefangBut you can ignore the JACK stuff for now.  I want to know if you hear things at boot time.16:55
fsmithredok, I guess I'm ready to reboot16:55
onefangG'luck.16:55
fsmithredyeah, it started talking when it went into runlevel 2 just as it always does16:57
fsmithrednot as loud, though. But I've got it turned way down anyway. I just hear voice, not words.16:57
fsmithredon purpose16:58
onefangNo text saying it found your various devices before run level 2?16:58
fsmithredI don't think so. I'll try again with volume up. It's clear at 66%16:59
onefangIt should be running in run level S, check if it did install itself there when you did the update-rc.d.17:00
onefangThat's S, not 5.  Letter, not digit.17:00
fsmithredok. First thing is "entering runlevel 2"17:01
fsmithredyeah S13 in rcS.d17:02
fsmithredand espeakup is S1717:02
fsmithredshould I make aataaj later?17:03
onefangDo 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
onefangSo that line worked at least.  B-)17:04
fsmithredmessage in syslog? no. nor in dmesg17:04
onefangOn screen during boot.17:04
fsmithredI wasn't watching the whole time17:04
fsmithredreboot...17:05
onefangI haven't implemented proper logging stuff yet, just print().17:05
fsmithred:) :) :)17:06
fsmithredtwo capture and one playback found17:06
onefangGood start.  Is that what you actually have?17:07
fsmithredprobably17:07
fsmithredit's a laptop17:07
onefangDid you hear it speaking about them during boot, or just the text on screen before runlevel 2?17:09
fsmithredjust text17:09
onefangDamn.17:09
fsmithredand how does it keep talking on shutdown after it shuts down alsa?17:09
onefangWhat 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
onefangJACK on the other hand is a daemon.17:11
onefangSo 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
fsmithredyeah, I think alsactl store does that17:18
fsmithredin /var/lib/alsa/asound.state17:18
onefangThat's getting run as part of alsa-utils if I recall, which aataaj is running before.17:19
onefangMy question was what state is the hardware left in before anything sets that, but after you set it in your previous boot.17:20
fsmithredbetween shutting down hotplug and shutting down remaining processes, it says Shutting down ALSA... done17:20
onefangAh, that's the storing of the state.17:20
fsmithredin this case, the hardware is virtualbox17:21
onefangNot tried viltualbox, and I haven't tried the latest with qemu yet.17:22
onefangGot some real hardware to test on?17:22
fsmithredonly with a live-iso17:24
fsmithredI have one with peristence so I can make changes and test without making a new iso every time17:25
fsmithredjust need to make one with the new stuff17:25
onefangThe 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
fsmithredno, the problem I'm having is if HDMI is card 017:26
fsmithredit works on hardware that has PCH for card 0. It might work on HDMI but I don't have any speakers on that17:27
fsmithredand I can't get it to work by setting PCH as the default.17:27
onefangThat's why I was happy to hear it speaking through my monitor and the other sound cards with speakers.17:28
fsmithredyesterday I did try with a USB headset on the machine with the HDMI17:28
fsmithredI edited modprobe.d/alsa.conf to put snd-usb-audio first and snd-hda-intel after but it didn't work17:29
fsmithredalsamixer saw PCH as default but aplay -l still said HDMI was card 017:29
fsmithredno sound17:29
onefangI couldn't get that to work either.17:29
fsmithredbrb17:30
fsmithredand the laptop with the hdmi issue does not have a place to plug in an hdmi cable.17:32
fsmithredwtf?17:32
onefangSounds 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
onefangOr 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.  lol17:37
fsmithredsomeone had leftover parts to use?17:38
onefangI didn't ask them why.17:38
onefangI'm just surprised the RGBling on the motherboard didn't have a sound chip so you can drive them with music.17:39
fsmithredbooted live-usb on old thinkpad. Still first sound is at runlevel 218:29
fsmithredyou want a copy of the boot log that shows it's looking for hardware?18:29
fsmithredaplay shows my sound card and also a loopback devuce (card 1)18:29
fsmithredI'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
fsmithredin a couple minutes. Or maybe more.18:30
fsmithredneed food18:30
fsmithredswitching computers. brb.18:51

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!