Re: jerky mouse still in 7.0-RELEASE

2008-03-04 Thread Kris Kennaway

Eric L. Chen wrote:


Hi Kris,
I have this problem, too.
If moused is enabled, use /dev/sysmouse in xorg.conf, X11 will freeze if
mouse not moving.
If moused is disabled, use /dev/psm0 in xorg.conf.
Every thing works fine.
I am running 7-STATBEL/i386.


OK, please start a new thread so we don't confuse the issue further.

Kris
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-03-03 Thread Eric L. Chen
On Fri, 2008-02-29 at 14:21 +0100, Kris Kennaway wrote:
> Dominic Fandrey wrote:
> > Kris Kennaway wrote:
> >> Dominic Fandrey wrote:
> >>> Kris Kennaway wrote:
>  Well it doesn't rule it out.  X may be introducing latencies that 
>  are causing your mouse to lose sync or something.
> >>>
> >>> It's not the mouse that hangs.
> >>> It's the only thing that works,
> >>> everything else hangs when I combine moused/X. This issue doesn't 
> >>> exist on all my systems, though. It existed on my old Thinkpad 
> >>> (Pentium-m 1.3 GHz), it exists on my new notebook (Core2 Duo with 2.4 
> >>> GHz), but it doesn't exist on my P4 with 1.6 GHz.
> >>>
> >>> Key entries, animations, they all just pile up somewhere and happen 
> >>> all at once when I start using the mouse. To watch a movie I have to 
> >>> keep the mouse moving all the time.
> >>>
> >>> It's not a general X and mouse problem, because without moused in 
> >>> between everything works fine. I think at some point in time a bug 
> >>> was either introduced in moused, or in my opinion more likely, in the 
> >>> sysmouse protocol implementation in X.
> >>
> >> Could also be an interrupt issue.  Either way it's still a different 
> >> issue to the ones in this thread.
> > 
> > I always thought it's about the same thing and people were just 
> > imprecise in their perception. The P4 used to be affected by this, too. 
> > This changed somewhere around RC1, I think. Since all of my machines had 
> > encountered the problem since I switched them to RELENG_7, I thought my 
> > problem was very common and it's the one everyone is talking about.
> 
> No, I've seen no-one reporting similar symptoms.
> 
> Kris

Hi Kris,
I have this problem, too.
If moused is enabled, use /dev/sysmouse in xorg.conf, X11 will freeze if
mouse not moving.
If moused is disabled, use /dev/psm0 in xorg.conf.
Every thing works fine.
I am running 7-STATBEL/i386.

/Eric

> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Jim Pingle

Kris Kennaway wrote:

Teemu Korhonen wrote:
Did anyone find a solution to the "jerky mouse" -problem? It still 
exists in 7.0-RELEASE.


I have pretty much exact same symptoms as in this post:
http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html 



Part of the problem here is that these "symptoms" are far too generic 
for diagnosis and have a variety of known and unknown causes.


Some of the "known" causes include:

* Overloading the system transiently (e.g. if your KDE launches 30 
processes at once, the system is going to be a bit sluggish for a few 
seconds)


* Running powerd, which has poor interaction with interrupt delivery on 
at least one user's system (might be an ACPI issue or hardware-specific).


* Performing lots of I/O to a non-mpsafe filesystem like msdosfs.

The other causes have so far resisted understanding.


I have a little more insight into the problem, at least in my case. Short 
version: it is a KVM/mouse detection issue.


I have one system that is experiencing a mouse problem, but as you said 
later in this thread it might be interrupt-related. The system in question 
is a 2xPIII-800 SMP system, running 7-STABLE from yesterday with the ULE 
scheduler. This happens to be my only 7-x box running X (so far), with a 
mouse that gets used.


The mouse hesitates at the console and in X. It will move for a half second 
or so, then stop for just as long. If I monitor processes with top or 
vmstat, it shows that moving the mouse causes the system to use ~50% CPU in 
interrupts. In X, the result is the same regardless of whether I use 
sysmouse or psm0 directly.


This system is hooked into a KVM. I found that if I booted with the system 
active on the KVM, the mouse worked fine. Also, while the mouse in a working 
state, the interrupts from the mouse never go above 3% CPU.


If I boot with another system active on the KVM instead, the mouse reverts 
to being jerky and in a state where it generates abnormally high levels of 
interrupts and hesitats.


The only difference in dmesg between the two boots is the model of the mouse 
as detected by the system:


# grep psm0 dmesg.iffymouse
psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model VersaPad, device ID 0

# grep psm0 dmesg.goodmouse
psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model NetMouse/NetScroll Optical, device ID 0

Note that in both cases, the model is incorrect compared to the actual mouse.

Jim
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Coleman Kane
Dominic Fandrey wrote:
> Kris Kennaway wrote:
>> Dominic Fandrey wrote:
>>> Kris Kennaway wrote:
 Well it doesn't rule it out.  X may be introducing latencies that
 are causing your mouse to lose sync or something.
>>>
>>> It's not the mouse that hangs.
>>> It's the only thing that works,
>>> everything else hangs when I combine moused/X. This issue doesn't
>>> exist on all my systems, though. It existed on my old Thinkpad
>>> (Pentium-m 1.3 GHz), it exists on my new notebook (Core2 Duo with
>>> 2.4 GHz), but it doesn't exist on my P4 with 1.6 GHz.
>>>
>>> Key entries, animations, they all just pile up somewhere and happen
>>> all at once when I start using the mouse. To watch a movie I have to
>>> keep the mouse moving all the time.
>>>
>>> It's not a general X and mouse problem, because without moused in
>>> between everything works fine. I think at some point in time a bug
>>> was either introduced in moused, or in my opinion more likely, in
>>> the sysmouse protocol implementation in X.
>>
>> Could also be an interrupt issue.  Either way it's still a different
>> issue to the ones in this thread.
>
> I always thought it's about the same thing and people were just
> imprecise in their perception. The P4 used to be affected by this,
> too. This changed somewhere around RC1, I think. Since all of my
> machines had encountered the problem since I switched them to
> RELENG_7, I thought my problem was very common and it's the one
> everyone is talking about.
Perhaps this is related to the CX / cpu idle level problems we've been
experiencing on a lot of hardware? What is the output of "sysctl -a |
grep cx" on your system?

--
Coleman

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Dominic Fandrey

Coleman Kane wrote:

Dominic Fandrey wrote:

Kris Kennaway wrote:

Dominic Fandrey wrote:

Kris Kennaway wrote:

Well it doesn't rule it out.  X may be introducing latencies that
are causing your mouse to lose sync or something.

It's not the mouse that hangs.
It's the only thing that works,
everything else hangs when I combine moused/X. This issue doesn't
exist on all my systems, though. It existed on my old Thinkpad
(Pentium-m 1.3 GHz), it exists on my new notebook (Core2 Duo with
2.4 GHz), but it doesn't exist on my P4 with 1.6 GHz.

Key entries, animations, they all just pile up somewhere and happen
all at once when I start using the mouse. To watch a movie I have to
keep the mouse moving all the time.

It's not a general X and mouse problem, because without moused in
between everything works fine. I think at some point in time a bug
was either introduced in moused, or in my opinion more likely, in
the sysmouse protocol implementation in X.

Could also be an interrupt issue.  Either way it's still a different
issue to the ones in this thread.

I always thought it's about the same thing and people were just
imprecise in their perception. The P4 used to be affected by this,
too. This changed somewhere around RC1, I think. Since all of my
machines had encountered the problem since I switched them to
RELENG_7, I thought my problem was very common and it's the one
everyone is talking about.

Perhaps this is related to the CX / cpu idle level problems we've been
experiencing on a lot of hardware? What is the output of "sysctl -a |
grep cx" on your system?


# sysctl -a|grep cx
hw.acpi.cpu.cx_lowest: C1
dev.cpu.0.cx_supported: C1/1 C2/1 C3/17
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% 0.00%
dev.cpu.1.cx_supported: C1/1 C2/1 C3/17
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00% 0.00% 0.00%

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Kris Kennaway

Dominic Fandrey wrote:

Kris Kennaway wrote:

Dominic Fandrey wrote:

Kris Kennaway wrote:
Well it doesn't rule it out.  X may be introducing latencies that 
are causing your mouse to lose sync or something.


It's not the mouse that hangs.
It's the only thing that works,
everything else hangs when I combine moused/X. This issue doesn't 
exist on all my systems, though. It existed on my old Thinkpad 
(Pentium-m 1.3 GHz), it exists on my new notebook (Core2 Duo with 2.4 
GHz), but it doesn't exist on my P4 with 1.6 GHz.


Key entries, animations, they all just pile up somewhere and happen 
all at once when I start using the mouse. To watch a movie I have to 
keep the mouse moving all the time.


It's not a general X and mouse problem, because without moused in 
between everything works fine. I think at some point in time a bug 
was either introduced in moused, or in my opinion more likely, in the 
sysmouse protocol implementation in X.


Could also be an interrupt issue.  Either way it's still a different 
issue to the ones in this thread.


I always thought it's about the same thing and people were just 
imprecise in their perception. The P4 used to be affected by this, too. 
This changed somewhere around RC1, I think. Since all of my machines had 
encountered the problem since I switched them to RELENG_7, I thought my 
problem was very common and it's the one everyone is talking about.


No, I've seen no-one reporting similar symptoms.

Kris
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Dominic Fandrey

Kris Kennaway wrote:

Dominic Fandrey wrote:

Kris Kennaway wrote:
Well it doesn't rule it out.  X may be introducing latencies that are 
causing your mouse to lose sync or something.


It's not the mouse that hangs.
It's the only thing that works,
everything else hangs when I combine moused/X. This issue doesn't 
exist on all my systems, though. It existed on my old Thinkpad 
(Pentium-m 1.3 GHz), it exists on my new notebook (Core2 Duo with 2.4 
GHz), but it doesn't exist on my P4 with 1.6 GHz.


Key entries, animations, they all just pile up somewhere and happen 
all at once when I start using the mouse. To watch a movie I have to 
keep the mouse moving all the time.


It's not a general X and mouse problem, because without moused in 
between everything works fine. I think at some point in time a bug was 
either introduced in moused, or in my opinion more likely, in the 
sysmouse protocol implementation in X.


Could also be an interrupt issue.  Either way it's still a different 
issue to the ones in this thread.


I always thought it's about the same thing and people were just imprecise in 
their perception. The P4 used to be affected by this, too. This changed 
somewhere around RC1, I think. Since all of my machines had encountered the 
problem since I switched them to RELENG_7, I thought my problem was very 
common and it's the one everyone is talking about.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Kris Kennaway

Dominic Fandrey wrote:

Kris Kennaway wrote:

Dominic Fandrey wrote:

Kris Kennaway wrote:
Your problem has different symptoms, so not entirely surprising that 
it doesn't help :)  Sounds more like that your mouse just isn't 
working properly with moused.


Oh, it works fine on the console. Only the combination moused/X clashes.


Well it doesn't rule it out.  X may be introducing latencies that are 
causing your mouse to lose sync or something.


It's not the mouse that hangs.


OK, that was unclear from your initial wording.

> It's the only thing that works,
everything else hangs when I combine moused/X. This issue doesn't exist 
on all my systems, though. It existed on my old Thinkpad (Pentium-m 1.3 
GHz), it exists on my new notebook (Core2 Duo with 2.4 GHz), but it 
doesn't exist on my P4 with 1.6 GHz.


Key entries, animations, they all just pile up somewhere and happen all 
at once when I start using the mouse. To watch a movie I have to keep 
the mouse moving all the time.


It's not a general X and mouse problem, because without moused in 
between everything works fine. I think at some point in time a bug was 
either introduced in moused, or in my opinion more likely, in the 
sysmouse protocol implementation in X.


Could also be an interrupt issue.  Either way it's still a different 
issue to the ones in this thread.


Kris
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Dominic Fandrey

Kris Kennaway wrote:

Dominic Fandrey wrote:

Kris Kennaway wrote:
Your problem has different symptoms, so not entirely surprising that 
it doesn't help :)  Sounds more like that your mouse just isn't 
working properly with moused.


Oh, it works fine on the console. Only the combination moused/X clashes.


Well it doesn't rule it out.  X may be introducing latencies that are 
causing your mouse to lose sync or something.


It's not the mouse that hangs. It's the only thing that works, everything else 
hangs when I combine moused/X. This issue doesn't exist on all my systems, 
though. It existed on my old Thinkpad (Pentium-m 1.3 GHz), it exists on my new 
notebook (Core2 Duo with 2.4 GHz), but it doesn't exist on my P4 with 1.6 GHz.


Key entries, animations, they all just pile up somewhere and happen all at 
once when I start using the mouse. To watch a movie I have to keep the mouse 
moving all the time.


It's not a general X and mouse problem, because without moused in between 
everything works fine. I think at some point in time a bug was either 
introduced in moused, or in my opinion more likely, in the sysmouse protocol 
implementation in X.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Kris Kennaway

Dominic Fandrey wrote:

Kris Kennaway wrote:

Dominic Fandrey wrote:

Jung-uk Kim wrote:

On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:

Did anyone find a solution to the "jerky mouse" -problem? It still
exists in 7.0-RELEASE.

I have pretty much exact same symptoms as in this post:

http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html 



Can you try the attached patches for ports/x11-servers/xorg-server?  
Just drop them in files directory, rebuild, reinstall, etc...


Thanks,

Jung-uk Kim


I'm running RELENG_7 built the day before yesterday with SCHED_ULE. 
Your patch doesn't improve anything for me. The system still locks up 
entirely while the mouse is not in movement.


Only not using moused helps.


Your problem has different symptoms, so not entirely surprising that 
it doesn't help :)  Sounds more like that your mouse just isn't 
working properly with moused.


Kris



Oh, it works fine on the console. Only the combination moused/X clashes.


Well it doesn't rule it out.  X may be introducing latencies that are 
causing your mouse to lose sync or something.


Kris
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Dominic Fandrey

Kris Kennaway wrote:

Dominic Fandrey wrote:

Jung-uk Kim wrote:

On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:

Did anyone find a solution to the "jerky mouse" -problem? It still
exists in 7.0-RELEASE.

I have pretty much exact same symptoms as in this post:

http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html 



Can you try the attached patches for ports/x11-servers/xorg-server?  
Just drop them in files directory, rebuild, reinstall, etc...


Thanks,

Jung-uk Kim


I'm running RELENG_7 built the day before yesterday with SCHED_ULE. 
Your patch doesn't improve anything for me. The system still locks up 
entirely while the mouse is not in movement.


Only not using moused helps.


Your problem has different symptoms, so not entirely surprising that it 
doesn't help :)  Sounds more like that your mouse just isn't working 
properly with moused.


Kris



Oh, it works fine on the console. Only the combination moused/X clashes.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Kris Kennaway

Dominic Fandrey wrote:

Jung-uk Kim wrote:

On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:

Did anyone find a solution to the "jerky mouse" -problem? It still
exists in 7.0-RELEASE.

I have pretty much exact same symptoms as in this post:

http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html 



Can you try the attached patches for ports/x11-servers/xorg-server?  
Just drop them in files directory, rebuild, reinstall, etc...


Thanks,

Jung-uk Kim


I'm running RELENG_7 built the day before yesterday with SCHED_ULE. Your 
patch doesn't improve anything for me. The system still locks up 
entirely while the mouse is not in movement.


Only not using moused helps.


Your problem has different symptoms, so not entirely surprising that it 
doesn't help :)  Sounds more like that your mouse just isn't working 
properly with moused.


Kris
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-29 Thread Dominic Fandrey

Jung-uk Kim wrote:

On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:

Did anyone find a solution to the "jerky mouse" -problem? It still
exists in 7.0-RELEASE.

I have pretty much exact same symptoms as in this post:


http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html

Can you try the attached patches for ports/x11-servers/xorg-server?  
Just drop them in files directory, rebuild, reinstall, etc...


Thanks,

Jung-uk Kim


I'm running RELENG_7 built the day before yesterday with SCHED_ULE. Your patch 
doesn't improve anything for me. The system still locks up entirely while the 
mouse is not in movement.


Only not using moused helps.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread ken

  I think that your patch solved the problem with my 8.0-current.

Thank you..
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread Teemu Korhonen

Teemu Korhonen wrote:

Jung-uk Kim wrote:

On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:
 

Did anyone find a solution to the "jerky mouse" -problem? It still
exists in 7.0-RELEASE.

I have pretty much exact same symptoms as in this post:


http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html 



Can you try the attached patches for ports/x11-servers/xorg-server?  
Just drop them in files directory, rebuild, reinstall, etc...


Thanks,

Jung-uk Kim
  

Thanks, I'll try them tonight.

- Teemu Korhonen



Ok, I tried the patches and it seems to work at least with ule-scheduler.

I tested with both 4bsd and ule by building some ports:
with 4bsd, system is still very jerky/unusable, however
with ule, some cursor jumping still occurs, but things seem much 
smoother and I can actually do something while building.


Thanks a lot,

- Teemu Korhonen



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread Mark Kirkwood

David E. Thiel wrote:

On Thu, Feb 28, 2008 at 08:30:17PM +0200, Teemu Korhonen wrote:
  
Did anyone find a solution to the "jerky mouse" -problem? It still exists 
in 7.0-RELEASE.



I experienced some relief from this by switching my single-CPU system
to use hyperthreading, and using an SMP kernel. On dual-core machines,
it never seems to be a problem for me.

  
Interesting. I have just source upgraded world and kernel to 7.0 
(Actually 7-STABLE), and I am *not* seeing any jerky mouse issues - in 
fact the desktop experience is if anything better than in 6-STABLE. My 
system is SMP (2 CPUs, not dual core) - so SMP could be a factor.


However I have yet to rebuild userland (X, Gnome etc) - so it will be 
interesting to see if that makes any difference.


Cheers

Mark
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread Teemu Korhonen

Jung-uk Kim wrote:

On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:
  

Did anyone find a solution to the "jerky mouse" -problem? It still
exists in 7.0-RELEASE.

I have pretty much exact same symptoms as in this post:



http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html

Can you try the attached patches for ports/x11-servers/xorg-server?  
Just drop them in files directory, rebuild, reinstall, etc...


Thanks,

Jung-uk Kim
  

Thanks, I'll try them tonight.

- Teemu Korhonen
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread Jung-uk Kim
On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:
> Did anyone find a solution to the "jerky mouse" -problem? It still
> exists in 7.0-RELEASE.
>
> I have pretty much exact same symptoms as in this post:
> 
http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html

Can you try the attached patches for ports/x11-servers/xorg-server?  
Just drop them in files directory, rebuild, reinstall, etc...

Thanks,

Jung-uk Kim
--- configure.orig  2008-02-28 16:08:55.0 -0500
+++ configure   2008-02-28 16:11:19.0 -0500
@@ -30376,7 +30376,7 @@
 else
   cat >conftest.$ac_ext <<_ACEOF
 
-#define _POSIX_C_SOURCE 199309L
+#define _POSIX_C_SOURCE 200112L
 #include 
 
 int main(int argc, char *argv[]) {
--- configure.ac.orig   2007-09-06 01:59:00.0 -0400
+++ configure.ac2008-02-28 16:11:23.0 -0500
@@ -1055,7 +1055,7 @@
 LIBS="$CLOCK_LIBS"
 
 AC_RUN_IFELSE([
-#define _POSIX_C_SOURCE 199309L
+#define _POSIX_C_SOURCE 200112L
 #include 
 
 int main(int argc, char *argv[[]]) {
--- os/utils.c.orig 2007-08-23 15:04:55.0 -0400
+++ os/utils.c  2008-02-28 16:20:29.0 -0500
@@ -525,7 +525,11 @@
 
 #ifdef MONOTONIC_CLOCK
 struct timespec tp;
+#ifdef __FreeBSD__
+if (clock_gettime(CLOCK_MONOTONIC_FAST, &tp) == 0)
+#else
 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
+#endif
 return (tp.tv_sec * 1000) + (tp.tv_nsec / 100L);
 #endif
 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread Jung-uk Kim
On Thursday 28 February 2008 02:48 pm, Kris Kennaway wrote:
> Jung-uk Kim wrote:
> > On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:
> >> Did anyone find a solution to the "jerky mouse" -problem? It
> >> still exists in 7.0-RELEASE.
> >>
> >> I have pretty much exact same symptoms as in this post:
> >
> > http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/03
> >9599.html
> >
> > No.  However, the problem was well analyzed by delphij:
> >
> > http://docs.freebsd.org/cgi/mid.cgi?47C320DB.70004
> >
> > Jung-uk Kim
>
> Hmm, that is strange.  The real question is why X is doing so many
> gettimeofday syscalls at all.

http://www.x.org/wiki/Development/Documentation/InputEventProcessing

'For a motion event, the driver calls now xf86PostMotionEvent() and we 
are back on the server's side. For button events it is 
xf86PostButtonEvent(). Those in turn call GetPointerEvents() 
(GetKeyboardEvents() for keyboard events) which creates the necessary 
number of events and returns them to the caller. GetTimeInMillis() is 
called inside GetPointerEvents() and timestamps the OS time on the 
event. Inside the same function, miPointerSetPosition() is called to 
re-paint the mouse on the screen. It calls miPointerMoved(). The 
miPointerMoved() decides to start the hw or the sw 
management/rendering of the cursor (see section Cursor rendering). 
After this choose the events are put - one by one - onto the event 
queue using mieqEnqueue().'

I believe GetTimeInMillis() is unavoidable.  It uses gettimeofday(2) 
or clock_gettime(2) depending on OS since xorg-server-1.2.99.0:

http://lists.freedesktop.org/archives/xorg/2006-November/019334.html

Somehow it was not used in FreeBSD, though:

http://docs.freebsd.org/cgi/mid.cgi?20080227103210.694787ec

Jung-uk Kim
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread Kris Kennaway

Jung-uk Kim wrote:

On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:

Did anyone find a solution to the "jerky mouse" -problem? It still
exists in 7.0-RELEASE.

I have pretty much exact same symptoms as in this post:


http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html

No.  However, the problem was well analyzed by delphij:

http://docs.freebsd.org/cgi/mid.cgi?47C320DB.70004

Jung-uk Kim
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




Hmm, that is strange.  The real question is why X is doing so many 
gettimeofday syscalls at all.


Kris
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread Jung-uk Kim
On Thursday 28 February 2008 01:30 pm, Teemu Korhonen wrote:
> Did anyone find a solution to the "jerky mouse" -problem? It still
> exists in 7.0-RELEASE.
>
> I have pretty much exact same symptoms as in this post:
> 
http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html

No.  However, the problem was well analyzed by delphij:

http://docs.freebsd.org/cgi/mid.cgi?47C320DB.70004

Jung-uk Kim
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread Kris Kennaway

Teemu Korhonen wrote:
Did anyone find a solution to the "jerky mouse" -problem? It still 
exists in 7.0-RELEASE.


I have pretty much exact same symptoms as in this post:
http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039599.html


Part of the problem here is that these "symptoms" are far too generic 
for diagnosis and have a variety of known and unknown causes.


Some of the "known" causes include:

* Overloading the system transiently (e.g. if your KDE launches 30 
processes at once, the system is going to be a bit sluggish for a few 
seconds)


* Running powerd, which has poor interaction with interrupt delivery on 
at least one user's system (might be an ACPI issue or hardware-specific).


* Performing lots of I/O to a non-mpsafe filesystem like msdosfs.

The other causes have so far resisted understanding.

Kris

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jerky mouse still in 7.0-RELEASE

2008-02-28 Thread David E. Thiel
On Thu, Feb 28, 2008 at 08:30:17PM +0200, Teemu Korhonen wrote:
> Did anyone find a solution to the "jerky mouse" -problem? It still exists 
> in 7.0-RELEASE.

I experienced some relief from this by switching my single-CPU system
to use hyperthreading, and using an SMP kernel. On dual-core machines,
it never seems to be a problem for me.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"