public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: mouse grabbing gotcha (was: dosemu 1.1.3.9 user report)
@ 2002-12-17  2:25 Stas Sergeev
  0 siblings, 0 replies; 6+ messages in thread
From: Stas Sergeev @ 2002-12-17  2:25 UTC (permalink / raw)
  To: linux-msdos

[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]

Hello.

Bart Oldeman wrote:
>> default "Home" should be changed.
>  Pause is already taken as being a force pause (freeze).
But it doesn't actually work, it
just lock up dosemu in a non-TSC
mode unless the attached patch is
applied.

> One problem is that you can define just about any keycombo in some of
> these window managers, so there is nothing that works everywhere;
Well, there are either the combos
that are always reserved by some
WMs, and those can and should be
avoided.

> however some combinations are used more often than others.
User-defined combos is not something
we have to care about, that was not
what I mean.

> ctrl+alt+scroll_lock might be something that makes sense though, since
> you're locking the mouse.
The only disadvantage of it is that
it switches a scroll-lock led:)

> For KDE I have ctrl+alt+esc (kill), ctrl+alt+del (logout).
And you'll probably never know what
other combos it already reserved
without you even asking it about:)
I think dosemu can avoid using those.

[-- Attachment #2: cputime.diff --]
[-- Type: text/plain, Size: 1406 bytes --]

--- src/emu-i386/cputime.c	Mon Dec 16 00:45:12 2002
+++ src/emu-i386/cputime.c	Tue Dec 17 04:54:30 2002
@@ -181,7 +181,6 @@
      * but only flags processing (& other features) */
     RAWcpuTIME = rawP5time;		/* in usecs */
     GETcpuTIME = getP5time;		/* in usecs */
-    ZeroTimeBase.td = GETTSC();		/* in CPU cycles */
     g_printf("TIMER: using pentium timing\n");
   }
   else {
@@ -189,7 +188,6 @@
      * 'rdtsc off' into config file */
     RAWcpuTIME = rawC4time;		/* in usecs */
     GETcpuTIME = getC4time;		/* in usecs */
-    ZeroTimeBase.td = rawC4time();	/* in usecs */
     if (config.realcpu) {
       if (kernel_version_code < 0x2017e)
         g_printf("TIMER: using gettimeofday\n");
@@ -197,6 +195,7 @@
         g_printf("TIMER: using new gettimeofday with microsecond resolution\n");
     }
   }
+  ZeroTimeBase.td = RAWcpuTIME();
 }
 
 
@@ -208,7 +207,7 @@
   if (cpu_time_stop) return 1;
   if (!quiet) dbug_printf("STOP TIME\n");
   StopTimeBase = RAWcpuTIME();
-  LastTimeRead = StopTimeBase - TSCtoUS(ZeroTimeBase.td);
+  LastTimeRead = StopTimeBase - ZeroTimeBase.td;
   cpu_time_stop = 1;
   return 0;
 }
@@ -218,7 +217,7 @@
 {
   if (!cpu_time_stop) return 1;
   if (!quiet) dbug_printf("RESTART TIME\n");
-  ZeroTimeBase.td += ((RAWcpuTIME() - StopTimeBase) * config.CPUSpeedInMhz);
+  ZeroTimeBase.td += RAWcpuTIME() - StopTimeBase;
   cpu_time_stop = 0;
   return 0;
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: mouse grabbing gotcha (was: dosemu 1.1.3.9 user report)
@ 2002-12-17  0:31 Stas Sergeev
  2002-12-17  0:49 ` Bart Oldeman
  0 siblings, 1 reply; 6+ messages in thread
From: Stas Sergeev @ 2002-12-17  0:31 UTC (permalink / raw)
  To: linux-msdos

Hello.

Peter Jay Salzman wrote:
> i guess enlightenment traps cntl-alt-home, because the key combo won't
> let dosemu grab the mouse.
> however, it DOES work with twm.
Can you figure out a more reliable
combination then?
Set $_X_mgrab_key to, say, "Scroll_Lock"
or "Pause" and if there is something
that works everywhere, then I think the
default "Home" should be changed.


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: dosemu 1.1.3.9 user report
@ 2002-12-16 19:17 Peter Jay Salzman
  2002-12-16 19:49 ` Bart Oldeman
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Jay Salzman @ 2002-12-16 19:17 UTC (permalink / raw)
  To: Jan Willem Stumpel; +Cc: linux-msdos

hi jan,

IIRC, there was talk about important dosemu related patches that are
present in the most recent kernels.   i think it was said that the
patches have been in the ac kernels for awhile, but have just recently
made it into the vanilla 2.4 kernels.

i have no idea what the patches do, but you can try using 2.4.20 and see
what happens.


btw, it sounds like you're playing in an xdos box.  have you been able
to play at all in console?

have you been able to have xdosemu grab the mouse?  i've been having
trouble playing redneck rampage because if the mouse "moves over" too
far left or right, the mouse leaves the xdos window.

pete



begin Jan Willem Stumpel <jstumpel@planet.nl> 
> According to "top", 1.1.3.9 takes up 99 % CPU even when just
> displaying the C:> prompt.
> 
> 1.1.3.7 does this also; but 1.1.3.0 and 1.0.2.1 do not. They
> hardly use any CPU when just displaying the prompt (or waiting for
> a keystroke in a text-mode program).
> 
> Wolfenstein 3D:
> 1.0.2.1, 1.1.3.7, 1.1.3.9 play with $_sound = (off) .
> 1.1.3.0 hangs (with or without sound) after displaying the
> start-up (setup) screen. Control-Alt-PgDn is the only way out.
> 1.1.3.7, 1.1.3.9 hang with $_sound = (on) .
> 
> Duke Nukem3D:
> 1.0.2.1 plays fine without sound.
> 1.1.3.0 plays without sound, but after a short while suddenly
> disappears (no more dosemu window).
> 1.1.3.7, 1.1.3.9 play, with $_sound = (on) and soundblaster
> selected in Duke Nukem Setup. I can see *and hear* the demo
> (sounds, no music). When I want to start a game, I can select the
> game type ("L.A. Meltdown" or whatever); however, when I try to
> select the difficulty level the program hangs.
> 
> All this with kernel 2.2.18pre21, $_dpmi = (8192) , $_hogthreshold
> = (800).
> 
> Regards, Jan
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
First they ignore you, then they laugh at you, then they fight you,
then you win. -- Gandhi, being prophetic about Linux.

Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-12-17  2:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-17  2:25 mouse grabbing gotcha (was: dosemu 1.1.3.9 user report) Stas Sergeev
  -- strict thread matches above, loose matches on Subject: below --
2002-12-17  0:31 Stas Sergeev
2002-12-17  0:49 ` Bart Oldeman
2002-12-17  1:39   ` Peter Jay Salzman
2002-12-17  2:25     ` Bart Oldeman
2002-12-16 19:17 dosemu 1.1.3.9 user report Peter Jay Salzman
2002-12-16 19:49 ` Bart Oldeman
2002-12-16 23:57   ` mouse grabbing gotcha (was: dosemu 1.1.3.9 user report) Peter Jay Salzman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox