linux:linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:linux [2017/06/07 13:57] – cipibad | linux:linux [2017/06/07 14:22] (current) – cipibad | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| </ | </ | ||
| - | ====== usb headphone ====== | + | ====== usb headphone |
| - find device | - find device | ||
| < | < | ||
| Line 93: | Line 93: | ||
| ..... | ..... | ||
| </ | </ | ||
| + | - create udev rules file (''/ | ||
| + | **ionescu** with your username) | ||
| + | < | ||
| + | KERNEL==" | ||
| + | / | ||
| + | </ | ||
| + | - create / | ||
| + | < | ||
| + | #!/bin/sh | ||
| + | / | ||
| + | </ | ||
| + | - create / | ||
| + | < | ||
| + | #!/bin/sh | ||
| + | |||
| + | PULSE_SERVER=" | ||
| + | |||
| + | SINK_NAME=" | ||
| + | |||
| + | SINK_LIST_CMD=" | ||
| + | |||
| + | nSinks=`$SINK_LIST_CMD | grep "Name: $SINK_NAME" | ||
| + | tries=0 | ||
| + | MAX_TRIES=10 | ||
| + | |||
| + | while [ $nSinks -ne 1 -a $tries -lt $MAX_TRIES ]; do | ||
| + | nSinks=`$SINK_LIST_CMD | grep "Name: $SINK_NAME" | ||
| + | tries=$((tries+1)) | ||
| + | sleep 1 | ||
| + | done | ||
| + | |||
| + | pactl --server " | ||
| + | .analog-stereo | ||
| + | </ | ||
| + | - make the two new files executable | ||
| + | < | ||
| + | $ chmod +x / | ||
| + | </ | ||
| + | - double check and adapt to your environment (username/ | ||
linux/linux.1496843848.txt.gz · Last modified: by cipibad
