Gentoo Archives: gentoo-user

From: Florian Philipp <lists@××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Bluez hcid.conf syntax
Date: Thu, 11 Dec 2008 16:16:09
Message-Id: 49413CB1.1000609@f_philipp.fastmail.net
In Reply to: [gentoo-user] Bluez hcid.conf syntax by Florian Philipp
1 Florian Philipp schrieb:
2 > Hi list!
3 >
4 > I have a minor problem:
5 >
6 > I recently bought a Microsoft Presenter Mouse (I know, shame on me, but
7 > it's the only affordable device with this kind of functionality).
8 >
9 > So far, it works as expected:
10 > - it works out of the box with the Microsoft dongle
11 > - it works with my normal bluetooth adapter with some fine tuning (see
12 > below)
13 > - its special keys will need some additional configuration
14 >
15 > However, there is one problem: It only works with deactivated
16 > authentication and encryption. This is no problem by itself: You can
17 > activate and deactivate these options in /etc/bluetooth/hcid.conf on a
18 > per-device basis but for some reason this doesn't seem to work:
19 >
20 >
21 > [...]
22 >
23 > # Default settings for HCI devices
24 > device {
25 > [...]
26 > auth enable;
27 > encrypt enable;
28 > }
29 >
30 > device 00:1D:D8:35:C4:39 {
31 > name “Microsoft Wireless Notebook Presenter Mouse 8000”;
32 > auth disable;
33 > encrypt disable;
34 > }
35 >
36 > When I use this configuration I'm asked for a PIN for the connection,
37 > which - naturally - doesn't work. When I disable auth and encrypt for
38 > all devices, it works.
39 >
40 > Have I misunderstood the syntax for this file?
41 >
42 > Thanks in advance!
43 >
44 > Florian Philipp
45 >
46
47 This thread is cold as ice but in case someone stumbles upon it: The
48 solution is to put device-specific settings above the default other
49 settings in your config file.