Skip to contentSkip to conversation

FRAMEBUFFER policy

DISCUSSION Ian Molton 2 participants 3 messages Jun 16, 2003

lore
Share & tools
lore

Ian Molton

author
#0 lore raw

Hi.

What is the policy as regards linux framebuffer drivers when presented with a mode they cannot handle.

eg, suppose a driver can only handle even numbers of pixels and a request is made for a mode with 639 pixels - should it allocate a 640 pixel wide mode?

or should it extend the height of a mode to allow hardware scrolling in multiples of the font height?

Thanks.

Signature · 4 lines
Spyros lair: http://www.mnementh.co.uk/   ||||   Maintainer: arm26 linux

Do not meddle in the affairs of Dragons, for you are tasty and good with
ketchup.
#1 lore raw
Quoted 9 lines · Ian Molton

What is the policy as regards linux framebuffer drivers when presented with a mode they cannot handle.

eg, suppose a driver can only handle even numbers of pixels and a request is made for a mode with 639 pixels - should it allocate a 640 pixel wide mode?

or should it extend the height of a mode to allow hardware scrolling in multiples of the font height?

If you pass a mode that cannot be handled, the driver must try to round up some values to make it work. If that's not possible, an error is returned.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

author
#2 lore raw
Quoted 4 lines · On Mon, 16 Jun 2003 14:12:45 +0200 (MEST) Geert Uytterhoeven…

If you pass a mode that cannot be handled, the driver must try to round up some values to make it work. If that's not possible, an error is returned.

Great, thanks.

Signature · 4 lines
Spyros lair: http://www.mnementh.co.uk/   ||||   Maintainer: arm26 linux

Do not meddle in the affairs of Dragons, for you are tasty and good with
ketchup.