/srv/irclogs.ubuntu.com/2020/01/29/#ubuntustudio-devel.txt

OvenWerksEickmeyer[m]: installed 20.04.02:58
Eickmeyer[m]OvenWerks: Cool.02:58
OvenWerkslogged in and created second account (joe tester and jane tester)02:58
OvenWerkssorry called away, will talk later.03:00
Eickmeyer[m]No worries.03:08
OvenWerkswithout starting jack pulse starts and stops loging out and in to both accounts.05:29
OvenWerksStart jack with autostart and when logging out and into another account the second account has no audio and there are two autojacks running, one for each.05:30
OvenWerks :P05:30
OvenWerkstried removing the & from the autojack command line still the same05:30
OvenWerksthen also removed the redirection and still the same.05:31
Eickmeyer[m]Ok, so that means it's still not killing the process on logout, which means the process isn't being launched upon login by the user account, and therefore is not ending when the user logs out.05:32
Eickmeyer[m]You can launch something as the user, but the user doesn't necessarily have to be logged-in. Only if the user is logged-in and launches a process does it stay with that session.05:33
OvenWerksinteresting fact. pulse audio has both a systemd user service as well as a file in autostart. But I notice that the way systemd deals with pulse has changed from 18.04 to 200405:33
Eickmeyer[m]We need a systemd expert.05:34
OvenWerksin fact looking at the systemd logging, I see the various targets shutting down between one session and the next. The login screen is it's own session BTW05:35
OvenWerksAnyway, I think I will have better luck with the new systemd setup than the 1804 version05:35
OvenWerksit seems to be doing what I think it should.05:35
OvenWerks I have to run journalctl sudo to see all of it though.05:36
Eickmeyer[m]That tells me the new version of -controls won't be backportable (new word).05:39
OvenWerksyes it will... it will merely have the same problems as with autostart05:40
OvenWerksit will be good to 18.0405:40
Eickmeyer[m]Ok.05:41
OvenWerksI may be able to get it to work on both for that matter as I learn more05:41
OvenWerksWhat we have been doing for months is rather than logout and in to a second account,,, just reboot.05:41
OvenWerksif you are reading the systemd journal, be aware that many of the targets in system have the same name as targets in the user side :P05:43
OvenWerksthey both have Paths, Timers, Sockets, Basic, default, etc.05:43
Eickmeyer[m]Yeah, it's a matter of seeing which "user" is running the target.05:43
Eickmeyer[m]Unrelated, ladish has been marked for autoremoval from Debian Testing on March 5th. RIP05:45
OvenWerksladish was something I looked at and never figured out how to use. Plugins have made session managers not as important anymore.06:18
OvenWerksInterestingly enough, time wise, the first session doesn't really stop until after the next one has already fully started.06:19
OvenWerksxfce offers the ability to run something in autostart at logout instead of login... but it seems to be non-standard.06:42
OvenWerksEickmeyer[m]: I think I will need to download and install vanilla and see what they do.06:43
OvenWerksI think the way the session is set up is wrong. It doesn't make a call that tells systemd --user to shutdown.06:44
Eickmeyer[m]teward: Do we know anyone who is decent at systemd? There's an issue with ubuntustudio-controls that OvenWerks is trying to solve in regards to jack autostart.15:53
* Eickmeyer[m] tags cyphermox , RikMills , RAOF , tsimonq2 , and Wimpress with the same question ^15:55
RikMillssadly no15:56
* OvenWerks notes that logind.conf -> KillUserProcesses=yes does not really.15:57
OvenWerksadding an autostart item with a "RunHook=1" will run at logout... but seems to be xfce specific :P16:35
OvenWerksEickmeyer[m]: https://blogs.gnome.org/benzea/2019/10/01/gnome-3-34-is-now-managed-using-systemd/16:40
OvenWerksloginctl kill-user <user_ID> works.16:56
Eickmeyer[m]So then, the question is, how do we get loginctl kill-user <user_ID> to run at logout?16:56
OvenWerksactually loginctl kill-user $USER works too. I am guessing that is a xfce thing16:57
Eickmeyer[m]loginctl is part of logind which is part of systemd. So no, not just an xfce thing.16:58
OvenWerksThe little logout/restart/shutdown dialog16:58
OvenWerkswhat I mean is that the dialog that xfce uses to logout should do so with that command16:59
Eickmeyer[m]Darn, no sign of bluesabre in here.16:59
Eickmeyer[m]He'd know.16:59
OvenWerksI am not sure how a logout is supposed to be done16:59
bluesabreHey!17:00
OvenWerksbluesabre: how does xfce deal with the logout button?17:01
Eickmeyer[m]Hey bluesabre !17:01
Eickmeyer[m]I also pinged laney (Ian Lane, mentioned in the article you linked OvenWerks ).17:01
OvenWerksEickmeyer[m]: do you have a vanilla install somewhere?17:02
Eickmeyer[m]I do.17:03
Eickmeyer[m](with ubuntustudio-installer, of course).17:03
OvenWerksif you do a boot->login->logout->login then in a terminal: journalctl --user -b17:04
bluesabreI think there’s an command like ‘xfce4-session —log-out’17:04
bluesabreNot currently near a Linux box to confirm17:05
bluesabreOh17:05
OvenWerksthen search for "Stopped target"17:05
bluesabrexfce4-session-logout17:06
* Laney was summoned17:06
bluesabrehttps://manpages.ubuntu.com/manpages/precise/en/man1/xfce4-session-logout.1.html17:06
Eickmeyer[m]OvenWerks: Can you explain the situation to Laney ?17:06
bluesabrePretty sure that does the heavy lifting17:07
bluesabreBut I'll confirm when I get home17:07
OvenWerksLaney: we are noticing that systemd --user shows reaching targets but on logout the targets do not seem to get stopped.17:07
OvenWerksbluesabre: I will try then.17:07
Laneydo you have StopWhenUnneeded=yes?17:08
OvenWerksLaney: I am wondering if this is true for all DEs or just xfce17:08
OvenWerksin which file?17:08
Laneyin the the .target unit17:09
LaneyThings are supposed to stop, yeah17:09
OvenWerkswhen I use: loginctl kill-user $USER things work.17:10
OvenWerksbut when I use the logout button they dont This is bad because when jack is running and I logout one user and login to another user that new session gets not sound because the sound card is locked.17:11
OvenWerksPulse is not so much of a problem because it only uses the device when it needs it.17:12
OvenWerksLaney: the thing is the .target files are standard (basic, default, etc.)17:13
Laneywhich target is staying alive when it shouldn't?17:14
OvenWerksAll of them17:14
Laneyyou have some logic in your session manager to end things?17:16
OvenWerkswhen I do a journalctl --user -b after login-logout-login I see only Reached target messages, no Stopped target messages17:16
Laneyfor instance in gnome we start 'gnome-session-shutdown.target', which has Conflicts= on other .targets, which causes them to quit and so on17:16
OvenWerksxfce doesn't seem to have anything like that.17:17
OvenWerksok so this is an xfce bug then.17:17
Laneyand when the user session (the thing you see in loginctl) is ended, it should signal all remaining processes to quit17:18
OvenWerksthat doesn't seem to happen17:18
Laneyget the system in the state with a lingering process, SSH into it, and look at loginctl session-status THAT_SESSION_ID17:19
OvenWerksI tried setting KillUserProcesses=yes in logind.conf but no joy there either17:21
Laneyit should be State: closing17:21
OvenWerksmy laptop takes a while to boot :)17:23
Laneygoing to be disappearing shortly i'm afraid17:38
OvenWerksLaney: after reboot login-logout-login and loginctl shows two sessions17:39
OvenWerks(for the same user17:39
OvenWerks$ loginctl 17:39
OvenWerksSESSION  UID USER SEAT  TTY17:39
OvenWerks     c2 1001 jane seat0    17:39
OvenWerks     c4 1001 jane seat0   17:39
* OvenWerks is using two users joe and jane for testing...17:40
OvenWerksc2 shows State: closing17:40
OvenWerksLaney: setting KillUserProcesses=yes sort of works. It does not work is that user is logged in remotely18:13
OvenWerksbluesabre: it appears that xfce when it shutsdown needs to ask for the exit.target from systemd and then maybe tell logind to exit. (or maybe just tell logind to exit is enough)18:16
OvenWerksxfce4-session-logout sends a debus message to org.xfce.SessionManager18:27
OvenWerksloginctl kill-session $user seems to be the secret sauce that works best19:38
OvenWerkseven with a remote login at the same time, systemd hits the exit.target.19:39
OvenWerkssystemctl --user exit 0  works reall well too19:43
Eickmeyer[m]Cool! Progress!20:16
OvenWerksdbus-send --session --reply-timeout=2000 --type=method_call --dest=org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.Exit  kills things but does not reverse the targets.20:18
OvenWerksThe reason I am looking at dbus sends is because that seems to be the way that a session talks to logind or systemd20:22
OvenWerksbut I don't see a method for go to this target now. There is a set default target method, but I don't know if that would leave it default for next session or even if it would have effect right away.20:25
OvenWerksSo, create a throwaway user to test :)20:34
OvenWerksThes set default target method changes the default target until I delete the link :P so no good20:56
OvenWerkssystemctl --user isolate exit.target goes to that target (isolate???)20:57
OvenWerksand stops all targets in between... but I do not know what dbus message that sends.21:00

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