This had me flummoxed for a while, if I wanted my HTC ONE-X or Jabra Clipper to connect to the PC, I always had to go into devices and then select audio sink before it would connect, this is having previously paired and trusted the devices.
A foray into /etc/bluetooth/ showed all the .conf files for bluetooth, including audio.conf.
In there is a setting for auto-connection. All you have to do is remove the comment from the last line of the coda, save out then restart bluetooth, and your devices should automagically connect next time you try
# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
This is going to be of great help when using bluetooth headphones on our htpc, and also with my carpc for either connecting the phone to the car, or for other bluetooth uses (yet to be discovered but keyboard or remote possibilities)
Looking at setting up an Aux In connection to the car so needed to see what I have tucked away in the boot. The radio removal is straight foward, only a two nuts at the top on a bracket need … Continue reading →
Here is a nice little bash script that will keep repeating the same video over and over. I guess with a bit more work you could have more than one. In this case I used test.mp4 as the video, and as it was only 2 minutes long set a sleep time of 90 seconds. Amend these two parameters to suit
You may have a need to speed up / slow down and audio file, but would rather not be listening to chipmunks or very deep voices in the process. Also, you may wish to change the pitch of a file whilst maintaining the tempo.
Changing the tempo whilst retaining the same pitch:
this will speed up the playback of the file whilst retaining the same pitch
Just for mp3’s but this works well for Audacious, so might work well for other players too….
It’s a bash script, let’s call it playlistmaker.sh so copy the code and make sure you make it executable.
To run it, you simply need to feed the script a directory location and filename and it will produce a playlist you can put anywhere on the same system:
This points the script at ~/Music and names the playlist music.m3u (which gets saved in your current directory). It will give you full paths to each file, for all mp3 files, recursively. You can of course expand the script by running the line several times and hard coding the directories and filenames, so you can easily update static playlists for specific directories that you might add to regularly.