Page 1 of 5 123 ... LastLast
Results 1 to 10 of 60

Thread: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Beans
    67

    Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    Hi,

    Recently I bought bluetooth mouse as an addition to my ubuntu 13.04 with xfce.
    The mouse paired strait away and kept going for some time.
    After some time it lost a connection. Restarts of hcpi, deamon or even try to rediscover did not help.
    The only cure was to restart my laptop, where everthing started to work (again for some time and then it stops)

    When mouse stops to work in dmesg i see:

    Code:
    [  912.557942] Bluetooth: hci0 corrupted ACL packet
    [  912.557990] Bluetooth: hci0 ACL packet for unknown connection handle 12
    [  921.829716] Bluetooth: hci0 corrupted ACL packet
    [  921.829751] Bluetooth: hci0 ACL packet for unknown connection handle 12
    [  933.857641] Bluetooth: hci0 corrupted ACL packet
    [  933.857680] Bluetooth: Frame is too short (len 1)
    [  945.556674] Bluetooth: hci0 corrupted ACL packet
    [  945.556801] Bluetooth: hci0 ACL packet for unknown connection handle 12
    [  945.556805] Bluetooth: hci0 ACL packet for unknown connection handle 1
    when i move mouse i see it tried to recconect. The dialog is stuck on "Remote Name Req Complet" for some time.
    And then there is a disconect, and again mouse tries to reconnect.

    Code:
    lech@HP-EliteBook:~$ hcidump 
    HCI sniffer - Bluetooth packet analyzer ver 2.4
    device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
    > HCI Event: Connect Request (0x04) plen 10
        bdaddr 00:1F:20:50:01:B4 class 0x002580 type ACL
    > HCI Event: Command Status (0x0f) plen 4
        Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
    > HCI Event: Connect Complete (0x03) plen 11
        status 0x00 handle 11 bdaddr 00:1F:20:50:01:B4 type ACL encrypt 0x00
    > HCI Event: Command Status (0x0f) plen 4
        Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
    > HCI Event: Read Remote Supported Features (0x0b) plen 11
        status 0x00 handle 11
        Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
    > HCI Event: Command Status (0x0f) plen 4
        Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
    > HCI Event: Remote Name Req Complete (0x07) plen 255
        status 0x00 bdaddr 00:1F:20:50:01:B4 name 'Dell BT Travel Mouse'
    > HCI Event: Disconn Complete (0x05) plen 4
        status 0x00 handle 11 reason 0x16
        Reason: Connection Terminated by Local Host
    > HCI Event: Connect Request (0x04) plen 10
        bdaddr 00:1F:20:50:01:B4 class 0x002580 type ACL
    > HCI Event: Command Status (0x0f) plen 4
        Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
    > HCI Event: Connect Complete (0x03) plen 11
        status 0x00 handle 12 bdaddr 00:1F:20:50:01:B4 type ACL encrypt 0x00
    > HCI Event: Command Status (0x0f) plen 4
        Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
    > HCI Event: Read Remote Supported Features (0x0b) plen 11
        status 0x00 handle 12
        Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
    > HCI Event: Command Status (0x0f) plen 4
        Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
    > HCI Event: Remote Name Req Complete (0x07) plen 255
        status 0x00 bdaddr 00:1F:20:50:01:B4 name 'Dell BT Travel Mouse'
    When I remove the mouse and try to add it again I see it response but in linux the message show up that there was no response from applciation.

    Code:
    > HCI Event: Command Status (0x0f) plen 4
        Create Connection (0x01|0x0005) status 0x00 ncmd 1
    > HCI Event: Connect Complete (0x03) plen 11
        status 0x00 handle 11 bdaddr 00:1F:20:50:01:B4 type ACL encrypt 0x00
    > HCI Event: Command Status (0x0f) plen 4
        Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
    > HCI Event: Read Remote Supported Features (0x0b) plen 11
        status 0x00 handle 11
        Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
    > HCI Event: Command Status (0x0f) plen 4
        Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
    > HCI Event: Remote Name Req Complete (0x07) plen 255
        status 0x00 bdaddr 00:1F:20:50:01:B4 name 'Dell BT Travel Mouse'
    > HCI Event: Command Complete (0x0e) plen 7
        Read RSSI (0x05|0x0005) ncmd 1
        status 0x00 handle 11 rssi -15
    > HCI Event: Command Complete (0x0e) plen 7
        Read Link Quality (0x05|0x0003) ncmd 1
        status 0x00 handle 11 lq 255
    > HCI Event: Command Complete (0x0e) plen 7
        Read Transmit Power Level (0x03|0x002d) ncmd 1
        status 0x00 handle 11 level 3
    > HCI Event: Command Complete (0x0e) plen 7
        Read RSSI (0x05|0x0005) ncmd 1
        status 0x00 handle 11 rssi -13
    > HCI Event: Command Complete (0x0e) plen 7
        Read Link Quality (0x05|0x0003) ncmd 1
        status 0x00 handle 11 lq 255
    > HCI Event: Command Complete (0x0e) plen 7
        Read Transmit Power Level (0x03|0x002d) ncmd 1
        status 0x00 handle 11 level 3
    and after a while we again see

    Code:
        Disconnect (0x01|0x0006) status 0x00 ncmd 1
    > HCI Event: Disconn Complete (0x05) plen 4
        status 0x00 handle 11 reason 0x16
        Reason: Connection Terminated by Local Host
    I would appreciate your help in this topic.

    BR,
    m.
    Last edited by macmus; July 4th, 2013 at 04:38 AM.

  2. #2
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    I know this sounds insane and could be right off the money, but ...

    My wife just bought a wireless mouse that had me bamboozled. After a short period of time, the mouse switches off to save battery power. To get it alive again you need to press the scroll wheel. Have you tried that? Does the mouse work fine then when you have a break and go back to it, it has stopped working?

    As I say, could be totally off the mark just trying to help ...

  3. #3
    Join Date
    Aug 2007
    Beans
    67

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    Quote Originally Posted by Bucky Ball View Post
    . After a short period of time, the mouse switches off to save battery power.
    Well as you can see there are events coming to laptop when I move mouse so i don't think that is a problem here.

    How else I can check logs for bluetooth, maybe it's conflicting with something etc..

  4. #4
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    Quote Originally Posted by macmus View Post
    The only cure was to restart my laptop, where everthing started to work (again for some time and then it stops)
    Hmm.. if you have plenty of time to waste on possibly fruitless experiments : http://ubuntuforums.org/showthread.p...2#post12665382
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  5. #5
    Join Date
    Aug 2007
    Beans
    67

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    Quote Originally Posted by varunendra View Post
    Hmm.. if you have plenty of time to waste on possibly fruitless experiments : http://ubuntuforums.org/showthread.p...2#post12665382
    i see in dmesg when adding mouse for first time:

    Code:
    [  218.395387] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [  218.395398] Bluetooth: HIDP socket layer initialized
    [  218.865333] hid-generic 0005:046D:B006.0001: unknown main item tag 0x0
    [  218.865405] input: Dell BT Travel Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/bluetooth/hci0/hci0:12/input16
    [  218.865581] hid-generic 0005:046D:B006.0001: input,hidraw0: BLUETOOTH HID v1.24 Mouse [Dell BT Travel Mouse] on b8:76:3f:db:05:2f

    i see it is avaialbe in proc bus when it works.

    Code:
    lech@HP-EliteBook:~$ cat /proc/bus/input/devices
    I: Bus=0019 Vendor=0000 Product=0003 Version=0000
    N: Name="Sleep Button"
    P: Phys=PNP0C0E/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0
    U: Uniq=
    H: Handlers=kbd event0 
    B: PROP=0
    B: EV=3
    B: KEY=4000 0 0
    
    I: Bus=0019 Vendor=0000 Product=0005 Version=0000
    N: Name="Lid Switch"
    P: Phys=PNP0C0D/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input1
    U: Uniq=
    H: Handlers=event1 
    B: PROP=0
    B: EV=21
    B: SW=1
    
    I: Bus=0019 Vendor=0000 Product=0001 Version=0000
    N: Name="Power Button"
    P: Phys=LNXPWRBN/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
    U: Uniq=
    H: Handlers=kbd event2 
    B: PROP=0
    B: EV=3
    B: KEY=10000000000000 0
    
    I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
    N: Name="AT Translated Set 2 keyboard"
    P: Phys=isa0060/serio0/input0
    S: Sysfs=/devices/platform/i8042/serio0/input/input3
    U: Uniq=
    H: Handlers=sysrq kbd event3 
    B: PROP=0
    B: EV=120013
    B: KEY=20000 20000000020 0 0 500f02100002 3803078f900d401 feffffdfffefffff fffffffffffffffe
    B: MSC=10
    B: LED=7
    
    I: Bus=0019 Vendor=0000 Product=0000 Version=0000
    N: Name="ST LIS3LV02DL Accelerometer"
    P: Phys=lis3lv02d/input0
    S: Sysfs=/devices/platform/lis3lv02d/input/input4
    U: Uniq=
    H: Handlers=event4 js0 
    B: PROP=0
    B: EV=9
    B: ABS=7
    
    I: Bus=0019 Vendor=0000 Product=0000 Version=0000
    N: Name="HP WMI hotkeys"
    P: Phys=wmi/input0
    S: Sysfs=/devices/virtual/input/input5
    U: Uniq=
    H: Handlers=kbd event5 
    B: PROP=0
    B: EV=33
    B: KEY=4000000000 0 1000700000000 2100400 0 0
    B: MSC=10
    B: SW=22
    
    I: Bus=0019 Vendor=0000 Product=0006 Version=0000
    N: Name="Video Bus"
    P: Phys=LNXVIDEO/video/input0
    S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input6
    U: Uniq=
    H: Handlers=kbd event6 
    B: PROP=0
    B: EV=3
    B: KEY=3e000b00000000 0 0 0
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH HDMI/DP,pcm=7"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input7
    U: Uniq=
    H: Handlers=event7 
    B: PROP=0
    B: EV=21
    B: SW=140
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH HDMI/DP,pcm=3"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input8
    U: Uniq=
    H: Handlers=event8 
    B: PROP=0
    B: EV=21
    B: SW=140
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH Line"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input9
    U: Uniq=
    H: Handlers=event9 
    B: PROP=0
    B: EV=21
    B: SW=2000
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH Mic"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input10
    U: Uniq=
    H: Handlers=event10 
    B: PROP=0
    B: EV=21
    B: SW=10
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH Headphone"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input11
    U: Uniq=
    H: Handlers=event11 
    B: PROP=0
    B: EV=21
    B: SW=4
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH Dock Line Out"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input12
    U: Uniq=
    H: Handlers=event12 
    B: PROP=0
    B: EV=21
    B: SW=40
    
    I: Bus=0011 Vendor=0002 Product=0001 Version=0000
    N: Name="PS/2 Generic Mouse"
    P: Phys=isa0060/serio1/input0
    S: Sysfs=/devices/platform/i8042/serio1/input/input13
    U: Uniq=
    H: Handlers=mouse0 event13 
    B: PROP=0
    B: EV=7
    B: KEY=70000 0 0 0 0
    B: REL=3
    
    I: Bus=0003 Vendor=04f2 Product=b2ef Version=5172
    N: Name="HP HD Webcam [Fixed]"
    P: Phys=usb-0000:00:1a.0-1.3/button
    S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input14
    U: Uniq=
    H: Handlers=kbd event14 
    B: PROP=0
    B: EV=3
    B: KEY=100000 0 0 0
    
    I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
    N: Name="SynPS/2 Synaptics TouchPad"
    P: Phys=isa0060/serio4/input0
    S: Sysfs=/devices/platform/i8042/serio4/input/input15
    U: Uniq=
    H: Handlers=mouse1 event15 
    B: PROP=9
    B: EV=b
    B: KEY=6420 30000 0 0 0 0
    B: ABS=260800011000003
    
    I: Bus=0005 Vendor=046d Product=b006 Version=0124
    N: Name="Dell BT Travel Mouse"
    P: Phys=b8:76:3f:db:05:2f
    S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/bluetooth/hci0/hci0:12/input16
    U: Uniq=00:1f:20:50:01:b4
    H: Handlers=mouse2 event16 
    B: PROP=0
    B: EV=17
    B: KEY=ff0000 0 0 0 0
    B: REL=143
    B: MSC=10
    it seems that for some magical reason it disapears from there at some point.


    When I start move mouse it goes to connection handler 12

    Code:
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH Dock Line Out"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input12
    U: Uniq=
    H: Handlers=event12 
    B: PROP=0
    B: EV=21
    B: SW=40
    
    
    [ 1108.148515] Bluetooth: hci0 corrupted ACL packet
    [ 1108.148553] Bluetooth: hci0 ACL packet for unknown connection handle 12
    [ 1108.148558] Bluetooth: hci0 ACL packet for unknown connection handle 12
    [ 1159.531342] Bluetooth: hci0 corrupted ACL packet
    [ 1159.531384] Bluetooth: Frame is too short (len 1)
    [ 1167.929756] Bluetooth: hci0 corrupted ACL packet
    [ 1167.929799] Bluetooth: Frame is too long (len 8, expected len 5)
    [ 1181.490929] Bluetooth: hci0 corrupted ACL packet
    [ 1181.490980] Bluetooth: hci0 ACL packet for unknown connection handle 12
    instead of 16 which is suppose to be assigned to bluetooth mouse.

    Any reason why all of the suddent 12 take over handler from 16 ? Do I get this behaviour right ?
    Last edited by macmus; July 4th, 2013 at 07:57 PM.

  6. #6
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    Quote Originally Posted by macmus View Post
    ..it seems that for some magical reason it disapears from there at some point.
    Maybe connection error, bad packets, driver crash.... who knows? I don't.

    As for the connection handler, I don't even understand most of it. All I know is that in my experiments, resetting the hub on which bluetooth resides resets bluetooth itself, and the adapter starts working again. However, the connected devices need to be connected again. If this connection is done automatically, then a power-cycle on the mouse should do the job. Definitely annoying, but still better than a system reboot

    The USB hub in your case is "0000:00:1d.0" -
    Code:
    [  218.865405] input: Dell BT Travel Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/bluetooth/hci0/hci0:12/input16
    So you may try-
    Code:
    echo -n "0000:00:1d.0" | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind
    then -
    Code:
    echo -n "0000:00:1d.0" | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind
    If you find an explanation to why the problem occurs, please share with us. Thanks!
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  7. #7
    Join Date
    Aug 2007
    Beans
    67

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    hmm i do not have ehci

    Code:
    root@HP-EliteBook:~# echo -n "0000:00:1d.0" | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind
    tee: /sys/bus/pci/drivers/ehci_hcd/unbind: No such file or directory
    0000:00:1d.0root@HP-E
    root@HP-EliteBook:~# 
    root@HP-EliteBook:~# 
    root@HP-EliteBook:~# 
    root@HP-EliteBook:~# cat /sys/bus/pci
    pci/         pci_express/ 
    root@HP-EliteBook:~# cat /sys/bus/pci
    pci/         pci_express/ 
    root@HP-EliteBook:~# cat /sys/bus/pci/
    devices/            drivers_autoprobe   rescan              slots/              
    drivers/            drivers_probe       resource_alignment  uevent              
    root@HP-EliteBook:~# cat /sys/bus/pci/
    devices/            drivers_autoprobe   rescan              slots/              
    drivers/            drivers_probe       resource_alignment  uevent              
    root@HP-EliteBook:~# cat /sys/bus/pci/

  8. #8
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    Quote Originally Posted by macmus View Post
    hmm i do not have ehci
    Uh.. it was an assumption, I forgot to ask to confirm which one you have in use. It maybe uhci, xhci.. just run -
    [code]usb-devices[code]
    to see which one is used for that bus. Replace ehci with that one.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  9. #9
    Join Date
    Aug 2007
    Beans
    67

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    ok i found out

    Code:
    lech@HP-EliteBook:~$ echo -n "0000:00:1d.0" | sudo tee /sys/bus/pci/drivers/ehci-pci/bind
    0000:00:1d.0lech@HP-EliteBook:~$ 
    lech@HP-EliteBook:~$ 
    lech@HP-EliteBook:~$ echo -n "0000:00:1d.0" | sudo tee /sys/bus/pci/drivers/ehci-pci/unbind
    0000:00:1d.0lech@HP-EliteBook:~$
    I did try to pair but same result... Once it gone only restarts helps...

  10. #10
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Bluetooth mouse stops to work after random time Ubuntu 13.04 on laptop

    Quote Originally Posted by macmus View Post
    ok i found out

    Code:
    lech@HP-EliteBook:~$ echo -n "0000:00:1d.0" | sudo tee /sys/bus/pci/drivers/ehci-pci/bind
    0000:00:1d.0lech@HP-EliteBook:~$ 
    lech@HP-EliteBook:~$ 
    lech@HP-EliteBook:~$ echo -n "0000:00:1d.0" | sudo tee /sys/bus/pci/drivers/ehci-pci/unbind
    0000:00:1d.0lech@HP-EliteBook:~$
    I did try to pair but same result... Once it gone only restarts helps...
    Now it's getting 'little' over my head. The output of usb-devices (and standard way of calling it) clearly lists the driver as "ehci_hcd".

    Anyway, if you really actually tried the commands in the above sequence, you ended up 'removing' the driver from the bus. The sequence of running those commands should be opposite (first you 'unbind', THEN 'bind' again). This is in consistence to your statement that the command (sequence) makes it gone, and only a reboot enables it again.

    Also, since I'm not sure about whether we got it right, I think you should manually browse to the /sys/bus/pci/drivers/ehci-pci/ directory, and see if the "0000:00:1d.0" 'link' appears there. If not, we're trying at a wrong address. (oh, but then again, that's the only address we've got ! So it must be the correct one !)
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •