Hi Guys,
I wrote a script that checks every 10 seconds if there is any bluetooth device active. This means when my Logitech Mediaboard Pro keyboard is sleeping i only have to press my RESET button and it automatically reconnect.
Howto:
- Create the keyaboard.sh file with the following command:
"sudo nano /etc/keyboard.sh"- Put the following code in the file:
while (sleep 10)
do
sudo hidd --search > /dev/null
done- Close and save the file
- sudo nano /etc/init.d/keyboard
- Put the following code in /etc/init.d/keyboard
#!/bin/sh
/etc/keyboard.sh &
exit 0- Close and save the file
- Give both files chmod +X with chmod +x {filename}
- and at last: sudo update-rc.d keyboard defaults
Reboot and check if it works
Bookmarks