Re: How to configure the graphic device?
> However I would like to use wm/wm...
> I tried all the graphic cards I have, including s3 family, ATI, NVidia.
> I checked in the source code the drivers should support such cards
> according the VendorId/DeviceId pair.
>
> I am using the following sequence to setup the graphic driver:
> ; echo type <drivername> >/dev/vgactl
> ; echo drawinit >/dev/vgactl
>
> Real example:
> ; echo type mach64xx >/dev/vgactl
> ; echo drawinit >/dev/vgactl
>
> After the last command the shell is frozen forever... :(
>
> Please, can you help me to understand how to setup the graphic driver?
The current state of affairs for native graphics on PC hardware
is pretty limited. There are several ways this can be approached
and have been in the Plan 9/Inferno world. The most common
current method used in Plan 9 is to use the VESA support on the
graphics cards. That requires some mechanism for executing
real-mode 16-bit x86 code. The best way to do that these days
seems to be to include a 16-bit x86 emulator, often in the kernel.
However, unless it appeared when I wasn't looking, I'm pretty
sure there's not one currently in Inferno. Prior to that, aux/vga
in Plan 9 had a lot of knowledge about how to initialize
different types of cards, but as you can imagine keeping that up
to date straddles the border between insane and impossible.
However, the vga drivers in os/pc came from that time frame.
A year or so ago I had some motivation to do a driver for the
original generic VGA (640x480x4 max). It's pretty useless
for color, but doesn't do bad for greyscale, and it works on
pretty much any hardware. You can pull a tarball with it
from
http://code.google.com/p/inferno-bls/downloads/detail?name=vga.tgz&can=2&q=
For that matter, I was working on an Inferno Live CD a little
while back that used it, but that project has gotten stalled.
(I have a bad habit of pushing current projects down on the
stack when new projects come up. The big problem is that
new projects come up fast enough that things rarely get popped
off.)
So as far as I can tell, your options are to settle for 640x480x4,
recreate aux/vga, or port the 16-bit support and vgavesa.c
from Plan 9.
Hope this helps,
BLS