You are not logged in.
Networking & sound stops when I switch to tty2. I log in with two users: user1 in tty1 and user2 in tty2. User1 starts play music via Spotify/YT. After switching to user2 after some delay music stops as well as networking (Messenger/Slack notifications).
I am using Fluxbox, NetworkManager and PuleAudio with cookie shared between users to allow share sound.
Mod edit -- Remove payment offer -- V1del
Last edited by V1del (2022-10-25 12:20:16)
Offline
Please don't offer rewards or bounties here, this is a volunteer driven board and no one should be expecting monetary compensation for the help they give here.
This sounds more like an issue with the distinct DBUS sessions rather than networking. What's the output of
printenv | grep DBUSfrom both users.
Offline
user1: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
user2: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1004/bus
A user1 is my "main" user which I log first and run PulseAudio server
Offline
So you definitely have distinct DBUS sessions, how exactly did you set up the sharing of the cookie? Are you running one server and others connect to that server or are maybe multiple started now?
systemctl --user status pulseaudio
sudo fuser -v /dev/snd/*from both?
That notifications (I'm assuming you are expecting notifications from one workspace to pop on the other?) are going to be broken can be explained by the dbus session. What's your general motivation behind this separation of users?
Offline
Yes, user1 run PulseAudio server where user2 connects to it via IP default-server = 127.0.0.1 in ~/.config/pulse/client.conf, has empty ~/.config/pulse/default.pa and copied ~/.config/pulse/cookie from user1.
user1
systemctl --user status pulseaudio
● pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; preset: enabled)
Active: active (running) since Tue 2022-10-25 17:04:32 CEST; 1min 30s ago
TriggeredBy: ● pulseaudio.socket
Main PID: 1613 (pulseaudio)
Tasks: 5 (limit: 38316)
Memory: 43.1M
CPU: 1.164s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pulseaudio.service
└─1613 /usr/bin/pulseaudio --daemonize=no --log-target=journal
Oct 25 17:04:30 user1pc systemd[1041]: Starting Sound Service...
Oct 25 17:04:32 user1pc pulseaudio[1613]: module-rescue-stream is obsolete and should no longer be loaded. Please remove it from your configuration.
Oct 25 17:04:32 user1pc systemd[1041]: Started Sound Service.
Oct 25 17:04:32 user1pc pulseaudio[1613]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)?
Oct 25 17:04:32 user1pc pulseaudio[1613]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)?
sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: user1 F.... pulseaudio
/dev/snd/controlC1: user1 F.... pulseaudio
/dev/snd/controlC2: user1 F.... pulseaudio
/dev/snd/controlC3: user1 F.... pulseaudio
/dev/snd/pcmC3D0p: user1 F...m pulseaudio
user2
systemctl --user status pulseaudio
○ pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; preset: enabled)
Active: inactive (dead)
TriggeredBy: ● pulseaudio.socket
sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: user1 1613 F.... pulseaudio
/dev/snd/controlC1: user1 1613 F.... pulseaudio
/dev/snd/controlC2: user1 1613 F.... pulseaudio
/dev/snd/controlC3: user1 1613 F.... pulseaudio
/dev/snd/pcmC3D0p: user1 1613 F...m pulseaudioAbout notifications I expect to hear sound when message arrives on user1 when I am currently on user2 (tty2) and vice versa. I also noticed that Messenger or Gmail used to pop up information "Reconnecting in 30s" after I switch.
My motivation is to separate personal and work environments. It was easy to manage history of Youtube/Google searches, set different environment variables for programming to distinguish which are required to work, have clean desktop while screen sharing, easier to jump over opened windows while working, have ability to drop whole user and his data when I change job ![]()
Last edited by Ukreskowane (2022-10-25 15:33:57)
Offline