DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th June 2008
kienjakenobi's Avatar
kienjakenobi kienjakenobi is offline
Kienja
 
Join Date: Apr 2008
Posts: 57
Thanked 8 Times in 7 Posts
Default Console Resolution Problem

According to several nice articles, including this one, and an article in the FreeBSD wiki, the first step to getting a high console resolution is to add these to lines to the kernel configuration file:

Code:
options      VESA
options      SC_PIXEL_MODE
After configuring my kernel to include those two options, I issue the make buildkernel command I this is the entire output that I see:

Code:
--------------------------------------------------------------
>>> Kernel build for BEDFORD started on Fri Jun 27 17:35:42 UTC 2008
--------------------------------------------------------------
===> BEDFORD
mkdir -p /usr/obj/usr/src/sys

--------------------------------------------------------------
>>> stage 1: configuring the kernel
--------------------------------------------------------------
cd /usr/src/sys/amd64/conf;  PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin  config  -d /usr/obj/usr/src/sys/BEDFORD  /usr/src/sys/amd64/conf/BEDFORD
/usr/src/sys/amd64/conf/BEDFORD: unknown option "VESA"
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
Some time ago I remember getting a high resolution console working using those guides, but I can not remember any fancy tricks to getting it to work.

I have tried it recently on 7.0-RELEASE and 8.0-CURRENT-200806 with this exact error.

In both cases I had the src/base and src/sys distributions installed. Do I need more src distributions than those two to be able to get VESA working?

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 28th June 2008
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

maybe if you use i386 rather than amd64 the
kernel would compile.
............
that is my vague recollection anyway. Some have said the only
reason to use amd64 rather than i386 is server-intensive
data processing. (another vague recollection)
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
  #3   (View Single Post)  
Old 28th June 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,074
Thanked 198 Times in 156 Posts
Default

I had the same problem some time ago, not sure what is going on since options VESA is still in NOTES.

Dynamically loading vesa works fine though (kldload vesa), so I just use that.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 28th June 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

VESA is not supported on AMD64 because of some BIOS communication that the 64-Bit version can't do. I ran into this issue yesterday, when I tried to compile with the VESA option. The other option should work, but it's rather useless given that you can't use VESA modes. I was able to confirm this by looking at previous mailing list entries. It was hidden deep within one of the threads. I'm not sure if there is another way of changing console resolution, but at the moment, I'm stuck with only one mode as well.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #5   (View Single Post)  
Old 28th June 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
Spam Deminer
 
Join Date: Apr 2008
Location: NYC
Posts: 307
Thanked 31 Times in 25 Posts
Default

I do remember that this stopped working for me, in 32 bit no less, quite awhle ago. I don't believe I got compile errors, but what had worked simply no longer worked. It reminded me of a Windows haiku.

Yesterday it worked
Today it is not working
Windows is like that.


But I digress.

Back on topic, that hasn't worked for me in probably over a year. As I usually wind up in X anyway, running several mlterms, (my x terminal of choice in FreeBSD) I never investigated it that thoroughly.
Reply With Quote
  #6   (View Single Post)  
Old 28th June 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

I just need xterm + screen + zsh. I'll have three or four xterm + screen sessions going in xfce, if I need them. I rarely drop into console, unless I have to. My .zshrc even autostarts Xfce upon console login, if it hasn't already been started.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #7   (View Single Post)  
Old 28th June 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

Quote:
Originally Posted by kienjakenobi View Post
cd /usr/src/sys/amd64/conf; PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d /usr/obj/usr/src/sys/BEDFORD /usr/src/sys/amd64/conf/BEDFORD
/usr/src/sys/amd64/conf/BEDFORD: unknown option "VESA"
Error is self explanatory, option VESA is not available on amd64, next time, look in /sys/conf/NOTES and /sys/amd64/conf/NOTES for amd64 FreeBSD custom kernel.

Just for other folks, option VESA is working perfectly on i386.

SC_PIXEL_MODE may still be usefull also look VESA800x600 in syscons(4)

Anyway, all this console stuff are going to be rewritten some time in future.(they are not MPSAFE)
Reply With Quote
  #8   (View Single Post)  
Old 28th June 2008
kienjakenobi's Avatar
kienjakenobi kienjakenobi is offline
Kienja
 
Join Date: Apr 2008
Posts: 57
Thanked 8 Times in 7 Posts
Default

Thanks very much everyone.

This makes perfect sense now. The system I got a high resolution console working on the 7.0 prerelease was i386. I just recently switched to amd64, so that makes it obvious why it is not working now.
Reply With Quote
  #9   (View Single Post)  
Old 28th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

High resolution consoles are overrated, (coming from a OpenBSD user..)
Reply With Quote
Old 29th June 2008
kienjakenobi's Avatar
kienjakenobi kienjakenobi is offline
Kienja
 
Join Date: Apr 2008
Posts: 57
Thanked 8 Times in 7 Posts
Default

Yeah, there is not really much use for it except for the times when I am confined to a console and I need to read a message that is longer than can be displayed on my screen at one time.

In this case, of course, I can just log the output of the command into a file and then open it in an editor, but that can be an awful lot to do for some simple console read-outs sometimes.

He he. How very lazy.
Reply With Quote
Old 29th June 2008
Nirbo Nirbo is offline
Real Name: Nicholas Kirby
Fdisk Soldier
 
Join Date: May 2008
Location: Edmonton, Alberta, Canada
Posts: 68
Thanked 11 Times in 9 Posts
Default

I just think it looks nice
Reply With Quote
Old 29th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by kienjakenobi View Post
Yeah, there is not really much use for it except for the times when I am confined to a console and I need to read a message that is longer than can be displayed on my screen at one time.

In this case, of course, I can just log the output of the command into a file and then open it in an editor, but that can be an awful lot to do for some simple console read-outs sometimes.

He he. How very lazy.
Perhaps it's time to read the more(1) and less(1) man pages.

i.e:
% dmesg | less
Now you know..
Reply With Quote
Old 29th June 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,074
Thanked 198 Times in 156 Posts
Default

You can also press the Scroll Lock key and use the arrow keys and Page up/Down to scroll...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 29th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by Carpetsmoker View Post
You can also press the Scroll Lock key and use the arrow keys and Page up/Down to scroll...
On FreeBSD, yes, but such a key didn't exist on early DEC terminals.

It's also not supported by OpenBSD either..
Reply With Quote
Old 29th June 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,074
Thanked 198 Times in 156 Posts
Default

ehm ... Yes ... But this is about FreeBSD ... So why do you keep talking about OpenBSD ...?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 29th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

It's bad to develop tendencies that are OS specific, the recommendation of more or less is a "generic" answer.

I'll go now..
Reply With Quote
Old 30th June 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Note: more *is* less on FreeBSD. They are hardlinks to the same binary. The only difference is that more has -X enabled while less doesn't (and a few other niggles, but that's the main one).

This trips me up all the time switching between FreeBSD and Linux, as more on Debian is the ancient, craptastic, real more that does very very very little. And using "less -X" all the time is a pain. And aliasing more to 'less -X' causes more problems when you switch to root or connect to a system where you forget to put the alias.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 1st July 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

Note: FreeBSD syscons framebuffer, including high resolutions are ported from DragonFlyBSD.
Reply With Quote
Old 12th September 2008
drayon drayon is offline
New User
 
Join Date: May 2008
Posts: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by richardpl View Post
Note: FreeBSD syscons framebuffer, including high resolutions are ported from DragonFlyBSD.
Really? Since when? Can you provide a link to this project work?

Thanks
Reply With Quote
Old 12th September 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

http://www.freebsd.org/cgi/cvsweb.cg...cons/syscons.c search for revision 1.436
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg + Xfce4 resolution problem sniper007 FreeBSD General 4 30th April 2009 04:38 PM
Resolution problem.. PCBSD3000 FreeBSD General 5 13th April 2009 07:56 PM
resolution too high!!! =| ? what? seadog109 Other BSD and UNIX/UNIX-like 19 18th October 2008 04:25 AM
FVWM/X11 Resolution Issue? m4rc OpenBSD General 8 3rd July 2008 02:45 PM
Changing resolution Cloud General software and network 3 27th June 2008 06:03 PM


All times are GMT. The time now is 01:57 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick