Skip to content

danielroedl/jabra-busylight

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jabra busy light for Linux

This service watch every 5s the status of pulseaudio source link to Jabra headset, when the source became active the busy light is enable.

Dependencies

  • pulseaudio to detect the state of microphone
  • systemd to start the service
  • jabra-sdk-linux The linux Jabra SDK here
sudo cp udev/99-jabra.rules /etc/udev/rules.d/99-jabra.rules
sudo udevadm control --reload

Build

CGO_LDFLAGS="-Ljabra-sdk-linux_1.12.2.0/JabraLibLinux/library/ubuntu/64-bit" go build

Test

LD_LIBRARY_PATH=jabra-sdk-linux_1.12.2.0/JabraLibLinux/library/ubuntu/64-bit ./jabra-busylight

Deploy

mkdir -p ~/bin/jabra-busylight
cp jabra-busylight ~/bin/jabra-busylight/
cp jabra-sdk-linux_1.12.2.0/JabraLibLinux/library/ubuntu/64-bit/* ~/bin/jabra-busylight/
mkdir -p ~/.config/systemd/user/
cp systemd/jabra-busylight.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable jabra-busylight
systemctl --user start jabra-busylight

Logs

journalctl --user -u jabra-busylight -f

2022/10/01 13:30:11 testing C binding: this line must be print
2022/10/01 13:30:11 attach  Jabra Link 380
2022/10/01 13:30:11 first scan
2022/10/01 13:30:13 attach  Jabra Evolve2 85
2022/10/01 13:30:26 Set busy light on Jabra Evolve2 85 to true
2022/10/01 13:30:36 Set busy light on Jabra Evolve2 85 to false

About

Jabra busy light feature for linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.1%
  • Go 1.9%