You are not logged in.

#1 2006-04-06 20:25:24

Chris|MD
Member
Registered: 2006-03-14
Posts: 36

Framebuffer Color

I found this tutorial by phraktur here.
Well i tried it, copied that to my .bashrc but it doesnt work.
Well when i login i see all colorcodes, one after another when i comment the clear command.
Like "P0222222P8222222P18032329982b2b...".
Nothing happens then. The colors are the default ones when i use ls --color=always. The Prompt has default green i set as prompt.
echo $TERM says linux, as it should be.

So whats wrong?
I use the default vesafb with 16 million colors (vga=792). Unpatched Kernel (no Bootsplash and such things).
I only have the ifloop which sets the colors, some aliases and a prompt in my .bashrc.

What do i need to get this working? Or whats my fault?

Oh an a second question. Is it possible to get more than 60Hz with a fx 5900?
The dev of vesafg-tng says its only possible by patching the bios. Is that true? Is there really no way to get the fb to use more than 60Hz?
And if not, is it possible to patch the bios of my card without much knowledge? there are no upgrades for my card available (MSI sux i have to admit) which solve this problem.

Offline

#2 2006-04-06 23:41:00

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Framebuffer Color

Chris|MD wrote:

I found this tutorial by phraktur here.
Well i tried it, copied that to my .bashrc but it doesnt work.
Well when i login i see all colorcodes, one after another when i comment the clear command.
Like "P0222222P8222222P18032329982b2b...".
Nothing happens then. The colors are the default ones when i use ls --color=always. The Prompt has default green i set as prompt.
echo $TERM says linux, as it should be.

Make sure you have "echo -ne" - the e is important (the n just makes it so your screen doesn't fill up with lines).

Chris|MD wrote:

Oh an a second question. Is it possible to get more than 60Hz with a fx 5900?
The dev of vesafg-tng says its only possible by patching the bios. Is that true? Is there really no way to get the fb to use more than 60Hz?
And if not, is it possible to patch the bios of my card without much knowledge? there are no upgrades for my card available (MSI sux i have to admit) which solve this problem.

Um, why do you need more that 60Hz on a framebuffer device.  It isn't redrawn the same way, and shouldn't be affected by a refresh rate at all.  If you just want higher than 60 Hz because it's a bigger number, that's dumb.  Keep it at 60 - flat panels aren't supposed to handle anything that's not 60 anyway (if you have one)

Offline

#3 2006-04-07 00:41:04

ibrahim
Member
Registered: 2006-02-18
Posts: 53

Re: Framebuffer Color

Try changing

echo -en "e]P0222222" #black

to

echo -en "e]P0222222" #black

Offline

#4 2006-04-07 08:03:57

Chris|MD
Member
Registered: 2006-03-14
Posts: 36

Re: Framebuffer Color

Um, why do you need more that 60Hz on a framebuffer device. It isn't redrawn the same way, and shouldn't be affected by a refresh rate at all. If you just want higher than 60 Hz because it's a bigger number, that's dumb. Keep it at 60 - flat panels aren't supposed to handle anything that's not 60 anyway (if you have one)

Its not a TFT panel. Yes youre right, they only get redrawn if something changes. But i think that this is only true for those TFT panels.
But i use a CRT and it flickers@60Hz. Even if the screen is not redrawn, the monitor redraws the screen. The light doesnt stick @ the glass  big_smile
Maybe youre right but i dont know how a Framebuffer differs from a default X session.
But i get a headache if i use it too long.

Make sure you have "echo -ne" - the e is important (the n just makes it so your screen doesn't fill up with lines).

I copied it from your blog. So i hope its exactly how you got it in your own .bashrc.

@ibrahim

I will try that.

Offline

#5 2006-04-07 09:14:56

rezza
Member
From: Edinburgh, uk
Registered: 2004-07-08
Posts: 237

Re: Framebuffer Color

Yeah ibrahim's solution works.

Offline

#6 2006-04-07 16:04:56

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Framebuffer Color

ibrahim wrote:

Try changing

echo -en "e]P0222222" #black

to

echo -en "e]P0222222" #black

Thanks, wordpress stripped the leading , and I didn't notice it.

Offline

Board footer

Powered by FluxBB