Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 60

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

  1. #31
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,175
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Quote Originally Posted by macmus View Post
    workaround is

    "I deactivated it with usbcore.autosuspend=-1 appended to the kernel command line"

    but where i should put this line ?
    To test it temporarily, bring up the Grub menu (if it doesn't come up by default) by pressing a key during boot, then press "e" to edit the boot line. Then type usbcore.autosuspend=-1 at the end (and before the last "--") of the boot line. Make sure the line ends with the hypens that are in the last. Then Ctrl+X to boot with the option.

    If it seems to work (or if you want to make it permanent anyway), add the usbcore.autosuspend=-1 line in the relevant line in /etc/default/grub file, then update grub. Here's how -

    Open the '/etc/default/grub file -
    Code:
    gksu gedit /etc/default/grub
    Then look for the line "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"".

    Add the parameter usbcore.autosuspend=-1 in-between the quotes before quiet splash. It should look like -
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="usbcore.autosuspend=-1 quiet splash"
    Proofread, save and close the file.

    Now update grub -
    Code:
    sudo update-grub
    On next boot, the os will boot with the parameter you added above. To reset it to default, just remove it again from the /etc/default/grub file and redo "update-grub".

    Good luck!
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags
    Am I not replying your post? This is why.

  2. #32
    Join Date
    Aug 2007
    Beans
    67

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

    ok the kernel option did not help (

    what is more mouse do not show up after restart, unbid, bind again in /proc/bus/input/device

    the closing/opening lid after mouse failing to respond still solves the issue Is there any way to copy filimar beaviour in regards to bluetooth driver?
    Last edited by macmus; July 9th, 2013 at 07:48 AM.

  3. #33
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,175
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Quote Originally Posted by macmus View Post
    Is there any way to copy filimar beaviour in regards to bluetooth driver?
    There is definitely a way, only I don't yet know how/where to find it (it is a group of drivers that is set to "SUSPEND" at sleep). It can be any of the drivers I quoted in post #30, and/or can be embedded drivers like ehci.

    Modifications to this list is added in /etc/pm/config.d, or /etc/pm/sleep.d directory. But I am yet to figure out where the original list (or dynamic selection script, whatever) is located. One possible location is /usr/lib/pm-utils directory. I may start looking (brute-forcing ) from there if couldn't find help on net. You should do the same.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags
    Am I not replying your post? This is why.

  4. #34
    Join Date
    Aug 2007
    Beans
    67

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

    I found out something more. When mouse stops working it seems it's not added back to x.org.
    When it disconnects I see in log 3 lines:

    Code:
    root@HP-EliteBook:~# tail -3 /var/log/Xorg.0.log
    [  7562.456] (II) config/udev: removing device Dell BT Travel Mouse
    [  7562.480] (II) evdev: Dell BT Travel Mouse: Close
    [  7562.480] (II) UnloadModule: "evdev"

    when i close/open lid of laptop i see following lines sowing up:

    Code:
    [  7787.992] (II) PM Event received: Capability Changed
    [  7791.408] (II) AIGLX: Suspending AIGLX clients for VT switch
    [  7794.934] (II) Open ACPI successful (/var/run/acpid.socket)
    [  7794.934] (II) AIGLX: Resuming AIGLX clients after VT switch
    [  7794.934] (II) intel(0): switch to mode 1366x768 on pipe 0 using LVDS1
    [  7795.044] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
    [  7799.457] (II) config/udev: Adding input device Dell BT Travel Mouse (/dev/input/mouse2)
    [  7799.457] (II) No input driver specified, ignoring this device.
    [  7799.457] (II) This device may have been added with another device file.
    [  7799.457] (II) config/udev: Adding input device Dell BT Travel Mouse (/dev/input/event16)
    [  7799.457] (**) Dell BT Travel Mouse: Applying InputClass "evdev pointer catchall"
    [  7799.457] (II) Using input driver 'evdev' for 'Dell BT Travel Mouse'
    [  7799.457] (**) Dell BT Travel Mouse: always reports core events
    [  7799.457] (**) evdev: Dell BT Travel Mouse: Device: "/dev/input/event16"
    [  7799.457] (--) evdev: Dell BT Travel Mouse: Vendor 0x46d Product 0xb006
    [  7799.457] (--) evdev: Dell BT Travel Mouse: Found 12 mouse buttons
    [  7799.457] (--) evdev: Dell BT Travel Mouse: Found scroll wheel(s)
    [  7799.457] (--) evdev: Dell BT Travel Mouse: Found relative axes
    [  7799.457] (--) evdev: Dell BT Travel Mouse: Found x and y relative axes
    [  7799.457] (II) evdev: Dell BT Travel Mouse: Configuring as mouse
    [  7799.457] (II) evdev: Dell BT Travel Mouse: Adding scrollwheel support
    [  7799.457] (**) evdev: Dell BT Travel Mouse: YAxisMapping: buttons 4 and 5
    [  7799.457] (**) evdev: Dell BT Travel Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [  7799.457] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/bluetooth/hci0/hci0:11/input24/event16"
    [  7799.457] (II) XINPUT: Adding extended input device "Dell BT Travel Mouse" (type: MOUSE, id 14)
    [  7799.458] (II) evdev: Dell BT Travel Mouse: initialized for relative axes.
    [  7799.458] (**) Dell BT Travel Mouse: (accel) keeping acceleration scheme 1
    [  7799.458] (**) Dell BT Travel Mouse: (accel) acceleration profile 0
    [  7799.458] (**) Dell BT Travel Mouse: (accel) acceleration factor: 2.000
    [  7799.458] (**) Dell BT Travel Mouse: (accel) acceleration threshold: 4
    maybe we should fix xorg instead somehow ?

  5. #35
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,175
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Quote Originally Posted by macmus View Post
    maybe we should fix xorg instead somehow ?
    Not sure on this. To me it seems that xorg is only reacting on what is triggered by something else - maybe udev.

    And what is this module - "evdev"? Can you locate it with "locate" or "find" commands?


    PS:
    Nice finding by the way. Looks most promising lead so far, not for cause, but for a possible workaround.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags
    Am I not replying your post? This is why.

  6. #36
    Join Date
    Aug 2007
    Beans
    67

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

    results below:

    Code:
    lech@HP-EliteBook:~$ sudo locate evdev
    /usr/lib/pulse-3.0/modules/module-mmkbd-evdev.so
    /usr/lib/xorg/modules/input/evdev_drv.so
    /usr/share/X11/xkb/keycodes/evdev
    /usr/share/X11/xkb/rules/evdev
    /usr/share/X11/xkb/rules/evdev.extras.xml
    /usr/share/X11/xkb/rules/evdev.lst
    /usr/share/X11/xkb/rules/evdev.xml
    /usr/share/X11/xorg.conf.d/10-evdev.conf
    /usr/share/X11/xorg.conf.d/11-evdev-quirks.conf
    /usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf
    /usr/share/apport/package-hooks/source_xserver-xorg-input-evdev.py
    /usr/share/bug/xserver-xorg-input-evdev
    /usr/share/bug/xserver-xorg-input-evdev/script
    /usr/share/doc/xserver-xorg-input-evdev
    /usr/share/doc/xserver-xorg-input-evdev/changelog.Debian.gz
    /usr/share/doc/xserver-xorg-input-evdev/copyright
    /usr/share/man/man4/evdev.4.gz
    /usr/src/linux-headers-3.10.0-031000-generic/include/config/input/evdev.h
    /usr/src/linux-headers-3.10.0-031000-generic/include/config/usb/pwc/input/evdev.h
    /usr/src/linux-headers-3.10.0-031000-generic/include/config/usb/video/class/input/evdev.h
    /usr/src/linux-headers-3.8.0-19-generic/include/config/input/evdev.h
    /usr/src/linux-headers-3.8.0-19-generic/include/config/usb/pwc/input/evdev.h
    /usr/src/linux-headers-3.8.0-19-generic/include/config/usb/video/class/input/evdev.h
    /usr/src/linux-headers-3.8.0-25-generic/include/config/input/evdev.h
    /usr/src/linux-headers-3.8.0-25-generic/include/config/usb/pwc/input/evdev.h
    /usr/src/linux-headers-3.8.0-25-generic/include/config/usb/video/class/input/evdev.h
    /usr/src/linux-headers-3.8.0-26-generic/include/config/input/evdev.h
    /usr/src/linux-headers-3.8.0-26-generic/include/config/usb/pwc/input/evdev.h
    /usr/src/linux-headers-3.8.0-26-generic/include/config/usb/video/class/input/evdev.h
    /var/lib/dpkg/info/xserver-xorg-input-evdev.list
    /var/lib/dpkg/info/xserver-xorg-input-evdev.md5sums
    lech@HP-EliteBook:~$ 
    lech@HP-EliteBook:~$ 
    lech@HP-EliteBook:~$ 
    lech@HP-EliteBook:~$ sudo find / -name "evdev*"
    /usr/share/X11/xkb/keycodes/evdev
    /usr/share/X11/xkb/rules/evdev
    /usr/share/X11/xkb/rules/evdev.lst
    /usr/share/X11/xkb/rules/evdev.extras.xml
    /usr/share/X11/xkb/rules/evdev.xml
    /usr/share/man/man4/evdev.4.gz
    /usr/lib/xorg/modules/input/evdev_drv.so
    /usr/src/linux-headers-3.8.0-19-generic/include/config/input/evdev.h
    /usr/src/linux-headers-3.8.0-19-generic/include/config/usb/pwc/input/evdev.h
    /usr/src/linux-headers-3.8.0-19-generic/include/config/usb/video/class/input/evdev.h
    /usr/src/linux-headers-3.10.0-031000-generic/include/config/input/evdev.h
    /usr/src/linux-headers-3.10.0-031000-generic/include/config/usb/pwc/input/evdev.h
    /usr/src/linux-headers-3.10.0-031000-generic/include/config/usb/video/class/input/evdev.h
    /usr/src/linux-headers-3.8.0-26-generic/include/config/input/evdev.h
    /usr/src/linux-headers-3.8.0-26-generic/include/config/usb/pwc/input/evdev.h
    /usr/src/linux-headers-3.8.0-26-generic/include/config/usb/video/class/input/evdev.h
    /usr/src/linux-headers-3.8.0-25-generic/include/config/input/evdev.h
    /usr/src/linux-headers-3.8.0-25-generic/include/config/usb/pwc/input/evdev.h
    /usr/src/linux-headers-3.8.0-25-generic/include/config/usb/video/class/input/evdev.h

  7. #37
    Join Date
    Aug 2007
    Beans
    67

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

    from wiki
    Code:
    evdev
    From Wikipedia, the free encyclopedia
    Jump to: navigation, search
    Portal icon 	Linux portal
    
    In computing, evdev (for event device) is a component of the Linux kernel for handling input (from keyboards, mice, joysticks, etc.) and a closely related input driver for the X.Org Server. The kernel component is glue code which translates input events from peripheral-specific drivers into a generic structure which the input driver can easily translate into X11 events. Thus every input device with a Linux driver is compatible with the X.Org input driver, making X.Org much easier to configure.
    
    Most recent Linux distributions install evdev by default.[1]
    
    Using evdev makes it easier for the X.Org server to support hotplugging of input devices and allows advanced input devices, like multi-button mice and multimedia keyboards, to work correctly. The previous approach involved a kernel-level sink device emulating a PS/2 mouse and an AT keyboard, which collected events from all input devices, while the X server was configured for one keyboard and one mouse.

  8. #38
    Join Date
    Aug 2007
    Beans
    67

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

    when i unbind, bind, reset device do not show up

    only closing, opening lid is reenebling it:

    Code:
    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:11/input28
    U: Uniq=00:1f:20:50:01:b4
    H: Handlers=mouse0 event4 
    B: PROP=0
    B: EV=17
    B: KEY=ff0000 0 0 0 0
    B: REL=143
    B: MSC=10

  9. #39
    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
    If yes, I would try to remove --> reload the bluetooth driver and any other that looks like working with the bt mouse. As per lsmod, the bluetooth driver is already used by 4 different drivers. So they will have to be removed first to be able to safely remove "bluetooth". Then they will have to be reloaded in the reverse sequence (last removed loaded first). This will help in case a driver get confused and needs resetting after resetting the USB adapter.
    These are the drivers in my "usual-suspects" list -
    As for the patch update, I'll have to lookup myself where to find the updates about the so called "bluetooth stack" (and related drivers). Should be a git-hub or something alike, but right now, I've no idea.

    how to unload and reload all of the drivers ?
    I have never done such a trick

  10. #40
    Join Date
    Aug 2007
    Beans
    67

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

    one more interesting thing:

    It seems each open/close of lid .. binds it to next input device... i have already input 27!!!

    Code:
    root@HP-EliteBook:~# dmesg  | grep input
    [ 7638.841567] 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/input22
    [ 7638.841961] hid-generic 0005:046D:B006.0007: input,hidraw0: BLUETOOTH HID v1.24 Mouse [Dell BT Travel Mouse] on b8:76:3f:db:05:2f
    [ 7648.868975] 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:11/input23
    [ 7648.869222] hid-generic 0005:046D:B006.0008: input,hidraw0: BLUETOOTH HID v1.24 Mouse [Dell BT Travel Mouse] on b8:76:3f:db:05:2f
    [ 8352.995878] 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:11/input24
    [ 8352.996089] hid-generic 0005:046D:B006.0009: input,hidraw0: BLUETOOTH HID v1.24 Mouse [Dell BT Travel Mouse] on b8:76:3f:db:05:2f
    [ 8450.612472] 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/input25
    [ 8450.612635] hid-generic 0005:046D:B006.000A: input,hidraw0: BLUETOOTH HID v1.24 Mouse [Dell BT Travel Mouse] on b8:76:3f:db:05:2f
    [ 9057.276290] 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:11/input26
    [ 9057.276515] hid-generic 0005:046D:B006.000B: input,hidraw0: BLUETOOTH HID v1.24 Mouse [Dell BT Travel Mouse] on b8:76:3f:db:05:2f
    [10341.928203] 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:11/input27
    [10341.929209] hid-generic 0005:046D:B006.000C: input,hidraw0: BLUETOOTH HID v1.24 Mouse [Dell BT Travel Mouse] on b8:76:3f:db:05:2f
    [12465.096810] 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:11/input28
    [12465.097073] hid-generic 0005:046D:B006.000D: input,hidraw0: BLUETOOTH HID v1.24 Mouse [Dell BT Travel Mouse] on b8:76:3f:db:05:2f
    because it bind to next one it works again... I may be paranoid but each time it works shorter .. then previsouly.

    Is there a way how to clean this register of input devices?

Page 4 of 6 FirstFirst ... 23456 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
  •