bose-usbfix/README.md

27 lines
845 B
Markdown
Raw Normal View History

2020-10-06 19:40:39 +00:00
## Bose Companion 5 - Fix Sound (Linux)
2018-09-20 02:48:06 +00:00
I got really fed up with the sound constantly cutting out on the Bose Companion 5, and so made this. Bose should really fix the issue, as all this does is perform a reset of the device whenever it happens.
2020-10-06 19:45:53 +00:00
The program uses lsusb to enumerate the USB devices and determine USB bus ID and device ID. It then uses ioctl to call USBDEVFS_RESET to reset that specific USB device. Documentation on this can be found here: https://www.kernel.org/doc/Documentation/driver-api/usb/usb.rst
2020-10-06 19:40:39 +00:00
### Requirements
* Go
2020-10-06 19:45:53 +00:00
* GNU or Busybox, anything which provides *lsusb*
2020-10-06 19:40:39 +00:00
### Building
First install Go and then run:
2018-09-20 02:48:06 +00:00
```shell
go build
2018-09-20 02:54:00 +00:00
go install
2020-10-06 19:40:39 +00:00
```
2018-09-20 02:54:00 +00:00
2020-10-06 19:40:39 +00:00
### Usage
I typically bind a sequence using my window manager to execute the application - but you can also just run it from a terminal.
```shell
2018-09-20 02:54:00 +00:00
bose-usbfix
2018-09-20 02:48:06 +00:00
```