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 30th October 2008
tamtam tamtam is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Thanked 0 Times in 0 Posts
Default Going graphical or not?

Hi people, this is first venture with FreeBSD. After installation I was looking forward to getting to grips with the OS. So after installation I promptly got to the login, logged in as root. First of all lets get graphical. pushed out the startx command and in a blink of an eye, nothing. My fine 19 inch flat screen flickered and displayed no signal and died with a no signal display. I was unable to get back to the command prompt.

Okay maybe I missed something.

On another PC I promptly started reading the FreeBSD docs. Following the instructions I ran the following on rebooting into FreeBSD..
Code:
# cd /usr/ports/x11/xorg
# make install clean
Again nothing.

Rebooted again and tried the next suggestion...
Code:
# Xorg -configure
# Xorg -config xorg.conf.new
Again nothing. I then read the newly created xorg.conf.new. I also rebooted into Slackware and printed off the xorg.conf used in Slackware.

Comparing Slacks xorg.conf with FreeBSD's, they are near enough identical apart from a couple of minor points.

Slacks conf "keyboard"
Code:
Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option       "XkbModel"  "pc105"
	Option       "XkbLayout"  "gb"
EndSection
Frees conf "keyboard"
Code:
Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection
The "Card0" in Slackware
Code:
	Identifier  "Card0"
	Driver      "radeon"
	VendorName  "ATI Technologies Inc"
	BoardName   "Radeon 9100 IGP"
	BusID       "PCI:2:5:0"
The "Card0" in FreeBSD
Code:
	Identifier  "Card0"
	Driver      "ati"
	VendorName  "ATI Technologies Inc"
	BoardName   "Radeon 9100 IGP"
	BusID       "PCI:2:5:0"
The screen was almost identical as well.
Slackware...
Code:
        Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24
	SubSection "Display"
        ..... the same from here
FreeBSD...
Code:
        Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
        ..... the same from here
Okay the differences I edited into xorg.conf.new on FreeBSD were the
"XkbModel" "pc105" and "XkbLayout" "gb" as well as the DefaultDisplay set to 24. I left the Driver for the card set at ati. How do i know if FreeBSD has a Radeon Driver? Okay.

Same result nothing. Where am I going wrong?

Version = FreeBSD 7.0-RELEASE i386
X.Org X Server 1.4.0

Important part of Xorg.0.log
Code:
(==) Log File: "/var/log/Xorg.0.org", Time date and time here
(==) Using config file: "/etc/X11/xorg.conf"
Parse error on line 378 of section Device in file /etc/X11/xorg.conf
     "ATI" is not a valid keyword in this section.
(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
No Screens Found
When I open xorg.conf in /etc/X11 it only contains 141 lines. Obviously I am missing something here. The only reference to "ATI" I can find in xorg.conf is in the VendorName under the Identfier "card0".
__________________
I am studying because my boss says I should be certified
Reply With Quote
  #2   (View Single Post)  
Old 30th October 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Thanked 2 Times in 2 Posts
Default

Code:
Xorg -config xorg.conf.new
for this you need to provide path to xorg.conf.new file

also make sure you don't select X while installing freeBSD
Reply With Quote
  #3   (View Single Post)  
Old 30th October 2008
tamtam tamtam is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by rex View Post

for this you need to provide path to xorg.conf.new file
Should read
Code:
Xorg -config /root/xorg.conf.new
Tried many combinations. Even copying xorg.conf.new to /etc/X11 and startx.

Been at this for three nights now.
Quote:
also make sure you don't select X while installing freeBSD
Why? and I think I did.

I have been posting elsewhere over the last couple of days...
http://www.linuxquestions.org/questi...phical-679829/

As suggested there by anomie, who I thank for his patience, I update ports and used portmaster to update to the latest xorg...

Quote:
Follow the steps here under "Portsnap Method": http://www.freebsd.org/doc/en_US.ISO...rts-using.html

Once you've completed those steps, also do the following:

# cd /usr/ports/ports-mgmt/portmaster && make install clean

# rehash

# portmaster /usr/ports/x11/xorg
and this is the result...
Code:
Port Directory: /usr/ports/x11-drivers/xf86-video-i810
      This port is marked BROKEN.
      Does not compile.
      If you are sure you can build it remove BROKEN line in the 
      Makefile and try again.
Update for xf86-video-i810-1.6.5.3 failed.
Aborting update.
Update for xorg-drivers-7.3 failed.
Aborted update.
Where do i go next...
__________________
I am studying because my boss says I should be certified
Reply With Quote
  #4   (View Single Post)  
Old 30th October 2008
drhowarddrfine drhowarddrfine is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 358
Thanked 9 Times in 8 Posts
Default

I'm heading out to dinner but have you looked at the online FreeBSD Handbook? Also, be careful trying to compare anything on Linux with FreeBSD. They do some things kind of wonky over there.

Are you sure xorg.conf is in /etc/X11?
Reply With Quote
  #5   (View Single Post)  
Old 30th October 2008
qsecofr qsecofr is offline
Port Guard
 
Join Date: May 2008
Location: Portland
Posts: 18
Thanked 0 Times in 0 Posts
Default i810

someone may want to verify the overall viability of this recommendation:

cd /usr/ports/x11-drivers/xorg-drivers
make config

from the resulting menu scroll and deselect i810 option. rebuild, reinstall port. rebuild, reinstall dependent ports.

i vaguely recall running into a similar error with conflicting drivers at some point. it worked for me. but your mileage may vary and all that..

HTH
Reply With Quote
  #6   (View Single Post)  
Old 30th October 2008
tamtam tamtam is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by drhowarddrfine View Post
I'm heading out to dinner but have you looked at the online FreeBSD Handbook?
I have followed the handbook by the word during installation and configuring X.
Quote:
Also, be careful trying to compare anything on Linux with FreeBSD. They do some things kind of wonky over there.
Well that depends. I like to try out different distros. This the first OS I can think of that I cant get some graphical interface up and running, even if it is the basic vesa. I am quite capable after numerous years of tinkering with numerous UNIX variations and like most people, still learning.
Quote:
Are you sure xorg.conf is in /etc/X11?
Yes, xorg.conf is present in /etc/X11.

Quote:
# cp /root/xorg* /etc/X11
# more /etc/xorg.conf
Produces the desired results.

Why should I not install X during the installation?

Is my installation screwed now by the failure of updating the x drivers described above.
__________________
I am studying because my boss says I should be certified
Reply With Quote
  #7   (View Single Post)  
Old 30th October 2008
tamtam tamtam is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by qsecofr View Post
someone may want to verify the overall viability of this recommendation:

cd /usr/ports/x11-drivers/xorg-drivers
make config

from the resulting menu scroll and deselect i810 option. rebuild, reinstall port. rebuild, reinstall dependent ports.
How would I do that, remember your talking to someone who is totally new to ports?

Quote:
i vaguely recall running into a similar error with conflicting drivers at some point. it worked for me. but your mileage may vary and all that..

HTH
So do I!
__________________
I am studying because my boss says I should be certified
Reply With Quote
  #8   (View Single Post)  
Old 30th October 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

Quote:
Originally Posted by tamtam View Post
So after installation I promptly got to the login, logged in as root. First of all lets get graphical. pushed out the startx command and in a blink of an eye, nothing.
First, never, ever, ever, ever run X as root. In this case, where you were just testing things to get them up and running, it's okay. Just remember to always use a normal user account to start X after it's working.

Quote:
Important part of Xorg.0.log
Code:
(==) Log File: "/var/log/Xorg.0.org", Time date and time here
(==) Using config file: "/etc/X11/xorg.conf"
Parse error on line 378 of section Device in file /etc/X11/xorg.conf
     "ATI" is not a valid keyword in this section.
(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
No Screens Found
When I open xorg.conf in /etc/X11 it only contains 141 lines. Obviously I am missing something here. The only reference to "ATI" I can find in xorg.conf is in the VendorName under the Identfier "card0".
Well, what's on line 378, and the few lines above that? Open /etc/X11/xorg.conf in ee, and it will show line numbers in the header.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #9   (View Single Post)  
Old 30th October 2008
tamtam tamtam is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by phoenix View Post
First, never, ever, ever, ever run X as root. In this case, where you were just testing things to get them up and running, it's okay. Just remember to always use a normal user account to start X after it's working.
I would not normally log in as root, or startx as root. In fact in the first instance I tried it as user and on failure logged in as root.

Quote:
Well, what's on line 378, and the few lines above that? Open /etc/X11/xorg.conf in ee, and it will show line numbers in the header.
Opened in ee, edited in ee, so I would guess when I say that there are only 141 lines then you can take it from me there are only 141 lines I even counted them myself just to make sure.

It is funny, now Xorg.0.log is empty...HELP
__________________
I am studying because my boss says I should be certified
Reply With Quote
Old 31st October 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

What messages do you get when you run Xorg -verbose 1? Try different values (higher means more verbose). Also, check if it's using /var/log/Xorg.1.log or 2 etc.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 31st October 2008
tamtam tamtam is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Thanked 0 Times in 0 Posts
Default

Okay strategy is to a reinstall of FreeBSD and start again.

What shall I install during the intial installation, given in mind the FreeBSD handbook.

Someone has already suggested that I dont install X during the installation. What about ports.

After installation what steps should I follow to install X.

Looking for guidance here, thanks in advance.
__________________
I am studying because my boss says I should be certified
Reply With Quote
Old 31st October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

after you install freebsd....

if you installed ports tree
update ports
Code:
$ portsnap fetch update
if not
Code:
$ portsnap fetch extract
install portmaster
Code:
$ cd /usr/ports/ports-mgmt/portmaster
$ make install clean
run rehash, to update progs (this is needed in csh shell)
Code:
$ rehash

and install X
Code:
$ portmaster x11/xorg
leave default options....

Last edited by graudeejs; 31st October 2008 at 04:53 PM.
Reply With Quote
Old 31st October 2008
tamtam tamtam is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
after you install freebsd....

if you installed ports tree
update ports
Code:
$ portsnap fetch update
if not
Code:
$ portsnap fetch extract
install portmaster
Code:
$ cd /usr/ports/ports-mgmt/portmaster
$ make install clean
run rehash, to update progs (this is needed in csh shell)
Code:
$ rehash

and install X
Code:
$ portmaster x11/xorg
leave default options....
Thanks killasmurf86 but...when I upgraded before then went
Code:
$ portmaster x11/xorg
This happened...
Quote:
Port Directory: /usr/ports/x11-drivers/xf86-video-i810
This port is marked BROKEN.
Does not compile.
If you are sure you can build it remove BROKEN line in the
Makefile and try again.
Update for xf86-video-i810-1.6.5.3 failed.
Aborting update.
Update for xorg-drivers-7.3 failed.
Aborted update.
Surely, unless the BROKEN file is sorted then the uprade will fail. leaving my system in a volatile state?
__________________
I am studying because my boss says I should be certified
Reply With Quote
Old 31st October 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

You have to do what was suggested before:

Code:
$ cd /usr/ports/x11-drivers/xorg-drivers
$ make config
The Intel 810 driver is broken, so you need to make sure it is not installed. Once you do the "make config" you will get a display of the default video drivers that xorg will install unless it is changed. Uncheck the box by the Intel 810 driver. Then install (or upgrade) xorg.
Reply With Quote
Old 31st October 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Quote:
Originally Posted by tamtam View Post
Someone has already suggested that I dont install X during the installation. What about ports.
SInce I don't recall reading an answer to this being given, I'll put forth the one logic I see.


Everything on the FreeBSD CD-ROMs are dated from when the release was made, so you download 7.0-Release, you get packages from when they made the CD. You can still use binary packages to install stuff like xorg, but it would be more convienant time wise: to just install FreeBSD, update FreeBSD, then install xorg, et cetera. The same thing holds true for the ports tree, the ports tree on CD#1 dates to when the release was made, but you will want a (heck of a lot) newer snap shot before installing software via ports.


For just this same reason, since the csup utility became apart of the base system; I no longer use any third party packages on the FreeBSD release disk -- it's a waste of time.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 31st October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Quote:
Originally Posted by TerryP View Post
For just this same reason, since the csup utility became apart of the base system; I no longer use any third party packages on the FreeBSD release disk -- it's a waste of time.

portsnap is also part of FBSD, and it's faster
Reply With Quote
Old 31st October 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Yes, but system source can't be updated via portsnap yet :-P
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 31st October 2008
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
Fdisk Soldier
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 67
Thanked 0 Times in 0 Posts
Default

I always do a minimal install of FreeBSD then when I'm up and running I use pkg_add to install kde and xorg.

# pkg_add -r kde

# pkg_add -r xorg
__________________
hitest
Reply With Quote
Old 31st October 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

Afaik, Intel videos are consolidated into the intel driver.
Up to it to select proper settings.

Same applies to ati. There is a "meta" driver handling AMD/radeon and older ati.
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 31st October 2008
tamtam tamtam is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Thanked 0 Times in 0 Posts
Red face Failed Again?

Okay reinstalled FreeBSD.

Updated ports. installed xorg drivers minding not to install i810. Then when I run the install for xorg. It run into the the x810 problem. Though I left it unchecked, it is installed as a dependancy for the intel-video-driver.

I started again, installed FreeBSD. Updated ports, and such. made sure I unchecked the intel-video-driver...then installed latest xorg.

It taken a age to complete.

Used Xorg -configure then Xorg -config /root/xorg.conf.new.

Same result.
I even copied over xorg.conf.new to /etc/X11/xorg.conf and tried startx. Nothing.

Okay some newbie questions here.

Is there any window manager I need to install before I run X. What I mean is am i starting X and there is nothing there to run.

In other words what do you do when after installing FreeBSD.

Login as root, then what. And at what point do you start the X server running.
__________________
I am studying because my boss says I should be certified
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


All times are GMT. The time now is 03:47 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