LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 06-24-2010, 03:46 AM   #1
Rogmatic
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
Console font issue when attempting to change framebuffer resolution


Hi all.
I just finished a basic LFS installation tonight, and have spent several hours trying to change the console/framebuffer resolution using the grub configuration tools and files.

The problem I'm having is that while I've managed to configure the grub loader to display in the resolution I want, as soon as it loads the kernel I see nothing at all. I believe that the kernel is unable to display the font that grub is using at the new res.

I copied the files 'ascii.pf2' and 'unicode.pf2' from an Ubuntu 10.04 LiveCD into the /usr/share/grub/ directory, and added the following chunk of code to my /boot/grub/grub.cfg (by editing /etc/grub.d/00_header and running grub-mkconfig):

if loadfont /usr/share/grub/ascii.pf2 ; then
set gfxmode="1280x800x32"
set gfxpayload=keep
insmod gfxterm
insmod vbe
terminal_output gfxterm
if terminal_output gfxterm; then true ; else
terminal gfxterm
fi
fi

The default language setup for my system is en_CA.ISO-8859-1

I figure I have to setup the /etc/sysconfig/console file, but have no idea what to do...

Any help is greatly appreciated.

-Roger
 
Old 06-24-2010, 08:15 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

I think it is a bit early to try to set this up.

After finishing LFS you have a minimal linux setup, a lot of things still need to be set up and/or installed. Have a look at the first few BLFS chapters (especially this part).

Another link that might help: 5. Using framebuffer devices on Intel platforms. The vga = ASK grub option might be handy for testing.

Another thing that came to mind: Have you enabled the framebuffer related entries in the kernel?

Hope this helps.
 
1 members found this post helpful.
Old 06-24-2010, 02:45 PM   #3
Rogmatic
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks druuna, I'll check out that info.

I've tried using various vga= options, with the same result: GRUB 1.97.2 tells me that they're deprecated and unusable.
 
Old 06-24-2010, 02:48 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
You're welcome
 
Old 06-24-2010, 03:46 PM   #5
Rogmatic
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
And yeah, I do realise it's kindof early, but a 640x480 console on my 17" widescreen makes for a hideous working environment.

I'm rebuilding the kernel now, with help from one of those links you posted, so here's hopin.
 
Old 06-24-2010, 03:49 PM   #6
Rogmatic
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
It works! Thanks a ton, druuna.
 
  


Reply


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
CentOS: How to set font size/ resolution on main console kumars.nitin123 Linux - Server 3 03-04-2010 05:54 AM
DISCUSSION: Howto: Change Font Size During Boot (Framebuffer Resolution) rickh LinuxAnswers Discussion 6 11-12-2009 02:11 AM
framebuffer console resolution and cd writter troubles pcwh Slackware 6 02-21-2006 05:58 AM
Changing Framebuffer Console Resolution bl0tt0 Slackware 4 11-08-2005 09:18 PM
Console resolution - framebuffer - won't go away. lymph Linux - General 1 02-15-2005 09:09 AM


All times are GMT -5. The time now is 09:41 AM.

Main Menu
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