You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
(9) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(12) |
Feb
(10) |
Mar
|
Apr
(5) |
May
(3) |
Jun
|
Jul
(5) |
Aug
(7) |
Sep
(15) |
Oct
(4) |
Nov
(3) |
Dec
(7) |
2003 |
Jan
(5) |
Feb
(30) |
Mar
(5) |
Apr
(13) |
May
(12) |
Jun
(11) |
Jul
(1) |
Aug
(7) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(7) |
2004 |
Jan
(4) |
Feb
(9) |
Mar
(16) |
Apr
(42) |
May
(5) |
Jun
(11) |
Jul
(3) |
Aug
(39) |
Sep
(5) |
Oct
(32) |
Nov
(27) |
Dec
|
2005 |
Jan
(11) |
Feb
(8) |
Mar
(22) |
Apr
(26) |
May
(9) |
Jun
(10) |
Jul
(7) |
Aug
(43) |
Sep
(23) |
Oct
(18) |
Nov
(15) |
Dec
(15) |
2006 |
Jan
(7) |
Feb
(16) |
Mar
(10) |
Apr
(1) |
May
(16) |
Jun
(8) |
Jul
(3) |
Aug
(35) |
Sep
(7) |
Oct
(4) |
Nov
(5) |
Dec
(1) |
2007 |
Jan
(2) |
Feb
(30) |
Mar
(6) |
Apr
(7) |
May
(5) |
Jun
|
Jul
(15) |
Aug
(12) |
Sep
(22) |
Oct
(48) |
Nov
(9) |
Dec
(7) |
2008 |
Jan
(3) |
Feb
(1) |
Mar
(1) |
Apr
|
May
(4) |
Jun
(1) |
Jul
(5) |
Aug
(4) |
Sep
(4) |
Oct
(2) |
Nov
(5) |
Dec
(1) |
2009 |
Jan
(3) |
Feb
|
Mar
|
Apr
(4) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(3) |
Oct
(2) |
Nov
(2) |
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: Bui Sy P. <bui...@gm...> - 2006-09-20 07:53:22
|
It's works perfectly for me. Thanks so much ... I'm newbie on system programation so i dont know that i'm reinventing the wheel :) Thanks so much for your helpful. Sy Phong, 2006/9/19, Yoder, John <Joh...@am...>: > > I think you're reinventing the wheel here. All that is needed to get the > date in that format is `/bin/date +%Y%m%d%H%M%S` which works on most *nix > systems. All you are doing the "+%Y"=85 is just reformatting the output o= f the > date command. > > > > Regards, > > > > John Yoder > > > ------------------------------ > > *From:* lin...@li... [mailto: > lin...@li...] *On Behalf Of *Bui Sy > Phong > *Sent:* Tuesday, September 19, 2006 8:49 AM > *To:* lin...@li... > *Subject:* [Linux-fbdev-users] Question on time system > > > > Hi everybody, > > I know that i post this question in a wrong place, but if someone can hel= p > me to resolve it, it will be wonderful for me. > > In fact, i must write a little program wich diplay the local time of > system on this format (a string) : Year/Mount/Day/Hour/Minute/Second , li= ke > : 20060919164421 > > So, i can get the number of second since : 01/01/1970 at 00:00:00 but i > dont know how to convert this to a string like above. > > Here's my little code to get the number of second since 01/01/1970 : > > #include < stdio.h> > #include <time.h> > #include <stdint.h> > > > int main(void) > { > system("date"); > printf("\n"); > time_t result; > result =3D time(NULL); > printf("%s%ju secs since January 1, 1970 0:00 UTC\n", > asctime(localtime(&result)), > (uintmax_t)result); > unsigned int seconds =3D (uintmax_t)result; > printf("%u\n", seconds); > return(0); > > > } > > I know that i must use strftime() to convert but i dont know how. > > So, i post this question here. And waiting for your helpful. > > Thanks very much. > > P/S : I dont care about Timezone (it's always in UTC - GMT) > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Linux-fbdev-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users > > > |
From: Siddharth P. <sid...@ya...> - 2006-09-20 06:09:30
|
hi, I am working on a freescale board(Linux Target mage Builder - Ltib). I have enabled directfb and fbdev for mplayer.When i try to play a video i get the video output but it is smudged. Below is the log that mplayer provides whn trying to play a file mplayer -vo fbdev 1.mpg MPlayer 1.0pre8-3.4.3 (C) 2000-2006 MPlayer Team CPU: PowerPC Playing 1.mpg. MPEG-PS file format detected. VIDEO: MPEG1 640x480 (aspect 1) 25.000 fps 0.0 kbps ( 0.0 kbyte/s) ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 32000 Hz, 2 ch, s16be, 64.0 kbit/6.25% (ratio: 8000->128000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 640 x 480 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) ========================================================================== AO: [oss] 32000Hz 2ch s16be (2 bytes per sample) Starting playback... VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. No accelerated colorspace conversion found SwScaler: using unscaled Planar YV12 -> BGR 15-bit special converter VO: [fbdev] 640x480 => 640x480 BGR 15-bit New_Face failed. Maybe the font path is wrong. 2 ??% ??% ??,?% 0 0 $<50> Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. A: 0.7 V: 0.6 A-V: 0.105 ct: 0.031 15/ 15 67% 120% 2.5% 0 0 $<50> MPlayer interrupted by signal 2 in module: decode_video Please could anyone point out the reason why the video is not playing properly. Is it some problem with configuring the framebuffers. Thanks and Regards, Siddharth --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. |
From: Yoder, J. <Joh...@am...> - 2006-09-19 16:08:21
|
I think you're reinventing the wheel here. All that is needed to get the date in that format is `/bin/date +%Y%m%d%H%M%S` which works on most *nix systems. All you are doing the "+%Y"... is just reformatting the output of the date command. =20 Regards, =20 John Yoder =20 ________________________________ From: lin...@li... [mailto:lin...@li...] On Behalf Of Bui Sy Phong Sent: Tuesday, September 19, 2006 8:49 AM To: lin...@li... Subject: [Linux-fbdev-users] Question on time system =20 Hi everybody, I know that i post this question in a wrong place, but if someone can help me to resolve it, it will be wonderful for me. In fact, i must write a little program wich diplay the local time of system on this format (a string) : Year/Mount/Day/Hour/Minute/Second , like : 20060919164421=20 So, i can get the number of second since : 01/01/1970 at 00:00:00 but i dont know how to convert this to a string like above. Here's my little code to get the number of second since 01/01/1970 : #include < stdio.h> #include <time.h> #include <stdint.h> int main(void) { system("date"); printf("\n"); time_t result; result =3D time(NULL); printf("%s%ju secs since January 1, 1970 0:00 UTC\n",=20 asctime(localtime(&result)), (uintmax_t)result); unsigned int seconds =3D (uintmax_t)result; printf("%u\n", seconds); return(0); =20 } I know that i must use strftime() to convert but i dont know how.=20 So, i post this question here. And waiting for your helpful. Thanks very much. P/S : I dont care about Timezone (it's always in UTC - GMT) |
From: Bui Sy P. <bui...@gm...> - 2006-09-19 14:49:24
|
Hi everybody, I know that i post this question in a wrong place, but if someone can help me to resolve it, it will be wonderful for me. In fact, i must write a little program wich diplay the local time of system on this format (a string) : Year/Mount/Day/Hour/Minute/Second , like : 20060919164421 So, i can get the number of second since : 01/01/1970 at 00:00:00 but i dont know how to convert this to a string like above. Here's my little code to get the number of second since 01/01/1970 : #include <stdio.h> #include <time.h> #include <stdint.h> int main(void) { system("date"); printf("\n"); time_t result; result = time(NULL); printf("%s%ju secs since January 1, 1970 0:00 UTC\n", asctime(localtime(&result)), (uintmax_t)result); unsigned int seconds = (uintmax_t)result; printf("%u\n", seconds); return(0); } I know that i must use strftime() to convert but i dont know how. So, i post this question here. And waiting for your helpful. Thanks very much. P/S : I dont care about Timezone (it's always in UTC - GMT) |
From: Stanley C. <sta...@ya...> - 2006-09-11 07:03:43
|
Hello everyone, We plan to support a smart LCD panel (Async display) on our platform. In order to keep the external frame buffer and internal frame buffer the same, we need add a couple of interfaces into the fb driver. I am wondering whether the framebuffer device have already supported this kind of panel. Or does anyone have more workable solution for Smart panel in Linux? Any response will be highly appreciated. Thanks. Best regards, -stanley __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Bui Sy P. <bui...@gm...> - 2006-08-22 10:59:36
|
Thanks for your helpful. I will read the documentation and work hard. I'll tell you the resultat. Thanks so much for your help Bui Sy Phong 2006/8/22, Unger Richard <ric...@te...>: > > Hi! > > In general, access to the FrameBuffer device is exclusive under Linux. > > Thus one process can open /dev/fbX, and use the framebuffer, but another > program cannot really do so at the same time. > This is almost a necessity, since the processes could otherwise set > different bit-depths or resolutions, or otherwise interfere with the > settings of the other process! > There's also the memory to consider! Access to the framebuffer memory > would have to be synchronized between the different processes. > > There are solutions for your problem: > > For example, X11 is one such solution. It will access the GFX Hardware > (either through framebuffer or directly) and provides an API allowing the > programmer to handle multiple windows. > > DirectFB (www.directfb.org) is another interesting solution allowing > multiple applications to share a linux framebuffer. > > Richard Unger > > > > -----Urspr=FCngliche Nachricht----- > > Von: lin...@li... > > [mailto:lin...@li...] Im > > Auftrag von Bui Sy Phong > > Gesendet: Dienstag, 22. August 2006 12:02 > > An: lin...@li... > > Betreff: Re: [Linux-fbdev-users] Problem of programmation > > > > Yes, understood. But let me explain my project to you : > > > > My project consits to write a program witch will work like a > > Linux graphic application but it must be cross-platform > > (Linux, Zaurus and Linux based mobile phone). > > It's a Linux graphic application so it must work when Window > > Manager turned on :( It's cross-platform, so it must based on > > Framebuffer. > > > > And this is a big problem to me. > > > > Can i have your suggestion about it ? > > > > Thanks so much, > > > > Bui Sy Phong > > > > > > > > > > > > 2006/8/22, Geert Uytterhoeven <ge...@li...>: > > > > On Tue, 22 Aug 2006, Bui Sy Phong wrote: > > > I've tried to turn off Windows Manager (X11 or > > something else like that on > > > Zarus Sharp SL-C3200 - because my projet is based on) > > by booting in text > > > mode. > > > I try to execute my program in this mode and my > > window is one more time > > > broken by the console, exactly, by the text on console. > > > > > > So, i think that i'm wrong somewhere in my program or > > my solution is bad. > > > > There's an ioctl to switch the console to KD_GRAPHICS > > mode. If you do that, no > > more text will be printed by the console driver. > > > > > I'm waiting always for your helpful. > > > Thanks so much. > > > > > > Bui Sy Phong > > > > > > 2006/8/22, Geert Uytterhoeven <ge...@li...>: > > > > > > > > On Tue, 22 Aug 2006, Bui Sy Phong wrote: > > > > > I'm a newbie on Framebuffer programmation and > > newbie also on this > > > > mailing > > > > > list. > > > > > > > > > > Actually, i'm writing a little program witch will > > display a full-screen > > > > > windows in bleu. > > > > > But when i execute this program, my windows is > > always hiden by the > > > > console > > > > > or X11's windows. I dont understant how X11 > > communicates with > > > > Framebuffer so > > > > > i cannot do the same thing to display my windows > > in first plane. > > > > > > > > You should not touch the frame buffer device while > > X is active. > > > > Gr{oetje,eeting}s, > > > > Geert > > > > -- > > Geert Uytterhoeven -- There's lots of Linux beyond ia32 > > -- ge...@li... > > > > 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 > > > > > > -------------------------------------------------------------- > > ----------- > > Using Tomcat but need to do more? Need to support web > > services, security? > > Get stuff done quickly with pre-integrated technology > > to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based > > on Apache Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > > dat=3D121642 > > <http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057 > > &dat=3D121642> > > _______________________________________________ > > Linux-fbdev-users mailing list > > Lin...@li... > > <mailto:Lin...@li...> > > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users > > > > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Linux-fbdev-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users > |
From: Unger R. <ric...@te...> - 2006-08-22 10:49:49
|
Hi! In general, access to the FrameBuffer device is exclusive under Linux. Thus one process can open /dev/fbX, and use the framebuffer, but another = program cannot really do so at the same time. This is almost a necessity, since the processes could otherwise set = different bit-depths or resolutions, or otherwise interfere with the = settings of the other process! There's also the memory to consider! Access to the framebuffer memory = would have to be synchronized between the different processes. There are solutions for your problem: For example, X11 is one such solution. It will access the GFX Hardware = (either through framebuffer or directly) and provides an API allowing = the programmer to handle multiple windows. DirectFB (www.directfb.org) is another interesting solution allowing = multiple applications to share a linux framebuffer. Richard Unger =20 > -----Urspr=FCngliche Nachricht----- > Von: lin...@li...=20 > [mailto:lin...@li...] Im=20 > Auftrag von Bui Sy Phong > Gesendet: Dienstag, 22. August 2006 12:02 > An: lin...@li... > Betreff: Re: [Linux-fbdev-users] Problem of programmation >=20 > Yes, understood. But let me explain my project to you : >=20 > My project consits to write a program witch will work like a=20 > Linux graphic application but it must be cross-platform=20 > (Linux, Zaurus and Linux based mobile phone).=20 > It's a Linux graphic application so it must work when Window=20 > Manager turned on :( It's cross-platform, so it must based on=20 > Framebuffer. >=20 > And this is a big problem to me. >=20 > Can i have your suggestion about it ?=20 >=20 > Thanks so much, >=20 > Bui Sy Phong >=20 >=20 >=20 >=20 >=20 > 2006/8/22, Geert Uytterhoeven <ge...@li...>: >=20 > On Tue, 22 Aug 2006, Bui Sy Phong wrote: > > I've tried to turn off Windows Manager (X11 or=20 > something else like that on > > Zarus Sharp SL-C3200 - because my projet is based on)=20 > by booting in text > > mode. > > I try to execute my program in this mode and my=20 > window is one more time > > broken by the console, exactly, by the text on console. > > > > So, i think that i'm wrong somewhere in my program or=20 > my solution is bad.=20 > =09 > There's an ioctl to switch the console to KD_GRAPHICS=20 > mode. If you do that, no > more text will be printed by the console driver. > =09 > > I'm waiting always for your helpful. > > Thanks so much. > > > > Bui Sy Phong > > > > 2006/8/22, Geert Uytterhoeven <ge...@li...>: > > > > > > On Tue, 22 Aug 2006, Bui Sy Phong wrote: > > > > I'm a newbie on Framebuffer programmation and=20 > newbie also on this=20 > > > mailing > > > > list. > > > > > > > > Actually, i'm writing a little program witch will=20 > display a full-screen > > > > windows in bleu. > > > > But when i execute this program, my windows is=20 > always hiden by the=20 > > > console > > > > or X11's windows. I dont understant how X11=20 > communicates with > > > Framebuffer so > > > > i cannot do the same thing to display my windows=20 > in first plane. > > >=20 > > > You should not touch the frame buffer device while=20 > X is active. > =09 > Gr{oetje,eeting}s, > =09 > Geert > =09 > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32=20 > -- ge...@li... > =09 > In personal conversations with technical people, I call=20 > myself a hacker. But > when I'm talking to journalists I just say "programmer"=20 > or something like that.=20 > =20 > -- Linus Torvalds > =09 > =09 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security?=20 > Get stuff done quickly with pre-integrated technology=20 > to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based=20 > on Apache Geronimo > =09 > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642=20 > <http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057 > &dat=3D121642>=20 > _______________________________________________ > Linux-fbdev-users mailing list > Lin...@li...=20 > <mailto:Lin...@li...>=20 > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users > =09 >=20 >=20 >=20 |
From: Bui Sy P. <bui...@gm...> - 2006-08-22 10:02:15
|
Yes, understood. But let me explain my project to you : My project consits to write a program witch will work like a Linux graphic application but it must be cross-platform (Linux, Zaurus and Linux based mobile phone). It's a Linux graphic application so it must work when Window Manager turned on :( It's cross-platform, so it must based on Framebuffer. And this is a big problem to me. Can i have your suggestion about it ? Thanks so much, Bui Sy Phong 2006/8/22, Geert Uytterhoeven <ge...@li...>: > > On Tue, 22 Aug 2006, Bui Sy Phong wrote: > > I've tried to turn off Windows Manager (X11 or something else like that > on > > Zarus Sharp SL-C3200 - because my projet is based on) by booting in text > > mode. > > I try to execute my program in this mode and my window is one more time > > broken by the console, exactly, by the text on console. > > > > So, i think that i'm wrong somewhere in my program or my solution is > bad. > > There's an ioctl to switch the console to KD_GRAPHICS mode. If you do > that, no > more text will be printed by the console driver. > > > I'm waiting always for your helpful. > > Thanks so much. > > > > Bui Sy Phong > > > > 2006/8/22, Geert Uytterhoeven <ge...@li...>: > > > > > > On Tue, 22 Aug 2006, Bui Sy Phong wrote: > > > > I'm a newbie on Framebuffer programmation and newbie also on this > > > mailing > > > > list. > > > > > > > > Actually, i'm writing a little program witch will display a > full-screen > > > > windows in bleu. > > > > But when i execute this program, my windows is always hiden by the > > > console > > > > or X11's windows. I dont understant how X11 communicates with > > > Framebuffer so > > > > i cannot do the same thing to display my windows in first plane. > > > > > > You should not touch the frame buffer device while X is active. > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- > ge...@li... > > 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 > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Linux-fbdev-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users > |
From: Geert U. <ge...@li...> - 2006-08-22 09:50:29
|
On Tue, 22 Aug 2006, Bui Sy Phong wrote: > I've tried to turn off Windows Manager (X11 or something else like that on > Zarus Sharp SL-C3200 - because my projet is based on) by booting in text > mode. > I try to execute my program in this mode and my window is one more time > broken by the console, exactly, by the text on console. > > So, i think that i'm wrong somewhere in my program or my solution is bad. There's an ioctl to switch the console to KD_GRAPHICS mode. If you do that, no more text will be printed by the console driver. > I'm waiting always for your helpful. > Thanks so much. > > Bui Sy Phong > > 2006/8/22, Geert Uytterhoeven <ge...@li...>: > > > > On Tue, 22 Aug 2006, Bui Sy Phong wrote: > > > I'm a newbie on Framebuffer programmation and newbie also on this > > mailing > > > list. > > > > > > Actually, i'm writing a little program witch will display a full-screen > > > windows in bleu. > > > But when i execute this program, my windows is always hiden by the > > console > > > or X11's windows. I dont understant how X11 communicates with > > Framebuffer so > > > i cannot do the same thing to display my windows in first plane. > > > > You should not touch the frame buffer device while X is active. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li... 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 |
From: Bui Sy P. <bui...@gm...> - 2006-08-22 09:45:43
|
Thanks for your very fast answer. I've tried to turn off Windows Manager (X11 or something else like that on Zarus Sharp SL-C3200 - because my projet is based on) by booting in text mode. I try to execute my program in this mode and my window is one more time broken by the console, exactly, by the text on console. So, i think that i'm wrong somewhere in my program or my solution is bad. I'm waiting always for your helpful. Thanks so much. Bui Sy Phong 2006/8/22, Geert Uytterhoeven <ge...@li...>: > > On Tue, 22 Aug 2006, Bui Sy Phong wrote: > > I'm a newbie on Framebuffer programmation and newbie also on this > mailing > > list. > > > > Actually, i'm writing a little program witch will display a full-screen > > windows in bleu. > > But when i execute this program, my windows is always hiden by the > console > > or X11's windows. I dont understant how X11 communicates with > Framebuffer so > > i cannot do the same thing to display my windows in first plane. > > You should not touch the frame buffer device while X is active. > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- > ge...@li... > > 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 > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Linux-fbdev-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users > |
From: Antonino A. D. <ad...@gm...> - 2006-08-22 09:44:07
|
On Mon, 2006-08-21 at 21:38 -0400, James Lehman wrote: > Hello everyone. > > I have just figured out how to get ATI and NVIDIA cards to work with my > code. Now, when I use one of these cards, and I try to flip the screen > pointer around inside of the defined virtual display area, by changing the x > and y offsets, the screen goes blank. The monitor even flips to standby > mode. With nvidia at least, try to limit you max xres_virtual to 2048 and the maximum yres_virtual to 4096. These cards may hang when you the virtual screen size exceeds those dimensions. Tony |
From: Geert U. <ge...@li...> - 2006-08-22 09:31:37
|
On Tue, 22 Aug 2006, Bui Sy Phong wrote: > I'm a newbie on Framebuffer programmation and newbie also on this mailing > list. > > Actually, i'm writing a little program witch will display a full-screen > windows in bleu. > But when i execute this program, my windows is always hiden by the console > or X11's windows. I dont understant how X11 communicates with Framebuffer so > i cannot do the same thing to display my windows in first plane. You should not touch the frame buffer device while X is active. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li... 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 |
From: Bui Sy P. <bui...@gm...> - 2006-08-22 09:29:05
|
Hi everybody, I'm a newbie on Framebuffer programmation and newbie also on this mailing list. Actually, i'm writing a little program witch will display a full-screen windows in bleu. But when i execute this program, my windows is always hiden by the console or X11's windows. I dont understant how X11 communicates with Framebuffer so i cannot do the same thing to display my windows in first plane. This is my program in C and on Linux : #include <errno.h> #include <unistd.h> #include <stdio.h> #include <fcntl.h> #include <linux/fb.h> #include <sys/mman.h> #include <stropts.h> #include <sys/ioctl.h> #include <stdlib.h> #include <string.h> int main() { unsigned short int pcolor = 0x2858; int fbfd = 0; struct fb_var_screeninfo vinfo; struct fb_fix_screeninfo finfo; long int screensize = 0; char *fbp = 0; int x = 0, y = 0; long int location = 0; // Open the file for reading and writing fbfd = open("/dev/fb0", O_RDWR); if (!fbfd) { printf("Error: cannot open framebuffer device.\n"); exit(1); } printf("The framebuffer device was opened successfully.\n"); // Get fixed screen information if (ioctl(fbfd, FBIOGET_FSCREENINFO, &finfo)) { printf("Error reading fixed information.\n"); exit(2); } // Get variable screen information if (ioctl(fbfd, FBIOGET_VSCREENINFO, &vinfo)) { printf("Error reading variable information.\n"); exit(3); } printf("%dx%d, %dbpp\n", vinfo.xres, vinfo.yres, vinfo.bits_per_pixel); // Figure out the size of the screen in bytes screensize = vinfo.xres * vinfo.yres * vinfo.bits_per_pixel / 8; // Map the device to memory fbp = (char *)mmap(0, finfo.smem_len, PROT_READ | PROT_WRITE , MAP_SHARED, fbfd, 0); if ((int)fbp == -1) { printf("Error: failed to map framebuffer device to memory.\n"); exit(4); } printf("The framebuffer device was mapped to memory successfully.\n"); x = 0; y = 0; // Where we are going to put the pixel // Figure out where in memory to put the pixel for (y = 0; y < vinfo.yres; y++) for (x = 0; x < vinfo.xres; x++) { location = (x+vinfo.xoffset) * (vinfo.bits_per_pixel/8) + (y+vinfo.yoffset) * finfo.line_length; // Color conversion for 16 bit and 32 bit if ( vinfo.bits_per_pixel == 16 ) { *((unsigned short int *)(fbp + location)) = pcolor; } else // 32 bit { *(fbp + location) = (pcolor & 0x001F)<<3; // Blue *(fbp + location + 1) = (pcolor & 0x07E0)>>3; // Green *(fbp + location + 2) = (pcolor & 0xF800)>>8; // Red *(fbp + location + 3) = 0; // No transparency } } munmap(fbp, screensize); close(fbfd); return 0; } If someone can help me to fix this problem (means display my windows at the first plane), it will be wanderful for me. Thanks for yours helpful and sorry for my bad english. Bui Sy Phong. |
From: James L. <ja...@ak...> - 2006-08-22 01:42:38
|
Hello everyone. I have just figured out how to get ATI and NVIDIA cards to work with my code. Now, when I use one of these cards, and I try to flip the screen pointer around inside of the defined virtual display area, by changing the x and y offsets, the screen goes blank. The monitor even flips to standby mode. With my Matrox cards, this doesn't happen and I can double buffer images in the video ram for animations. What's the deal? Can I set up the card so that it won't blank like that? Thanks! James. :o) |
From: Jenkins, C. <Cli...@xe...> - 2006-08-17 12:05:39
|
> Since the lcd device is not attached to=20 > the external bus interface (Address, Data and control IO) of > my microcontroller, it's why I wonder if we can mmap() it. > Almost of graphic cards can mapped physically the memory > because the video memory is already allocated. My case is > different because the LCD is connected to GPIO. =20 On method is to allocate the frame buffer and a shadow buffer out of system RAM. Applications write to the frame buffer in the normal way (probably using mmapp(/dev/fb0)), and your driver periodically compares the FB with its shadow, and when it finds any difference, updates the shadow and writes the changes to the LCD module's internal memory using the GPIO interface. I haven't looked, but you might find examples of this in the Denx kernel tree http://www.denx.de/cgi-bin/gitweb.cgi?p=3Dlinux-2.6-denx.git;a=3Dtree;h=3D= 8b92 67e5cf02e32ca70ede9b64c3a2b95e9d2453;hb=3Dc3cad3140519bd060fbf9f4d0789f38= 1 0d5c1d42;f=3Ddrivers/video Clive |
From: Christian G. <cjg...@2d...> - 2006-08-16 19:04:20
|
Hello All, =20 Hello,=20 =20 I have to write a frame buffer to control my graphic LCD. Since this LCD=20 controller has only these I/O (Enable, R/W, Chip Select and D0 ... D7 (data)),=20 i'm using GPIO of my microcontroller to control this device. It's why I=20 control it through the framebuffer driver. I wonder if I can mmap() a system=20 memory for LCD display. It's for userland application (like nano-x engine)=20 which some memory mapping is done. Since the lcd device is not attached to=20 the external bus interface (Address, Data and control IO) of my=20 microcontroller, it's why I wonder if we can mmap() it. Almost of graphic=20 cards can mapped physically the memory because the video memory is already=20 allocated. My case is different because the LCD is connected to GPIO. =20 =20 For example, Userland application change some bytes (pixels) on this allocated=20 memory, then update is done directly on LCD display.... (ideal world)!=20 =20 Microcontroller : AT91RM900 from Atmel=20 LCD graphic : LM6800 from TopWayDisplay=20 Resolution : 256 X 64=20 1 Color=20 =20 =20 If anybody can help me, I'll appreciate it.=20 =20 Regards=20 =20 Christian=20 |
From: James L. <ja...@ak...> - 2006-08-10 21:39:32
|
OK... I got distracted for a little while. I'm still not done yet. But I have found another ATI card and it identifies itself as fb->Fix.visual == 3 (FB_VISUAL_PSEUDOCOLOR). So far, it seems to work the same as FB_VISUAL_DIRECTCOLOR. James. :o) ----- Original Message ----- From: "James Lehman" <ja...@ak...> To: <lin...@li...> Sent: Sunday, August 06, 2006 10:17 PM Subject: Re: [Linux-fbdev-users] FB_VISUAL_TRUECOLOR vs.FB_VISUAL_DIRECTCOLOR > I have a bit more work to do. I found that getting the color map right for > packed pixel mode, 565, was kind of tricky; as you had indicated. I also > realized that my code sort of relies on the fact that the color map is NOT > in use when the card is in bpp higher than 8. I use the color map to hold > shifted values from a palette bitmap file to get the colors onto the screen. > So I will have to rewrite that stuff; because with a direct color card, the > color map is always in use. I would love to send you a snapshot of my code. > It comes with a demo program that runs the video card through all sorts of > tests in every possible bpp. > > James. :o) > > > ----- Original Message ----- > From: "Antonino A. Daplas" <ad...@gm...> > To: <lin...@li...>; "James Lehman" > <ja...@ak...> > Sent: Sunday, August 06, 2006 7:42 PM > Subject: Re: [Linux-fbdev-users] FB_VISUAL_TRUECOLOR > vs.FB_VISUAL_DIRECTCOLOR > > > > James Lehman wrote: > > > I'm not so sure there is a bug in the kernel or the drivers, but I can > say > > > for sure that this code gets called. > > > > Then it's a bug. > > > > Can you try removing fb_set_cmap() in driver/video/fbmem.c:fb_set_var()? > > If that still does not work, can you point me to a test app? > > > > Just to clarify, is this the sequence, or something near this? > > > > ... > > ioctl(KD_GRAPHICS); > > ... > > ioctl(FBIOPUT_VSCREENINFO); > > > > ioctl(FBIOPUTCMAP); > > ... > > ioctl(KD_TEXT); > > ... > > > > Tony > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys -- and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Linux-fbdev-users mailing list > > Lin...@li... > > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Linux-fbdev-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users > |
From: Kushal K. <kus...@ho...> - 2006-08-10 00:43:54
|
Here is what I did: In the file drivers/video/geode/gxfb_core.c I explicitly put the line: static char mode_option[32] = "1024x768-16@60"; instead of static char mode_option[32] = "640x480-16@60"; and compiled the kernel. I am using kernel 2.6.17-5 and it worked for me. My framebuffer console was running at 1024x768. I had to do this dirty method, because I tried getting the gxfb_core.c from the latest AMD Geode tree-git http://git.infradead.org/?p=users/jcrouse/geode.git;a=blob;h=c0102663ba858db48ee117fbcd21a6f4b78de62e;hb=5eb7482c8215acacf9057c3c000dc277e9007f35;f=drivers/video/geode/gxfb_core.c which had Jordan pointed out in his earlier post. and copied the file(gxfb_core.c) into my kernel sources and compiled again. Then I tried passing the parameters: video=gxfb:1024x768-16@60 video=gxfb:1024x768-60 but none of them worked. Therefore I decided to explicitly put the 1024x768 line into the kernel sources. If anyone is able to get the gxfb_core.c file from git working with his/her kernel, please let us know the procedure. For now, it is working for me. Kushal > >Let me know how you make it work. > > >Sean D'Epagnier |
From: Kushal K. <kus...@ho...> - 2006-08-09 19:21:46
|
Correction: I tried passing video=gxfb:1024x768-60 Sorry for the typo. Kushal Koolwal >From: "Kushal Koolwal" <kus...@ho...> >Reply-To: lin...@li... >To: lin...@li... >Subject: Re: [Linux-fbdev-users] Where to put fbset command >duringsystemboot up >Date: Wed, 09 Aug 2006 12:18:17 -0700 >MIME-Version: 1.0 >X-Originating-IP: [128.223.201.65] >X-Originating-Email: [kus...@ho...] >X-Sender: kus...@ho... >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc11-f6.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Wed, 9 >Aug 2006 12:20:06 -0700 >Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93])by >sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid B127612DAB; Wed, 9 Aug >2006 12:19:56 -0700 (PDT) >Received: from sc8-sf-mx2-b.sourceforge.net >([10.3.1.92]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net >with esmtp (Exim 4.43)id 1GAtZY-0004A5-1G for >lin...@li...;Wed, 09 Aug 2006 12:18:32 -0700 >Received: from bay0-omc1-s31.bay0.hotmail.com ([65.54.246.103])by >mail.sourceforge.net with esmtp (Exim 4.44) id 1GAtZW-0002df-MKfor >lin...@li...;Wed, 09 Aug 2006 12:18:31 -0700 >Received: from hotmail.com ([64.4.51.17]) by >bay0-omc1-s31.bay0.hotmail.comwith Microsoft SMTPSVC(6.0.3790.1830); Wed, 9 >Aug 2006 12:18:23 -0700 >Received: from mail pickup service by hotmail.com with Microsoft >SMTPSVC;Wed, 9 Aug 2006 12:18:20 -0700 >Received: from 64.4.51.220 by by107fd.bay107.hotmail.msn.com with HTTP;Wed, >09 Aug 2006 19:18:17 GMT >X-Message-Info: LsUYwwHHNt1Fq4sF6bv8SPG/MtNIH9F4i0rNvPOM6Bk= >X-OriginalArrivalTime: 09 Aug 2006 19:18:20.0879 >(UTC)FILETIME=[938AC5F0:01C6BBE8] >X-Spam-Score: 0.0 (/) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems >tohttp://sf.net/tracker/?func=add&group_id=1&atid=2000010.0 >MSGID_FROM_MTA_HEADER Message-Id was added by a relay >X-BeenThere: lin...@li... >X-Mailman-Version: 2.1.8 >Precedence: list >List-Id: <linux-fbdev-users.lists.sourceforge.net> >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users>,<mailto:lin...@li...?subject=unsubscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=linux-fbdev-users> >List-Post: <mailto:lin...@li...> >List-Help: ><mailto:lin...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users>,<mailto:lin...@li...?subject=subscribe> >Errors-To: lin...@li... >Return-Path: lin...@li... > >hi Jordan, > >I am using the GX framebuffer driver from kernel 2.6.17. Will the >paramerter >that you suggested, video=gxfb:<xres>-<yres>-<depth>@<refresh>, work with >it? > >Actually I tried giving the parameter, video=1024x768-60. Actually '60' was >the intended refresh rate. I think I goofed up on that, right? > > >Kushal Koolwal > > > > > >Very recent versions of the gxfb driver in the Geode GIT tree (as well as > >-mm) > >will accept the "standard" video=gxfb:<xres>-<yres>-<depth>@<refresh> > >notation. > > > >http://git.infradead.org/?p=users/jcrouse/geode.git;a=commitdiff;h=5eb7482c8215acacf9057c3c000dc277e9007f35 > > > >Jordan > > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job >easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Linux-fbdev-users mailing list >Lin...@li... >https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users |
From: Kushal K. <kus...@ho...> - 2006-08-09 19:18:32
|
hi Jordan, I am using the GX framebuffer driver from kernel 2.6.17. Will the paramerter that you suggested, video=gxfb:<xres>-<yres>-<depth>@<refresh>, work with it? Actually I tried giving the parameter, video=1024x768-60. Actually '60' was the intended refresh rate. I think I goofed up on that, right? Kushal Koolwal >Very recent versions of the gxfb driver in the Geode GIT tree (as well as >-mm) >will accept the "standard" video=gxfb:<xres>-<yres>-<depth>@<refresh> >notation. > >http://git.infradead.org/?p=users/jcrouse/geode.git;a=commitdiff;h=5eb7482c8215acacf9057c3c000dc277e9007f35 > >Jordan |
From: Jordan C. <jor...@am...> - 2006-08-09 16:57:09
|
On 09/08/06 10:10 +0200, Unger Richard wrote: > > You need to add a parameter to your kernel boot line in your GRUB or LILO configuration. > > Something like "video=nscfb:vmode:1024x768-32,vfreq=75" > > That's assuming you are using the GEODE framebuffer driver, not vesa... This is a very old and a very broken driver. Please, please, please don't use it. Both the GX and the GX1/SC1200 have a framebuffer driver in the latest kernel. Use that instead. Jordan |
From: Jordan C. <jor...@am...> - 2006-08-09 16:46:55
|
On 08/08/06 20:01 -0600, Sean D'Epagnier wrote: > On Tue, Aug 08, 2006 at 04:51:39PM -0700, Kushal Koolwal wrote: > > Hi, > > > > > > How can get the particular resolution on my framebuffer console during the > > system boot? Do I need to place the script somewhere else? > > > > THanks in advance. > > > > Hi, I would also like to know the "correct" way, I know with vesafb you can specify it with the option vga= on kernel. Otherwise you can have an init script run fbset. I think certain fbdrivers can take options for resolution, but not sure about all the timing parameters, check the kernel docs for your driver.. Very recent versions of the gxfb driver in the Geode GIT tree (as well as -mm) will accept the "standard" video=gxfb:<xres>-<yres>-<depth>@<refresh> notation. http://git.infradead.org/?p=users/jcrouse/geode.git;a=commitdiff;h=5eb7482c8215acacf9057c3c000dc277e9007f35 Jordan -- Jordan Crouse Senior Linux Engineer Advanced Micro Devices, Inc. <www.amd.com/embeddedprocessors> |
From: Unger R. <ric...@te...> - 2006-08-09 08:10:26
|
You need to add a parameter to your kernel boot line in your GRUB or = LILO configuration. Something like "video=3Dnscfb:vmode:1024x768-32,vfreq=3D75" That's assuming you are using the GEODE framebuffer driver, not vesa... Attached to the end of this email is the GEODE Framebuffer README file = from the amd.com site. It has a pretty good description of how to set it = up... Richie -------------------------------------------------------------------------= ---- PRODUCT INFORMATION -------------------------------------------------------------------------= ---- This driver is the frame buffer graphics device driver for the Geode GX=20 processors (GX 533@1.1W, GX 500@1.0W, GX 466@0.9W), Geode SC1200/SC1201, = SC2200,=20 and SC3200 processors, and the GX1 processors. (Hereafter referred to as = Geode=20 processor unless otherwise specified.) The driver works with the Geode = Linux=20 graphics driver architecture and has been tested with Linux kernel = 2.4.17.=20 Features -------- Geode GX processors (GX 533@1.1W, GX 500@1.0W, GX 466@0.9W) supported=20 display modes: - 640x480 @ 60, 72, 75, 85 Hz, 8, 16, and 32 bpp - 800x600 @ 56, 60, 72, 75, 85 Hz, 8, 16, and 32 bpp - 1024x768 @ 60, 70, 75, 85 Hz, 8, 16, and 32 bpp - 1152x864 @ 75 Hz 8, 16, and 32 bpp - 1280x1024 @ 60, 75, 85 Hz, 8, 16, and 32 bpp - 1600x1200 @ 60, 70, 75, 85 Hz, 8, 16, and 32 bpp Geode SC1200/SC1201/SC2200/SC3200 processors supported display modes:=20 - 640x480 @ 60, 72, 75, 85 Hz, 8 and 16 bpp - 800x600 @ 56, 60, 72, 75, 85 Hz, 8 and 16 bpp - 1024x768 @ 60, 70, 75, 85 Hz, 8 and 16 bpp - 1152x864 @ 75 Hz 8 bpp=20 - 1280x1024 @ 60, 75, 85 Hz, 8 bpp=20 Geode GX1 processors supported display modes: - 640x480 @ 60, 72, 75, 85 Hz, 8 and 16 bpp - 800x600 @ 56, 60, 72, 75, 85 Hz, 8 and 16 bpp - 1024x768 @ 60, 70, 75, 85 Hz, 8 and 16 bpp - 1152x864 @ 75 Hz 8, and 16 bpp - 1280x1024 @ 60, 75, 85 Hz, 8 and 16 bpp Geode SC1200/SC1201 processors supported TV modes (TV modes run only=20 on 16 bpp depth): - NTSC-720X480 - NTSC-640X480 - PAL-768X576 - PAL-720X576=09 - Default mode is 640x480 16 bpp. - To run 1280x1024@32 Video memory must be set to >=3D 8 MB in BIOS. - To run 1600x1200@32 Video memory must be set to >=3D 9.37 5 MB in = BIOS. - Compression is disabled automatically if video memory is insufficient. (e.g. modes like 1280x1024@32 with 8 MB video memory). - DDC (Display Data Channel) supported on the Geode GX1 processor-based = platforms. - If Flat panel option is selected, then DDC option is ignored. Dependencies ------------ Durango v2.51.02 Panel v1.3.5 DDC v1.1.1=20 tvoset v1.1.0 Functional Changes ------------------ - Readme.txt document modified with simple Build and Install = instructions. - Installation script has been added to install the Geode KFB driver = sources. Defects Corrected ----------------- - #169.12 vfreq 56 Hz for mode 800x600 in not supported. File Changes ------------ - All Known Errata ------------ - Panning is not supported in the driver when flat panel is selected. - Since flat panel display timings are different from the CRT, fbset utility shows different values for the vertical frequency=20 when flat panel enabled. - Panel support is not supported on the Geode SP1SC20/SP1SC21 platforms. If flat panel option is selected on SP1SC20/SP1SC21, display is = distorted=20 for BIOS version lower than v0.07. -------------------------------------------------------------------------= ---- VALIDATION ENVIRONMENT -------------------------------------------------------------------------= ---- Validated on:=20 Geode SP4GX22 system platform Geode SP4GX10 system platform Geode SP4SC30 system platform Geode SP1SC20/SP1SC21 system platforms=20 with Red hat 7.2 Linux-2.4.17. -------------------------------------------------------------------------= ---------- INSTALLATION INSTRUCTIONS -------------------------------------------------------------------------= ---------- Packages required: - RedHat 7.2 Installation hard disk (installed from CDs). - Linux Kernel source version 2.4.17 (linux-2.4.17.tar.gz). This can be down loaded from the following ftp site: ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.17.tar.gz - If /usr/src/linux directory is existing then "mv /usr/src/linux = /usr/src/linux.old" - Place the downloaded linux-2.4.17.tar.gz in "/usr/src" directory and = expand it. "tar -zxvf linux-2.4.17.tar.gz" - Then /usr/src/linux directory will be created. Copying/injecting the Geode driver source into the existing kernel = source tree -------------------------------------------------------------------------= ----- 1. Extract the supplied nsc-kfb-driver-2.7.7 source tar file in "root" = directory as: - cd /root - tar -zxvf nsc-kfb-driver-2.7.7.tar.gz then "/root/nsc-kfb-driver-2.7.7" directory will be created. =20 2. cd /root/nsc-kfb-driver-2.7.7 3. Execute "./install" -------------------------------------------------------------------------= ---- BUILD INSTRUCTIONS =09 -------------------------------------------------------------------------= ----=20 - cd "/usr/src/linux" - Configure the Geode frame buffer driver with the following steps a) Run "make menuconfig" b) Goto "Code maturity level options" c) Enable "Prompt for development drivers" d) Goto top level menu and select "Console drivers" e) Goto "Frame-buffer Support" - Select "National Geode display support"=20 as "M" for Module or "*" for part of the kernel image - Select "FlatPanel Support" if required - Select "DDC Support" if required - Select "GAL Support" if required - Select "Advanced low level driver options" - Select "8, 16, 24, and 32bpp packed pixel support" f) Save the kernel configuration - For XFree86 Geode STB driver GAL option is mandatory. - For XFree Geode STB driver, you can set the flat panel or TV options=20 (Geode SC1200/SC1201 only), whichever needed.=20 - Run "make dep" - Run "make modules" - Run "make modules_install" - Run "make install" Configuration changes to install the linux-2.4.17 kernel -------------------------------------------------------- a) Update the file "/etc/lilo.conf": boot=3D/dev/hda map=3D/boot/map install=3D/boot/boot.b prompt timeout=3D50 linear default=3Dlinux-2.4.17 image=3D/boot/vmlinuz-2.4.17 label=3Dlinux-2.4.17 read-only root=3D/dev/hda1 b) Options for Geode KFB driver if it has been compiled as part of the = kernel image=20 - Modify "/etc/lilo.conf" to use these kernel command line options: For example NTSC-720X480 TV mode option: ---------------------------------------- boot=3D/dev/hda map=3D/boot/map install=3D/boot/boot.b prompt timeout=3D50 linear default=3Dlinux-2.4.17 image=3D/boot/vmlinuz-2.4.17 append=3D"video=3Dnscfb:vmode:NTSC-720X480" label=3Dlinux-2.4.17 read-only root=3D/dev/hda1 - Kernel command line options can be passed to nscfb with: `video=3Dnscfb:option1,option2:value2,option3' (multiple options = should be=20 separated by comma, values are separated from options by `:').=20 Accepted options: ----------------- The table for the Kernel mode numbers are: | 640x480 800x600 1024x768 1280x1024 1600x1200 -------+-------------------------------------------------------- 8 bpp | 0x301/769 0x303/771 0x305/773 0x307/775 0x31C/796 16 bpp | 0x311/785 0x314/788 0x317/791 0x31A/794 0x31E/798 24 bpp | 0x312/786 0x315/789 0x318/792 =20 vesa:X - Selects startup videomode. X is number from 0 to 0x1FF. See = the=20 above table for detailed explanation.=20 vmode:X - Selects startup videomode. X is string of the format=20 widthxheight-depth.=20 =20 vfreq:X - Selects startup video vertical frequency. Takes 60, 70, 72, = 75=20 and 85 Hz. Default is 60 Hz. Linux_kernel_mode_number =3D VESA_mode_number + 0x200 If adding in lilo.conf use the decimal number and not hex value. While using Geode frame buffer driver do not use "VGA=3DASK". To turn on the desired mode, use the video mode number of the Linux=20 kernel which is the VESA mode number plus 0x200. - Flat panel option is provided for TFT/DSTN support. This support is available only on platforms with CS9211 support. To select a Flat panel: 1. Option "flatpanel:1". This option is used to select the flat panel. =20 If BIOS supports flat panel the display will be flat panel and CRT. If BIOS does not support flat panel, the display defaults to CRT only. By default in the driver, flat panel is turned off for Geode GX1 = and=20 SC1200 processor-based platforms. This option is mandatory for Geode GX1 and SC1200 processor-based = platforms to select flat panel support. For flat panel based Geode GX (i.e., = GX 533@1.1W, GX 500@1.0W, GX 466@0.9W)processor platforms, default = flat panel=20 is enabled, so this is not required. In this version of driver, = flat panel is=20 supported on Geode GX (i.e., GX 533@1.1W, GX 500@1.0W, GX 466@0.9W) = TFT=20 version, Geode GX1 processor-based platforms, and the Geode SP4SC30 = platform=20 only. =09 - Option Compression:=20 - compression:1 is to enable the compression. - compression:0 is to disable the compression. - Default compression is enabled in the driver. sample options: --------------- #append=3D"video=3Dnscfb:vmode:791" #append=3D"video=3Dnscfb:vmode:1024x768-16,vfreq:75" #append=3D"video=3Dnscfb:vmode:NTSC-640X480" #append=3D"video=3Dnscfb:vmode:PAL-768X576" #append=3D"video=3Dnscfb:vmode:PAL-720X576" #append=3D"video=3Dnscfb:compression:0" #append=3D"video=3Dnscfb:vmode:NTSC-720X480,TVO:50:30:620:420" c) Execute the following commands: - Run "lilo" - Run reboot Installation of Geode KFB driver if Compiled as Module ------------------------------------------------------ Execute the instructions: - cd "/usr/src/linux/drivers/video/nsc/" - insmod nsc.o option1=3Dvalue option2=3Dvalue option3=3Dvalue ...etc. Available options usage: =20 i. vmode=3D"mode"=20 - To set 1024x768-16 mode: insmod nsc.o vmode=3D"1024x768-16" - To set PAL-768X576 mode: insmod nsc.o vmode=3D"PAL-768X576" ii. vesa=3Dvalue (value should be in hexadecimal or integer format) To set 1024x768-16 mode: insmod nsc.o vesa=3D0x317 (or 791) iii. compression=3Dvalue=20 - By default in the driver compression will be turned on.=20 - To disable compression the above option can be used as=20 insmod nsc.o compression=3D0 iv. flatpanel=3Dvalue=20 By default in the driver flat panel is off for Geode GX1 and=20 SC1200 processor-based platforms. This option is mandatory=20 for these processors to select flat panel support. =20 For flat panel Geode GX (i.e., GX 533@1.1W, GX 500@1.0W,=20 GX 466@0.9W) processor-based platforms the default flat panel=20 is enabled, so this option is not required. =20 Usage: On Geode GX1 and SC1200 processor-based platforms=20 to select flat panel:=20 - insmod nsc.o flatpanel=3D1=20 =20 V. ddc=3Dvalue=20 By default in the driver DDC is turned off.=20 insmod nsc.o ddc=3D1 will get DDC mode. Vi. vfreq=3Dvalue (value should be integer) TO select 85 Hz vfreq: insmod nsc.o vfreq=3D85 The format to select more than one option:=20 (e.g., insmod nsc.o vmode=3D"1024x768-16" vfreq=3D85) -------------------------------------------------------------------------= ------- RELEASE HISTORY (Previous Version) -------------------------------------------------------------------------= ------- Version 2.7.6, General Release Release Date: March 13th, 2003 Dependencies: - crlf v1.0.1o - Durango v2.51.01 - Panel v1.3.5 - DDC v1.1.1=20 - tvoset v1.1.0 Functional Changes=20 ------------------ - The 'gfx_enable_panning' routine exported to GAL. Defects Corrected ----------------- - Issue #169.10: Did not take the vfreq append entry in lilo bootloader=20 correctly for 640x480-16 mode. - Issue #169.11: Mode switch from higher mode to panel width and height = fails=20 on Geode GX1 processor and Geode GX (i.e., GX 533@1.1W, GX 500@1.0W,=20 GX 466@0.9W) processor-based platforms.=20 File Changes ------------ - nsc_gx1_fb.c - nsc_gx2_fb.c - nsc_ioctl.c - nsc_common_fb.h - nsc_ioctl.h - nsc_galproto.h Known Errata ------------ - Panning is not supported in the driver when flat panel is selected. - Since flat panel display timings are different from the CRT, fbset utility shows different values for the vertical frequency=20 when flat panel enabled. - Panel support is not supported on the Geode SP1SC20/SP1SC21 platforms. If flatpanel option selected on the Geode SP1SC20/SP1SC21, display is=20 distorted for BIOS version lower than v0.07. > -----Urspr=FCngliche Nachricht----- > Von: lin...@li...=20 > [mailto:lin...@li...] Im=20 > Auftrag von Kushal Koolwal > Gesendet: Mittwoch, 09. August 2006 01:52 > An: lin...@li... > Betreff: [Linux-fbdev-users] Where to put fbset command=20 > during system boot up >=20 > Hi, >=20 > I am using Debian Etch with kernel 2.6.17 and I am using the=20 > framebuffer driver for my Graphic Card(AMD GX processor). Now=20 > the problem is, when my system boots on the framebuffer=20 > console, the resolution is "640x480" which I later found out=20 > once my system booted into fluxbox and I ran the fbset -v=20 > command to see the resolution of the framebuffer debvice. Now=20 > I know that my framebuffer driver supports "1024x768"=20 > resolution. I checked this my hitting > Alt-Ctrl-F1 to switch from the fluxbox to the virtual console=20 > and then I gave the command fbset -v "1024x768-60" and the=20 > resolution got changed and I was getting a much bigger display now. >=20 > So my problem is how can I get that resolution during the=20 > system boot also.=20 > I tried putting a script called setconsole (which has a=20 > single line fbset -v > "1024x768-60") in /etc/init.d directory and made it=20 > executable and linked it with the rc.N directories by giving=20 > the following command: >=20 > update-rc.d setconsole defaults 10 >=20 > but it did not help. >=20 > How can get the particular resolution on my framebuffer=20 > console during the system boot? Do I need to place the script=20 > somewhere else? >=20 > THanks in advance. >=20 >=20 >=20 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier Download IBM WebSphere Application Server=20 > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > _______________________________________________ > Linux-fbdev-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users >=20 |
From: Kushal K. <kus...@ho...> - 2006-08-09 03:46:55
|
I think vesafb also use video= along with vga= option. I know you can specify video=vesafb:1024x768-60 also. But in my framebuffer driver (gxfb) the video= option does not work and there is no information about it in the kernel docs(atleast I think so). I know we can place the fbset command in the /etc/rcS.d folder and it works also but it takes atleast 6-7 seconds after the boot starts. I mean the delay to get the 1024x768 resolution is quite long and spoils the entire purpose. Also my system uses initrd to boot so I think I should put the fbset command in the initrd but I am not sure where to put it. THanks Kushal Koolwal >From: Sean D'Epagnier <se...@de...> >Reply-To: lin...@li... >To: lin...@li... >Subject: Re: [Linux-fbdev-users] Where to put fbset command during >systemboot up >Date: Tue, 8 Aug 2006 20:01:50 -0600 >MIME-Version: 1.0 >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc6-f5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 8 >Aug 2006 19:00:42 -0700 >Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93])by >sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 065CAFCC8; Tue, 8 Aug >2006 19:00:42 -0700 (PDT) >Received: from sc8-sf-mx2-b.sourceforge.net >([10.3.1.92]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net >with esmtp (Exim 4.43)id 1GAdNA-00013p-3l for >lin...@li...;Tue, 08 Aug 2006 19:00:40 -0700 >Received: from mercury.lunarpages.com ([216.227.217.101])by >mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256)(Exim 4.44) id >1GAdN8-0006et-T2for lin...@li...;Tue, 08 Aug >2006 19:00:40 -0700 >Received: from 71-208-204-50.hlrn.qwest.net ([71.208.204.50] >helo=localhost)by mercury.lunarpages.com with esmtp (Exim 4.52) id >1GAdOh-0004Yp-Gnfor lin...@li...;Tue, 08 Aug >2006 19:02:15 -0700 >X-Message-Info: LsUYwwHHNt0+fKhl8oUcETnQTfv5AWKNBLxSd5aVQhA= >References: <BAY...@ph...l> >User-Agent: Mutt/1.5.11 >X-AntiAbuse: This header was added to track abuse,please include it with >any abuse report >X-AntiAbuse: Primary Hostname - mercury.lunarpages.com >X-AntiAbuse: Original Domain - lists.sourceforge.net >X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] >X-AntiAbuse: Sender Address Domain - depagnier.com >X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems >tohttp://sf.net/tracker/?func=add&group_id=1&atid=200001 >X-BeenThere: lin...@li... >X-Mailman-Version: 2.1.8 >Precedence: list >List-Id: <linux-fbdev-users.lists.sourceforge.net> >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users>,<mailto:lin...@li...?subject=unsubscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=linux-fbdev-users> >List-Post: <mailto:lin...@li...> >List-Help: ><mailto:lin...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users>,<mailto:lin...@li...?subject=subscribe> >Errors-To: lin...@li... >Return-Path: lin...@li... >X-OriginalArrivalTime: 09 Aug 2006 02:00:42.0335 (UTC) >FILETIME=[9E8EDEF0:01C6BB57] > >On Tue, Aug 08, 2006 at 04:51:39PM -0700, Kushal Koolwal wrote: > > Hi, > > > > > > How can get the particular resolution on my framebuffer console during >the > > system boot? Do I need to place the script somewhere else? > > > > THanks in advance. > > > >Hi, I would also like to know the "correct" way, I know with vesafb you can >specify it with the option vga= on kernel. Otherwise you can have an init >script run fbset. I think certain fbdrivers can take options for >resolution, but not sure about all the timing parameters, check the kernel >docs for your driver.. > >Let me know how you make it work. > > >Sean D'Epagnier > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job >easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Linux-fbdev-users mailing list >Lin...@li... >https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users |
From: Sean D'E. <se...@de...> - 2006-08-09 02:00:40
|
On Tue, Aug 08, 2006 at 04:51:39PM -0700, Kushal Koolwal wrote: > Hi, > > > How can get the particular resolution on my framebuffer console during the > system boot? Do I need to place the script somewhere else? > > THanks in advance. > Hi, I would also like to know the "correct" way, I know with vesafb you can specify it with the option vga= on kernel. Otherwise you can have an init script run fbset. I think certain fbdrivers can take options for resolution, but not sure about all the timing parameters, check the kernel docs for your driver.. Let me know how you make it work. Sean D'Epagnier |