View previous topic :: View next topic |
Author |
Message |
mathfeel l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 03 Aug 2004 Posts: 700
|
Posted: Wed May 31, 2006 8:37 pm Post subject: bluetooth mouse connection |
|
|
I have a bt mouse, but after reboot, it only start working if I issue
Code: | hidd --connect xx:xx:xx:xx:xx:xx | as root. How do I make it connect automatically for ordinary user?
Here's my /etc/bluetooth/hcid.conf:
Code: | #
# HCI daemon configuration file.
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
#pin_helper /usr/bin/bluepin;
pin_helper /usr/lib/kdebluetooth/kbluepin
#pin_helper /etc/bluetooth/pin-helper
# D-Bus PIN helper
#dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "MyBlueZ (%d)";
# Local device class
class 0x3e0100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
# Authentication and Encryption (Security Mode 3)
#auth enable;
auto disable;
#encrypt enable;
} |
_________________ -----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
beatryder Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1864706406445b6f8183868.jpg)
Joined: 08 Apr 2005 Posts: 1138
|
Posted: Thu Jun 01, 2006 5:10 am Post subject: |
|
|
/etc/conf.d/bluetooth: |
# Bluetooth configuraton file
# Start of hcid (allowed values are "true" and "false")
HCID_ENABLE=true
# Config file for hcid
HCID_CONFIG="/etc/bluetooth/hcid.conf"
# Start sdpd (allowed values are "true" and "false")
SDPD_ENABLE=true
# Start hidd (allowed values are "true" and "false")
HIDD_ENABLE=true
...
|
_________________ Dont make it idiot proof, make it work.
Neucode.org
<suppressed key> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mathfeel l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 03 Aug 2004 Posts: 700
|
Posted: Thu Jun 01, 2006 9:00 am Post subject: |
|
|
beatryder wrote: | /etc/conf.d/bluetooth: |
# Bluetooth configuraton file
# Start of hcid (allowed values are "true" and "false")
HCID_ENABLE=true
# Config file for hcid
HCID_CONFIG="/etc/bluetooth/hcid.conf"
# Start sdpd (allowed values are "true" and "false")
SDPD_ENABLE=true
# Start hidd (allowed values are "true" and "false")
HIDD_ENABLE=true
...
|
|
I already have these settings:
Code: | # Bluetooth configuraton file
# Start of hcid (allowed values are "true" and "false")
HCID_ENABLE=true
# Config file for hcid
HCID_CONFIG="/etc/bluetooth/hcid.conf"
# Start sdpd (allowed values are "true" and "false")
SDPD_ENABLE=true
# Start hidd (allowed values are "true" and "false")
HIDD_ENABLE=true
# Arguments to hidd
HIDD_OPTIONS="--master --server"
# Run hid2hci (allowed values are "true" and "false")
HID2HCI_ENABLE=true
# Bind rfcomm devices (allowed values are "true" and "false")
RFCOMM_ENABLE=true
# Config file for rfcomm
RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
# Start dund (allowed values are "true" and "false")
DUND_ENABLE=false
# Arguments to dund
DUND_OPTIONS="--listen --persist"
# Start pand (allowed values are "true" and "false")
PAND_ENABLE=false
# Arguments to pand
PAND_OPTIONS="--listen --role NAP"
|
_________________ -----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
beatryder Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1864706406445b6f8183868.jpg)
Joined: 08 Apr 2005 Posts: 1138
|
Posted: Thu Jun 01, 2006 2:20 pm Post subject: |
|
|
try these:
/etc/conf.d/bluetooth: |
# Bluetooth configuraton file
# Start of hcid (allowed values are "true" and "false")
HCID_ENABLE=true
# Config file for hcid
HCID_CONFIG="/etc/bluetooth/hcid.conf"
# Start sdpd (allowed values are "true" and "false")
SDPD_ENABLE=true
# Start hidd (allowed values are "true" and "false")
HIDD_ENABLE=true
# Arguments to hidd
HIDD_OPTIONS=""
# Run hid2hci (allowed values are "true" and "false")
HID2HCI_ENABLE=false
# Bind rfcomm devices (allowed values are "true" and "false")
RFCOMM_ENABLE=false
# Config file for rfcomm
RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
# Start dund (allowed values are "true" and "false")
# If you want to use dund, you must install: net-dialup/ppp .
DUND_ENABLE=false
# Arguments to dund
DUND_OPTIONS="--listen --persist"
# Start pand (allowed values are "true" and "false")
PAND_ENABLE=false
# Arguments to pand
PAND_OPTIONS="--listen --role NAP"
|
/etc/bluetooth/hcid.conf: |
#
# HCI daemon configuration file.
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
# pin_helper /usr/bin/bluepin;
pin_helper /usr/lib/kdebluetooth/kbluepin #only if using kde
# D-Bus PIN helper
#dbus_pin_helper;
name "%h via bluetooth (%d)";
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h via bluetooth (%d)";
# Local device class
class 0x3e0100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
# Authentication and Encryption (Security Mode 3)
#auth enable;
#encrypt enable;
}
|
_________________ Dont make it idiot proof, make it work.
Neucode.org
<suppressed key> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|