Scaling with an embedded X server.
I have a set up where I use Xpehyr to display an X-display inside of an x-window app. I need to increase the resolution of the embedded display but I also need to keep the hosting window the same size. Does anyone have any suggestions on how to scale? Is there scaling in the Xorg server that I could port to Xpehyr? Any ideas would be appreciated. Thanks in advance, --David ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
On Sun, Oct 19, 2008 at 03:25:10AM +0200, Juliusz Chroboczek wrote: glibc chews up what, twenty megabytes? [citation needed] $ dpkg -s libc6 locales | grep ^Installed-Size: Installed-Size: 11452 Installed-Size: 11752 [EMAIL PROTECTED]:OSELAS.BSP-phyCORE-trunk dpkg --contents platform-phyCORE-i.MX27/packages/glibc_2.5_arm.ipk | grep libc-2.5.so lrwxrwxrwx root/root 0 2008-11-03 23:18 ./lib/libc.so.6 - libc-2.5.so -rwxr-xr-x root/root 1116976 2008-11-03 23:18 ./lib/libc-2.5.so Which is 1.1 MB, in a typical embedded scenario (ARM v5te, i.MX27). rsc -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9 ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
On Sat, Oct 18, 2008 at 6:25 PM, Juliusz Chroboczek [EMAIL PROTECTED] wrote: $ dpkg -s libc6 locales | grep ^Installed-Size: Installed-Size: 11452 Installed-Size: 11752 /me shuts up now. -- William Tracy [EMAIL PROTECTED] -- [EMAIL PROTECTED] Vice President, Cal Poly Linux Users' Group http://www.cplug.org ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
I got stuck again while porting X11/GTK+ on OMAP. I'm not sure whether it is the right forum for these questions or not but these questions are directly or indirectly associated with Mesa/GL libraries. Dependency chart is like this ... GTK+ needs cairo-pdf and cairo-ps backend cairo-pdf needs glitz installed while compiling glitz, it looks for GL libraries(libGL) while I have only GLES libraries meant for OMAP. I tried cross-compiling MESA for GL libraries but it gave me a compilation error again. This time it was trying to run the previously compiled executable for host(arm) on build(x86) platform. Any help on resolving this issue would be great. Thanks for your concern. Regards Amit Pundir On Wed, Oct 15, 2008 at 1:47 PM, Kamalneet Singh [EMAIL PROTECTED] wrote: Amit wrote: Thank you all for your inputs. I built x-server with kdrive enabled as Mikhail and Kamalneet suggested. I used the Xorg 7.2 release. It did build up successfully but with so many extensions enabled [:(] which I'm not sure whether I will be using or not. So, now I'm trying to customize my build configuration and choose relevant extensions only i.e extensions which my GTK+ framework will depend upon or use. I have a couple of questions: 1. I found two packages on maemo repository namely Xorg and X-server. What is the difference between the two? I thought both are same. Additionally there is --enable-xorg configure option available while building Xorg-server. What is the usage of that. 2. Can someone please explain me the usage of: --disable-glx, --enable-xgl, --enable-xglx, --enable-xegl GLX extension adds OpenGL commands to the protocol. So X clients can use OpenGL. XGL is an X Server built *on top of* OpenGL. Xegl and Xglx are two flavors of XGL. To use XGL on desktop, you'll need --enable-xgl --enable-xglx. My motive is to enable OPEN GL ES backend for EGL on X. Which option do I have to use? By default it enables OPENGL backend while I need OPENGL ES extension. What do you want to do? 1. Enable X clients(applications) to use OpenGL ES + EGL? or 2. Make X Server itself use OpenGL ES + EGL for rendering? I don't know of any open source solution for (2). And it is a significant development effort. XGL uses OpenGL(through glitz). Few months back, XGL support was removed from the xserver master branch. ~kammal ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Just an update on my previous concern. I compiled that program which was troubling me for build platform and let it run during make process. As of now Mesa has successfully compiled using arm-gcc toolchain. Lets hope it doesn't break other things. Thanks for your concern. Regards Amit Pundir On Mon, Oct 20, 2008 at 10:45 AM, Amit [EMAIL PROTECTED] wrote: I got stuck again while porting X11/GTK+ on OMAP. I'm not sure whether it is the right forum for these questions or not but these questions are directly or indirectly associated with Mesa/GL libraries. Dependency chart is like this ... GTK+ needs cairo-pdf and cairo-ps backend cairo-pdf needs glitz installed while compiling glitz, it looks for GL libraries(libGL) while I have only GLES libraries meant for OMAP. I tried cross-compiling MESA for GL libraries but it gave me a compilation error again. This time it was trying to run the previously compiled executable for host(arm) on build(x86) platform. Any help on resolving this issue would be great. Thanks for your concern. Regards Amit Pundir On Wed, Oct 15, 2008 at 1:47 PM, Kamalneet Singh [EMAIL PROTECTED] wrote: Amit wrote: Thank you all for your inputs. I built x-server with kdrive enabled as Mikhail and Kamalneet suggested. I used the Xorg 7.2 release. It did build up successfully but with so many extensions enabled [:(] which I'm not sure whether I will be using or not. So, now I'm trying to customize my build configuration and choose relevant extensions only i.e extensions which my GTK+ framework will depend upon or use. I have a couple of questions: 1. I found two packages on maemo repository namely Xorg and X-server. What is the difference between the two? I thought both are same. Additionally there is --enable-xorg configure option available while building Xorg-server. What is the usage of that. 2. Can someone please explain me the usage of: --disable-glx, --enable-xgl, --enable-xglx, --enable-xegl GLX extension adds OpenGL commands to the protocol. So X clients can use OpenGL. XGL is an X Server built *on top of* OpenGL. Xegl and Xglx are two flavors of XGL. To use XGL on desktop, you'll need --enable-xgl --enable-xglx. My motive is to enable OPEN GL ES backend for EGL on X. Which option do I have to use? By default it enables OPENGL backend while I need OPENGL ES extension. What do you want to do? 1. Enable X clients(applications) to use OpenGL ES + EGL? or 2. Make X Server itself use OpenGL ES + EGL for rendering? I don't know of any open source solution for (2). And it is a significant development effort. XGL uses OpenGL(through glitz). Few months back, XGL support was removed from the xserver master branch. ~kammal ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
On Wed, Oct 15, 2008 at 09:21:06AM -0700, William Tracy wrote: glibc chews up what, twenty megabytes? [citation needed] signature.asc Description: Digital signature ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Thanks for the info. Will be nice if someone can quickly tell any pros and cons of using kdrive instead of Xorg, Pros: pretty much none. Cons: it's not Xorg. Pros: it's easier to understand and to work with. it doesn't have the module loader. Cons: it doesn't have the module loader. it doesn't do acceleration as well. it's not supported as well as X.Org. Juliusz ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Juliusz Chroboczek wrote: glibc chews up what, twenty megabytes? [citation needed] $ dpkg -s libc6 locales | grep ^Installed-Size: Installed-Size: 11452 Installed-Size: 11752 That has been built for normal desktop use. I use glibc in MiniMyth and it between 2MB and 3MB. ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
On Fri, Oct 17, 2008 at 7:30 AM, Jim Gettys [EMAIL PROTECTED] wrote: My point is really to compare apples to apples; generally, once running X, you also are interested in running GTK/Qt based toolkits, which may have stronger requirements on libc than X does. So blindly saying uClibc is smaller, so it must save space doesn't necessarily follow. Some more careful analysis is in order. You're right. I meant to imply that there are situations where that makes a difference, not that it is universally a good idea. I personally am looking at doing a Linux 2.4.x + uClibc + KDrive (or Xorg; you have me reconsidering now) + FLTK setup, without Gtk or Qt present at all. Obviously, that is not the normal situation for most people. So make the configuration static, or even build Xorg statically. I assume then that the problems I read about had more to do with the particular build that some distribution shipped than anything else. Fair enough. :-) When keithp and I were working on Kdrive on the iPAQ years ago, we had 16 meg of RAM. I think the IBM watch had 8 meg. But that isn't where most of the RAM goes anyway. Let's see, firefox-bin is only using 237m on my primary system right now. (In its defense, I have sixteen tabs open.) So, I have *no* idea what you're talking about ... ;-) -- William Tracy [EMAIL PROTECTED] -- [EMAIL PROTECTED] Vice President, Cal Poly Linux Users' Group http://www.cplug.org ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Amit wrote: Thank you all for your inputs. I built x-server with kdrive enabled as Mikhail and Kamalneet suggested. I used the Xorg 7.2 release. It did build up successfully but with so many extensions enabled [:(] which I'm not sure whether I will be using or not. So, now I'm trying to customize my build configuration and choose relevant extensions only i.e extensions which my GTK+ framework will depend upon or use. I have a couple of questions: 1. I found two packages on maemo repository namely Xorg and X-server. What is the difference between the two? I thought both are same. Additionally there is --enable-xorg configure option available while building Xorg-server. What is the usage of that. 2. Can someone please explain me the usage of: --disable-glx, --enable-xgl, --enable-xglx, --enable-xegl GLX extension adds OpenGL commands to the protocol. So X clients can use OpenGL. XGL is an X Server built *on top of* OpenGL. Xegl and Xglx are two flavors of XGL. To use XGL on desktop, you'll need --enable-xgl --enable-xglx. My motive is to enable OPEN GL ES backend for EGL on X. Which option do I have to use? By default it enables OPENGL backend while I need OPENGL ES extension. What do you want to do? 1. Enable X clients(applications) to use OpenGL ES + EGL? or 2. Make X Server itself use OpenGL ES + EGL for rendering? I don't know of any open source solution for (2). And it is a significant development effort. XGL uses OpenGL(through glitz). Few months back, XGL support was removed from the xserver master branch. ~kammal ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Daniel Stone wrote: On Tue, Oct 14, 2008 at 08:40:13AM +0100, John Tapsell wrote: 2008/10/14 Amit [EMAIL PROTECTED]: Only building Xserver will be sufficient or do I have to build the whole X11 package availbale at http://xorg.freedesktop.org/releases/X11R7.2/src/ ? Why not just go for the full X11? Memory wise I found no difference in the memory usage between X11 and kdrive on the OMAP. Right, and future releases of Maemo will be using Xorg instead of KDrive, for exactly that reason. Thanks for the info. Will be nice if someone can quickly tell any pros and cons of using kdrive instead of Xorg, for embedded systems where we know the hardware at build time. Are there any performance differences between Xorg and kdrive? Is EXA better than KAA? The development effort of writing a new kdrive server (based on Xfbdev) vs writing Xorg driver for a new hardware? I guess kdrive is easier and cleaner, maybe because I'm not at all familiar with Xorg development. Thanks ~kammal Cheers, Daniel ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
uClibc is in heavy development. perhaps you can forward your problems building with uClib to the uClib Mailinglist ? IMHO the lack of I18N (i do not know the state of uClib here either!) is not a problem since it is designed for memorytight systems where it is unlikly to have i18n at all. re, wh Jim Gettys schrieb: Does uClibc actually buy you anything? Last I looked, (admittedly quite a few years ago), it lacked I18N support that most products now require, at least by the time you are doing serious UI work. But times may have changed, and it isn't obvious from the sketchy documentation. At that date, we ended up having to carry glibc anyway, at which point it is moot, and uClibc just ended up costing space, rather than saving it. - Jim On Tue, 2008-10-14 at 09:22 -0700, William Tracy wrote: On Tue, Oct 14, 2008 at 12:40 AM, John Tapsell [EMAIL PROTECTED] wrote: Why not just go for the full X11? Memory wise I found no difference in the memory usage between X11 and kdrive on the OMAP. I am told that the full Xorg isn't very happy when built against uClibc. The original poster probably isn't using uClibc, but can anyone comment on building the full server against uClibc? ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
On Oct 15, 08 14:25:07 +0530, Amit wrote: I want my applications to use OPENGL ES + EGL. So I think I have to go with --enable-xgl --enable-xglx. No, you need --enable-glx. Matthias -- Matthias Hopf [EMAIL PROTECTED] ____ __ Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ [EMAIL PROTECTED] Phone +49-911-74053-715 __) |_| __) |__ R D www.mshopf.de ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
What do you want to do? 1. Enable X clients(applications) to use OpenGL ES + EGL? or 2. Make X Server itself use OpenGL ES + EGL for rendering? I want my applications to use OPENGL ES + EGL. So I think I have to go with --enable-xgl --enable-xglx. Regards Amit ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Are there any performance differences between Xorg and kdrive? Is EXA better than KAA? My tests with the very lastest OMAP boards: I found a 20% speed improvement on the OMAP between kdrive fbdev KAA and xorg fbdev EXA. However I didn't not use the most recent version of kdrive for the comparision, so I don't know what the difference is now. I found no memory usage difference between the newest kdrive and newest Xorg. The development effort of writing a new kdrive server (based on Xfbdev) vs writing Xorg driver for a new hardware? I guess kdrive is easier and cleaner, maybe because I'm not at all familiar with Xorg development. It is a harder to get started with Xorg because there's quite a bit of code that you need to get started. However writing the Xorg driver is much cleaner. It is a separate driver, and can be compiled etc completely independently of Xorg. For KDrive, however, it's much more 'built-in'. Also there are things you can do with an Xorg driver that you can't do with kdrive. For example manage your own pixmap memory - essential if you have a UMA system (unified memory). So basically I would join the chorus here in recommending to go with Xorg John ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Embedded X
Hello team, First of all please excuse me for my questions if they seem trivial or if they have already been discussed on this mailing list though I have done much googling for this information. My concern is if there is any tiny/embedded version of X11 available targeting the embedded platforms? To be more specific I want to port X11/GTK+ to my OMAP platform. so, do I need to port full X or is there any alternative available? Thanks for your concern. Regards Amit Pundir ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
I forget to add that I will be using OPENGL ES 1.1/2.0 Thanks and Regards Amit Pundir On Tue, Oct 14, 2008 at 11:41 AM, Amit [EMAIL PROTECTED] wrote: Hello team, First of all please excuse me for my questions if they seem trivial or if they have already been discussed on this mailing list though I have done much googling for this information. My concern is if there is any tiny/embedded version of X11 available targeting the embedded platforms? To be more specific I want to port X11/GTK+ to my OMAP platform. so, do I need to port full X or is there any alternative available? Thanks for your concern. Regards Amit Pundir ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Twas brillig at 11:41:31 14.10.2008 UTC+05 when [EMAIL PROTECTED] did gyre and gimble: A My concern is if there is any tiny/embedded version of X11 available A targeting the embedded platforms? kdrive. You will find it in X.org server tree. -- pgpPOPSC70pxC.pgp Description: PGP signature ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Amit wrote: Hello team, First of all please excuse me for my questions if they seem trivial or if they have already been discussed on this mailing list though I have done much googling for this information. My concern is if there is any tiny/embedded version of X11 available targeting the embedded platforms? To be more specific I want to port X11/GTK+ to my OMAP platform. so, do I need to port full X or is there any alternative available? Try kdrive. It is in the same xserver codebase. You need to pass --enable-kdrive --enable-xfbdev to configure. You may also like to see the X server in Nokia's N800/N810, part of maemo platform. AFAIK, it is also based on kdrive. Thanks for your concern. Regards Amit Pundir ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Only building Xserver will be sufficient or do I have to build the whole X11 package availbale at http://xorg.freedesktop.org/releases/X11R7.2/src/ ? Thanks and Regards Amit Pundir On Tue, Oct 14, 2008 at 12:13 PM, Kamalneet Singh [EMAIL PROTECTED] wrote: Amit wrote: Hello team, First of all please excuse me for my questions if they seem trivial or if they have already been discussed on this mailing list though I have done much googling for this information. My concern is if there is any tiny/embedded version of X11 available targeting the embedded platforms? To be more specific I want to port X11/GTK+ to my OMAP platform. so, do I need to port full X or is there any alternative available? Try kdrive. It is in the same xserver codebase. You need to pass --enable-kdrive --enable-xfbdev to configure. You may also like to see the X server in Nokia's N800/N810, part of maemo platform. AFAIK, it is also based on kdrive. ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
Amit wrote: Only building Xserver will be sufficient or do I have to build the whole X11 package availbale at http://xorg.freedesktop.org/releases/X11R7.2/src/ ? Not whole, but a lot of it. There is Building the modular tree at http://www.x.org/wiki/ModularDevelopersGuide, I don't know if it is up to date though. And better use the latest release instead of 7.2 An alternative is to use the same X release as you have installed on your system. Then you can install the development packages from your distribution, and just build the xserver with whatever options you want. Same for embedded systems if you have something like maemo and scratchbox.. ~kammal ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Embedded X
On Tue, Oct 14, 2008 at 12:40 AM, John Tapsell [EMAIL PROTECTED] wrote: Why not just go for the full X11? Memory wise I found no difference in the memory usage between X11 and kdrive on the OMAP. I am told that the full Xorg isn't very happy when built against uClibc. The original poster probably isn't using uClibc, but can anyone comment on building the full server against uClibc? -- William Tracy [EMAIL PROTECTED] -- [EMAIL PROTECTED] Vice President, Cal Poly Linux Users' Group http://www.cplug.org ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg