* [Bluez-users] crazy mouse
@ 2006-06-05 21:42 Didier LINK
2006-06-05 21:57 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Didier LINK @ 2006-06-05 21:42 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1.1: Type: text/plain, Size: 1010 bytes --]
Hello all,
Thanks to Marcel to have so quickly publish the patch 2.6.16-mh1 after
my request ! I've patched a 2.6.16.19 kernel and all seems to works
after the reboot.
But my mouse (Logitech MX900 BT) move strangely. The movement seems to
be by "hop" on the screen, I've never see this before, it's annoying ...
For a better explanation, its as if the mouse send is move data normally
but X and the console (gpm) receive it asynchronously and at a point the
cursor "freeze" a 1/4 of second and move quickly at the real position,
all along the move of the mouse ...
Very strange no ?
After rebooting on my 2.6.15-mh2 kernel all works good !
Any idea ? Or maybe a procedure to debug that I can do ?
I've a Gentoo on amd64, full 64 bits, last bluez utilities on gentoo.
For more information just ask me.
Best regards.
Didier Link
--
Didier Link <didier.link@wanadoo.fr>
Jabber : zanfib@ims.kelkoo.net
MSN : zanfib@hotmail.fr
SIP : Zanfib@ekiga.net
Clé GPG : 75BAC9EE
[-- Attachment #1.2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] crazy mouse
2006-06-05 21:42 [Bluez-users] crazy mouse Didier LINK
@ 2006-06-05 21:57 ` Marcel Holtmann
2006-06-06 17:46 ` Didier LINK
0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-06-05 21:57 UTC (permalink / raw)
To: BlueZ users
Hi Didier,
> Thanks to Marcel to have so quickly publish the patch 2.6.16-mh1 after
> my request ! I've patched a 2.6.16.19 kernel and all seems to works
> after the reboot.
>
> But my mouse (Logitech MX900 BT) move strangely. The movement seems to
> be by "hop" on the screen, I've never see this before, it's annoying ...
>
> For a better explanation, its as if the mouse send is move data normally
> but X and the console (gpm) receive it asynchronously and at a point the
> cursor "freeze" a 1/4 of second and move quickly at the real position,
> all along the move of the mouse ...
>
> Very strange no ?
>
> After rebooting on my 2.6.15-mh2 kernel all works good !
>
> Any idea ? Or maybe a procedure to debug that I can do ?
check your Xorg configuration. You might have configured two inputs and
the events add up. There was a report about that some time ago.
Regards
Marcel
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] crazy mouse
2006-06-05 21:57 ` Marcel Holtmann
@ 2006-06-06 17:46 ` Didier LINK
2006-06-06 20:37 ` Ulisses Furquim
0 siblings, 1 reply; 10+ messages in thread
From: Didier LINK @ 2006-06-06 17:46 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1.1: Type: text/plain, Size: 1123 bytes --]
Le lundi 05 juin 2006 à 23:57 +0200, Marcel Holtmann a écrit :
> Hi Didier,
Hi,
> check your Xorg configuration. You might have configured two inputs and
> the events add up. There was a report about that some time ago.
Yes, I've seen this but this not apply to my case, I've not 2 inputs and
this is the same situation on the console (the linux one, not in X !)
with the gpm daemon. My device for mouse is only /dev/input/mice.
And by "hop" it's not a real acceleration, I will try to explain
better : between positions x and y at screen they have "a time", from x
and during the first quarter of this time the cursor move correctly and
sudenly freeze, at the end of the time the cursor move instantly at y.
This scenario again and again all along the move of the mouse :-/
This appear only with kernel 2.6.16.19-mh1, the 2.6.15-mh2 is perfect
with the same configuration !?!?
Any idea ??
I will retry this evening ...
Regards.
Didier
--
Didier Link <didier.link@wanadoo.fr>
Jabber : zanfib@ims.kelkoo.net
MSN : zanfib@hotmail.fr
SIP : Zanfib@ekiga.net
Clé GPG : 75BAC9EE
[-- Attachment #1.2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] crazy mouse
2006-06-06 17:46 ` Didier LINK
@ 2006-06-06 20:37 ` Ulisses Furquim
2006-06-08 20:26 ` Didier LINK
0 siblings, 1 reply; 10+ messages in thread
From: Ulisses Furquim @ 2006-06-06 20:37 UTC (permalink / raw)
To: BlueZ users
On 6/6/06, Didier LINK <didier.link@wanadoo.fr> wrote:
> Any idea ??
Hi,
you could execute:
# hcidump -t -X -V -B -w log
then move your mouse a little bit and then hit ctrl-c and do:
# gzip -9 log
And then send us log.gz or send us a link to somewhere we can download
it. That way we might have an idea of what is going on. :-)
Best regards,
-- Ulisses
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] crazy mouse
2006-06-06 20:37 ` Ulisses Furquim
@ 2006-06-08 20:26 ` Didier LINK
2006-06-09 1:14 ` Ulisses Furquim
0 siblings, 1 reply; 10+ messages in thread
From: Didier LINK @ 2006-06-08 20:26 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1.1.1: Type: text/plain, Size: 753 bytes --]
Le mardi 06 juin 2006 à 17:37 -0300, Ulisses Furquim a écrit :
> On 6/6/06, Didier LINK <didier.link@wanadoo.fr> wrote:
>
> > Any idea ??
>
> Hi,
Hi,
>
> you could execute:
>
> # hcidump -t -X -V -B -w log
>
> then move your mouse a little bit and then hit ctrl-c and do:
>
> # gzip -9 log
>
> And then send us log.gz or send us a link to somewhere we can download
> it. That way we might have an idea of what is going on. :-)
That's it, I've made 2 little circles on screen.
Thanks for your help ! This command seems to be usefull !!! ;)
Best regards.
Didier
--
Didier Link <didier.link@wanadoo.fr>
Jabber : zanfib@ims.kelkoo.net
MSN : zanfib@hotmail.fr
SIP : Zanfib@ekiga.net
Clé GPG : 75BAC9EE
[-- Attachment #1.1.2: log.gz --]
[-- Type: application/x-gzip, Size: 1404 bytes --]
[-- Attachment #1.2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] crazy mouse
2006-06-08 20:26 ` Didier LINK
@ 2006-06-09 1:14 ` Ulisses Furquim
2006-06-09 20:38 ` Didier LINK
0 siblings, 1 reply; 10+ messages in thread
From: Ulisses Furquim @ 2006-06-09 1:14 UTC (permalink / raw)
To: BlueZ users
On 6/8/06, Didier LINK <didier.link@wanadoo.fr> wrote:
> That's it, I've made 2 little circles on screen.
> Thanks for your help ! This command seems to be usefull !!! ;)
Hmm.. I can't see anything unusual. Only the automatic switch to sniff
mode feature trying to hold the connection in active mode and your
mouse turning it back to sniff mode. Could you give the 2.6.16-mh2 a
try? It doesn't contain the automatic switch to sniff mode feature and
we'll be able to see if that's causing your mouse problems.
Best regards,
-- Ulisses
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] crazy mouse
2006-06-09 1:14 ` Ulisses Furquim
@ 2006-06-09 20:38 ` Didier LINK
2006-06-11 0:35 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Didier LINK @ 2006-06-09 20:38 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1.1: Type: text/plain, Size: 928 bytes --]
Le jeudi 08 juin 2006 à 22:14 -0300, Ulisses Furquim a écrit :
> On 6/8/06, Didier LINK <didier.link@wanadoo.fr> wrote:
> > That's it, I've made 2 little circles on screen.
> > Thanks for your help ! This command seems to be usefull !!! ;)
>
> Hmm.. I can't see anything unusual. Only the automatic switch to sniff
> mode feature trying to hold the connection in active mode and your
> mouse turning it back to sniff mode. Could you give the 2.6.16-mh2 a
> try? It doesn't contain the automatic switch to sniff mode feature and
> we'll be able to see if that's causing your mouse problems.
Yes that's it, my mouse workd perfect with mh2 !! I don't understand but
if you want a tester for a newer patch just ask me ! :)
Thanks a lot !!
Best regards.
Didier
--
Didier Link <didier.link@wanadoo.fr>
Jabber : zanfib@ims.kelkoo.net
MSN : zanfib@hotmail.fr
SIP : Zanfib@ekiga.net
Clé GPG : 75BAC9EE
[-- Attachment #1.2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] crazy mouse
2006-06-09 20:38 ` Didier LINK
@ 2006-06-11 0:35 ` Marcel Holtmann
2006-06-11 9:24 ` Didier LINK
0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-06-11 0:35 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
Hi Didier,
> > Hmm.. I can't see anything unusual. Only the automatic switch to sniff
> > mode feature trying to hold the connection in active mode and your
> > mouse turning it back to sniff mode. Could you give the 2.6.16-mh2 a
> > try? It doesn't contain the automatic switch to sniff mode feature and
> > we'll be able to see if that's causing your mouse problems.
>
> Yes that's it, my mouse workd perfect with mh2 !! I don't understand but
> if you want a tester for a newer patch just ask me ! :)
please use 2.6.16-mh1 and the attached patch. That should make it work
again as expected.
Regards
Marcel
[-- Attachment #2: patch --]
[-- Type: text/x-patch, Size: 1369 bytes --]
diff -u b/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
--- b/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -154,6 +154,7 @@
__u16 interval;
__u16 link_policy;
__u32 link_mode;
+ __u8 power_save;
unsigned long pend;
unsigned int sent;
diff -u b/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
--- b/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -158,6 +158,8 @@
conn->mode = HCI_CM_ACTIVE;
conn->state = BT_OPEN;
+ conn->power_save = 1;
+
skb_queue_head_init(&conn->data_q);
init_timer(&conn->disc_timer);
@@ -387,7 +389,7 @@
if (test_bit(HCI_RAW, &hdev->flags))
return;
- if (conn->mode != HCI_CM_SNIFF)
+ if (conn->mode != HCI_CM_SNIFF || !conn->power_save)
goto timer;
if (!test_and_set_bit(HCI_CONN_MODE_CHANGE_PEND, &conn->pend)) {
diff -u b/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
--- b/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -881,7 +881,12 @@
conn->mode = ev->mode;
conn->interval = __le16_to_cpu(ev->interval);
- clear_bit(HCI_CONN_MODE_CHANGE_PEND, &conn->pend);
+ if (!test_and_clear_bit(HCI_CONN_MODE_CHANGE_PEND, &conn->pend)) {
+ if (conn->mode == HCI_CM_ACTIVE)
+ conn->power_save = 1;
+ else
+ conn->power_save = 0;
+ }
}
hci_dev_unlock(hdev);
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
[-- Attachment #4: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [Bluez-users] crazy mouse
2006-06-11 0:35 ` Marcel Holtmann
@ 2006-06-11 9:24 ` Didier LINK
2006-06-11 13:41 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Didier LINK @ 2006-06-11 9:24 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1.1: Type: text/plain, Size: 936 bytes --]
Le dimanche 11 juin 2006 à 02:35 +0200, Marcel Holtmann a écrit :
> Hi Didier,
Hi,
>
> > > Hmm.. I can't see anything unusual. Only the automatic switch to sniff
> > > mode feature trying to hold the connection in active mode and your
> > > mouse turning it back to sniff mode. Could you give the 2.6.16-mh2 a
> > > try? It doesn't contain the automatic switch to sniff mode feature and
> > > we'll be able to see if that's causing your mouse problems.
> >
> > Yes that's it, my mouse workd perfect with mh2 !! I don't understand but
> > if you want a tester for a newer patch just ask me ! :)
>
> please use 2.6.16-mh1 and the attached patch. That should make it work
> again as expected.
Yes, it works perfect now ! Thanks a lot ! :)
Best regards.
Didier
--
Didier Link <didier.link@wanadoo.fr>
Jabber : zanfib@ims.kelkoo.net
MSN : zanfib@hotmail.fr
SIP : Zanfib@ekiga.net
Clé GPG : 75BAC9EE
[-- Attachment #1.2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-06-11 13:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-05 21:42 [Bluez-users] crazy mouse Didier LINK
2006-06-05 21:57 ` Marcel Holtmann
2006-06-06 17:46 ` Didier LINK
2006-06-06 20:37 ` Ulisses Furquim
2006-06-08 20:26 ` Didier LINK
2006-06-09 1:14 ` Ulisses Furquim
2006-06-09 20:38 ` Didier LINK
2006-06-11 0:35 ` Marcel Holtmann
2006-06-11 9:24 ` Didier LINK
2006-06-11 13:41 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.