Search Debian Channel Logs

Saturday, February 25, 2017

#debian channel featuring rangergord, Shadow_7, tofutoon, mrtrump,

Shadow_7 2017-02-25 16:45:25
tofutoon: ~/.config/pulse/ is the folder
tofutoon 2017-02-25 16:45:42
I keep forgetting to type the ~.
tofutoon 2017-02-25 16:45:59
But right, that folder has not been regenerated even after a reboot.
Shadow_7 2017-02-25 16:46:22
tofutoon: it generates when pulse starts / uses the soundcard.
Shadow_7 2017-02-25 16:46:34
tofutoon: unless your ~/ perms are hosed
Shadow_7 2017-02-25 16:47:06
tofutoon: sudo chown youruser:youruser /home/youruser
Shadow_7 2017-02-25 16:47:17
tofutoon: sudo chown youruser:youruser /home/youruser/* ...and up up up
tofutoon 2017-02-25 16:48:11
.config has permissions 700.
Shadow_7 2017-02-25 16:48:18
tofutoon: should need more than 3 /*/*/* deep imo
tofutoon 2017-02-25 16:48:57
sudo chown -R myuser:myuser /home/myuser
tofutoon 2017-02-25 16:49:00
would do it.
Shadow_7 2017-02-25 16:49:05
tofutoon: it's more about the "OWNER" and "GROUP"
tofutoon 2017-02-25 16:49:16
But
tofutoon 2017-02-25 16:49:37
We saw that pulseaudio was started as Debian+ user, and the .config has permissions 700.
tofutoon 2017-02-25 16:49:43
Isn't that a problem?
tofutoon 2017-02-25 16:50:33
But, I guess when we started pulseaudio manually, it started as myuser.
Shadow_7 2017-02-25 16:50:44
tofutoon: depends on how things are configured. I normally start with a min install. And never use KDE or Gnome
Shadow_7 2017-02-25 16:50:59
tofutoon: as it should... be as "your" user.
Shadow_7 2017-02-25 16:51:34
tofutoon: pulse doesn't share users without a network config. aka per user .config/pulse/client.conf that has default server = IP ADDRESS
tofutoon 2017-02-25 16:52:03
Do you see why ~/.config/pulse is not being created?
tofutoon 2017-02-25 16:53:36
That seems to be a problem.
Shadow_7 2017-02-25 16:54:25
tofutoon: unplug and replug the mic and check the tail end of dmesg. $ dmesg | tail -n 20
tofutoon 2017-02-25 16:55:21
https://dpaste.de/C0tf/raw
tofutoon 2017-02-25 16:55:49
authkey.c keeps complaining that ~/.config/pulse/cookie does not exist.
Shadow_7 2017-02-25 16:58:53
tofutoon: that kind of hints that root created the /.pulse/ stuff again.
Shadow_7 2017-02-25 16:59:20
tofutoon: otherwise pulse should create the .config/pulse/ and friends
tofutoon 2017-02-25 16:59:34
I see
Shadow_7 2017-02-25 16:59:48
tofutoon: aka file:///.pulse aka root filesystem
tofutoon 2017-02-25 16:59:50
pulseaudio is located in /usr/bin.
tofutoon 2017-02-25 17:00:05
It belongs to root and the root group
Shadow_7 2017-02-25 17:00:06
tofutoon: ls -al /
Shadow_7 2017-02-25 17:00:46
tofutoon: that's the "config" files for pulse
Shadow_7 2017-02-25 17:01:53
tofutoon: the /usr/bin/ one is the application...
Shadow_7 2017-02-25 17:02:15
tofutoon: don't mess with that one
tofutoon 2017-02-25 17:02:15
There is no .config in /
Shadow_7 2017-02-25 17:02:15
tofutoon: when you try to start pulse as root it creates /.pulse/
tofutoon 2017-02-25 17:02:15
I'm starting pulse as my user.
Shadow_7 2017-02-25 17:02:15
tofutoon: not even .config in this case
Shadow_7 2017-02-25 17:02:31
tofutoon: but previously you fiddled. left over junk could be in the way
tofutoon 2017-02-25 17:02:36
There is no .pulse in / either.
rangergord 2017-02-25 17:02:47
what is the Debian policy on packaging a tool that is FOSS, but intentionally has limited features, to promote a paid non-FOSS full version that would be a separate download from a 3rd party website? Would Debian be OK with menu entries that are grayed out with a "Only available in Pro version" tooltip?
rangergord 2017-02-25 17:03:02
I couldn't see anything about this in the package policy document on the website
Shadow_7 2017-02-25 17:03:02
tofutoon: good... how about the perms on /run/.../1000/... aka the users IUD
Shadow_7 2017-02-25 17:03:06
UID*
tofutoon 2017-02-25 17:04:22
/run/user/1000/pulse belongs to my user.
tofutoon 2017-02-25 17:04:29
So do all the files inside.
Shadow_7 2017-02-25 17:04:48
tofutoon: it looks like many have your issue for that mic. With the only fixes being OSS and "old ways". Back in the /dev/dsp dinosaur days
tofutoon 2017-02-25 17:04:53
However, the only files inside are a 0 byte native file and a pid file.
Shadow_7 2017-02-25 17:05:48
tofutoon: mostly worried about owner:group on those. But not your issue it seems
Shadow_7 2017-02-25 17:11:47
tofutoon: seems 44100 might be preferred. arecord -D hw:1,0 -f S16_LE -c 1 -r 44100 -V mono test.wav
tofutoon 2017-02-25 17:14:32
So, should I install oss?
tofutoon 2017-02-25 17:15:07
Or perhaps, buy a new USB sound card.
tofutoon 2017-02-25 17:15:16
Fortunately, the sound card is external.
Shadow_7 2017-02-25 17:16:19
tofutoon: that mic is it's own soundcard. I use a battery box and a $10 mic on my system. giant squid audio labs. Although the battery box was $80-ish, but needed since my soundcard doesn't have plugin power.
tofutoon 2017-02-25 17:17:05
My mic and soundcard are separate.
Shadow_7 2017-02-25 17:17:06
I also have various mic preamps and pro-ish mics, but the $10 mic lasts days and is good enough.
tofutoon 2017-02-25 17:17:43
Actually, I could remove that soundcard entirely and plug the microphone into my laptop.
Shadow_7 2017-02-25 17:18:16
tofutoon: the only hit I found relavent to you says to use kmix to select the mic for input. Otherwise there was a capture.pcm in a .asoundrc entry. Not idea if using pulseaudio.
Shadow_7 2017-02-25 17:19:49
tofutoon: mhwaveedit seems to be a linux native recording app that supports pulseaudio. Although the apt-cache info says gtk2 based.
tofutoon 2017-02-25 17:20:58
Ideally, I'm looking for someway to reset everything to a default state (and perhaps replace my mic's soundcard) or plug the mic in directly.
mrtrump 2017-02-25 17:21:08
noop!
mrtrump 2017-02-25 17:21:13
anyone here using noop!?
mrtrump 2017-02-25 17:21:15
:)
mrtrump 2017-02-25 17:21:21
gods I love unix
mrtrump 2017-02-25 17:21:54
theres no free lunch
mrtrump 2017-02-25 17:21:56
lol
mrtrump 2017-02-25 17:22:01
I love free software
mrtrump 2017-02-25 17:22:07
I feel I benefit from it
mrtrump 2017-02-25 17:22:15
maybe I should donate
mrtrump 2017-02-25 17:22:17
more
Shadow_7 2017-02-25 17:22:34
tofutoon: with a 2nd machine you could line out to line in of the other soundcard. Not idea, but probably simpler.
mrtrump 2017-02-25 17:22:44
I love running my home rig with icewm
Shadow_7 2017-02-25 17:23:15
tofutoon: assuming the device works any better on the "other" machine. pi's are good for that, if you don't use gui's or resource hog environments.
tofutoon 2017-02-25 17:23:24
Shadow_7: any idea how to resolve .config/pulse/cookie not found issue?
Shadow_7 2017-02-25 17:24:22
tofutoon: pulse should create it. maybe kde doesn't use pulse? Otherwise find all the pulse/cookie files and delete them (or do a fresh install).
Shadow_7 2017-02-25 17:24:43
tofutoon: ideally with pulseaudio "stopped" $ pulseaudio --kill
Shadow_7 2017-02-25 17:26:27
tofutoon: you could copy the cookie from other place, but it probably is unique and that wouldn't work. before .config/pulse, pulseaudio used .pulse/... and there was a period of conflict for a while where both existed and didn't play well
Shadow_7 2017-02-25 17:26:55
tofutoon: but that shouldn't be an issue unless your install is old and you've been upgrading from wheezy to jessie and maybe earlier flavors
tofutoon 2017-02-25 17:29:12
There was a ~/.pulse directory. I deleted it. Let me retry.
Shadow_7 2017-02-25 17:29:41
tofutoon: the .config/pulse is what the "new" versions use
tofutoon 2017-02-25 17:32:09
After removing ~/.pulse and ~/.config/pulse and restarting pulse, pulse auto-generated ~/.config/pulse.
tofutoon 2017-02-25 17:33:33
However, no cookie file was created.
Shadow_7 2017-02-25 17:33:33
as it should be
tofutoon 2017-02-25 17:33:33
no cookie file should exist?
Shadow_7 2017-02-25 17:33:33
you have to "use" the soundcard probably. and maybe stop/restart pulse
tofutoon 2017-02-25 17:39:38
Shadow_7: Super cool. I just got a Skype test call to work with both audio and microphone.
Shadow_7 2017-02-25 17:39:38
excellent
tofutoon 2017-02-25 17:39:38
One trick (amongst the many things we did together) was to remove the USB sound card and plug the microphone in directly.
tofutoon 2017-02-25 17:39:38
Then, I was able to configure things in pavucontrol.
tofutoon 2017-02-25 17:39:51
That sound card really interfered with things.
tofutoon 2017-02-25 17:40:07
Also, I had a ~/.pulse folder that was creating problems.
Shadow_7 2017-02-25 17:40:21
pulse is a bit of a pile, it doesn't like complexity
tofutoon 2017-02-25 17:40:47
When it doesn't work out of the box, it's a horrible user experience.
Shadow_7 2017-02-25 17:40:51
most pulse solutions is to disable everything you are NOT using
Shadow_7 2017-02-25 17:41:20
out of the box on a min install doesn't have pulse installed :)
tofutoon 2017-02-25 17:41:21
In most cases, Debian engineering is far superior to Ubuntu.
tofutoon 2017-02-25 17:41:30
But, some things... Ubuntu gets right.
tofutoon 2017-02-25 17:41:52
I don't know what they did with pulse, but it worked out of the box for me.
Shadow_7 2017-02-25 17:42:07
ubuntu does do a good job with pulse
Shadow_7 2017-02-25 17:42:20
although fedora was probably my best out of the box experience from an installeer
tofutoon 2017-02-25 17:43:04
It seems Debian could benefit from brining some of those configurations in from Ubuntu.
tofutoon 2017-02-25 17:43:28
Fedora is like Debian. There's a lot of little things that don't work.
tofutoon 2017-02-25 17:43:34
err...
tofutoon 2017-02-25 17:43:36
I meant
tofutoon 2017-02-25 17:43:52
Fedora is like Ubuntu. There's a lot of little things that don't work.
tofutoon 2017-02-25 17:44:08
That's what I appreciate about Debian.
tofutoon 2017-02-25 17:44:18
For the most part, all the little nuances work out of the box.
tofutoon 2017-02-25 17:44:33
This pulse thing... kinda sucked.
tofutoon 2017-02-25 17:45:00
I have yet to reboot and see if things will work.