Here is a nifty acpi script to mute audio when you unplug your headphones. Save it as ~/.unplug-mute.sh 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 #!/bin/bash 2 3 case "$1" in 4 jack/headphone) 5 case "$3" in 6 plug) 7 amixer set Master unmute 8 amixer set Headphone unmute 9 ;; 10 unplug) 11 amixer set Master mute 12 ;; 13 esac 14 ;; 15 esac Then edit /etc/acpi/events/headphone-plug to:
I have an HTPC running Kodi (Formerly XMBC) and I’ve been trying to get an old IR remote working with it. I’ve got Kore on android currently controlling Kodi, but I wanted to see if I could get an old Microsoft Media Center PC’s IR receiver to work. I used one of these receivers: I couldn’t find the actual MCE remote that went with the receiver, so I used this Sony DVD player remote, but any remote should work.
For one of my upcoming projects, I will need to exchange data between a server and an arduino wirelessly. I have a few NRF24L01 RF tranceivers that would work, but I’d need another arduino or raspberry pi with another NRF24L01 hooked up to my server. I’d like to avoid that. Wi-Fi would be ideal, but I don’t want to wait on an ESP8266 module from China and Wi-Fi shields are expensive.