Some troubles with bluetooth and MX900

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
dodik
Posts: 27
Joined: Mon Jul 19, 2004 12:12 pm

Some troubles with bluetooth and MX900

#1 Post by dodik » Fri Aug 19, 2005 9:04 am

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 ;)
Image ThinkPad T42 2373-CXG Pentium-m 1,8GHz, 512Mo DDR, ATI Radeon 9600 64Mo, Hitachi TravelStar 5K80, DVD/CD-RW, 802.11 b/g, Bluetooth, 15'' SXGA+

rossman
Posts: 26
Joined: Tue May 03, 2005 5:53 am

#2 Post by rossman » Sat Aug 20, 2005 6:42 am


dodik
Posts: 27
Joined: Mon Jul 19, 2004 12:12 pm

#3 Post by dodik » Sat Aug 20, 2005 9:29 am

I already tried that, but it doesn't work at all. Thanks anyway.
Image ThinkPad T42 2373-CXG Pentium-m 1,8GHz, 512Mo DDR, ATI Radeon 9600 64Mo, Hitachi TravelStar 5K80, DVD/CD-RW, 802.11 b/g, Bluetooth, 15'' SXGA+

Volker
Junior Member
Junior Member
Posts: 482
Joined: Fri Oct 01, 2004 10:21 am
Location: Dublin, Ireland
Contact:

Re: Some troubles with bluetooth and MX900

#4 Post by Volker » Mon Aug 22, 2005 3:56 pm

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!

dodik
Posts: 27
Joined: Mon Jul 19, 2004 12:12 pm

Re: Some troubles with bluetooth and MX900

#5 Post by dodik » Mon Aug 22, 2005 4:01 pm

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 +
Image ThinkPad T42 2373-CXG Pentium-m 1,8GHz, 512Mo DDR, ATI Radeon 9600 64Mo, Hitachi TravelStar 5K80, DVD/CD-RW, 802.11 b/g, Bluetooth, 15'' SXGA+

Volker
Junior Member
Junior Member
Posts: 482
Joined: Fri Oct 01, 2004 10:21 am
Location: Dublin, Ireland
Contact:

#6 Post by Volker » Mon Aug 22, 2005 4:01 pm

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

dodik
Posts: 27
Joined: Mon Jul 19, 2004 12:12 pm

#7 Post by dodik » Mon Aug 22, 2005 4:19 pm

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
Image ThinkPad T42 2373-CXG Pentium-m 1,8GHz, 512Mo DDR, ATI Radeon 9600 64Mo, Hitachi TravelStar 5K80, DVD/CD-RW, 802.11 b/g, Bluetooth, 15'' SXGA+

Volker
Junior Member
Junior Member
Posts: 482
Joined: Fri Oct 01, 2004 10:21 am
Location: Dublin, Ireland
Contact:

Re: Some troubles with bluetooth and MX900

#8 Post by Volker » Tue Aug 23, 2005 4:52 pm

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.

Volker
Junior Member
Junior Member
Posts: 482
Joined: Fri Oct 01, 2004 10:21 am
Location: Dublin, Ireland
Contact:

#9 Post by Volker » Tue Aug 23, 2005 4:59 pm

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

dodik
Posts: 27
Joined: Mon Jul 19, 2004 12:12 pm

#10 Post by dodik » Wed Aug 24, 2005 2:47 am

everything is working fine now with the MX900. Thanks a lot Volker. :D
Image ThinkPad T42 2373-CXG Pentium-m 1,8GHz, 512Mo DDR, ATI Radeon 9600 64Mo, Hitachi TravelStar 5K80, DVD/CD-RW, 802.11 b/g, Bluetooth, 15'' SXGA+

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 4 guests