race conditions for bluetooth audio devices with multiple local desktop logins
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
race conditions for bluetooth audio devices with multiple local desktop logins
I often have multiple desktop sessions running, for more than one logged in user.
When connecting to a Bluetooth headset, the audio device becomes available for one user only, and often not the one with a desktop on the active virtual terminal.
How may I prevent the audio device from becoming available only on an inactive desktop session?
I am running Linux Mint 20.3. The desktop environment for all users is Cinnamon 5.2.7, and the desktop manager is Light DM.
I guess the audio device was initialized when you logged in - therefore the section was active.
Probably you need to disable audio completely for all users except the preferred one.
I guess the audio device was initialized when you logged in - therefore the section was active.
Probably you need to disable audio completely for all users except the preferred one.
I need a solution less nuclear. Other users still need audio, preferably with the ability to connect to a Bluetooth device when the corresponding session is active on the terminal. Audio devices should appear for the user that created the Bluetooth connection, without any race conditions.
and how can you check which one is the currently active session? Are they all sit in front of the same pc?
How a person or software component would check the active session depends very much on the context, but the active session refers to the one associated with the selected virtual terminal, that is, the one displayed on the monitor and receiving input from the terminal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.