Getting a Bluetooth keyboard to connect at start-up

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
panmanthe2nd

Getting a Bluetooth keyboard to connect at start-up

Post by panmanthe2nd »

Hi, :)

I've got a Bluetooth keyboard, which I've paired with my Raspberry Pi, following this guild: http://thepihut.com/blogs/raspberry-pi- ... spberry-pi

I've added

Code: Select all

sudo hidd -i hci0 --connect 20:73:AB:15:38:E8
to the /etc/rc.local file, and during booting it says
[ok] Starting bluetooth: bluetoothhd rfcoom.
but it also says
[FAIL] startpar: service(s) returned fallure: rc.local ... failed!
And the Bluetooth keyboard doesn't work unless I boot into the GUI and re-connect it.

As you may know, I'm running a script at login: http://dietpi.com/phpbb/viewtopic.php?f=9&t=86 - Is that causing the problem?

Is there an easy way to fix this, or should I just use USB?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Getting a Bluetooth keyboard to connect at start-up

Post by Fourdee »

panmanthe2nd wrote:Hi, :)

I've got a Bluetooth keyboard, which I've paired with my Raspberry Pi, following this guild: http://thepihut.com/blogs/raspberry-pi- ... spberry-pi

I've added

Code: Select all

sudo hidd -i hci0 --connect 20:73:AB:15:38:E8
to the /etc/rc.local file, and during booting it says
[ok] Starting bluetooth: bluetoothhd rfcoom.
but it also says
[FAIL] startpar: service(s) returned fallure: rc.local ... failed!
And the Bluetooth keyboard doesn't work unless I boot into the GUI and re-connect it.

As you may know, I'm running a script at login: http://dietpi.com/phpbb/viewtopic.php?f=9&t=86 - Is that causing the problem?

Is there an easy way to fix this, or should I just use USB?
The error is most likely caused by Sudo. Sudo is not installed by default on DietPi systems, as its not required for root users.

You can resolve the error by either:
- apt-get install sudo
or
- remove sudo from your code in /etc/rc.local

Hopefully that should resolve the issue.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
panmanthe2nd

Re: Getting a Bluetooth keyboard to connect at start-up

Post by panmanthe2nd »

Hi, :)

Sorry it's taken me so long to get back, but I've only just been able to try it out.

I had already installed sudo, but I have now tried doing it without the sudo bit, and it didn't come up with the same error message.

Instead it now says "hidd not found", so I'm wondering if it's a fault with the keyboard or dongle? Although it does find it if I boot into the gui.

Anyway, I'm going to use a wired keyboard now, so I'm not to worried.

Thank you for helping.
Post Reply