LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Bluetooth question with Connection Timeout in Bluez-4.99 Package (https://www.linuxquestions.org/questions/linux-hardware-18/bluetooth-question-with-connection-timeout-in-bluez-4-99-package-4175461891/)

linuxbawks 05-14-2013 04:23 AM

Bluetooth question with Connection Timeout in Bluez-4.99 Package
 
I'm running the Bluez-4.99 service for Bluetooth under Debian.
I'm trying to get a HIDD device (Bluetooth input device) to auto-disconnect after timeout.

The setting IdleTimeout=XXX minutes is placed in /etc/bluetooth/input.conf. But it doesn't have any effect. The device is still connected past the timeout.

gdizzle 05-15-2013 06:36 PM

Ok I know really nothing of this but I will have a stab, have your tried the IdleTimeout in seconds?

Can you paste your
Code:

/etc/bluetooth/input.conf

linuxbawks 05-16-2013 03:15 AM

I have this:

Code:

# /etc/bluetooth/input.conf
[General]

IdleTimeout=1

But I'm afraid this config isn't being read because the input-device (a PS3 Bluetooth RC) is not a strict HID device but a "Fake-HID" device.

I'm looking for any other solutions how I can timeout this device's Bluetooth connection.

gdizzle 05-16-2013 06:26 PM

I take it you followed something like this?

http://wiki.xbmc.org/index.php?title..._PS3_BD_Remote
http://forum.xbmc.org/showthread.php?tid=50717

Can you try via MAC address for your device as seen below?

Code:

/etc/input.conf

# This section contains options that are specific to a device
[00:1E:3D:B6:12:7E]
#
# Set a custom idle timeout (in minutes) for this device
IdleTimeout=1

Do you have any other Bluetooth devices connected to the system? If so can you disconnect them an isolate the problem by only pairing the controller?

linuxbawks 05-17-2013 04:16 AM

Yes I'm well aware of those two links.
They work by patching the Bluez package.

I was after something which didn't involve patching.

Edit. I've since found out Bluez-4.101-6-fc18 (Fedora-Core package) provides an auto-timeout of around 10 minutes hardcoded and built-in to the Bluez service.

I'm still interested in any alternative solutions if they possibly exist.


All times are GMT -5. The time now is 07:28 AM.