/srv/irclogs.ubuntu.com/2019/06/25/#ubuntustudio-devel.txt

OvenWerksEickmeyer: re headphones...01:45
OvenWerksI have two computers to work from, One is a lap top but does not have separate level controls for speakers and headphones, It seems the jack physically switches and so it works fine even with jack in control of the device01:47
OvenWerksThis computer does have separate level controls (Phones and front) but... the case is old enough that the jacks are AC97 compliant and do not have plug detection :)01:48
OvenWerksSo plugging in a set of phones is not detected :P01:49
OvenWerksThat is problem one... hard to test here.01:49
OvenWerksproblem two: there is not a dbus signal it seems. Rather this is done by acpi01:51
OvenWerksI was thinking that this would mean system as there is a directory in /etc where scripts can be put to act on acpi events01:56
OvenWerkshowever, I am now thinking tha if I can run acpi_listen without sudo then I should be able to see events from userland01:57
* OvenWerks is looking at https://github.com/ltworf/python-acpi/blob/master/acpi.py02:20
OvenWerksthis is user space. The relevent code is lines 119-121 to initialize and then the while (1) loop lines 146 and 147 (the stuff below that is not import to us as ours will be different.02:24
OvenWerksProblems with this, there is no sleep() in the while loop. That would use a lot of cpu unless... the socket read is blocking02:27
EickmeyerOvenWerks: Maybe it's a state in /proc?02:31
OvenWerksThat would mean threading to do that :(  and once I do that, I have a loop running anyway and it may as well look through files every once in a while.02:31
OvenWerkslets see.02:31
OvenWerksThe only mention of phone is the alsa level and mute02:37
OvenWerksI am looking in /proc/asound/PCH/02:39
Eickmeyerteward, tsimonq2, sarnold: Could any of you tell me what I'm doing wrong? I can't get lintian-overrides to take: https://code.launchpad.net/~eeickmeyer/+git/raysession02:40
sarnoldEickmeyer: I think I'd try removing the 02:44
sarnoldsigh stupid new keyboard I'm still getting used to it02:45
Eickmeyerhehe02:45
sarnold" #python3 " kinds of things02:45
EickmeyerHuh. Having that worked before in Carla, but I'll give it a go.02:46
sarnoldoh. bummer. that was my only guess :)02:49
EickmeyerWell, as I look at the docs, it says it's not necessary, but I think it was recognized as a comment on the same line. Either way, Giving it a shot.02:50
Eickmeyersarnold: Nope, didn't work.02:53
sarnold:(02:54
sarnoldthanks for reporting back02:54
sarnoldit'02:54
sarnolds probasbly best that didn't do the job, though. heh02:54
Eickmeyersarnold: All good, and yes, you're right. If it had worked, that means that comment parsing was bad in lintian.02:54
sarnoldyeah :)02:55
OvenWerksEickmeyer: looking more closely at /proc/asound/PCH/codec, it apears the information _is_ there but it is different for each machine. On my machine it seems to be two entries for "HP", one for mic and one for "out"15:23
EickmeyerOvenWerks: Then how on earth does ALSA detect and automute? There's an option in alsamixer that tells it whether or not to auto mute the speakers if headphones are detected. Maybe it's something even lower-level?15:24
OvenWerksusing acpi even to send a dbus message seems the best idea.15:24
EickmeyerMust be.15:24
OvenWerksEickmeyer: I am sure there is some rhym and reason to it.15:25
OvenWerksif acpi can figure it out, it must be standrd somehow15:25
OvenWerksBasically, from what I can tell, one of the many lines of "Pin-ctls: 0x00:" changes it's number15:28
OvenWerkshuh, funny the things one finds looking for other things. Turns out my master volume has been turned down to half for months (years?)16:12
EickmeyerHaha16:23
EickmeyerOvenWerks: I just got done packaging and testing raysession, it's on its way into autobuilds now. Great alternative to ladish when paired with patchage or carla.21:33
studiobot<teward001> Eickmeyer: You are damn crazy with the number of things needing sponsored now lol22:37
studiobot<teward001> I just got the flood of 20 emails to sponsors xD22:37
studiobot<Eickmeyer> I was told to package as much as possible to get practice in to get access to the ubuntustudio package kit.22:38
studiobot<Eickmeyer> *set22:38
studiobot<teward001> ah indeed.22:38
studiobot<Eickmeyer> @tsimonq2 told me I didn't have enough experience, so this is me getting experience.22:38
studiobot<tsimonq2> @Eickmeyer [@tsimonq2 told me I didn't have enough experience, so this is me getting experie …], This is true.22:39
studiobot<teward001> well I may or may not poke the packages at my convenience22:39
studiobot<teward001> and then tear you new ones lol22:39
studiobot<Eickmeyer> hehe22:39
studiobot<Eickmeyer> @teward001 The flood of emails you just got was actually me removing ubuntustudio as "being affected by" since those were old, old requests.22:40
studiobot<Eickmeyer> Like, several years B.E.22:40
studiobot<teward001> ah heh22:41
studiobot<Eickmeyer> As i look at the sponsorship queue, I have two new packages and an SRU, and one that I merely assisted with getting the process started.22:42
studiobot<Eickmeyer> (one of which @tsimonq2 reset the time-in-queue on, which shoved it to the back of the line after having been in the queue for OVER A MONTH) 😡22:44
OvenWerksEickmeyer: good. How does it show on the menu? (reysession)23:09
EickmeyerOvenWerks: It shows in multimedia for now, but we can throw it in anywhere using ubuntustudio-menu.23:10
EickmeyerI'd need to add it in the seed and drop ladish.23:10
OvenWerksSorry, that was not what I meant Eickmeyer. I was meaning does the way it is named in the menu make it obvous what it is?23:19
EickmeyerOvenWerks: Yes.23:19
OvenWerks When you say multimedia do you mean media playback?23:19
EickmeyerYes.23:19
* Eickmeyer needs to reboot23:19
OvenWerksEww23:19
OvenWerksk23:19
OvenWerksEickmeyer: when you are back... I have an idea about menus.23:21
EickmeyerOvenWerks: It looks like it showed-up in "Audio Production" without modification. 23:23
EickmeyerAnnnd... go for idea.23:23
OvenWerksEickmeyer: we have been forcing applications into certain places with hard coding. In the long run this is not good. It does not let the user move an application with menu add for one. and it does not deal with new apps23:25
OvenWerksMy though is to take the same apps that we move with the config file and give then an overriding desktop file23:26
EickmeyerThat's actually a great idea, but how do we prevent apps that aren't installed from showing?23:26
OvenWerksHmm, this would work for our xfce sessions23:26
OvenWerksit may not work for Studio on top of. Could though.23:27
OvenWerksthat would be a question for sure23:28
EickmeyerHonestly, I think making some way to parse/edit what -menu does is the best way. There could be a way to do it on a per-user basis.23:28
OvenWerksWe would almost have to have a script that added them and removed them... needs thought23:29
OvenWerksper user goes in .local/share/applications/23:29
OvenWerkssystem overrides go in /usr/share/ubuntustudio/applications/23:30
EickmeyerYes, but again, we're running the risk of items showing that aren't actually installed.23:31
OvenWerksa script on startup that goes through the whole bunch checking if the executable exists and adds NOSHOW=True to those it can't find23:32
EickmeyerThat would mean it'd have to run as root.23:33
EickmeyerSo, a systemd service.23:33
OvenWerksYup, not controled by the user23:33
EickmeyerHow much boot time would be impacted, do you think?23:34
OvenWerksThe idea is half baked at best at this point. Just a quick idea I just thought of. Needs much rounding out so probably post 19.1023:35
OvenWerksboot time should not be impacted at all as systemd runs things in parallel23:35
EickmeyerOk.23:35
OvenWerksIt just has to depend on all file systems mounted23:36
EickmeyerWhich means multi-user.target, I think.23:36
OvenWerksThere is a target for all file systems mounted (not sure what it is called)23:37
OvenWerksbut mutiuser would work. The menus do a quick look through all the *.desktop locations every time they are opened so the time should not be that bad.23:38
OvenWerksFirst check for changes ... mtime on the directory file should cover everything in the directory.23:39
sarnoldexcept changes to files23:39
OvenWerksI think we are looking for added or rermoved files in the directory.23:42
OvenWerksnot that it matters at this point, too  much else to work on this cycle.23:43
sarnoldheh, I'm familiar with that..23:44

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!