Skip to contentSkip to conversation

Video Mode Handling - Patch for fbset

PATCH In review Antonino A. Daplas 1 participant 1 message Aug 9, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 Video Mode Handling - Patch for fbset

Hi,

The patch is against fbset-2.1. It adds the following:

1. Ask for user confirmation before applying the new mode. If rejected by the user, fbset will set the previous mode and invalidate the last timings.

2. Add support for invalidating modelines. Usage:

fbset -r pixclock xres yres left right upper lower hslen vslen <-hsync bool> <-vsync bool> <-laced bool> <-double bool>

Options in "<>" are optional.

First 3 patches must be applied. The patch is for demonstration only, no attempts to beautify the code were done.

Tony

fb.h +1 -0
diff -uprN fbset-2.1-orig/fb.h fbset-2.1/fb.h
@@ -120,6 +120,7 @@ struct fb_bitfield {
 #define FB_ACTIVATE_VBL	       16	/* activate values on next vbl  */
 #define FB_CHANGE_CMAP_VBL     32	/* change colormap on vbl	*/
 #define FB_ACTIVATE_ALL	       64	/* change all VCs on this fb	*/
+#define FB_ACTIVATE_INV_MODE   256      /* remove videomode from list   */
 
 #define FB_ACCELF_TEXT		1	/* text mode acceleration */
 
fbset.c +52 -5

101 lines not on this page · raw message

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com