Page 1 of 1

Some troubles with bluetooth and MX900

Posted: Fri Aug 19, 2005 9:04 am
by dodik
Hi,

I'm having some troubles with my T42 with bluetooth build-in and my logitech MX900. I managed to connect the mouse to the laptop using bluetooth but each time I restart, I need to run the command :

Code: Select all

sudo hidd --connect 00:07:61:07:32:CD
xmodmap -e "pointer = 1 2 3 6 7 4 5"
and I have to press the button under the mouse. I need to run that as well after a timeout of 5 min.

What can I do ?

I'm having another trouble. I need to run

Code: Select all

xhost +
to enable the fn+F3 functionnality of my thinkpad. I don't know how to enable that each time I restart my computer.

Note: I'm using Ubuntu 5.04 and forgive the poor english of a french thinkpad owner ;)

Posted: Sat Aug 20, 2005 6:42 am
by rossman

Posted: Sat Aug 20, 2005 9:29 am
by dodik
I already tried that, but it doesn't work at all. Thanks anyway.

Re: Some troubles with bluetooth and MX900

Posted: Mon Aug 22, 2005 3:56 pm
by Volker
dodik wrote: I'm having another trouble. I need to run

Code: Select all

xhost +
Do NOT do this. That command disables acces control, now everybody on the internet can read what you type and take remote screenshots!

Re: Some troubles with bluetooth and MX900

Posted: Mon Aug 22, 2005 4:01 pm
by dodik
Volker wrote:
dodik wrote: I'm having another trouble. I need to run

Code: Select all

xhost +
Do NOT do this. That command disables acces control, now everybody on the internet can read what you type and take remote screenshots!
What can I do then ? I need to lock my machine using fn + F3 but I can't if I don't type xhost +

Posted: Mon Aug 22, 2005 4:01 pm
by Volker
My T41 works like a charm with the MX900. Automatically reconnecs after standby/reboots, too. You must have "hidd -server" running in the background ("service hidd start" in FC4).

Do you have something like the following in /etc/bluetooth/hcid.conf:

Code: Select all

# Logitech mouse MX900
device 00:07:61:07:32:CD {
        name "%h-%d";
        class 0x120104;
        lm master,accept;
        lp rswitch,hold,sniff,park;
        auth enable;
        encrypt enable;
}

Posted: Mon Aug 22, 2005 4:19 pm
by dodik
Volker wrote:My T41 works like a charm with the MX900. Automatically reconnecs after standby/reboots, too. You must have "hidd -server" running in the background ("service hidd start" in FC4).

Do you have something like the following in /etc/bluetooth/hcid.conf:

Code: Select all

# Logitech mouse MX900
device 00:07:61:07:32:CD {
        name "%h-%d";
        class 0x120104;
        lm master,accept;
        lp rswitch,hold,sniff,park;
        auth enable;
        encrypt enable;
}
can you tell what are the results of the following commands ?

Code: Select all

$ ps aux|grep hcid

Code: Select all

$ ps aux|grep hidd
Can You put your entire /etc/bluetooth/hcid.conf file as well ?

Thanks

Re: Some troubles with bluetooth and MX900

Posted: Tue Aug 23, 2005 4:52 pm
by Volker
dodik wrote:
Volker wrote: Do NOT do this. That command disables acces control, now everybody on the internet can read what you type and take remote screenshots!
What can I do then ? I need to lock my machine using fn + F3 but I can't if I don't type xhost +
Can you move this unrelated question to another thread? Short answer: depends on your setup.

Posted: Tue Aug 23, 2005 4:59 pm
by Volker
This is the configuration for my MX900 with the T41. The /etc/bluetooth/hcid.conf is

Code: Select all

#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.7 2004/12/13 14:16:03 holtmann Exp $
#

# 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 /etc/bluetooth/feed-pin.sh;

        # D-Bus PIN helper
        # dbus_pin_helper;
}

# Default settings for HCI devices
device {
        # Local device name
        #   %d - device id
        #   %h - host name
        name "%h-%d";

        # Local device class
        class 0x120104;

        # 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;
}


# Apple wireless keyboard
device 00:0A:95:xx:xx:xx {
        name "%h-%d";
        class 0x120104;
        lm master,accept;
        lp rswitch,hold,sniff,park;
        auth enable;
        encrypt enable;
}

# Logitech mouse MX900
device 00:07:61:xx:xx:xx {
        name "%h-%d";
        class 0x120104;
        lm master,accept;
        lp rswitch,hold,sniff,park;
        auth enable;
        encrypt enable;
}
The following daemons are running:

Code: Select all

[volker@thinkpad ~]$ ps auxww|grep hcid ; ps auxww|grep hidd
root      1970  0.0  0.1   2160   824 ?        Ss   11:26   0:00 hcid: processing events
root      2023  0.0  0.1   1604   588 ?        Ss   11:26   0:00 /usr/bin/hidd --server

Posted: Wed Aug 24, 2005 2:47 am
by dodik
everything is working fine now with the MX900. Thanks a lot Volker. :D