libera/#devuan/ Wednesday, 2023-02-22

systemdletegnarface, onefang:  The results are in.  When I boot the host hardware with beowulf, the mic works.  When I boot with the live chimaera ISO, the mic does NOT work.07:23
systemdleteSo, some good thinking there guys.  Thanks!07:23
onefangAt least you didn't break it.07:24
systemdlete(for once)07:24
systemdlete(yeah)07:24
onefangWell, next time.  B-)07:24
systemdleteI'll try harder, yes.07:24
systemdletegnarface, you suspected a kernel regression07:24
systemdleteand it does sound like one07:25
systemdleteYeah, I guess this little device is pretty hardy after all.07:26
onefangIn my new hobby as a digital music producer, I've been messing with all the audio hardware I got.  Including USB device, two audio chips on the motherboard where one is a USB front end to the other, and those six HDMI audio devices on my graphics card I mentioned before.07:28
systemdleteI'm wondering if pulseaudio is required for all sound stuff now.07:28
onefangI use ALSA for the HDMI speakers on my main monitor, JACK for everything else, and no pulseaudio installed.07:28
onefangOh I think Firefox-ESR is using apulse.07:29
systemdletewith chimaera?  or beowulf?07:29
onefangSo might just be drivers for your particular device?07:29
onefangChimaera.07:29
systemdletemust be then07:29
systemdletemaybe the kernel people don't think that maintaining old fart devices is worth it07:30
systemdlete(remember the alsa vs OSS wars?)07:31
onefangOddly enough, the motherboard is only a couple of years old, but the audio chips on it are crap, but the USB device is great, and it's ancient.07:31
systemdletehmmm.07:31
systemdleteThis cam is only a few years old... I bought it about 5 years ago I think07:32
rrqsystemdlete: does your beowulf have a .asoundrc file?07:32
systemdleteBut I think it was introduced c. 2012 or so, from the posts I read07:32
onefangNot sure how good the HDMI audio is, the speakers on my main monitor are tiny things with no bass.  I didn't buy it for the speakers, they just came along for the ride.07:32
systemdletehmmm.07:32
systemdletegood point.07:32
systemdleterrq: Only if the beowulf live ISO has a .asoundrc file07:33
onefangI use a .asoundrc for the ALSA stuff.07:33
systemdleteI always forget about configuring the asoundrc file for some reason.07:33
rrqI thought USB sound equipment need some special declarations in .asoundrc07:34
onefangNot mine.07:34
systemdleterrq:  It could be the case.07:35
systemdletewhat I meant was, I ran the live beowulf ISO on hardware.   I made no modifications.07:35
onefangHmmm, might be a difference in the order of devices between beowulf and chimaera, and it's the first ALSA input on one, but not on the other, thus not the default.07:35
onefangcat /proc/asound/devices07:36
onefangcat /proc/asound/pcw07:36
onefangaplay -l07:36
onefangMay shed some light on things, then dig deeper.07:37
systemdleteBut you know what.  On my regular work machine, I get the same problem, and it is running chimaera.07:37
onefangOOps, missed the one you should try first - cat /proc/asound/cards07:37
systemdleteno pcw file07:38
rrqpcm07:38
onefangMight be a typo in my notes.  lol07:38
onefangAh yep, pcm.07:39
* onefang corrects my notes.07:39
systemdletehttps://pastebin.com/UxZzrkFC07:40
systemdlete(sorry I did not separate the outputs   :(   )07:40
rrqthere might also be a difference in "file mode" for /dev/bus/usb/yada/yada between beowulf and chimaera live iso's07:41
systemdleteI need to switch to my other PC...07:41
* rrq sees VX800 as card 207:42
onefangSB will be the ALC887-VD, which looks like a motherboard type chip.  Listed first so it'll be the default.07:43
onefangIt and the VX8000 both have capture devices, so my guess is the SB capture is your default unless you tell ALSA otherwise.07:44
onefangAnd the other computer / other OS might have them in different order.07:44
systemdletestill looking for my old asound config files07:44
systemdlete(right, I got you)07:44
onefangOh and SB has two capture, microphone and line in on your mobo?07:46
systemdleteyep07:46
systemdletethat's if you want to sing a duet with your sweetie?07:47
systemdleteor something else entirely?07:47
systemdletej/k07:47
rrqso alsa needs a "default" setup that uses VX800 for mic and SB for output ?07:47
onefangWell now that I have my brand new bedroom music studio, with two microphones, ....07:47
systemdleteinteresting that when using, say, zoom, it recognizes both sound devices and lets me pick which one to use.  But it still doesn't hear my mic07:48
onefangThough it's been many decades since I last sang, voice is rusty.  So I'm trying to find open source synthesized singing.  lol07:48
systemdletebut I'll keep looking for my config files.07:48
onefangOr compose one from that info you just found.07:49
rrqwhat do you get from "amixer -c 2"? (regarding the mic)07:49
onefangAs for something else ... guitar in line in, microphone in microphone.07:49
systemdleterrq: https://pastebin.com/s4MqP0dP07:51
rrqhmm "79%" ... should be audible07:53
systemdletenothing, not even if I tap on the unit07:55
systemdlete(arecord | aplay)07:55
rrqI wonder if the live ISO user (root?) has .asoundrc file(s)... to explain the difference07:55
systemdletefor beowulf, right?07:56
systemdleteI'll need to get off here to test that...07:56
rrqwell it would be the non-working system that would exclude the card 2 input07:57
onefangZMY next suggestio nis to compare the cat /proc/asound/cards output on Beowulf and Chimaera, and your regular work machine to.  My guess is different order in the first case, and no SB in the second.07:57
onefangAnd my suggestion after that is for me to learn to type better.07:57
rrqrandom web advice is to have "defaults.pcm.dsnoop.card 2" in .asoundrc for the testing user07:58
rrqhttps://bbs.archlinux.org/viewtopic.php?id=27196607:59
rrq(it says a bit more, but I took that as decoration)07:59
systemdlete /proc/asound/cards has same order on both machines08:00
systemdleteI think rrq has rung a bell in my head08:00
onefangThough one of the reasons for /proc/asound/cards is that you can use the device names instead of guessing which order things will boot up this time.  So SB, HDMI, ond VX800.08:00
systemdleteIstr needing to do something like that with "snoop"08:00
onefangSnoop Dawg is that sweetie you sang a duet with?08:05
* rrq turns back to his flute08:07
systemdleteonefang:  :p08:07
systemdleterrq:  arecord or aplay (or both) don't like my .asoundrc file08:08
systemdleteif I remove the "dsnoop" part, it is ok, but still doesn't work08:08
rrqhmm maybe it also needs that pcm.!default ... block08:10
systemdleteoh, I tried it with and without the pcm block08:10
rrqok hm08:10
rrqhave you "verified" the mic h/w somewhere else?08:11
systemdleteLet me show you what I put there so far:   https://pastebin.com/LnXei0rV08:11
onefanghttps://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card might be useful.  It's in a comment at the top of my .asoundrc.08:11
systemdleterrq:  Yes, on beowulf.  It worked fine.08:11
systemdleteI tried removing both blocks, but no luck08:12
systemdleteso, apparently, yes the hardware works.  But not on chimaera (so far)08:12
onefangTry "card VX800"08:13
rrqah; it needs the other pcm.!default, the "type asym" which adds "dmix" on output and "dsnoop" on input08:13
rrqdoesn't need the hint block08:14
systemdletesorry I am not expert on the syntax08:14
rrqok; page https://bbs.archlinux.org/viewtopic.php?id=27196608:14
systemdleteoutput works fine08:14
rrqpost #2, second code block08:15
rrqbut use card 0 instead of card 1 of course08:15
rrqfwiw, I'm guessing; alsa is a mystery for me :)08:16
rrqtoo08:17
systemdletestrangest yet is that, iirc, the /etc/asound.conf file has a comletely diff syntax08:18
systemdlete*completely08:18
systemdletefor the example, the ctl should be on card... 0?  2?08:18
onefangctl is to control the card you mentioned in the pcm stanza.08:18
systemdletesee, I am confused whether ctl is for the input or the output08:19
onefangFor the volume control I think.08:19
systemdletebut there is a "stanza" right after the ctl stanza also08:19
onefangcat /proc/asound/devices has "control" devices.08:20
systemdleteand arecord/aplay are complaining that "card" is not an integer.08:20
systemdlete(this is NOT at all intuitive)08:22
rrqmay need double quotes if not numbers .. except keywords08:22
rrqallows double quotes or keywords though08:23
systemdleterrq:  WHAT may need double quotes--see this is where I get really confused08:23
onefanghttps://pastebin.com/j3tkXVQS  is what I use.08:23
onefangThat sets Mobo0 is the ALSA device, which is in and out.  But makes it easy for me to switch which device is used.08:24
onefangAt one point I was mixing devices in ALSA, but I ended up doing that in JACK instead.08:25
rrqyes the syntax is all too confusing08:25
onefangRIG is the name of my external USB sound device.08:26
rrqeg the Mobo0 within the pcm.dmixer block does have double quotes08:26
onefangYep.08:27
rrqbut the  pcm.Mobo0 block intro is without... although could have (maybe?)08:27
rrqand there the card valu are literals without double quotes08:27
rrq... value is a literal ...08:28
systemdleteI wasn't even using any strings/literals, only iintegers  like 0 and 208:29
systemdleteand why the exclamation before "default" ?   Does that mean negation, like in 99.9% of the rest of software?08:30
onefangThe advantage of using the names is that sometimes the numbers are different on your next boot.08:30
systemdleteor is that an escape to tell asound that it is about to eat a literal?08:30
systemdleteor maybe a predefined item?08:30
rrqthe exclamation mark says "drop any previous 'pcm.default' sub tree and use this instead"08:31
onefang"!" -- override08:31
systemdleteI'm reading the docs on asound at the alsa website.   But it is not exactly clear.08:31
systemdleteah, I see.08:31
onefangSo it'll override /etc/asoundrc.08:31
systemdleteI would think that merely defining the item would automatically override any previous notion.08:32
rrqyes one should think of the succession of directived as they are read by the config loader a stream of "tree editing" commands08:32
rrqdirectived=directives08:33
systemdleteI'll try to think that way.08:33
rrqwithout "!" it means "add to what there is"08:33
onefangThere are different operation modes for parsing nodes, the default mode is merge and create. If operation mode is either merge/create or merge, type checking is done. Only same type assignments can be merged, so strings cannot be merged with integers. Trying to define a simple assignment in default operation mode to a compound (and vice versa) will also not work.08:33
onefangPrefixes of operation modes:08:33
onefang    "+" -- merge and create08:33
onefang    "-" -- merge08:33
onefang    "?" -- do not override08:33
onefang    "!" -- override08:33
rrqwithout "!" it is a silent "+"08:34
rrqso it will only replace the leaf level, unless that is a plural value component08:34
systemdleteSorry, I really don't work with sound very much.   So every time I run into sound issues, I have to go through the whole process of trying to understand the syntax.08:34
systemdleteI get that now, thanks.08:35
systemdleteBut I don't recall having to do anything too esoteric to make my webcam work.08:35
onefangI only know these things coz I was setting up my bedroom music studio last month.  Lots of fancy hardware and software to try out and figure out what I prefer.08:36
onefangStill don't know what the hell Mobo3 is supposed to be, or why my graphics card with two HDMI and two DIsplay Port has six HDMI audio devices.  lol08:38
rrqsystemdlete: did you see the capture control on alsamixer?08:41
rrqsee=have08:41
systemdleterrq:  Yeah.  Checked all that a while back08:42
systemdleteYes, I enabled all the capture devices08:43
rrqand it's "root" that wants to use it?08:43
systemdletemade sure they are ON ("00") and green08:43
systemdleteno08:43
systemdletenot root08:43
systemdletejust a regular user, why?08:43
systemdleteI don't normally run programs as root unless they have to be08:44
rrqrigh. does that user have access to the usb /dev node and the audio device?08:44
systemdleteand most of those are run out of cron and other means.08:44
systemdleterrq:  The user can hear sounds.08:44
systemdleteThe computer cannot hear the user.   On chimaera.  On beowulf, all works fine.08:44
rrqok that's the card... the /dev/bus/usb/???/???08:45
systemdleteIOW, output works fine.08:45
rrqand ? at the end of that :)08:45
systemdleteIt's just input on chimaera that seems to be the issue.08:45
systemdletesure, those files under /dev/bus/usb/... are all there.08:45
rrqand the user has access?08:46
systemdleteI can see the cam device at its bus and device location in that tree, based on lsusb output08:46
systemdleteuser has access... you mean to open files under /dev/bus/usb/... ?08:46
systemdleteidk08:46
rrqrw mode08:46
systemdleteno, user wouldn't.  The file is /dev/bus/usb/001/003 and the perms are 66408:47
systemdleteroot-root08:47
systemdleteso the user would not have write on it08:47
systemdletebut... hold on08:47
systemdleteThis worked under beowulf, and I never tooled with those files at all08:48
systemdlete(not directly at least)08:48
rrqsomething to look at; maybe there's an "upping of security" for chimaera ...08:49
rrqdoes it work if you change it to rw for user08:49
systemdletehmmm.08:49
systemdleteI'll try that08:49
rrq(rw for other I suppose)08:49
systemdleteNope.08:50
rrqpity :)08:50
systemdleteI removed the .asoundrc file08:50
rrqyes if the capture control is still there in alsmixer then the .asoundrc file was a herring08:51
systemdleteselinux?08:52
systemdletesometimes that has been a real pain08:52
rrqoh? is that enabled?08:52
systemdletenot sure08:53
systemdleteI have not fiddled with it since installing chimaera on any of my systems here, hardware and VM08:53
systemdleteI don't even see the se* utilities08:54
rrqis there some "complaints" in /var/log/syslog ... about audio or capture or VX800 ?08:54
systemdletethe only complaints are about packets coming from 209.25.233.25308:55
systemdlete(from my firewall)08:55
systemdletean occasional smartd message, cron jobs, etc08:56
systemdletenothing unusal08:56
rrqare you comfortable with strace? ... to trace some recording program08:57
systemdletesure.  I've used it several times.08:57
systemdletestrace arecord, with a sprinkling of options perhaps?08:57
systemdletethis is a test box, so we can muck around as much as needed08:58
rrqok; hmm not sure what to look for though08:58
rrqaudio has #channels and sample rate08:58
systemdleteI can experiment with various options08:58
systemdleteBut the error messages I saw seemed to be syntax errors.08:58
rrq"arecord -L" ?08:59
systemdleteSorry, it is late here and I was busy today.   I think I'll keep poking around and see what I can find... but tomorrow.08:59
rrqnw09:00
onefangNo worries.09:00
systemdleteyeah lots of subdevices09:00
onefangSNAP!09:00
systemdleteincluding snoop09:00
systemdleteI just heard something.  But not from the VX800.09:00
rrq"arecord -D VX800" should work09:00
systemdleteit came from... onefang?09:00
rrq:)09:01
rrqit has mono, so "-c 1"09:01
systemdletenope.  It says it knows vx800 not09:01
onefangHow close to Woolloongabba are you?  lol09:01
systemdleteuh... very far09:02
rrqso VX800 is not in the output of -L ?09:02
systemdleteit is in the output09:02
systemdletebut that syntax doesn't work09:02
systemdleteno09:03
rrqhow about "arecord -D hw:2" ?09:03
systemdletesorry, I mean passing those args don't work09:03
systemdleteok,  a little better, but now, as with the presence of my .asoundrc file, it complains about the input09:04
systemdleteformat09:05
systemdleteonly one format is available09:05
rrqfor input or output?09:06
rrq(tell us when you fall asleep)09:06
systemdletearecord, so input09:06
rrqok maybe "-c 1" would help? (telling that it's mono)09:06
onefangI should fall asleep soon.  Been up way too long.  lol09:06
systemdleteaplay complains of course because it wasn't fed any intelligible output from arecord09:07
systemdleteALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM VX80009:07
systemdletearecord: main:830: audio open error: No such file or directory09:07
systemdleteaplay: read_header:2839: read error09:07
onefangUnless the neighbours don't stop being loud.09:07
systemdlete(the other errors are similar.  And sorry for flooding the channel...)09:07
systemdleteBut onefang, why would I want to fly all the way to Brisbane?   Are you anxious to show off your new sound system?  :P09:08
systemdleteIt's almost as if the kernel knows about my VX800... there is evidence all around.   But alsa doesn't ???09:09
rrqhow about "arecord -D 'USB Audio'" ?09:10
systemdleteThe error "No such file or directory" could mean anything--the same lousy few error codes are used over and over again throughout the kernel.09:10
systemdleteSame error, but this time it says it does not know "USB Audio" rather than not knowing "VX800"09:11
onefangWell next time I volunteer for the local reggae festival, I'll borrow all their sound systems to test my sub bass sound.  Then you wont need to come to Brisbane to hear it.09:11
systemdletelol09:12
systemdleteThere wouldn't be much left to see, I think, if I am reading you09:12
systemdlete(you haven't been hanging around syria and turkey lately, have you?)09:13
systemdleteonefang revives the original intent of the brand "Sound Blaster"09:14
onefanglol and g'night.09:14
systemdleteok, all.  My brain is timing out09:14
rrqnight09:14
systemdletethanks for all the help.  I will try with strace tomorrow.  I'll follow up and let you know what I found out.   Probalby something really dumb.  It usually is.09:15
joew1hi the kernel dosent pick up my usb wifi adapter (tp link 722n) and when i run lsusb it dosnet show up14:09
gnarfacejoew1: run this real quick: dmesg |grep -i firmware14:12
joew1gnarface https://paste.debian.net/127173614:16
gnarfacejoew1: looks like you're missing more than one firmware package. the relevant one for this is probably the last 3 lines (i think those should come from the firmware-realtek package in non-free... or non-free-firmware now i guess if you're on daedalus or later)14:18
nemogrrrrr synaptic and synaptic-pkexec both fail for me.16:43
nemosudo synaptic fails due to x session relay (even when I try to pass DISPLAY to sudo and set xauth)16:43
nemoand synaptic-pkexec fails with a "no session for cookie" error16:44
nemo*rage*16:44
rwpSounds like the best answer is to use "sudo apt-get install ..." then since that will work regardless.16:44
nemorwp: yes.. I just wanted a nice search interface16:46
nemowhich is helpful sometimes when hunting for packages16:46
nemowhich is why I probably only just noticed this problem now16:46
rwpI like having a nice search capability too which is why I use "apt-cache search xxx | grep yyy" for the best interface for me. :-)16:52
systemdleteSo still looking at the problem with my VX800 webcam.   I was finally able to get the mic to work on devuan live--I had to push the capture up almost all the way to get anything, but it does play back.   However, the mic still does not work on installed chimaera systems.  One thing I notice is that the LED goes out soon after plugging the23:56
systemdletedevice into a USB port on either machine, for those instances when arecord does not work.23:56
systemdleteWhen arecord does work, the LED stays on consistently before, during, and after from first inserting the USB device into a port on the machines.23:57
systemdleteWhen arecord does work, I can see the vumeter changing.   This does not happen when the LED is off, that is, when the device is not working.23:58

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