LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-30-2009, 05:08 PM   #1
JonTn
LQ Newbie
 
Registered: Dec 2009
Location: Québec
Distribution: Ubuntu, Slackware and Gentoo
Posts: 5

Rep: Reputation: 0
Console framebuffer for ATI HD3200 and 16/9 screen


Hello folks,

Well, I'm quite n00b with Linux and decide to explore further more and thus I'd rather command line tips.

So I'm trying to configure the console framebuffer at boot. You know vesafb...

At this moment I'm able to make it run using the vesafb driver but I doubt that this is optimal configuration because it look a bit slow and don't support the formant and then the resolution of my screen. I found something about 16/9 screens for drivers using modedb like atyfb but I'm not safe with the boot options.

Here is my hardware configuration :
- Radeon HD 3200 with 256mb dedicated memory
- A LCD 16/10 screen capable of maximal resolution of 1280x800

About software :
- Slackware64 13.0 with kernel 2.6.29.6
- LILO as the boot loader
- ATI proprietary driver (fglrx) for 3d acceleration

I read several documents as much on Internet as in kernel docs but nothing seem to fit my needs.

Which one between radeonfb and atyfb, or anything else, do I have to use and how to configure the boot options?

P.S.: Since I'm not a native English speaker and still learning, some sentences may sound a bit odd. Then, don't be shy about asking what I exactly mean or even correcting me. I'm always glad to receive a useful comments.

Thx folks
 
Old 12-30-2009, 05:16 PM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
This may not be helpfull, but I'd forget about the framebuffer and just hope it looks after itself. As you probably know the main reason a framebuffer would be trouble is if you got 'shearing' or 'tearing' of a video picture. This is due to the framebuffer and the monitor screen being out of sync: so that the screen is refreshed from the framebuffer before the framebuffer has got the full new picture, so you get the old picture and then a shear and then the new picture.
 
Old 12-30-2009, 05:35 PM   #3
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
Well since you're using Lilo and I use Grub I don't know what configuration file to ask you for I'm just going to ask you to give us the contents of your Lilo boot configuration file. That should have something about vga resolution if you want framebuffer. Also run "fbset" in a console -- not x -- and give us the output of that.
 
Old 12-30-2009, 05:53 PM   #4
JonTn
LQ Newbie
 
Registered: Dec 2009
Location: Québec
Distribution: Ubuntu, Slackware and Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
Hi lugoteehalt

Above all, thx for answering my thread. But, it's OK about that.

If I enable vesafg, for example, the listing of big directory is very slow. I'm close to read each file name. That's what I mean by "slow". But the refresh rate seems to be synchronized with the framebuffer since I've no 'shearing', 'tearing', 'flickering' or 'blinking'. I used fdiba, which contains fbgs, to read pdf documents and it's awesome.

I'm just annoyed about the slow listing or anything else that move and want understand more for learning purpose.

Even if you didn't answered my question, your answer wasn't helpless 'cause now I understand a bit more the mechanism.

thx a lot

Last edited by JonTn; 12-30-2009 at 06:19 PM. Reason: ahm! correct a language mistake :redface:
 
Old 12-30-2009, 06:16 PM   #5
JonTn
LQ Newbie
 
Registered: Dec 2009
Location: Québec
Distribution: Ubuntu, Slackware and Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SharpyWarpy View Post
Well since you're using Lilo and I use Grub I don't know what configuration file to ask you for I'm just going to ask you to give us the contents of your Lilo boot configuration file. That should have something about vga resolution if you want framebuffer. Also run "fbset" in a console -- not x -- and give us the output of that.
I think both (LILO and Grub) use the same way for kernel command.

Here is a sample :
Code:
grub.conf File That Supports Serial Console

#boot=/dev/hda

# Options added for serial console
serial  --unit=0 --speed=9600 \
        --word=8 --parity=no --stop=1
terminal --timeout=10 serial console

default=0
timeout=10
title Red Hat Linux (2.4.20-8)
        root (hd0,1)
        kernel /vmlinuz-2.4.20-8 ro \
                root=LABEL=/ console=ttyS0,9600n8
        initrd /initrd-2.4.20-8.img
Code:
 lilo.conf with Serial Console Support

serial=0,9600n8
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=Linux

image=/boot/vmlinuz-2.4.20-8
        label=2.4.20-8
        read-only
        initrd=/boot/initrd-2.4.20-8.img
        append="root=LABEL=/ console=ttyS0,9600n8"
As you can see, it's quite similar. Grub take these arguments in kernel while lilo take them in append.

Since every documentation I've seen are "bootloader independant", I think the syntax is always the same.
 
Old 12-30-2009, 06:48 PM   #6
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
Quote:
Originally Posted by JonTn View Post
I think both (LILO and Grub) use the same way for kernel command.

Here is a sample :
Code:
grub.conf File That Supports Serial Console

#boot=/dev/hda

# Options added for serial console
serial  --unit=0 --speed=9600 \
        --word=8 --parity=no --stop=1
terminal --timeout=10 serial console

default=0
timeout=10
title Red Hat Linux (2.4.20-8)
        root (hd0,1)
        kernel /vmlinuz-2.4.20-8 ro \
                root=LABEL=/ console=ttyS0,9600n8
        initrd /initrd-2.4.20-8.img
Code:
 lilo.conf with Serial Console Support

serial=0,9600n8
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=Linux

image=/boot/vmlinuz-2.4.20-8
        label=2.4.20-8
        read-only
        initrd=/boot/initrd-2.4.20-8.img
        append="root=LABEL=/ console=ttyS0,9600n8"
As you can see, it's quite similar. Grub take these arguments in kernel while lilo take them in append.

Since every documentation I've seen are "bootloader independant", I think the syntax is always the same.
Gosh, you've completely lost me with all that. The only thing looks familiar to me there is your mention of "ttyS0", which I use /dev/ttyS0 as the serial port to which my dial-up modem is connected. The only reference I use in my grub.conf to implement the framebuffer is an addition to the end of the "kernel" line, that of "vga=0x315" to get an 800x600 resolution frambuffer I can use fbi image viewer, etc.
 
Old 12-30-2009, 07:09 PM   #7
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
JonTn, try adding "vga=0x315" to the "append" line in your lilo.conf file. That will give you framebuffer screen resolution of 800x600.
 
Old 12-30-2009, 07:43 PM   #8
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,234

Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by SharpyWarpy View Post
JonTn, try adding "vga=0x315" to the "append" line in your lilo.conf file. That will give you framebuffer screen resolution of 800x600.
No, lilo does not let you do that.
 
0 members found this post helpful.
Old 12-30-2009, 09:11 PM   #9
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
vesafb will not give you 1280x800 because it's not a vesa mode. Nor does radeonfb or atyfb support your GPU (radeonfb only supports up to the x850, iirc).

You could use KMS (kernel modesetting) following the directions in this thread: http://www.linuxquestions.org/questi...-works-760963/

You would have to give up the proprietary driver, though, for your GPU and stick to the open source driver.

Adam
 
Old 01-01-2010, 04:16 PM   #10
JonTn
LQ Newbie
 
Registered: Dec 2009
Location: Québec
Distribution: Ubuntu, Slackware and Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
Thx for the tip adamk75.

I followed the instructions to enable the kms driver but, unfortunately, I got a black screen during the boot time. Perhaps this experimental driver does not work with a Radeon HD 3200 for now. I will try again in a few time. Until that I will use the vesafb to have graphic in console mode.

Thx to everyone and happy new year.
 
Old 01-01-2010, 08:02 PM   #11
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Radeon KMS definitely supports the HD3200 in kernel 2.6.32. You would need/want to compile the framebuffer console into the kernel, but disable any other framebuffer drivers. Then compile radeon DRM as a module or also into the kernel.
 
Old 01-03-2010, 08:49 AM   #12
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 16

Rep: Reputation: 233Reputation: 233Reputation: 233
There are paremeters in the command line for optimizing frame buffer output in the console.

Try to read Documentations/fb/*

For example, with NVIDIA, you can add the kernel paramter 'video=nividiafb:1024x768-16@60,mtrr:4,ywrap,pmipal'.
 
Old 01-03-2010, 08:08 PM   #13
JonTn
LQ Newbie
 
Registered: Dec 2009
Location: Québec
Distribution: Ubuntu, Slackware and Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
To Konsolebox

Yep! I read a lot in Documentations/fb/* but nothing seems to work with my device (HD 3200) except vesafb.

To adamk75

This week, I'm moving for the university then I'll give some news about it the next week.
 
Old 01-03-2010, 09:09 PM   #14
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 16

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by JonTn View Post
Yep! I read a lot in Documentations/fb/* but nothing seems to work with my device (HD 3200) except vesafb.
Probably it's not supported. vesafb is a generic driver so .. too bad.. Maybe you can check the new kernel source?... Or maybe you need to use the real driver (non-framebuffer) for ATI? If it does exist, it's probably a third party driver like NVIDIA's. You can check it somewhere in the ATI website.
Quote:
This week, I'm moving for the university then I'll give some news about it the next week.
Universities. Wow. Good luck.
 
Old 01-04-2010, 04:52 AM   #15
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
As I said, he'll need to use KMS to use the native resolution of his monitor on the framebuffer console. That is the only option for newer radeons.
 
  


Reply

Tags
framebuffer, kernel, lilo, slackware13


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Compiz-Fusion in Debian etch (AMD64, ATI Radeon HD3200) Maxei Debian 9 02-16-2009 05:13 PM
VERTICAL screen: 768x1024 framebuffer mode (screen mounted verticaly!)? versatilstudio Linux - General 0 11-08-2008 06:29 AM
Console Framebuffer darkarcon2015 Slackware 9 07-16-2005 06:24 PM
Framebuffer Console & Splash Screen jspenguin Linux - Software 9 05-04-2003 12:34 AM


All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration