Changeset 144
- Timestamp:
- 08/02/08 12:07:05 (5 months ago)
- Files:
-
- README (modified) (2 diffs)
- doc/fim.man (modified) (3 diffs)
- src/FramebufferDevice.cpp (modified) (4 diffs)
- src/FramebufferDevice.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
README
r141 r144 221 221 man fb.modes 222 222 man fbi 223 man console_ioctl 224 man resizecons 223 225 224 226 Useful documents I could read later on: … … 226 228 man 3 history 227 229 man readline 230 231 Useful URLs: 232 http://www.tldp.org/HOWTO/Framebuffer-HOWTO.html 233 and mirrors 234 http://www.linux.org/docs/ldp/howto/Framebuffer-HOWTO.html 235 http://www.pluto.it/files/ildp/HOWTO/Framebuffer-HOWTO/Framebuffer-HOWTO.html 236 237 and 238 http://bisqwit.iki.fi/source/fbmodes.html 239 http://asm.sourceforge.net/articles/fb.html 240 http://www.linuxjournal.com/article/2783 228 241 229 242 Tested platforms : doc/fim.man
r133 r144 74 74 name of the video mode to use video mode (must be listed in 75 75 /etc/fb.modes). Default is not to change the video mode. 76 In the past, the XF86 config file (/etc/X11/XF86Config) used to contain Modeline 77 information, which could be fed to the modeline2fb perl script (distributed with fbset). 78 On many modern xorg based systems, there is no direct way to obtain a fb.modes file from the xorg.conf file. 79 So instead one could obtain useful fb.modes info by using the (fbmodes (no man page AFAIK)) tool, written by bisqwit. 80 An unsupported mode should make fim exit with failure. 81 But it is possible the kernel could trick fim and set a supported mode automatically, thus 82 ignoring the user set mode. 76 83 .c .TP 77 84 .c .B -q, --quiet … … 111 118 .B -T {terminal}, --vt {terminal} 112 119 The \fBterminal\fP will be used as virtual terminal device file (as in fbi). 120 See (chvt (1)), (openvt (1)) for more info about this. 121 Use (con2fb (1)) to map a terminal to a framebuffer device. 113 122 .c .TP 114 123 .c .B -f font … … 350 359 initialization file (executed on startup, if existent). 351 360 .SH SEE ALSO 352 fimgs(1), fbset(1), con vert(1), vim(1), fb.modes(8), fbset(8), fbgrab(1), fbdev(4), setfont(8), xfs(1)361 fimgs(1), fbset(1), con2fb(1), convert(1), vim(1), fb.modes(8), fbset(8), fbgrab(1), fbdev(4), setfont(8), xfs(1) 353 362 .c , jpegtran(1) 354 363 .SH AUTHOR src/FramebufferDevice.cpp
r142 r144 127 127 //initialization of the framebuffer text 128 128 FontServer::fb_text_init1(fontname,&f); 129 /* 130 * will initialized with the user set (or default ones) 131 * - framebuffer device 132 * - framebuffer mode 133 * - virtual terminal 134 * */ 129 135 fd = fb_init(fbdev, fbmode, vt); 130 136 if(fd==-1) … … 468 474 469 475 /* switch mode */ 470 fb_setmode(mode); 476 if(-1 == fb_setmode(mode)){ 477 /* 478 * FIXME: 479 * mm's strict mode ckecking (right now, this function triggers an exit() but things should change) */ 480 #ifdef FIM_BOZ_PATCH 481 if(!try_boz_patch) 482 #endif 483 { 484 perror("failed setting mode"); 485 exit(1); 486 } 487 } 488 471 489 472 490 /* checks & initialisation */ … … 625 643 char line[80],label[32],value[16]; 626 644 int geometry=0, timings=0; 627 645 628 646 /* load current values */ 629 647 if (-1 == ioctl(fb,FBIOGET_VSCREENINFO,&fb_var)) { … … 680 698 fb_var.xoffset = 0; 681 699 fb_var.yoffset = 0; 700 682 701 if (-1 == ioctl(fb,FBIOPUT_VSCREENINFO,&fb_var)) 683 702 perror("ioctl FBIOPUT_VSCREENINFO"); 703 /* 704 * FIXME 705 * mm : this should be placed here and uncommented : */ 706 /* 707 if (-1 == ioctl(fb,FBIOGET_FSCREENINFO,&fb_fix)) { 708 perror("ioctl FBIOGET_VSCREENINFO"); 709 exit(1); 710 }*/ 684 711 /* look what we have now ... */ 685 712 if (-1 == ioctl(fb,FBIOGET_VSCREENINFO,&fb_var)) { src/FramebufferDevice.h
r142 r144 225 225 226 226 public: 227 /* 228 * FIXME : should be a static string, or trouble will come! 229 * */ 227 230 int set_fbdev(char *fbdev) 228 231 { … … 235 238 } 236 239 240 /* 241 * FIXME : should be a static string, or trouble will come! 242 * */ 237 243 int set_fbmode(char *fbmode) 238 244 { … … 255 261 } 256 262 257 int set_default_fbgamma( int fbgamma)263 int set_default_fbgamma(float fbgamma) 258 264 { 259 265 /* only possible before init() */

