Bug 17677

Summary: reconnected mouse events are not exported, keyboard's events works
Product: xorg Reporter: CIJOML CIJOMLovic CIJOMLov <cijoml>
Component: Input/evdevAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium Keywords: NEEDINFO
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 16454    
Bug Blocks:    

Description CIJOML CIJOMLovic CIJOMLov 2008-09-20 06:04:58 UTC
Hi there,

to be able to use my Bluetooth mouse with evdev driver (see bug 16454) I tried workaround it like this using udev:

compaq:/usr/src/xf86-input-evdev# cat /etc/udev/rules.d/10-local.rules
KERNEL=="event*", SUBSYSTEM=="input", ATTRS{uniq}=="00:07:61:3E:70:E0", NAME="input/mx1000"
KERNEL=="event*", SUBSYSTEM=="input", ATTRS{uniq}=="00:07:61:3E:1C:71", NAME="input/logkeyb"

and than in xorg.conf:

Section "InputDevice"
        Identifier      "Logitech diNovo Keyboard"
        Driver          "evdev"
        Option          "Device"        "/dev/input/logkeyb"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "logidinovo"
        Option          "XkbLayout"     "cz"
EndSection

Section "InputDevice"
        Identifier      "Logitech MX1000"
        Driver          "evdev"
        #Option         "Vendor" "0x046d"
        #Option         "Product" "0xb003"
        #Option         "Name"  "Logitech Bluetooth Mouse"
        #Option         "Uniq"  "00:07:61:3E:70:E0"
        Option          "Device"        "/dev/input/mx1000" #rename by udev rule
        Option          "Buttons"               "12"
        Option     "Resolution"      "800"
        Option          "RelHWHEELMapTo"        "Buttons 7 6"
        Option          "CorePointer"
EndSection


And now my problem:

If mouse is connected via Bluetooth BEFORE xorg is started, it works. In moment it disconnects and reconnect again to save batteries, after reconnect cursor doesn't work. Same reconnect action with my Bluetooth keyboard works like a charm.
Mouse is connected, because kbluetoothd reports it and I can also move it in console (gpm).
Comment 1 Julien Cristau 2008-09-20 08:57:33 UTC
On Sat, Sep 20, 2008 at 06:04:59 -0700, bugzilla-daemon@freedesktop.org wrote:

> Section "InputDevice"
>         Identifier      "Logitech diNovo Keyboard"
>         Driver          "evdev"
>         Option          "Device"        "/dev/input/logkeyb"
>         Option          "XkbRules"      "xorg"
>         Option          "XkbModel"      "logidinovo"
>         Option          "XkbLayout"     "cz"
> EndSection
> 
> Section "InputDevice"
>         Identifier      "Logitech MX1000"
>         Driver          "evdev"
>         #Option         "Vendor" "0x046d"
>         #Option         "Product" "0xb003"
>         #Option         "Name"  "Logitech Bluetooth Mouse"
>         #Option         "Uniq"  "00:07:61:3E:70:E0"
>         Option          "Device"        "/dev/input/mx1000" #rename by udev
> rule
>         Option          "Buttons"               "12"
>         Option     "Resolution"      "800"
>         Option          "RelHWHEELMapTo"        "Buttons 7 6"
>         Option          "CorePointer"
> EndSection
> 
Don't do that if you want to be able to hotplug the devices.  Configure
them through hal instead of xorg.conf.
See
http://who-t.blogspot.com/2008/07/input-configuration-in-nutshell.html

Cheers,
Julien
Comment 2 CIJOML CIJOMLovic CIJOMLov 2008-09-20 09:56:05 UTC
julien come on...it is same situation like with dev input mice...i can unplug wired mouse and plug it again and it works...
Comment 3 Peter Hutterer 2008-09-20 18:11:01 UTC
> --- Comment #2 from CIJOML CIJOMLovic CIJOMLov <cijoml@volny.cz>  2008-09-20 09:56:05 PST ---
> julien come on...it is same situation like with dev input mice...i can unplug
> wired mouse and plug it again and it works...

no, it's not. /dev/input/mice is handled by the kernel, not by X.

when you're removing the device, X shuts it down. but without the appropriate
HAL config, it never gets the notification that the device is added again (or
it does, but with the wrong parameters).

Anything in xorg.conf is _NOT_ hotpluggable.

(the keyboard most likely works because the X server is still loading the kbd
driver)
Comment 4 CIJOML CIJOMLovic CIJOMLov 2008-09-20 22:06:10 UTC
Than I must reopen, because I use evdev for keyboard too...check the config. And keyboard also disconnects and connects again to save batteries...
Comment 5 Peter Hutterer 2008-09-20 23:31:10 UTC
Is that your complete config?

Also - we'd need your Xorg.log to debug what is happening.
Comment 6 Peter Hutterer 2008-10-09 00:46:10 UTC
ping?
Comment 7 CIJOML CIJOMLovic CIJOMLov 2008-10-09 01:26:41 UTC
Hello Peter,

what do you mean complete config? It is complete part of config related to input devices, of course there are video options etc...
Comment 8 Peter Hutterer 2008-10-09 03:57:00 UTC
yes, your xorg.conf (the whole file), and your Xorg.log please.
Even parts that appear unrelated can sometimes have important information.
Comment 9 Peter Hutterer 2008-12-20 21:53:25 UTC
NEEDINFO for more than two months -> INVALID

If the problem still persists, please reopen after supplying the requested information.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.