[pygame] Pygame in Linux without X Windows
Hello all, I've got a Debian Linux system that I'm working with and I wondered if its possible for Pygame to do graphics without X-Windows installed? The system is being designed to run on a serial or network console but I'd still like to output select things to the monitor. Can Pygame do this without X-Windows installed? I thought it might be as simple as selecting the right mode for the video card and enabling full screen but I haven't had a chance to sit down and try it. Scott
Re: [pygame] Pygame in Linux without X Windows
hi, yeah it should just work. I haven't tried it for a while though. If you have any troubles, report back here and I'm sure it'll be easy enough to fix. cu! On Tue, Jan 6, 2009 at 6:04 PM, Scott Sumner wrote: > Hello all, > I've got a Debian Linux system that I'm working with and I wondered if > its possible for Pygame to do graphics without X-Windows installed? The > system is being designed to run on a serial or network console but I'd still > like to output select things to the monitor. Can Pygame do this without > X-Windows installed? I thought it might be as simple as selecting the right > mode for the video card and enabling full screen but I haven't had a chance > to sit down and try it. > > Scott > >
Re: [pygame] Pygame in Linux without X Windows
I tried this a while ago, but it didn't work for me. I tried several videodrivers (directfb, ggi, vgl, svgalib, aalib), but it alway quited with an error: 'no avaiable video device'. I changed SDL_VIDEODRIVER like the documentation mentions, but with no success. On Tue, 6 Jan 2009 19:19:18 +1100 "René Dudfield" wrote: > hi, > > yeah it should just work. I haven't tried it for a while though. If you > have any troubles, report back here and I'm sure it'll be easy enough to > fix. > > cu! > > > > On Tue, Jan 6, 2009 at 6:04 PM, Scott Sumner wrote: > > > Hello all, > > I've got a Debian Linux system that I'm working with and I wondered if > > its possible for Pygame to do graphics without X-Windows installed? The > > system is being designed to run on a serial or network console but I'd still > > like to output select things to the monitor. Can Pygame do this without > > X-Windows installed? I thought it might be as simple as selecting the right > > mode for the video card and enabling full screen but I haven't had a chance > > to sit down and try it. > > > > Scott > > > > > -- evil monkey
Re: [pygame] Pygame in Linux without X Windows
Although I do not know any ready made debian package, I am sure it is possible. But you should compile your own version of SDL. Normally, What i did was to compile, Python, all dependicies, SDL and SDL-* libraries and PyGame under /pygame directory. It is a long day work to make everything working properly. I have a 512MB CF disk (fat32) image that is booting and running in ramdisk with pygame and pyserial. Unfortunately, it is not documented anyhow. If you like to keep your installed debian system and run SDL over framebuffer. Shut the X server down, on shell prompt type "export SDL_VIDEODRIVER=fbcon" and run your own application then it should work if you have got a framebuffer installed properly during boot. Aykut evil monkey yazmış: I tried this a while ago, but it didn't work for me. I tried several videodrivers (directfb, ggi, vgl, svgalib, aalib), but it alway quited with an error: 'no avaiable video device'. I changed SDL_VIDEODRIVER like the documentation mentions, but with no success. On Tue, 6 Jan 2009 19:19:18 +1100 "René Dudfield" wrote: hi, yeah it should just work. I haven't tried it for a while though. If you have any troubles, report back here and I'm sure it'll be easy enough to fix. cu! On Tue, Jan 6, 2009 at 6:04 PM, Scott Sumner wrote: Hello all, I've got a Debian Linux system that I'm working with and I wondered if its possible for Pygame to do graphics without X-Windows installed? The system is being designed to run on a serial or network console but I'd still like to output select things to the monitor. Can Pygame do this without X-Windows installed? I thought it might be as simple as selecting the right mode for the video card and enabling full screen but I haven't had a chance to sit down and try it. Scott
Re: [pygame] Pygame in Linux without X Windows
OK, it works for me, but only with SDL_VIDEODRIVER=fbcon (aalib and directfb will just hang up). It's rather slow, but i can run pygame-games from the terminal without having X running. Note that you have to build your sdl-lib with fbcon support enabled.
Re: [pygame] Pygame in Linux without X Windows
OK, I've never built SDL-Lib from source, can someone give me a hint as to where to start with this? Scott On Wed, Jan 7, 2009 at 9:59 AM, evil monkey < there-is...@evil-monkey-in-my-closet.com> wrote: > OK, it works for me, but only with SDL_VIDEODRIVER=fbcon (aalib and > directfb will just hang up). It's rather slow, but i can run pygame-games > from the terminal without having X running. Note that you have to build your > sdl-lib with fbcon support enabled. >
Re: [pygame] Pygame in Linux without X Windows
hi, Download the various tar.gzs... then use: ./configure --help However... it might be best to try and use the debian packages... they should work for you. cu! On Thu, Jan 8, 2009 at 6:00 AM, Scott Sumner wrote: > OK, I've never built SDL-Lib from source, can someone give me a hint as to > where to start with this? > > Scott > > > On Wed, Jan 7, 2009 at 9:59 AM, evil monkey > wrote: >> >> OK, it works for me, but only with SDL_VIDEODRIVER=fbcon (aalib and >> directfb will just hang up). It's rather slow, but i can run pygame-games >> from the terminal without having X running. Note that you have to build your >> sdl-lib with fbcon support enabled. > >
Re: [pygame] Pygame in Linux without X Windows
Not sure how it's done, but you could bundle Xwindows with your program. --- On Wed, 1/7/09, René Dudfield wrote: From: René Dudfield Subject: Re: [pygame] Pygame in Linux without X Windows To: pygame-users@seul.org Date: Wednesday, January 7, 2009, 4:27 PM -Inline Attachment Follows- hi, Download the various tar.gzs... then use: ../configure --help However... it might be best to try and use the debian packages... they should work for you. cu! On Thu, Jan 8, 2009 at 6:00 AM, Scott Sumner wrote: > OK, I've never built SDL-Lib from source, can someone give me a hint as to > where to start with this? > > Scott > > > On Wed, Jan 7, 2009 at 9:59 AM, evil monkey > wrote: >> >> OK, it works for me, but only with SDL_VIDEODRIVER=fbcon (aalib and >> directfb will just hang up). It's rather slow, but i can run pygame-games >> from the terminal without having X running. Note that you have to build your >> sdl-lib with fbcon support enabled. > >
Re: [pygame] Pygame in Linux without X Windows
Muhahahaha! Good one! Might be easier just o bundle Linux with it though... ;^) -Casey On Jan 7, 2009, at 4:21 PM, Yanom Mobis wrote: Not sure how it's done, but you could bundle Xwindows with your program. --- On Wed, 1/7/09, René Dudfield wrote: From: René Dudfield Subject: Re: [pygame] Pygame in Linux without X Windows To: pygame-users@seul.org Date: Wednesday, January 7, 2009, 4:27 PM -Inline Attachment Follows- hi, Download the various tar.gzs... then use: ./configure --help However... it might be best to try and use the debian packages... they should work for you. cu! On Thu, Jan 8, 2009 at 6:00 AM, Scott Sumner > wrote: > OK, I've never built SDL-Lib from source, can someone give me a hint as to > where to start with this? > > Scott > > > On Wed, Jan 7, 2009 at 9:59 AM, evil monkey > wrote: >> >> OK, it works for me, but only with SDL_VIDEODRIVER=fbcon (aalib and >> directfb will just hang up). It's rather slow, but i can run pygame-games >> from the terminal without having X running. Note that you have to build your >> sdl-lib with fbcon support enabled. > >
Re: [pygame] Pygame in Linux without X Windows
Not sure how it's done, but you could attach an AtlasV rocket booster to your bicycle. ;) --- James On Wed, Jan 07, 2009 at 03:21:19PM -0800, Yanom Mobis wrote: >Not sure how it's done, but you could bundle Xwindows with your program. >--- On Wed, 1/7/09, Rene Dudfield wrote: > > From: Rene Dudfield > Subject: Re: [pygame] Pygame in Linux without X Windows > To: pygame-users@seul.org > Date: Wednesday, January 7, 2009, 4:27 PM > > -Inline Attachment Follows- > > hi, > > Download the various tar.gzs... then use: > > ./configure --help > > However... it might be best to try and use the debian packages... they > should work for you. > > cu! > > On Thu, Jan 8, 2009 at 6:00 AM, Scott Sumner > wrote: > > OK, I've never built SDL-Lib from source, can someone give me a hint > as to > > where to start with this? > > > > Scott > > > > > > On Wed, Jan 7, 2009 at 9:59 AM, evil monkey > > wrote: > >> > >> OK, it works for me, but only with SDL_VIDEODRIVER=fbcon (aalib and > >> directfb will just hang up). It's rather slow, but i can run > pygame-games > >> from the terminal without having X running. Note that you have to > build your > >> sdl-lib with fbcon support enabled. > > > >
Re: [pygame] Pygame in Linux without X Windows
On Thu, Jan 8, 2009 at 9:21 AM, Yanom Mobis wrote: > > Not sure how it's done, but you could bundle Xwindows with your program. No. This is _not_ a good idea! cheers James
Re: [pygame] Pygame in Linux without X Windows
On Wed, Jan 7, 2009 at 3:34 PM, James Paige wrote: > Not sure how it's done, but you could attach an AtlasV rocket booster > to your bicycle. ;) Which, taken literally, is an idea worthy of recognition in the great "hall of pragmatism". Sorry. Ian
Re: [pygame] Pygame in Linux without X Windows
why not? --- On Wed, 1/7/09, James Mills wrote: From: James Mills Subject: Re: [pygame] Pygame in Linux without X Windows To: pygame-users@seul.org Date: Wednesday, January 7, 2009, 5:38 PM -Inline Attachment Follows- On Thu, Jan 8, 2009 at 9:21 AM, Yanom Mobis wrote: > > Not sure how it's done, but you could bundle Xwindows with your program. No. This is _not_ a good idea! cheers James
Re: [pygame] Pygame in Linux without X Windows
it would be more like attaching your bike to the rocket. Have you seen the size of those things? :) --- On Wed, 1/7/09, James Paige wrote: From: James Paige Subject: Re: [pygame] Pygame in Linux without X Windows To: pygame-users@seul.org Date: Wednesday, January 7, 2009, 5:34 PM -Inline Attachment Follows- Not sure how it's done, but you could attach an AtlasV rocket booster to your bicycle. ;) --- James On Wed, Jan 07, 2009 at 03:21:19PM -0800, Yanom Mobis wrote: > Not sure how it's done, but you could bundle Xwindows with your program. > --- On Wed, 1/7/09, Rene Dudfield wrote: > > From: Rene Dudfield > Subject: Re: [pygame] Pygame in Linux without X Windows > To: pygame-us...@seul.org > Date: Wednesday, January 7, 2009, 4:27 PM > > -Inline Attachment Follows- > > hi, > > Download the various tar.gzs... then use: > > ./configure --help > > However... it might be best to try and use the debian packages >they > should work for you. > > cu! > > On Thu, Jan 8, 2009 at 6:00 AM, Scott Sumner > wrote: > > OK, I've never built SDL-Lib from source, can someone give me a hint > as to > > where to start with this? > > > > Scott > > > > > > On Wed, Jan 7, 2009 at 9:59 AM, evil monkey > > wrote: > >> > >> OK, it works for me, but only with SDL_VIDEODRIVER=fbcon (aalib and > >> directfb will just hang up). It's rather slow, but i can run > pygame-games > >> from the terminal without having X running. Note that you have to > build your > >> sdl-lib with fbcon support enabled. > > > >
Re: [pygame] Pygame in Linux without X Windows
On Thu, Jan 8, 2009 at 10:41 AM, Yanom Mobis wrote: > why not? Don't waste my time :)