top of page
  • Writer's pictureIGEL Community

Automatically Connect Bluetooth Headsets and Enable HSP Mode for Bidirectional Audio on IGEL OS

Written by David Seeber, IGEL Community INSIDER

Hello everyone, I had a recent case where a customer wanted his Bluetooth headset to automatically be in HSP (Headset Profile) mode. By default, IGEL OS seems to connect Bluetooth headsets in A2DP mode (suitable for high-quality audio but no mic input).

However, it's possible to run a command to switch to headset mode. To achieve this, you can do the following:

  • Go to System > Firmware Customization > Custom Applications

  • Add a new Custom Application

  • Under Settings, add the following test into the Command box:

bluetoothctl connect $(bluetoothctl paired-devices | awk '{print $2}'); su user; pactl set-card-profile $(pactl list cards short | grep bluez | awk '{print $2}') headset_head_unit

  • The above command will automatically connect an already-paired Bluetooth headset and enable the "HSP" mode for bidirectional audio.

  • I found that I also had to disable the following setting so that the audio device would work correctly inside Citrix: System > Registry > ica.module.vdcamversion4support

  • To make sure that the command runs at startup, go to Desktop Integration and tick Autostart, but untick Autostart requires network

  • Lastly, if you want to, you can hide the desktop shortcut by unticking Desktop under Desktop Integration > Starting Methods.

You can check if it worked by right-clicking the desktop and opening Sound Preferences. The Audio Input tab should show Headset Head Unit (see screenshot). If this solution comes in handy for you, please let me know!

bottom of page