libera/#devuan/ Sunday, 2020-10-04

WafficusHi there, question about audio permissions for Devuan for use on Jitsi in Firefox04:28
WafficusI'm able to get my video work just fine04:28
Wafficusbut the Settings > Microphone > says Permission not granted04:28
Wafficusis this something that needs to be granted by Devuan to be used in Firefox, or is this purely a Firefox issue? In Firefox, I allowed the "meet.example.com" as the site to be able to access my microphone04:29
Wafficus(NOTE: example.com is just used as an example)04:29
masonWafficus: Make sure you're in the right groups.04:29
masonWafficus: Also, how to go about it depends on whether you're using ALSA or layering PulseAudio atop ALSA.04:29
WafficusI'm using alsa currently04:30
masonWafficus: https://test.webrtc.org/ is a good site for testing.04:30
Wafficusok i'll try that04:30
Wafficusyeah same problem04:30
Wafficusmicrophone is in red04:30
Wafficusunder audio source, there's no drop down04:32
Wafficusmaybe my laptop doesn't have an internal mic04:32
Wafficusand I'm being an idiot or something04:32
masonHrm. It probably does. So, Firefox is problematic for videochat for me, with just ALSA. Plays audio fine. I've been using Chrome and/or Chromium for videochat lately, and Firefox for everything else.04:33
gnarfaceWafficus: no pulseaudio?  open alsamixer, then hit the TAB key once04:33
Wafficusok I hit tab once04:33
WafficusI'm on the "HDA Intel PCH" card04:33
WafficusMic Boost is at 10004:33
WafficusCaputre at 104:34
gnarfaceWafficus: ok, that's the right card and you're now on the capture tab, right?04:34
gnarfaceWafficus: capture panel04:34
Wafficusyes04:34
Wafficuson the capture panel04:34
gnarfaceWafficus: ok, left and right arrows to highlight the input you want to use, hit the space bar so it highlights in red saying CAPTURED or whatever04:34
Wafficusyep I'm on that "Capture" section within the Capture tab04:35
gnarfaceso, make sure the corresponding "Input source" # to the "Capture" # is set to the right physical input with up and down arrow keys04:35
gnarfaceand make sure the right capture # is selected with the space bar04:36
gnarfaceandset the volume04:36
gnarface*and set the volume04:36
Wafficushmm04:36
gnarfacethat's how mine works anyway, ymmv04:36
WafficusI only have five options04:36
gnarfacego along each of them and hit the space bar04:36
WafficusMic Boost, Capture, Digital, Dock Mic Boost, Internal Mic Boost04:37
gnarfacedo you see any red words appear and disappear on any of them?04:37
gnarfacewhen you hit the space bar while they're highlighted with the cursor04:37
gnarfaceyour user will also have to be in the "audio" group04:37
Wafficuswhen I hit space on "Caputre"04:37
Wafficusit changes to "L R"04:37
gnarfaceso L and R appear in red, but the word CAPTURE doesn't also appear between them and a little lower?04:38
Wafficusyeah it does that sorry04:38
Wafficusthat's correct04:38
gnarfaceok04:38
gnarfacekbut you don't also have Capture 1, Capture 2, etc?04:38
gnarfacejust Capture and Digital?04:38
Wafficusno just L R Capture04:39
Wafficusyeah04:39
Wafficusjust Capture and Digital04:39
gnarfaceand no Input Source?04:39
gnarfacea sane range for digital for me has been 19-24, but ymmv04:39
Wafficusok yeah04:39
gnarfaceit's separate from the others, which are all analogue here for me04:39
WafficusMic Boost: 100, Capture: 50, Digital: 24, Dock Mic Boost: 0, Internal Mic Boost: 004:40
gnarfacethe analogue ones can be 80-100%, with 0-50% mic boost depending on program04:40
gnarfacehmm, no put Capture at 10004:40
gnarfacethen turn Mic Boost to 004:40
gnarfacestart with that04:40
Wafficusok cool04:40
Wafficusi'm wondering if its an audio group thing thugh04:40
Wafficussince Firefox doesn't even give me the permission to allow it or whatever04:41
masonWafficus: is your user part of group audio?04:41
gnarfaceWafficus: after you add yourself to the audio group, you'll have to completely log out04:42
gnarfaceWafficus: from all terminals04:42
gnarfaceWafficus: and the window manager/desktop04:42
golinuxI could never get jitsi to work with Firefox04:42
Wafficussam@samdevuan ~ $ groups sam04:42
Wafficussam : sam dialout cdrom floppy sudo audio dip video plugdev netdev bluetooth lpadmin scanner debian-transmission04:42
masonIt worked for me with PulseAudio, but Firefox is not ideal nowadays.04:42
Wafficusyeah I'm in the audio group04:42
golinuxThe only browser that will work for me now is Vivaldi04:43
gnarfaceWafficus: make sure you're actually looking at the right soundcard though, if it is onboard and you know that is the only one, Intel HDA is a very likely and common one, but if you have multiple cards and you're not sure, then all bets are off04:43
gnarfaceWafficus: and on mine, each "Capture" also has a corresponding "Input Source" that needs to be toggled between stuff like "Rear Mic" "Front Mic" "Line-in"04:44
Wafficusyeah its just one on board one04:44
Wafficusthe other one is "HDA Intel HDMI" which doesn't allow me to change the SPDIF options anyway04:45
Wafficusits gotta be the "0 HDA Intel PCH" one04:45
gnarfaceWafficus: the HDMI one is alsmost certainly output-only anyway, even if you could find a HDMI mic04:45
gnarfaceWafficus: on a laptop, labels like front mic/rear mic might not be accurate04:46
gnarfaceWafficus: i notice you have 3 separate mic boosts but only one capture volume... seems like something is weird there...04:47
gnarfacei wouldn't be very surprised if they dont' do what they say04:48
gnarfacebe wary of them04:48
masonHm, I thought I had more luck with Firefox, but I'm evidently misremembering.04:48
masonSince I dropped PulseAudio, though, Chromium works nicely.04:48
Wafficuslooks like this might be a Firefox issue after all unfortunately04:48
Wafficushttps://github.com/jitsi/jitsi-meet/issues/475804:48
Wafficuskinda sucks in some regard04:49
masonWafficus: Can you try Chromium for the one function, and keep using Firefox otherwise?04:49
gnarfaceWafficus: a simple mic test you can do if you have no alsa config customizations that should always work if the driver is working is this:  arecord |aplay04:49
gnarfaceWafficus: the driver might be only mostly working and fail at that one thing though, not very uncommon04:50
masonAnyway, off to read before bed. o/04:50
gnarfaceWafficus: on yours, try this to force high quality if it doesn't default to it: arecord -f dat |aplay04:50
Wafficuslatest Firefox related bug page too https://bugzilla.mozilla.org/show_bug.cgi?id=146870004:51
Wafficusehh04:51
WafficusI ain't putting Chromium on this dear to my heart Linux box04:51
Wafficusbut maybe on my work computer with Windoze04:51
WafficusI can try it with Chrome04:51
gnarfaceWafficus: (it should start recording and playing what it's recording directly, but it will also print out the format and sample rate and channel count, should be: Signed 16 bit Little Endian, Rate 48000 Hz, Stereo))04:51
Wafficusguaranteed, it'll probably work sadly enough04:51
WafficusI tried doing arecord | aplay04:52
Wafficusit was recording a wave... but I didn't hear it04:52
Wafficusor couldn't stop it04:52
Wafficussam@samdevuan ~ $ arecord | aplay04:53
WafficusRecording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono04:53
WafficusPlaying WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono04:53
Wafficus^CAborted by signal Interrupt...04:53
WafficusAborted by signal Interrupt...04:53
Wafficusarecord: pcm_read:2145: aplay: pcm_write:2053: read error: Interrupted system call04:53
Wafficuswrite error: Interrupted system call04:53
gnarfaceWafficus: that's normal if you ctrl+c it, and you can only really ctrl+c it or kill -TERM it05:01
gnarfaceWafficus: try this one now, make sure it's still silent: arecord -f dat | aplay05:01
gnarfaceWafficus: you get audio output normally, right?  or have you never tested output either before?05:02
gnarfaceWafficus: it's defaulting to lowest quality, so you have to specify -f dat05:03
Wafficusi don't know what I'm looking for though05:03
WafficusI ran that arecord -f dat | aplay command though05:03
gnarfaceWafficus: still no sound?05:03
gnarfaceWafficus: mono doesn't actually work for me, but stereo through 8 channels do05:04
gnarfaceWafficus: -f dat will specify stereo and 48000 Hz05:05
Wafficussam@samdevuan ~ $ arecord -f dat | aplay05:05
WafficusRecording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo05:05
WafficusPlaying WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo05:05
Wafficus^CAborted by signal Interrupt...05:05
gnarfaceyea, that's right05:05
WafficusI didn't hear anything05:05
gnarfacehmm, so what about this, just as a sanity check: speaker-test -c 205:06
gnarfacework, or no?05:06
Wafficusyep that works05:07
Wafficusfront left and front right work05:07
gnarfaceyou left the volume up and the Capture selected with "L CAPTURE R" showing in alsamixer, right?05:07
gnarfaceCapture should be at 100%05:08
gnarfaceand selected05:08
Wafficusyeah05:08
Wafficusthat is correct05:08
gnarfaceone or more of those suspicious boost volumes might also be actually a mic volume, might have to be set to a number higher than 0 too05:09
gnarfacebut it really looks like you're missing an input selector05:09
gnarfacewhat kernel version are you using?  what does "uname -a" say?05:09
WafficusLinux samdevuan 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux05:10
gnarfacei'm wondering if the driver isn't completely recognizing the hardware, if it's newish hardware it might be worth trying the backports kernel05:10
gnarfaceanyway, yea, try raising those boost volumes too and run the "arecord -f dat | aplay" test again05:11
Wafficusnice05:11
WafficusI can hear the mic in the laptop with that command05:11
gnarfaceif that doesn't work, try the backports kernel05:11
gnarfaceoh, so it is one of those 3 boost volumes?05:12
gnarfaceit might be all that's wrong is that it's just mislabeled, but often there's more to it than that05:12
Wafficusnow, how do we force it to get it to work with Firefox, idk05:12
gnarfaceit should be the default05:13
gnarfacereally05:13
Wafficusidk05:13
WafficusI just did your suggestions earlier05:13
Wafficusdidn't change the other boost section05:13
Wafficusjust kept the capture section like you mentioned05:13
gnarfacewait so what changed that made it work?05:13
Wafficusidk05:14
Wafficusbut it worked in your command05:14
* gnarface facepalms05:14
Wafficuson Jitsi05:14
Wafficusno it doesn't work05:14
Wafficuson my jitsi instance it still doesn't allow me to allow access to the microphone05:15
gnarfaceconclusively a problem with it then05:15
gnarfaceyour alsa is working fine, confirmed05:15
gnarfacethe user running it will also have to be in the "audio" group of course...05:15
gnarfacei'm not familiar with jitsi but if there are any other users, even system users involved in this, they'll also need to be in the audio group05:16
Wafficusyeah I'm in the right audio group05:16
Wafficusthat's what kinda sucks05:16
Wafficusthe "Permission not granted" thing sucks though05:16
Wafficusidk why I can't just allow Firefox to give it access05:16
gnarfaceis jitsi some sort of container?05:16
gnarfacei thought it was a internationalization library of some sort05:17
Wafficusits a web app from what I understand it05:17
Wafficus*understand05:17
gnarfacehmmm05:17
gnarfacewell it is possible then that they've done something that only works in windows05:17
gnarfacei don't know enough about jitsi to be sure05:17
gnarfacethough firefox might have a setting for mic access to plugins and web pages05:18
gnarfaceunder privacy maybe05:18
gnarface(depending on version)05:18
gnarfacei have one thing you could test but it might not be worth it05:20
gnarfaceWafficus: someone made this ~/.asoundrc for me: https://paste.debian.net/1165830/05:20
gnarfaceWafficus: if you load the snd-aloop module, and put that in your ~/.asoundrc, then firefox should get anything you send to the "Loopback" alsa device05:21
gnarfaceWafficus: so like for example, arecord -f dat |aplay -D Loopback05:22
gnarfaceWafficus: (i've been hacking at this crap for a while to get some games and the Steam Link working without pulseaudio)05:22
Wafficusgotcha05:24
gnarfaceWafficus: (some stuff is extraordinarily misbehaved and that hack has helped)05:24
WafficusI'll check out that .asoundrc one sec05:24
gnarfaceWafficus: (never tried it with firefox or jitsi)05:24
WafficusI'll put that in my utilities folder and just cp it to ~ with a test05:24
gnarfacegonna have to go afk momentarily, but i'll be back later05:25
Wafficusok thanks05:25
Wafficusdude on Jitsi's IRC channel basically told me that the microphone basically just needs to work in the Mozilla Firefox ESR release for it to work06:11
Wafficusfunny thing is I was able to allow microphone to work in latest Firefox release, (NOT ESR) but I think even that's dependent upon pulseaudio06:12
XenguyThat's what I heard awhile ago, is that Pulseaudio would be a requirement of FF, going forward06:17
gnarfaceit hasn't been required still for firefox-esr in ceres anyway06:31
gnarfaceit was briefly, then debian retracted it i think06:31
gnarfacei don't think regular firefox needs it either still, but ymmv i guess06:31
gnarfacei have only tested output in firefox anyway, not input06:31
gnarfacebut that might just be a debian fix to the build, the default upstream builds may be different06:33
rwpA workaround for firefox using pulseaudio only is to install and use it with "apulse".  Works for me.06:35
gnarfacewhen that was happening, i did use apulse successfully for output with firefox, but i couldn't get it working for input with anything06:35
rwpHmm....  I don't think I have used it for input either.  Just output.  Sorry.06:36
Wafficusapulse huh06:42
Wafficusgotcha06:42
Wafficusyeah thats what the Jitsi guy said06:43
Wafficusbasically Firefox will need Pulse going forward06:43
Wafficushence when I'm forced to06:43
WafficusI'll change to a webkit browser then06:43
Wafficuscause i'm not a fan of Chromium06:43
rwpJFTR apulse is here https://github.com/i-rinat/apulse06:43
rwpOh!  I needed to pull apulse as source because at the time I was on Stretch.  But apulse does appear in Beowulf/Buster and later.  Glad to see that it is packaged now.07:10
Wafficusthanks07:27
yanmaanihttps://busybox.net/~vda/init_vs_runsv.html Did anyone do this in reality? It seems more minimal than sysvinit, and you could experiment more.21:23
brocashelmright now, is ceres caught up with sid (package versions)? i'm only seeing openvpn and meson being "newer" when i check sid21:34
fsmithredbrocashelm, did you check pkgmaster?21:38
brocashelmjust now. is it that amprolla file?21:48
fsmithredyeah, you can look at amprolla.txt, but it takes forever to load22:02
fsmithredsometimes I add lines to sources.list to compare different repos22:02
fsmithredbut now is not one of those times22:02
brocashelmthat's what i've been doing to save some time (the sources.list method)22:07
fsmithredyou can go crazy with proper pinning22:08

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