This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Automatic connect of bluetooth mouse - how?

Tags: None
(comma "," separated)
User avatar
scottyo
Registered Member
Posts
6
Karma
0
OS
I can't find a setting in kbluetooth4 to automatically connect to my mouse at start up. I have to manually "connect" each time. I can install hidd but it is going away. Is there something I'm missing with kbluetooth4?

Using KDE 4.2.2 with Kbluetooth 0.3. Thanks.
User avatar
scottyo
Registered Member
Posts
6
Karma
0
OS
Since this post has had several views, I'm guessing there's some interest. Since I can't figure out how to make the kbluetooth4 applet do what I need, I reverted to hidd. Steps:
sudo apt-get install bluez-compat
sudo hidd --search
(and press the connect button on your mouse - or twiddle all the buttons until hidd reports "connected to device xx:xx:xx:xx:xx:xx" - write down this address)
Edit /etc/rc.local and insert the line
hidd --server --connect xx:xx:xx:xx:xx:xx
(using the address above)
Now when you boot up, your mouse is automatically connected.
There's probably other ways to do this, but this worked for me.
User avatar
Petronov
Registered Member
Posts
14
Karma
0
OS
Thank you for your tip, Scottyo.

I'm going to try it your way.


Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
On my openSUSE 11.2 install, bluetoothd automatically connects to my Bluetooth Headset when it becomes available.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Philip Keiter
Registered Member
Posts
5
Karma
0
OS
On my 64-bit Linux Mint 16 KDE, bluetooth does not automatically connect to my Bluetooth Headset when it becomes available. It remembers it and gives it a connect button in the system tray. But it will not do it automatically.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This behaviour is likely governed to a certain extent by the bluetoothd default settings, as well as the device itself - some headsets / mice will reconnect automatically, while others will wait for the computer to initiate the connection.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Philip Keiter
Registered Member
Posts
5
Karma
0
OS
My bluetooth headset auto connects to every other device I've owned when they are power on. Do you know where the bluetoothd default settings are?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
They're in /etc/bluetooth/ I believe.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Philip Keiter
Registered Member
Posts
5
Karma
0
OS
tempest4d2
Registered Member
Posts
3
Karma
0
I was able to get this working useing bluetoothd
I edited the file /etc/bluetooth/rfcomm.conf :

rfcomm0 {
# Automatically bind the device at startup
bind no;

# Bluetooth address of the device
device 11:22:33:AA:BB:CC;

# RFCOMM channel for the connection
channel 1;

# Description of the connection
comment "Wireless Trackpad";
}

... then I also added bluetoothd to /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

bluetoothd

exit 0

so I really just combined bcooksley and scottyo's advice.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]