Ricardo Baratto wrote:
> 
> Hi all,
> is it possible to write an xfree86 graphics driver that has similar functionality as 
>Xvfb? (i.e. doesn't care/require graphics hw on the machine). I'm playing with 
>writing a thin client (like vnc) that's transparent to X apps, and even though i 
>could hack Xvfb to do what i want, it seems to me that a graphics driver would be a 
>much nicer approach.
> I've been looking through the drivers code and playing with it and it seems like 
>there's no straighforward/clean way to tell X:
> "i don't care about the hw, just trust me, i can display anything".
> The cleanest way seems to be to tell X that I'm a generic vga driver and can support 
>any hw, so is this the only way to go? any problems that could arise from this?
One drawback is with VT switching.  
> 
> thanks,
> ricardo

http://didier.gautheron.free.fr/vfbdev.tgz    

It's the fbdev driver with hw calls removed. For multiple heads you need
to define BusID in the "isa" name space

Section "Device"
    Identifier  "Virtual Frame buffer"
    Driver      "vfbdev"
    BusID       "isa:1"
    Option      "shm" "on"
EndSection

Section "Device"
    Identifier  "Virtual Frame buffer"
    Driver      "vfbdev"
    BusID       "isa:2"
    Option      "shm" "on"
    Option      "shadowfb" "on"
EndSection

And it validates every screen modes
Section "Screen"
    Identifier "screen2"
    Device      "Virtual Frame buffer"
    Monitor     "Adi microscan"
    DefaultColorDepth 16
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to