[linux-fbdev] some modes "default" solutions

Brad Midgley brad at pht.com
Sun Feb 14 07:28:38 EST 1999


> With `mode default' XF68_FBDev will use this virtual screen, unless you
> override the virtual screen size with `Virtual x y' in your XF86Config.

"Virtual" is ignored in Xfb when using modes default. i looked at fbdev.c
in xfree to find a reason for this. i think it's because this line of code

 fbdevInfoRec.SwitchMode = fbdevSwitchMode;

is only executed if the mode is NOT default. fbdevSwitchMode() is
responsible for ultimately making the ioctl call that changes mode
(including virtual size) so the higher layers of the X server won't even
know how to change the virtual size. 

it's probably not a simple matter of adding that line however. i'm not
sure how you'd make sure all the other parameters of the graphics mode
match up. 

The config below comes up with virtual 1024x1024 on my 7500 and 1024x6128
on the imac. (using v3.3.3 18Nov1998) 


---------- Forwarded message ----------
Section "Files"
    RgbPath	"/usr/X11R6/lib/X11/rgb"
    FontPath	"/usr/X11R6/lib/X11/fonts/misc/"
    FontPath	"/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath	"/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/"
Section "ServerFlags"
Section "Keyboard"
    Protocol	"Standard"
    AutoRepeat	500 5
Section "Pointer"
    Protocol	"busmouse"
    Device	"/dev/mouse"
Section "Monitor"
    Identifier	"Generic"
Section "Device"
    Identifier "Linux Frame Buffer Device"
    Option "noaccel"
Section "Screen"
    Driver	"fbdev"
    Device	"Linux Frame Buffer Device"
    Monitor	"Generic"
    SubSection	"Display"
        Modes	"default"
	Virtual 1024 768

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request at lists.linuxppc.org ]]

More information about the Linuxppc-dev mailing list