/srv/irclogs.ubuntu.com/2019/05/21/#ubuntustudio-devel.txt

=== ErichEickmeyer is now known as Eickmeyer
OvenWerksEickmeyer[m]: yes headphones are a thing... and jack doesn't deal with it. It is ok to make that a bug :)19:38
OvenWerksEickmeyer[m]: with regard to keyboard volum controls, I do think We can fix that. I would call that a -desktop bug. I don't have a keyboard with volume controls to play with.19:41
m_ad[m]isn't there a option to add shortcuts to control the volume with those?19:47
OvenWerksNot an obvious one... but yes.19:47
OvenWerksThe volumcontrol sets this based on what pulse tells them the default output is19:48
OvenWerksThats not a great idea. So normally the volume control deals with hw:0,0,019:48
m_ad[m]On KDE it's easy to set up shortcuts to control the volume but on Xfce i'm struggling to find that and get it done19:49
OvenWerksPulse does have a @default which is always right.19:49
OvenWerksIf I had a keyboard with Volume controls...19:50
* OvenWerks keyboard is old enough to have an xt-at switch...19:50
m_ad[m]i guess that's really old?19:51
OvenWerksearly 1980s I guess19:51
OvenWerksFull size din plug on it and real switches.19:52
m_ad[m]holy keystrokes Batman19:52
OvenWerksBut yeah, knowing the volume up and down key names is the most important part of making a shortcut20:02
OvenWerkspactl set-sink-volume @DEFAULT_SINK@ +1db20:05
OvenWerksor something close to that20:05
OvenWerksActually that works. change to -1db for down of course.20:06
EickmeyerOvenWerks: It's not a -desktop bug. xfce4-volumed automatically detects whether or not you have media controls on your keyboard and assigns them regardless of keyboard shortcuts. Unfortunately, it does not survive a backend change. Afaik, it's a known bug.20:33
EickmeyerXubuntu suffers from the exact same problem.20:34
OvenWerksBut if there is a keyboard shortcut in desktop that should override ?20:34
EickmeyerNope. xfce4-volumed does not depend on keyboard shortchuts.20:35
OvenWerksI understand that, but adding a shortcut may still work around it... maybe it will send both commands20:37
OvenWerksIn which version did it start not working?20:38
EickmeyerI don't remember. I know I found the fix from something 2016-2017-ish.20:38
EickmeyerThe problem is that not all keyboards send the same thing for the volume controls.20:38
OvenWerks :P20:39
OvenWerksIs there a small set of what they do send?20:39
EickmeyerI don't know.20:39
OvenWerksif it's only one or two or at least less than 10 and those ten are unique, it would be no problem.20:40
EickmeyerI think a decent workaround would be to have -controls do something like "if ${XDG_DESKTOP}=="XFCE"; then killall xfce4-volumed; xfce4-volumed; fi".20:41
Eickmeyer^when "Stop Jack" is pressed."20:41
OvenWerksEEEww...20:41
EickmeyerYeah. It sucks.20:41
OvenWerkssmells anyway.20:42
EickmeyerVery, very stinky, but the problem is that xfce4-volumed wasn't designed with Jack in mind.20:42
OvenWerksActually it is just incorrect, it should use @DEFAULT_SINK@ as the device20:44
EickmeyerAs it does, but for some strange reason it doesn't survive a sink change.20:45
EickmeyerThe process just hangs, and has to be killed.20:45
OvenWerksHmm The first person I talked to said it was using raw device names20:50
OvenWerkslike 0,0,020:50
OvenWerksor 0 actually.20:50
OvenWerksof course I have not gotten pactl set-sink-volume @DEFAULT_SINK@ +1db to not work here...20:51
OvenWerks(18.04)20:51
OvenWerksplaying on 16.04 on my wife's computer. using Key-Mon it just shows "Vol+" and "Vol-" however when I make a short cut, it is shown as XF86AudioRaiseVolume21:05
EickmeyerFound it. bug 129185521:05
ubottubug 1291855 in xfce4-volumed (Ubuntu) "After pulseaudio restart, volume keys no longer work" [Undecided,Confirmed] https://launchpad.net/bugs/129185521:05
OvenWerksEickmeyer: my understanding has always been that system or DE shortcuts grab the key stroke before any application sees it (causes trouble in Ardour)21:07
EickmeyerYes, but if we're using xfce, then the xfce "official" way is xfce4-volumed handles the volume control.21:07
OvenWerksSo does using the mouse wheel on top of the controller icon also not work?21:08
EickmeyerNo, that works too, but people would rather use the volume keys sometimes.21:09
* OvenWerks has never had that happen21:09
OvenWerksso the mouse wheel works but the keys don't?21:09
EickmeyerYes.21:09
OvenWerksI would think the applet would use the same command for both.21:10
EickmeyerHence the ancient bug report.21:10
EickmeyerLooking at the package, there has been no bump in version number for several cycles, so the bug hasn't been addressed afaik.21:10
EickmeyerI'm hoping bluesabre has some insight.21:11
OvenWerks<property name="XF86AudioRaiseVolume" type="string" value="pactl set-sink-21:14
OvenWerksvolume @DEFAULT_SINK@ +1db"/>21:15
OvenWerksadd to /etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml21:16
OvenWerksThe problem should go away.21:16
EickmeyerOkay, so, according to Unit193 and brainwash, they don't even use xfce4-volumed anymore. They use xfce4-pulseaudio-plugin.21:16
EickmeyerThat handles the problem.21:17
Eickmeyerxfce4-volumed needs to be removed from our seed.21:17
OvenWerkshello bitrot21:17
EickmeyerYep.21:17
EickmeyerWhich means we need to remove xfce4-volumed from our seed, make sure we have xfce4-pulseaudio-plugin in our seed, and make sure it's in the default panel.21:18
OvenWerksThe problem with our setup is that all the machines in the house that xfce run jackd from session start.21:18
OvenWerksThe one we have is an indicator so it puts itself in the panel by itself.21:19
EickmeyerThat's probably indicator-sound, which is also subject to bitrot, and needs to be removed from the seed.21:19
* Eickmeyer is noticing Xfce is getting less and less friendly to Jack21:20
OvenWerksSo long as there is something there... and it does work.21:20
* OvenWerks puts his Yf's machine back the way it was...21:21
EickmeyerYeah. Well, if it's working for Xubuntu, then it'll work for us.21:21
EickmeyerOvenWerks: This too: https://bugzilla.xfce.org/show_bug.cgi?id=1533221:25
ubottubugzilla.xfce.org bug 15332 in General "Automatically reconnect to PulseAudio" [Normal,New]21:25
EickmeyerLooks like there's a patch.21:25
OvenWerksIf it's using dbus to connect and control, dbus should do that for the application21:31
OvenWerksIn otherwords sending a command message to pulse should make it start if it is stopped and it should not matter if the running instance is the same one or not.21:32
EickmeyerSo, shoddy coding?21:33
OvenWerksEickmeyer: just wondering if we should make a bunch of menu categories that are X-us-custom23:46
EickmeyerOvenWerks: What would that do?23:59
* Eickmeyer needs examples23:59
OvenWerksWell it would make it really easy for our menu-item editor to place items exactly where th euser wants23:59

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