* Re: [9fans] problems
@ 2000-08-01 19:09 Russ Cox
2000-08-01 20:10 ` [9fans] nvram etc Boyd Roberts
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Russ Cox @ 2000-08-01 19:09 UTC (permalink / raw)
To: 9fans, ancipites
1. My printer's paper tray doesn't hold enough sheets to
print the manuals. It looks as though, in devlpt.c, that
outch() doesn't check for Fpe when it finds an error. This
was encountered when trying to print vol1.ps.
That has always annoyed me. If you
tell me what the code should be I'll fix it.
Russ
^ permalink raw reply [flat|nested] 8+ messages in thread
* [9fans] nvram etc
2000-08-01 19:09 [9fans] problems Russ Cox
@ 2000-08-01 20:10 ` Boyd Roberts
2000-08-01 20:42 ` [9fans] problems D. Brownlee
2000-08-01 21:04 ` D. Brownlee
2 siblings, 0 replies; 8+ messages in thread
From: Boyd Roberts @ 2000-08-01 20:10 UTC (permalink / raw)
To: 9fans
why does the pc install depend on all this serious auth stuff?
i can understand that you want maintain a small code base, but
from a base level install who cares about all that auth nonsense.
look at kfscmd.
--
Boyd Roberts boyd@psycho-basket-case.org
But I doubt if our present system [U.S. Army] will produce such
an individual. They are too: _abrasive_, opinionated, undiplomatic,
nonconformist, and effective.
-- Colonel David H. Hackworth (U.S. Army, Ret.)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] problems
2000-08-01 19:09 [9fans] problems Russ Cox
2000-08-01 20:10 ` [9fans] nvram etc Boyd Roberts
@ 2000-08-01 20:42 ` D. Brownlee
2000-08-01 21:04 ` D. Brownlee
2 siblings, 0 replies; 8+ messages in thread
From: D. Brownlee @ 2000-08-01 20:42 UTC (permalink / raw)
To: Russ Cox; +Cc: 9fans
Hello,
The lpt driver is in /sys/src/9/pc/devlpt.c. That file has a
function outch():
for (tries = 0;; tries++){
status = inb(base+Qpsr);
if(!(status & Fselect) || !(status & Fnoerror))
Error(Eio); /* occurs when the paper tray is empty */
.
.
.
}
which might be changed to:
for (tries = 0;; tries++){
status = inb(base+Qpsr);
if(!(status & Fselect) || !(status & Fnoerror))
if (!(status & Fpe)) { /* paper ran out */
tries = 0;
continue;
}
else
Error(Eio);
.
.
.
}
I haven't tried this -- I haven't discovered how to rebuild
the kernel yet. 'Fpe' is already defined in devlpt.c. I may
have the test on 'Fpe' inverted -- don't know.
I think that the desired behaviour is that when the paper
runs out this will wait until someone comes by and installs
some paper, which should cause the 'Fpe' bit to change. That
is how some other PC *nix systems behave.
D. Brownlee
Russ Cox wrote:
>
> 1. My printer's paper tray doesn't hold enough sheets to
> print the manuals. It looks as though, in devlpt.c, that
> outch() doesn't check for Fpe when it finds an error. This
> was encountered when trying to print vol1.ps.
>
> That has always annoyed me. If you
> tell me what the code should be I'll fix it.
>
> Russ
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] problems
2000-08-01 19:09 [9fans] problems Russ Cox
2000-08-01 20:10 ` [9fans] nvram etc Boyd Roberts
2000-08-01 20:42 ` [9fans] problems D. Brownlee
@ 2000-08-01 21:04 ` D. Brownlee
2 siblings, 0 replies; 8+ messages in thread
From: D. Brownlee @ 2000-08-01 21:04 UTC (permalink / raw)
To: 9fans
I recently suggested a change without knowing
too much about how Plan 9 drivers work. Perhaps,
when 'Fpe' is detected, 'tsleep' should be called.
(wouldn't want to hang the whole system until someone
adds some more paper!) Or is the driver scheduled
independently? It is probably best to call 'tsleep'
in any case.
D. Brownlee
Russ Cox wrote:
>
> 1. My printer's paper tray doesn't hold enough sheets to
> print the manuals. It looks as though, in devlpt.c, that
> outch() doesn't check for Fpe when it finds an error. This
> was encountered when trying to print vol1.ps.
>
> That has always annoyed me. If you
> tell me what the code should be I'll fix it.
>
> Russ
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] nvram etc
@ 2000-08-01 20:31 Russ Cox
2000-08-01 20:38 ` Boyd Roberts
0 siblings, 1 reply; 8+ messages in thread
From: Russ Cox @ 2000-08-01 20:31 UTC (permalink / raw)
To: 9fans
If you're talking about the install process,
the only reason it uses an nvram file is so
that there is no prompt for a user name and
password, as would be the case if we had
used a terminal kernel. One less thing to
worry about having to explain in the
installation documents.
Once you've installed, the terminal doesn't
use the nvram at all. I don't really understand
what the problem is.
Russ
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] nvram etc
@ 2000-08-01 20:55 Russ Cox
2000-08-01 21:03 ` Boyd Roberts
0 siblings, 1 reply; 8+ messages in thread
From: Russ Cox @ 2000-08-01 20:55 UTC (permalink / raw)
To: 9fans
Yeah, I didn't plan far enough ahead to
such situations. It was a failure of vision.
There should be a way to install off a hard
disk too. My apologies. If you want to
build your own, you've got all the pieces. :)
Russ
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2000-08-01 21:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-01 19:09 [9fans] problems Russ Cox
2000-08-01 20:10 ` [9fans] nvram etc Boyd Roberts
2000-08-01 20:42 ` [9fans] problems D. Brownlee
2000-08-01 21:04 ` D. Brownlee
2000-08-01 20:31 [9fans] nvram etc Russ Cox
2000-08-01 20:38 ` Boyd Roberts
2000-08-01 20:55 Russ Cox
2000-08-01 21:03 ` Boyd Roberts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).