Subject: Linux-Development Digest #908
From: Digestifier <Linux-Development-Request@senator-bedfellow.MIT.EDU>
To: Linux-Development@senator-bedfellow.MIT.EDU
Reply-To: Linux-Development@senator-bedfellow.MIT.EDU
Date:     Tue, 12 Jul 94 03:13:09 EDT

Linux-Development Digest #908, Volume #1         Tue, 12 Jul 94 03:13:09 EDT

Contents:
  Re: Dosemu .52 EMS Memory (Rob Janssen)
  Re: Parallel printer speed? (Rob Janssen)
  Re: Help: Modules in Linux kernel (Rob Janssen)
  Re: Adaptec 2842 VL SCSI controller support (Rob Janssen)
  Re: ?: free MOTIF clone ? (Bob Willmot)
  Re: Energy Star Screen Saver for X? Monitor Shutdown codes? (Mark Lord)
  Convert sun ioctl to Linux (John Michael Plunkett Quinn)
  Re: what about 3C50[57] ? was:Re: 3C505 (Alan Cox)
  Xfree86 3.0? estimated release? (CREEP)
  Arcnet drivers anyone? I'll help! (sorta) (Kevin Burtch)
  Digi(something) intelligent serial driver?  (Kevin Burtch)
  Re: Last cry for help with Linux and sound!! (David Monro)
  HELP with creating shared lib (Robert D. Warren)
  Re: Help: Modules in Linux kernel (John Paul Morrison)
  What is this error? (Peter Hoffman)
  Re: Energy Star Screen Saver for X? Monitor Shutdown codes? (Mark Lord)
  Re: ping doesn't work with 1.1.26 (Erik Heinz)

----------------------------------------------------------------------------

From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: Dosemu .52 EMS Memory
Reply-To: pe1chl@rabo.nl
Date: Mon, 11 Jul 1994 21:31:02 GMT

In <2vrpkh$sko@Venus.mcs.com> johnb@MCS.COM (Rosemary Balicki) writes:


>       Hello! I am hacing problems with Dosemu version .52.  It seems
>when I edit the dosemu.conf file to get EMS memory enabled it doesnt
>give me any EMS memory in DOS. XMS works fine though.  Any suggestions?
>Thanks in advance!

Don't forget to load the provided ems.sys from the config.sys file...

Rob
-- 
=========================================================================
| Rob Janssen                | AMPRnet:   rob@pe1chl.ampr.org           |
| e-mail: pe1chl@rabo.nl     | AX.25 BBS: PE1CHL@PI8UTR.#UTR.NLD.EU     |
=========================================================================

------------------------------

Crossposted-To: comp.os.linux.help
From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: Parallel printer speed?
Reply-To: pe1chl@rabo.nl
Date: Mon, 11 Jul 1994 21:41:44 GMT

In <jra.195.00091C81@lawdept.daytonOH.ncr.com> jra@lawdept.daytonOH.ncr.com (John Ackermann) writes:

>In article <jra.194.00087884@lawdept.daytonOH.ncr.com> I wrote: 

>>I used the "tiger.ps" file from /usr/lib/ghostview/examples as my test case.  
>>It's a 78,519 byte postscript file that prints a single, full page image.

>{...}

>>So, anyone have any clues on why it takes 4:45 to send 78kb down the parallel 
>>port, and how I can speed this up?

>OK, I turned my brain on and realized that we're sending more than 78 
>kilobytes down the wire to the printer (though I don't know exactly how much 
>data is going) but 4:45 is still awfully slow for one page!

I just wanted to suggest you to fist run the gs to a file, and see that
it is really somehwat more than 78K that you are trying to send, but
you already found out yourself :-)

Sometime ago, it was suggested to make a change to the number of
checks the system makes for a ready printer in the IRQ handler:

/usr/src/linux/drivers/char/lp.c:

static int lp_char_interrupt(char lpchar, int minor)
{
        int wait = 0;
        unsigned char status;


        if (!((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)
        || !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)
        || !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)) {

        ^^^^ increase the number of checks in the if() statement

Probably it would be better if this was made using a loop and a settable
variable...

The explanation of this would be that the printer sends an ACK (and therefore
an interrupt is generated) but remains BUSY for some small time afterwards,
so the interrupt routine always returns without sending anything and you
are effectively relying on polling to send data.


Rob
-- 
=========================================================================
| Rob Janssen                | AMPRnet:   rob@pe1chl.ampr.org           |
| e-mail: pe1chl@rabo.nl     | AX.25 BBS: PE1CHL@PI8UTR.#UTR.NLD.EU     |
=========================================================================

------------------------------

From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: Help: Modules in Linux kernel
Reply-To: pe1chl@rabo.nl
Date: Mon, 11 Jul 1994 21:43:22 GMT

In <2vr54v$lqr@smurf.noris.de> urlichs@smurf.noris.de (Matthias Urlichs) writes:

>NB: I hate /proc/devices. Better to split that file into block_devices and
>    char_devices.

Or remove the subtitles and add the "character" or "block" indication to
each line separately.

Rob
-- 
=========================================================================
| Rob Janssen                | AMPRnet:   rob@pe1chl.ampr.org           |
| e-mail: pe1chl@rabo.nl     | AX.25 BBS: PE1CHL@PI8UTR.#UTR.NLD.EU     |
=========================================================================

------------------------------

From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: Adaptec 2842 VL SCSI controller support
Reply-To: pe1chl@rabo.nl
Date: Mon, 11 Jul 1994 21:45:52 GMT

In <2vrq36$3rq@male.EBay.Sun.COM> raman@jay.EBay.Sun.COM (Jay Raman) writes:

>Does Linux support adaptec 2842 VL SCSI controller?  
>If so can any one point me where I can find the driver.
>If one doesn't exist can some one give me pointers as to
>how to modify the one for 154x series to 2842 VL?

You have won the "asking a frequently asked question without first
reading the FAQ" award of this week!

Rob
-- 
=========================================================================
| Rob Janssen                | AMPRnet:   rob@pe1chl.ampr.org           |
| e-mail: pe1chl@rabo.nl     | AX.25 BBS: PE1CHL@PI8UTR.#UTR.NLD.EU     |
=========================================================================

------------------------------

From: willmod@remus.rutgers.edu (Bob Willmot)
Crossposted-To: comp.os.linux.misc,comp.os.linux.help
Subject: Re: ?: free MOTIF clone ?
Date: 11 Jul 94 12:57:44 GMT

sws@tora.RoBIN.de (Steffen W. Schilke) writes:

>Hi,

>I onces heard something about a free (share/PD/free-ware) MOTIF or a
>project which is working on something like that.

>Is there something like that (or at least planned) ?


>ThanX  steffen


I got this from comp.os.linux.announce:

After announcing "Motif for Linux" in the Trans-Ameritech Supplement,
I got the rumors that "OSF agents are after my head ".
 
Therefore I have to make the following disclaimer.
 
1. I CAN NOT CALL IT "MOTIF", BUT DESCRIBE IT AS ONE OF THE FOLLOWING:
 
"a motif for Linux"
"100% source code compatible with OSF/Motif"
 
(i.e. a clone of Motif).
 
2.  THE FINAL DISTRIBUTION AGREEMENT IS NOT READY YET.  ONLY AFTER IT'S
READY, PER YOUR ORDER, I CAN MAIL YOU THE ACTIVATION FLOPPY AND THE MANUAL.
(and will collect $139 for that).
 
I expect the agreement to be finalized in a couple of weeks.  I will
announce it (if I'am still alive by that time).
 
Roman.
Trans-Ameritech
 
P.S. Go figure ...

------------------------------

From: mlord@bnr.ca (Mark Lord)
Crossposted-To: comp.os.linux.help
Subject: Re: Energy Star Screen Saver for X? Monitor Shutdown codes?
Date: 12 Jul 1994 00:19:48 GMT

In article <2vsalk$qec@bmerha64.bnr.ca> mlord@bnr.ca writes:
..
>I'll have a look in my monitor's specs tonight to see if the details
>are listed there.

Okay, here's the scoop.  My Mitsubishi DiamondScan 17FS claims to 
support the VESA, EPA, and NUTEK power management requirements:

1. Stand-by mode:  when the Hsync is off, the monitor is switched to a
stand-by mode, the screen is off, and when Hsync is restored the monitor
resumes "immediately".

2. Suspend mode:  when the Vsync is off, the monitor is switched to a
suspend mode, the screen is off, and when Vsync is restored the monitor
resumes "immediately".

3. Complete-off mode:  when the Hsync *and* Vsync are both off, the monitor
is switched to a complete-off mode, the screen is off, and when the two
syncs are restored the monitor resumes within 15 seconds.

So as long as a screen blanker does it's job by turning off the sync
signal(s), the energy saving circuit will kick in. 

Looking at function "blank_screen()" in linux/drivers/char/console.c,
it appears that linux by default does not do this, but rather simply
fills the display with spaces (0x0020) and turns off the cursor.

It also looks pretty trivial to add a line or two to turn off the sync(s).
-- 
mlord@bnr.ca    Mark Lord       BNR Ottawa,Canada       613-763-7482

------------------------------

From: John@mquinn.demon.co.uk (John Michael Plunkett Quinn)
Subject: Convert sun ioctl to Linux
Reply-To: John@mquinn.demon.co.uk
Date: Mon, 11 Jul 1994 23:58:54 +0000

I am converting a program that runs under Xwindows on sun to Xwindows on 
Linux.  The original program uses the call ioctl (0, TIOCGETP, &oldsg) to 
fill in the structure oldsg which is defined in /usr/include/bsd/sgtty.h by 
typedef struct {...} sgtty; The call should enable the user's values for
erase and kill fields to be obtained and stored for later use.
The ioctl call returns -1 which I presume means failure.  In the original
version on the sun the program would abort in that situation.
If I comment out the test for < 0 the program works but the behaviour
associated with those two inputs is incorrect.
Can anyone suggest why the call is failing and what should it be replaced
by for Linux..
TIA Michael.
-- 
J Michael P Quinn

------------------------------

From: iialan@iifeak (Alan Cox)
Subject: Re: what about 3C50[57] ? was:Re: 3C505
Date: Mon, 11 Jul 1994 19:24:45 GMT

In article <1994Jul8.131349.358@nehlsen.toppoint.de> stefan@nehlsen.toppoint.de (Stefan Nehlsen) writes:
>Why are these drivers commented out?
>
Because they are ALPHA test. The latest kernel as well as having a load 
more drivers like the 3c507 in it asks you if you want ALPHA test drivers
and lets you decide. Just don't expect them to work perfectly in all cases.

Alan
-- 
Alan Cox: gw4pts@gw4pts.ampr.org      \\  //          GW4PTS@GB7SWN
=======================================\\//===================================
<<<<<<     Toolkits are for WIMPS :::: //\\Lib :::: the only way to fly >>>>>>
======================================//==\\==================================

------------------------------

From: n9410493@animal.cc.wwu.edu (CREEP)
Subject: Xfree86 3.0? estimated release?
Date: 11 Jul 94 19:29:09 GMT

i was wondering anyone had an approximate release date for XFree86 3.X, i 
am planning to install X soon, and if the wait is short i'd rather just 
install 3.X rather than go through the upgrade mess.


thanks

Jeff [n9410493@cc.wwu.edu]


------------------------------

From: kburtch@pts.mot.com (Kevin Burtch)
Subject: Arcnet drivers anyone? I'll help! (sorta)
Reply-To: kburtch@pts.mot.com
Date: Mon, 11 Jul 1994 18:47:47 GMT

I hope this gets *someone's* attention...  :)

I just found a heck of a deal - Arcnet (labeled ANET) cards for $5 each! The
guy had 1 with a single BNC connector, and 8-12 with 4 BNCs. I read the FAQs,
and the only thing I could find said:

"
2.08 Arcnet

        There is no Arcnet driver for Linux. Feel free to write a driver. With
        the very low cost and better performance of ethernet, I expect that
        most places will be giving away their Arcnet hardware for free,
        resulting in a lot of home systems with Arcnet.

        An advantage of Arcnet is that all of the cards have identical
        interfaces, so once a driver is available it will work for everyone.

        If you are feeling brave, there is "arcnet.c" in the usual place
        (see the FAQ section if you don't know where that is) that you
        can play with. Don't expect to just plug in this file and have
        everything work. However it may prove to be a good starting point
        for a bored driver-hacker. Also look at Russ Nelson's "arcether"
        packet driver.
"

So it seems there is either one that needs to be fine-tuned, or the framework
for one. I am not at the level where I can do driver hacking (yet), nor do I
know anything at all about controlling network cards.

Now I can't get to these cards again for about a month as I only see this guy
at the local monthly computer swap meet. I am considering buying several of 
these cards, and *maybe* even giving a pair to someone experienced enough to
write a driver for them. The only problem is, I have no way of knowing if these
used cards are good. They are fully labeled as far as the interrupt setting
goes (2,3,4,5,7,11,13,14,15, I think) and may have even more info on them...
I didn't look at them for that long. :) I will only give away a pair to a 
person who has more trouble than I affording them.

Is this worth bothering with? Am I wasting my time? (and yours?) If there
aren't that many Arcnet cards around for this to be useable by a large group,
we may want to just forget about this... 


Thanks!
---
              ______
Let me know  /\_,--|)
if you like / /    (     Kevin Burtch            ,,
Scorpions  |_|       ______________.__         ,///  My buddies include:
as pets.   \ \___,--'       ___ `----'S     ,-' // 1 Giant Asian Forest Scorp.
            \/___|__       / /\\/\ ,^ /\   /   //  1 Emperor Scorpion (Mom)
                    `-----/-/--\\|/--Y L,-|   '/  19 Emperor Scorpion babies
                         / /  /      \/__,----'    2 yet to be identified
                         ` `  `        `-            (caught in S. Florida)



------------------------------

From: kburtch@pts.mot.com (Kevin Burtch)
Subject: Digi(something) intelligent serial driver? 
Reply-To: kburtch@pts.mot.com
Date: Mon, 11 Jul 1994 19:04:07 GMT


I found a guy (same guy as the Arcnet cards) with a small pile of intelligent
8 port serial boards (with 80188 and 16450s) for sale at what appears to be
a heck of a deal. He was asking $50 each, but is negotiable. I believe these
to be the same as the one the guy in misc.forsale.* is selling for $675! I
think they are DigiBoard, but may be DigiTech or something. 

The question is: Are there any drivers for this type of board? I know it's
hard to say without knowing the exact make/model of the card, but I remember
reading (a long time ago) somewhere that some intelligent multiport cards
were supported. I just can't remember which ones were mentioned, and I can't
find Digi(anything) in any of the relevant FAQs. 

These would be great for anyone running a multi-node linux BBS, so I'm just
trying to help.  (please - no flames on my stupid post. I normally try to
supply as much useable information as possible, but I didn't have anything
to write with/on when I saw these cards)

Thanks for your time. Sorry for the airy post.
---
              ______
Let me know  /\_,--|)
if you like / /    (     Kevin Burtch            ,,
Scorpions  |_|       ______________.__         ,///  My buddies include:
as pets.   \ \___,--'       ___ `----'S     ,-' // 1 Giant Asian Forest Scorp.
            \/___|__       / /\\/\ ,^ /\   /   //  1 Emperor Scorpion (Mom)
                    `-----/-/--\\|/--Y L,-|   '/  19 Emperor Scorpion babies
                         / /  /      \/__,----'    2 yet to be identified
                         ` `  `        `-            (caught in S. Florida)



------------------------------

Crossposted-To: alt.os.linux,comp.os.linux,comp.os.linux.help,comp.os.linux.mis
From: davidm@syd.dms.CSIRO.AU (David Monro)
Subject: Re: Last cry for help with Linux and sound!!
Reply-To: davidm@syd.dms.CSIRO.AU (David Monro)
Date: Tue, 12 Jul 1994 02:07:00 GMT


In article <2vru2n$gfj@taco.cc.ncsu.edu>, bkpipa@eos.ncsu.edu (BRIAN KEITH PIPA) writes:
|> 
|> I am trying to do a computer project with Linux and sound but I can't get the
|> kernel recompiled to support sound. I have gotten both the PAS and the SB
|> to work under DOS, but I can't get my newly compiled Linux kernel to boot.
|> 
|> 
|> I have tried recompiling the kernal NUMEROUS times to support sound.
|> I have tried it with a PAS and a SB (seperately - not installed at the same
|> time). With each I get varying degrees of
|> success. The closest it came to working was when it detected the SB
|> but said "unable to mount root". Sometimes it will freeze when it says
|> "Loading Linux" and won't say "Uncompressing Linux". Sometimes it gets farther.
|> One time it said "Unable to fill buffer - system halted".
|> 
|> Anyone have ANY idea what I'm doing wrong? Maybe I'm choosing one of the options
|> wrong when I'm compiling? I have read all the instructions and FAQ's I could
|> findbut there is no help with the compiling options or troubleshooting.
|> 
|> HELP!
|> 
|> This is being done on a 386 machine with an ethernet card hooked into a small
|> local network with one of the computers on the internet - if that helps any.
|> Linux works fine before I try to get the sound support.
My guess is the ethernet has a dma channel which is conflicting with the sound
card dma channel. This will cause havoc under linux while working under dos (as
I discovered a while ago with a SB16 and a 3c501). Try changing the dma channels you are using. Try removing the ethernet card if all else fails.
|> 
|> Thanks for any help given
|> Brian
|> bkpipa@eos.ncsu.edu
David Monro
(davidm@syd.dms.csiro.au)

------------------------------

From: rw11258@acs.appstate.edu (Robert D. Warren)
Subject: HELP with creating shared lib
Date: 12 Jul 1994 03:48:57 GMT

        Does anyone know how to create a shared lib? I have searched
everywhere, and not found any clue. Can somebody point me to some
documentation. Thanks in advance.
                                                
                                                Robert D. Warren
                                                rw11258@appstate.edu
                                                acsop25@appstate.edu

------------------------------

From: jmorriso@bogomips.ee.ubc.ca (John Paul Morrison)
Subject: Re: Help: Modules in Linux kernel
Date: Mon, 11 Jul 1994 19:07:41 GMT

In article <CsME84.4K6@info.swan.ac.uk>, Alan Cox <iialan@iifeak> wrote:
>In article <2vhd79$6s1@smurf.noris.de> urlichs@smurf.noris.de (Matthias Urlichs) writes:
>>Fixed major numbers aren't necessary any more anyway, except for the
>>disk you're booting from, and the console.
>
>The prospect of a file system coming up read only and MAKEDEV not being able
>to run to number your devices properly so fsck can recover disks to say
>the least worries me. There is a lot of scope for getting variable numbering
>wrong. 

why can't there be /proc/dev/hda,hda1,... sda1 etc? with /dev/ having
symlinks just for compatibility/nostalgia? using mknod to create the
device files is a bit silly when the kernel already knows what devices
are present. And with the right code, kernel drivers and module
drivers could request majors/minors, allocating them on the fly
instead of worrying about all the paperwork of an official majors
list. One could also gripe about the usefulness of /etc/mtab, when
/proc/mtab would make more sense.

(The only thing that might need figuring out is to make sure
/proc/dev/ would only have entries for valid minors, and I you would
need a way to chmod the /proc/dev/ entries depending on how you want
to control access)

device files were used to try and make everything act like a file. 
for the /proc filesystem, I've thought it could be abused by making
/proc/ read/write for /proc/modules. ie: 

# ls /proc/modules

3c509.o         busmouse.o      msdosfs.o       

# cp soundblaster.o /proc/modules

etc. :^)
 
>
>Alan
>
>-- 
>Alan Cox: gw4pts@gw4pts.ampr.org      \\  //          GW4PTS@GB7SWN
>---------------------------------------\\//-----------------------------------
><<<<<<     Toolkits are for WIMPS :::: //\\Lib :::: the only way to fly >>>>>>
>--------------------------------------//--\\----------------------------------


-- 
===========================================================================
BogoMIPS Research Labs  --  bogosity research & simulation  --  VE7JPM  -- 
jmorriso@bogomips.ee.ubc.ca ve7jpm@ve7jpm.ampr.org jmorriso@rflab.ee.ubc.ca
===========================================================================

------------------------------

From: peter@melanie.gaeacorp.com (Peter Hoffman)
Subject: What is this error?
Date: Tue, 12 Jul 1994 00:06:32 GMT

I have a BBS system that does an "execl(quit,NULL);" where "quit"
is this code:

        #include <stdio.h>
        #include <stdlib.h>
        #include <unistd.h>
        #include "cbbs.h"
        
        int main(void) {
        
          system(CLEAR);
          printf("Thanks for visiting %s,\n", BBS);
          printf("  --  Call again soon!\n");
          sleep(5);
          exit(0);
        }

In "cbbs.h" :

        #define CLEAR "/usr/bin/clear"
        #define quit  "/home/peter/cbbs/bin/quit" 

This produces this error message (?) instead of doing the printf()s:

        libc.so.4 (DLL Jump 4.5pl24) => /lib/libc.so.4.5.24

Does anyone know what this means?

Thanks,
Peter Hoffman
peter@melanie.ibank

------------------------------

From: mlord@bnr.ca (Mark Lord)
Crossposted-To: comp.os.linux.help
Subject: Re: Energy Star Screen Saver for X? Monitor Shutdown codes?
Date: 11 Jul 1994 20:39:16 GMT

In article <2vs5h2$fdj@opine.cs.umass.edu> crocker@opine writes:
>shmueli@moomintroll wrote:
>: Hello there, 
>
>: I am desparately seeking a linux program that will send my energy-star
>: compliant MAG 17" monitor (Gateway 1776 LE G) the necessary codes to
>: switch it to different standby modes on inactivity. Please let me know
>: if such exists!
...
>somebody correct me if I'm wrong...  but I'm pretty sure that most graphics
>cards DON'T support energy star monitors  (ie by sending them a signal to 
>shutdown.)   Most of the energy star monitors just look for a blank screen 
>(ie completly black) for a duration then they will shut themselves down.

I dunno for sure, but my impression was that the EnergyStar monitors
use the Hsync and Vsync signals as an indication of when to power down.

Something like "lack-of-hsync = goto 2second standby" (or whatever)
and "lack-of-hsync-and-vsync = goto 30second standby" (or whatever).

I'll have a look in my monitor's specs tonight to see if the details
are listed there.
-- 
mlord@bnr.ca    Mark Lord       BNR Ottawa,Canada       613-763-7482

------------------------------

From: erik@Elbereth.thur.de (Erik Heinz)
Subject: Re: ping doesn't work with 1.1.26
Date: Mon, 11 Jul 1994 16:53:07 GMT

Robert G. Smith (rob@bip.anatomy.upenn.edu) wrote:

:   When I updated to 1.1.26, the network stuff like ftp, rlogin, 
: telnet, rsh all work fine but ping returns with "0 packets received"

Yes, ICMP is broken in 1.1.25 and 1.1.26.
It seems to be fixed in 1.1.27. At least it works for me.

-- 
| Erik Heinz, Brandstrvmstr.45, D-07749 Jena, Germany  erik@elbereth.thur.de |
|----------------------------------------------------------------------------|
| .. and elanor and niphredil bloom no more east of the sea.  J.R.R. Tolkien |

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: Linux-Development-Request@NEWS-DIGESTS.MIT.EDU

You can send mail to the entire list (and comp.os.linux.development) via:

    Internet: Linux-Development@NEWS-DIGESTS.MIT.EDU

Linux may be obtained via one of these FTP sites:
    nic.funet.fi				pub/OS/Linux
    tsx-11.mit.edu				pub/linux
    sunsite.unc.edu				pub/Linux

End of Linux-Development Digest
******************************
