Hi Mike, I assume you are using the FB driver fbdev. If you can use fbset to verify the resolution, I can only guess what can be the problem. The error message suggests you have not enough memory, so you can try: - use 'frontonly' as buffering mode, so the framebuffer will only have 1 single copy of the screen. You have to put "layer-buffer-mode=frontonly" or "desktop-buffer-mode=frontonly" in your directfbrc, depending on your config. - or try a smaller resolution, to see how big still works
You also want to use ARGB1555, but I see "rgba 5/10,5/5,5/0,1/15" in your modeline, that's already ok, I suppose? There are 3 ways to be sure. - use SetConfiguration on the display layer (so you need to do GetDisplayLayer). The layer must be in exclusive access, so you will also have to do SetCooperativeLevel on the display layer. - you can put it in your configuration file directfbrc. Use "pixelformat=...." or "layer-format=..." depending on your configuration. - if you are using windows, you can also set the pixelformat in "CreateWindow". Then, directfb will switch to this format if this window is displayed (if you show multiple different format windows, directfb will do a 'best-effort' which is normally fall-back to the directfbrc content). Greets Niels Mike Yuan wrote: > Hello All, > > I use DirectFB on Linux2.6 and want to set graphics layer resolution to > 1920x1080(mode is 1920x1080-50i), but when DirectFB > module init, we met 3 errors: > > ( 1 ) DirectFB/DirectFBCreate: Setting desktop resolution to 1920x1080 > failed! > -> Using default resolution. > ( 2 ) DirectFB/DirectFBCreate: Setting desktop format failed! > -> Using default format. > ( 3 ) DirectFB/DirectFBCreate: Setting desktop buffer mode failed! > -> No virtual resolution support or not enough memory? > Falling back to system back buffer. > > > Following is the whole log info of DirectFB: > > =======================| DirectFB 1.0.0 |======================= > (c) > 2001-2007 The DirectFB Organization (directfb.org) > (c) 2000-2004 Convergence (integrated media) GmbH > ------------------------------------------------------------ > > (*) DirectFB/Core: Single Application Core. (2007-12-07 13:08) > (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 1415)... > (*) Direct/Modules: suppress module 'keyboard' > (*) Direct/Modules: suppress module 'ps2mouse' > (*) Direct/Thread: Running 'LiRC Input' (INPUT, 1416)... > (*) DirectFB/Input: LIRC Device 0.2 (directfb.org) > (!) Direct/Modules: Module 'libdirectfb_stblit_accel.so' did not > register itself after loading! Trying default module constructor... > (!) DirectFB/gfxdrivers/dfb_stblit_accel: FB file descriptor = 3 > (*) DirectFB/Graphics: ST Microelectronics STAPI Blit based graphic > acceleration 0.1 (ST Microelectronics) > (*) DirectFB/Core/WM: Default 0.3 (directfb.org) > (!) DirectFB/DirectFBCreate: Setting desktop resolution to > 1920x1080 > failed! > -> Using default resolution. > (!) DirectFB/DirectFBCreate: Setting desktop format failed! > -> Using default format. > (!) DirectFB/DirectFBCreate: Setting desktop buffer mode failed! > -> No virtual resolution support or not enough memory? > Falling back to system back buffer. > (*) Direct/Interface: Loaded 'JPEG' implementation of > 'IDirectFBImageProvider'. > (*) Direct/Interface: Using 'PNG' implementation of > 'IDirectFBImageProvider'. > Actually in file /etc/fb.modes, we have mode "1920x1080-50i". > > ------------------------------------------------------------------------ > 好玩贺卡等你发,邮箱贺卡全新上线! > <http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/> > > ------------------------------------------------------------------------ > > _______________________________________________ > directfb-users mailing list > directfb-users@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > -- .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users