* Serial port slow on Linux dosemu
@ 2012-01-09 21:58 Mark Hounschell
2012-01-10 12:48 ` Mark Hounschell
2012-01-10 15:13 ` Mark Hounschell
0 siblings, 2 replies; 6+ messages in thread
From: Mark Hounschell @ 2012-01-09 21:58 UTC (permalink / raw)
To: linux-msdos
I've scanned the archives and tried everything I have read but my serial
ports are still very slow. I'm running some CableEye software and
connected to a cable tester via ttyS0. I've migrated an old p3 box to a
newer (still old but) Dual P4 2.2GZ processor. Everything works but the
serial port is too slow. The old p3 would test a cable in a second. Now
in the emulator it takes 8 seconds to test the same cable.
I have tried these 2 combos with no luck
$_ports = " device /dev/null range 0x3f8 0x3ff fast"
# $_com1 = "/dev/ttyS0"
and
#$_ports = " device /dev/null range 0x3f8 0x3ff fast"
$_com1 = "/dev/ttyS0"
They act the same. How can I get this thing to sing?
Thanks in advance
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial port slow on Linux dosemu
2012-01-09 21:58 Serial port slow on Linux dosemu Mark Hounschell
@ 2012-01-10 12:48 ` Mark Hounschell
2012-01-10 15:13 ` Mark Hounschell
1 sibling, 0 replies; 6+ messages in thread
From: Mark Hounschell @ 2012-01-10 12:48 UTC (permalink / raw)
To: linux-msdos
On 01/09/2012 04:58 PM, Mark Hounschell wrote:
> I've scanned the archives and tried everything I have read but my serial
> ports are still very slow. I'm running some CableEye software and
> connected to a cable tester via ttyS0. I've migrated an old p3 box to a
> newer (still old but) Dual P4 2.2GZ processor. Everything works but the
> serial port is too slow. The old p3 would test a cable in a second. Now
> in the emulator it takes 8 seconds to test the same cable.
>
> I have tried these 2 combos with no luck
>
> $_ports = " device /dev/null range 0x3f8 0x3ff fast"
> # $_com1 = "/dev/ttyS0"
>
> and
>
> #$_ports = " device /dev/null range 0x3f8 0x3ff fast"
> $_com1 = "/dev/ttyS0"
>
> They act the same. How can I get this thing to sing?
>
I guess I could have provided more info. I'm using the SuSE-12.1 dist
and the dosemu revision is dosemu-1.4.0.1-75.1.3.i586
Thanks
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial port slow on Linux dosemu
2012-01-09 21:58 Serial port slow on Linux dosemu Mark Hounschell
2012-01-10 12:48 ` Mark Hounschell
@ 2012-01-10 15:13 ` Mark Hounschell
2012-01-10 15:47 ` Paul Crawford
1 sibling, 1 reply; 6+ messages in thread
From: Mark Hounschell @ 2012-01-10 15:13 UTC (permalink / raw)
To: linux-msdos
On 01/09/2012 04:58 PM, Mark Hounschell wrote:
> I've scanned the archives and tried everything I have read but my serial
> ports are still very slow. I'm running some CableEye software and
> connected to a cable tester via ttyS0. I've migrated an old p3 box to a
> newer (still old but) Dual P4 2.2GZ processor. Everything works but the
> serial port is too slow. The old p3 would test a cable in a second. Now
> in the emulator it takes 8 seconds to test the same cable.
>
> I have tried these 2 combos with no luck
>
> $_ports = " device /dev/null range 0x3f8 0x3ff fast"
> # $_com1 = "/dev/ttyS0"
>
> and
>
> #$_ports = " device /dev/null range 0x3f8 0x3ff fast"
> $_com1 = "/dev/ttyS0"
>
> They act the same. How can I get this thing to sing?
When using the 2 config entries below "and" the -s option "as root" the
serial port speeds up to almost what it should be. It now takes 2
seconds to test the cable. That is good however, using the -s option
seems to force some sort of full screen and the "ega" graphics is then
broken. Without the -s option my window is as I define it in the config
file and "ega" graphics works OK.
$_ports = " device /dev/null range 0x3f8 0x3ff fast"
# $_com1 = "/dev/ttyS0"
Please help
Thanks
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial port slow on Linux dosemu
2012-01-10 15:13 ` Mark Hounschell
@ 2012-01-10 15:47 ` Paul Crawford
2012-01-10 16:20 ` Mark Hounschell
0 siblings, 1 reply; 6+ messages in thread
From: Paul Crawford @ 2012-01-10 15:47 UTC (permalink / raw)
To: markh; +Cc: linux-msdos
> When using the 2 config entries below "and" the -s option "as root" the
> serial port speeds up to almost what it should be. It now takes 2
> seconds to test the cable. That is good however, using the -s option
> seems to force some sort of full screen and the "ega" graphics is then
> broken. Without the -s option my window is as I define it in the config
> file and "ega" graphics works OK.
>
>
> $_ports = " device /dev/null range 0x3f8 0x3ff fast"
> # $_com1 = "/dev/ttyS0"
>
> Please help
If you attempt to get direct hardware access to any of the PC's I/O
ports (such as the UART for this case) you need to use -s for dosemu and
have it running with root privileges (e.g. adding it to sudo list, etc).
Just using '-s' should not break the graphics as such, unless your
software is also trying direct graphics card I/O access and that is
being passed through.
Regards, Paul
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial port slow on Linux dosemu
2012-01-10 15:47 ` Paul Crawford
@ 2012-01-10 16:20 ` Mark Hounschell
2012-01-11 13:40 ` Mark Hounschell
0 siblings, 1 reply; 6+ messages in thread
From: Mark Hounschell @ 2012-01-10 16:20 UTC (permalink / raw)
To: linux-msdos; +Cc: Paul Crawford
On 01/10/2012 10:47 AM, Paul Crawford wrote:
>> When using the 2 config entries below "and" the -s option "as root" the
>> serial port speeds up to almost what it should be. It now takes 2
>> seconds to test the cable. That is good however, using the -s option
>> seems to force some sort of full screen and the "ega" graphics is then
>> broken. Without the -s option my window is as I define it in the config
>> file and "ega" graphics works OK.
>>
>>
>> $_ports = " device /dev/null range 0x3f8 0x3ff fast"
>> # $_com1 = "/dev/ttyS0"
>>
>> Please help
>
> If you attempt to get direct hardware access to any of the PC's I/O
> ports (such as the UART for this case) you need to use -s for dosemu and
> have it running with root privileges (e.g. adding it to sudo list, etc).
>
> Just using '-s' should not break the graphics as such, unless your
> software is also trying direct graphics card I/O access and that is
> being passed through.
>
My $_ports entry should only allow serial stuff direct access through right?
I am running KDE and starting dosemu in a konsole terminal. When I do
not use the -s option it opens in a small 640x350 window on my big
screen and the dos "ega" graphics works. But the serial stuff is way too
slow. Any time I use the -s option it opens in a window of max size and
the ega stuff does not work but the serial stuff works well. The
application screen at this point is all amiss. Even though it is mostly
text. It acts this way when I run from a Virtual console also. IE tty2.
Whether or not I use the -s option. From any tty1-6, 8-12 it does this.
Is there a bug that causes the -s to use direct graphics card I/O
access, even though the $_ports is not specifying it?
Regards
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial port slow on Linux dosemu
2012-01-10 16:20 ` Mark Hounschell
@ 2012-01-11 13:40 ` Mark Hounschell
0 siblings, 0 replies; 6+ messages in thread
From: Mark Hounschell @ 2012-01-11 13:40 UTC (permalink / raw)
To: linux-msdos; +Cc: Paul Crawford
On 01/10/2012 11:20 AM, Mark Hounschell wrote:
> On 01/10/2012 10:47 AM, Paul Crawford wrote:
>>> When using the 2 config entries below "and" the -s option "as root" the
>>> serial port speeds up to almost what it should be. It now takes 2
>>> seconds to test the cable. That is good however, using the -s option
>>> seems to force some sort of full screen and the "ega" graphics is then
>>> broken. Without the -s option my window is as I define it in the config
>>> file and "ega" graphics works OK.
>>>
>>>
>>> $_ports = " device /dev/null range 0x3f8 0x3ff fast"
>>> # $_com1 = "/dev/ttyS0"
>>>
>>> Please help
>>
>> If you attempt to get direct hardware access to any of the PC's I/O
>> ports (such as the UART for this case) you need to use -s for dosemu and
>> have it running with root privileges (e.g. adding it to sudo list, etc).
>>
>> Just using '-s' should not break the graphics as such, unless your
>> software is also trying direct graphics card I/O access and that is
>> being passed through.
>>
>
> My $_ports entry should only allow serial stuff direct access through
> right?
>
> I am running KDE and starting dosemu in a konsole terminal. When I do
> not use the -s option it opens in a small 640x350 window on my big
> screen and the dos "ega" graphics works. But the serial stuff is way too
> slow. Any time I use the -s option it opens in a window of max size and
> the ega stuff does not work but the serial stuff works well. The
> application screen at this point is all amiss. Even though it is mostly
> text. It acts this way when I run from a Virtual console also. IE tty2.
> Whether or not I use the -s option. From any tty1-6, 8-12 it does this.
>
> Is there a bug that causes the -s to use direct graphics card I/O
> access, even though the $_ports is not specifying it?
>
> Regards
> Mark
> --
> 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
> .
>
If I comment out all the "can_do_root_stuff" code in
src/emu-i386/ports.c so that the -s option is not required for port
access, all works fine here.
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-11 13:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09 21:58 Serial port slow on Linux dosemu Mark Hounschell
2012-01-10 12:48 ` Mark Hounschell
2012-01-10 15:13 ` Mark Hounschell
2012-01-10 15:47 ` Paul Crawford
2012-01-10 16:20 ` Mark Hounschell
2012-01-11 13:40 ` Mark Hounschell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox