9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] VGA Hell, what else?!
@ 2000-12-08  4:25 jmk
  2000-12-08  4:31 ` George Michaelson
  0 siblings, 1 reply; 15+ messages in thread
From: jmk @ 2000-12-08  4:25 UTC (permalink / raw)
  To: 9fans

George Michaelson <ggm@dstc.edu.au>
	ok second take. during install phases, M$ drives the screen as a 640x480
	take-it-or-leave-it or is it even CGA 320x240?

	this implies all cards have some level of activity which works and supplies
	both bitmap and ASCII text services. 16 colours. flickery as hell. 

	wouldn't it make sense to wire the plan9 install floppies to this instead
	of any yeubeut higher-res, and do higher-res as a post-install?

Until aux/vga runs, the screen is in CGA mode, that's an 80 character wide
by 25 line text mode. You can do graphics in it and the Plan 9 2nd Edition
release did exactly that during the install phases. However, the predominant
depths used for graphics in the 2nd Edition were 1 and 4 bits, i.e. there wasn't
much colour. We were told often that we were not colourful enough so we ported
back the graphics model we did for Inferno, which was 8 bits deep and abandoned
the older stuff. Was that the right choice? I don't know but I'm happy enough
in that I don't need colour for what I do (I'm in CGA mode half the time).
Don't get me wrong, I'd love to have the NVIDIA and 3Dlabs cards I have lying
on the shelf working with Plan 9, but I don't have the time or inclination to
reverse-engineer an XFree86 driver without documentation. Does anyone else?

--jim


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] VGA Hell, what else?!
@ 2000-12-08 14:34 Richard Miller
  0 siblings, 0 replies; 15+ messages in thread
From: Richard Miller @ 2000-12-08 14:34 UTC (permalink / raw)
  To: 9fans

> (it'd be greyscale, and the new colors really don't
> look good in grey).

I disagree: on my grey-scale Eizo (FlexScan) monitor I find the subtle shades
of grey to be pleasing and restful.  In particular working with acme is more
comfortable there than on a colour ThinkPad where the highlighting in window
bodies is nearly invisible.

-- Richard



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] VGA Hell, what else?!
@ 2000-12-08  8:44 nigel
  0 siblings, 0 replies; 15+ messages in thread
From: nigel @ 2000-12-08  8:44 UTC (permalink / raw)
  To: 9fans

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

I have to agree with jmk. Well written though many of the XFree86 drivers are,
they still contain a worrying number of comments along the lines of "I seem to
need to do this", or "this is opposite to what the manual says", or "dunno it
just seems to work". This is not the authors' fault, believe me.

Add to this that just because a driver covers all chip revisions, it doesn't mean
that it has actually been tested. You could sit down and transcribe all the good
looking stuff into Plan 9 and find it makes no difference at all.

This appears to be true for my laptop.

Moral is, try XFree86 _before_ copying the changes.


[-- Attachment #2: Type: message/rfc822, Size: 2158 bytes --]

From: jmk@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] VGA Hell, what else?!
Date: Thu, 7 Dec 2000 21:18:23 -0500
Message-ID: <20001208021839.DB9D4199EB@mail.cse.psu.edu>

George Michaelson <ggm@dstc.edu.au>
	I don't mean to imply the code is worth pillaging (or not contrariwise
	in a tweedledee/tweedledum sense) but surely XFree86 drivers in effect
	codify the register and bitblt functions for all the chipsets people are
	seeking to dick with?

	Since the XFree86 code has to have a generalized ABI to call these, does
	this not mean there is a reductionist process to work back from the calls
	and work out what frobs to frib?

Oh, the XFree86 drivers are a wonderful resource but you'd be wrong to think
that the register functions are always codified, that the codifications mean
anything without a real datasheet or that there is always a way to work back
to an understanding.

--jim

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] VGA Hell, what else?!
@ 2000-12-08  7:22 Russ Cox
  2000-12-08  9:17 ` George Michaelson
  0 siblings, 1 reply; 15+ messages in thread
From: Russ Cox @ 2000-12-08  7:22 UTC (permalink / raw)
  To: 9fans

  > ok second take. during install phases, M$ drives the screen as a 640x480
  > take-it-or-leave-it or is it even CGA 320x240?
  > 
  This has been explained before, although I didn't pay enough attention at
  the time to recall correctly now :-(  But it should be in the mailing
  list archives.

You could set up 640x480x16, but it would require
a soft cursor, which we currently don't do.
You're going to be miserable in 640x480x16 anyway
(it'd be greyscale, and the new colors really don't
look good in grey).

The theory is that you're going to have to run with
a decent vga eventually, so we might as well deal with
it up front.  I think it's more frustrating to do the
whole install in text and then not be able to run the
system for lack of a graphics card.

  A graphic ABI (what's that "B"?  'Tused to be a "P", can someone explain
  the difference?) would be wonderful, but looking at the X11(3) man pages,

B is binary.  That would involve running other people's
binaries too.

Russ


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] VGA Hell, what else?!
@ 2000-12-08  7:17 Russ Cox
  0 siblings, 0 replies; 15+ messages in thread
From: Russ Cox @ 2000-12-08  7:17 UTC (permalink / raw)
  To: 9fans

  reasons, but what's the alternative?  What do the bell labs people do when
  they find themselves confronted with 't/huge-dir' that needs to be
  './huge-dir'?

The only times I find myself doing this is when
I have untarred an archive that had unexpected names in it.
Since I look at the names before untarring, this
is very rare.

There isn't the Unix plethora of places in which source
or binaries are kept, so it's not common that entire
trees move from one place to another.

  From the sound of it, a cross-directory rename not implemented for good
  reasons, but what's the alternative?  

The good reasons are good enough: how much more complicated
would 9P get in order to support this?  How much more complicated
would the kernel get?  Namec is hard enough to get right.
Since it is so rarely needed, it's not worth the effort.
Put things in the right place to begin with.

Russ


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] VGA Hell, what else?!
@ 2000-12-08  4:53 jmk
  0 siblings, 0 replies; 15+ messages in thread
From: jmk @ 2000-12-08  4:53 UTC (permalink / raw)
  To: 9fans

George Michaelson <ggm@dstc.edu.au>
	Have I missed something? If you are in CGA mode, does that mean that
	the install phase could still be made to work in CGA mode?

I beleive there are examples of people installing the system 'by hand', i.e.
editing plan9.ini manually and then issueing the neccessary commands to do the
install from the shell prompt. If that's what you want to do I'm sure someone
will either put me right or tell you what to do.

--jim


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] VGA Hell, what else?!
@ 2000-12-08  2:18 jmk
  2000-12-08  2:28 ` George Michaelson
  0 siblings, 1 reply; 15+ messages in thread
From: jmk @ 2000-12-08  2:18 UTC (permalink / raw)
  To: 9fans

George Michaelson <ggm@dstc.edu.au>
	I don't mean to imply the code is worth pillaging (or not contrariwise
	in a tweedledee/tweedledum sense) but surely XFree86 drivers in effect
	codify the register and bitblt functions for all the chipsets people are
	seeking to dick with?

	Since the XFree86 code has to have a generalized ABI to call these, does
	this not mean there is a reductionist process to work back from the calls
	and work out what frobs to frib?

Oh, the XFree86 drivers are a wonderful resource but you'd be wrong to think
that the register functions are always codified, that the codifications mean
anything without a real datasheet or that there is always a way to work back
to an understanding.

--jim


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] VGA Hell, what else?!
@ 2000-12-07  9:56 forsyth
  2000-12-07 22:55 ` George Michaelson
  0 siblings, 1 reply; 15+ messages in thread
From: forsyth @ 2000-12-07  9:56 UTC (permalink / raw)
  To: 9fans

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

in general, without the documents for the precise chips you've
got, you stand no chance of working with the vga code,
not because it doesn't use symbolic names, but because even
then you'll have no idea what the interpretation is, unless you
also copy the contents of each manual's register description
into the code as well.  different register numbers are used differently
by SVGA implementations, and in particular, ET4000 bears no
resemblance to S3 in the chip-dependent set (even within the S3
range you need the chip-specific books).  with the book to hand
(which as i've said you need anyway), for my own part, i find the use of numbers
eliminates a trip to the index for each one.  i suspect there's not
a standard naming scheme even for the common (ha!) subset that's VGA.

in fact, even with the documents for the precise chip, you've
still got your work cut out (in general, probably not in the case you mention).

>>I'm suffering from dreadful flicker trying to use 1024x768x8 on a

i find that sometimes happens to me when i drink too much,
which happens (funnily enough) each time i've had to work with svga.


[-- Attachment #2: Type: message/rfc822, Size: 2722 bytes --]

From: Lucio De Re <lucio@proxima.alt.za>
To: 9fans mailing list <9fans@cse.psu.edu>
Subject: [9fans] VGA Hell, what else?!
Date: Thu, 7 Dec 2000 10:23:34 +0200
Message-ID: <20001207102332.A20270@cackle.proxima.alt.za>

I'm suffering from dreadful flicker trying to use 1024x768x8 on a
multisync65, mostly because 1024x768x8i is utterly broken.  I'm
using what seems an old S3Virge/Diamond Stealth Pro.

I've hacked bits of "vga", if only to see what would happen, but
the results have been unpromising, no doubt because I've been using
some old ET 4000 documentation, inappropriate to the task.

So, two things: does anyone know where I can find S3 docs and would
it help any if I went to the trouble of relabelling all the register
numbers with what cobol programmers used to call "figurative
constants" (should that be all capitals, perhaps?) in the
sys/src/cmd/aux/vga directory?  I'm half hoping for a resounding
"no" to the second question :-)

++L

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [9fans] VGA Hell, what else?!
@ 2000-12-07  8:23 Lucio De Re
  0 siblings, 0 replies; 15+ messages in thread
From: Lucio De Re @ 2000-12-07  8:23 UTC (permalink / raw)
  To: 9fans mailing list

I'm suffering from dreadful flicker trying to use 1024x768x8 on a
multisync65, mostly because 1024x768x8i is utterly broken.  I'm
using what seems an old S3Virge/Diamond Stealth Pro.

I've hacked bits of "vga", if only to see what would happen, but
the results have been unpromising, no doubt because I've been using
some old ET 4000 documentation, inappropriate to the task.

So, two things: does anyone know where I can find S3 docs and would
it help any if I went to the trouble of relabelling all the register
numbers with what cobol programmers used to call "figurative
constants" (should that be all capitals, perhaps?) in the
sys/src/cmd/aux/vga directory?  I'm half hoping for a resounding
"no" to the second question :-)

++L


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

end of thread, other threads:[~2000-12-08 14:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-08  4:25 [9fans] VGA Hell, what else?! jmk
2000-12-08  4:31 ` George Michaelson
  -- strict thread matches above, loose matches on Subject: below --
2000-12-08 14:34 Richard Miller
2000-12-08  8:44 nigel
2000-12-08  7:22 Russ Cox
2000-12-08  9:17 ` George Michaelson
2000-12-08  7:17 Russ Cox
2000-12-08  4:53 jmk
2000-12-08  2:18 jmk
2000-12-08  2:28 ` George Michaelson
2000-12-08  4:03   ` Lucio De Re
2000-12-08  7:10     ` Quinn Dunkan
2000-12-07  9:56 forsyth
2000-12-07 22:55 ` George Michaelson
2000-12-07  8:23 Lucio De Re

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).