# Keep host audio devices

**URL:** <https://community.thinlinc.com/t/keep-host-audio-devices/809>\
**Category:** Community Support\
**Tags:** tlserver\
**Created:** [20 December 2023 08:57 UTC](https://community.thinlinc.com/t/keep-host-audio-devices/809 "2023-12-20T08:57:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kapsonfire](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kapsonfire](https://community.thinlinc.com/u/Kapsonfire)\
**Post date:** [20 December 2023 08:57 UTC](https://community.thinlinc.com/t/keep-host-audio-devices/809/1 "2023-12-20T08:57:36Z")

</div>

I try to keep my audio devices when I connect via thinlinc.  
I’ve tried disabling AUDIO in the client connection settings and to stop pulseaudio startup.  
Neither works - stopping pulseaudio startup ends up with no audio devices on my freshly installed debian 12 bookworm.

But what works is, connecting and killing the pulseaudio devices in an specific order

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/martin/32/41_2.png) [@martin](https://community.thinlinc.com/u/martin)\
**Post date:** [20 December 2023 12:11 UTC](https://community.thinlinc.com/t/keep-host-audio-devices/809/2 "2023-12-20T12:11:55Z")

</div>

Heya @Kapsonfire,

I’m not really sure what you are trying to achieve. Could you elaborate a bit more, please?

Regards,  
Martin

---

<div class="post-metadata">

**Author:** ![Kapsonfire](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kapsonfire](https://community.thinlinc.com/u/Kapsonfire)\
**Post date:** [20 December 2023 12:28 UTC](https://community.thinlinc.com/t/keep-host-audio-devices/809/3 "2023-12-20T12:28:52Z")

</div>

I still want to be able to use my Bluetooth Headset (usb dongled) which is plugged in on the host system.  
But this doesnt work, because when I connect via thinlinc to it, it will remove all local audio devices from the host system until I kill the audio pulses processes.

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/martin/32/41_2.png) [@martin](https://community.thinlinc.com/u/martin)\
**Post date:** [20 December 2023 15:15 UTC](https://community.thinlinc.com/t/keep-host-audio-devices/809/4 "2023-12-20T15:15:09Z")

</div>

Aside from disabling the audio in the client and removing the pulseaudio upstart by removing the symlink `/opt/thinlinc/etc/xstartup.d/43-tl-pulseaudio-launch.sh`, you also need to unset the PULSE\_COOKIE and PULSE\_SERVER env variables:

```auto
$ unset PULSE_COOKIE
$ unset PULSE_SERVER

```

By doing this, I’m able to get some working out of my server’s soundbar:

```auto
maros@ubuntu-client:~$ mpg123 file_example_MP3_700KB.mp3 
Playing MPEG stream 1 of 1: file_example_MP3_700KB.mp3 ...

```

I’m not sure about the bluetooth stuff yet…  
Regards,  
Martin

---

<div class="post-metadata">

**Author:** ![Kapsonfire](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kapsonfire](https://community.thinlinc.com/u/Kapsonfire)\
**Post date:** [20 December 2023 15:27 UTC](https://community.thinlinc.com/t/keep-host-audio-devices/809/5 "2023-12-20T15:27:50Z")

</div>

Thank you very much - its working.  
I’ve created a 00-disable-pulse.sh in the startup dir unsetting both envs and i’ve got my devices working.

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/martin/32/41_2.png) [@martin](https://community.thinlinc.com/u/martin)\
**Post date:** [20 December 2023 15:58 UTC](https://community.thinlinc.com/t/keep-host-audio-devices/809/6 "2023-12-20T15:58:30Z")

</div>

Great. How about your bluetooth though ?

---

<div class="post-metadata">

**Author:** ![Kapsonfire](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kapsonfire](https://community.thinlinc.com/u/Kapsonfire)\
**Post date:** [20 December 2023 16:39 UTC](https://community.thinlinc.com/t/keep-host-audio-devices/809/7 "2023-12-20T16:39:44Z")

</div>

Just works. other bluetooth devices still work - headset is working now since it was just registered as audio device
