[Y-devel] Y on fbdev on console
Brandon Black brandon at tryplec.com
Fri Mar 12 03:57:03 GMT 2004
Sorry, took me longer than I thought to get around to redo-ing my Gentoo
installation at home, but I have Y back up and running under it now. I
used the stock Y configuration (with SDL video driver), I don't have X
running at all when I'm using Y. My video card is an nvidia geforce4
Ti4600, my kernel is 2.4.25, using Vesa framebuffer console in mode
0x318 (1024x768x32). SDL uses this framebuffer for Y just fine without
any modifiations really from how you use it under X, only it's drawing
to the framebuffer instead of to an X window. There's only two gotchas
I noticed that anyone else might be interested in:
1) Make sure your libsdl is compiled with framebuffer support. With
Gentoo this means make sure that "fbcon" is set in your USE flags, and
then "emerge libsdl". For other distros the fbcon support in libsdl may
or may not be on by default, you might just have to grab libSDL and
compile it yourself and use the right configure options to get
framebuffer support.
2) Y doesn't background correctly using SDL over fbcon, so it never
starts correctly without using --no-detach. I have to modify the startY
to do "Y --no-detach &" then a "sleep 2", then start the yterm or
whatever else for clients. Starting with plain "Y" just gives me no
output and no errors, it gets stuck trying to fork off or something.
Brandon
Brandon Black wrote:
>
> Actually I've since blown away the box I was doing Y on, it's being
> reinstalled tonight, so I can't actually look at it now :)
>
> However, IIRC, the configuration file was bone stock just like using
> it under SDL under X. I just shut down my X server and started up Y
> from my console. vga=0x318 was the same mode I use. By default it
> will come up with Y in 800x600 centered on your 1024x768 fixed vesa
> console (the sdl resolution setting patch I threw out a while back can
> fix that from the config file).
>
> I do remember that I had to play with my SDL setup a bit, but I didn't
> really have to do anything to Y itself. I use gentoo, and I think by
> default the SDL that I had compiled on the system didn't support
> framebuffer as a backend, so I had to set a framebuffer-related USE
> flag and re-emerge the SDL package so that it supported it properly.
> I think SDL can also use GGI/GII, which in turn uses the framebuffer too.
>
> Sometime tommorow or the next day I should have the Linux box up and
> running again, at which point I'll turn this on again and I'll keep an
> eye out for anything funny I might have forgotten about to get it
> working.
>
> Brandon
>
> David Lazanja wrote:
>
>> On Thu, 2004-03-04 at 21:32, Brandon Black wrote:
>>
>>
>>> I'll say it again for the 15th time - why bother with the fbdev
>>> driver? You can use SDL on your console (it worked for me with a
>>> VESA 1024x768x24 framebuffer console on nvidia hardware). Just have
>>> to make sure SDL is working properly and compiled with support for
>>> framebuffer. Works great for me, input, output, everything.
>>>
>>>
>>
>>
>> Can you send me your config file?
>> Also, I pass vga=0x318 to my kernel. What value do you give?
>>
>> Thanks.
>> David
>>
>>
>
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved