LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Going graphical (https://www.linuxquestions.org/questions/%2Absd-17/going-graphical-679829/)

tamtam 10-29-2008 03:05 PM

Going graphical
 
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?

nifund9 10-29-2008 03:40 PM

Yes, I believe FreeBSD has a radeon driver. Try running 'xorgconfig' so you can choose the settings yourself.

anomie 10-29-2008 03:42 PM

A couple questions:
  1. Did you update your ports tree before installing xorg? and (related)...
  2. what version of xorg are you running now?
  3. What does /var/log/Xorg.0.log say about all this?

I'm presuming you are following the steps outlined here: http://www.freebsd.org/doc/en_US.ISO.../x-config.html

I also want to point out that xorg is xorg - this isn't FreeBSD's xorg (it was just ported there). If the same xorg version works in Slackware, it should work in FreeBSD.

anomie 10-29-2008 03:54 PM

Bearing in mind I'm really a xorg novice, I would add one more thing:
Code:

%cd /usr/ports && make search display=path key=radeon
Path:  /usr/ports/sysutils/radeontool
Path:  /usr/ports/x11/xorg
Path:  /usr/ports/x11-drivers/xf86-video-radeonhd
Path:  /usr/ports/x11-drivers/xorg-drivers

Perhaps try installing the xf86-video-radeonhd port and going through the steps again. (More info on that driver on xorg's site here: http://wiki.x.org/wiki/radeonhd)

tamtam 10-29-2008 03:59 PM

Quote:

Originally Posted by anomie (Post 3325379)
A couple questions:
  1. Did you update your ports tree before installing xorg? and (related)...
  2. what version of xorg are you running now?
  3. What does /var/log/Xorg.0.log say about all this?

Update your ports tree - enlighten me, being a newbie and such.

Quote:

I'm presuming you are following the steps outlined here: http://www.freebsd.org/doc/en_US.ISO.../x-config.html
Thats where I am at...best docs for an OS I have read so far :)
Quote:

I also want to point out that xorg is xorg - this isn't FreeBSD's xorg (it was just ported there). If the same xorg version works in Slackware, it should work in FreeBSD.
Thats what I assumed when I compared conf files.

anomie 10-29-2008 04:21 PM

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

Finally, once all that is done, begin again with the installing/configuring X11 documentation. (And if you continue to run into issues, post your FreeBSD version; I noticed you never mentioned it.)

tamtam 10-29-2008 04:52 PM

Quote:

Originally Posted by anomie (Post 3325418)
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

Finally, once all that is done, begin again with the installing/configuring X11 documentation. (And if you continue to run into issues, post your FreeBSD version; I noticed you never mentioned it.)

Can you please explain why I need to do this and what it achieves?

And also at the moment I am not connected to the internet, I have not configured the network yet.

I have installed from the cdroms, and also installed gnome during the installation.

Also I am getting a error during boot up related to the mouse. It is a Logitech Intellimouse connected via usb to a PS2 connection via a PS2 converter.

anomie 10-29-2008 04:55 PM

Sure - you need to update your ports tree to get the latest xorg software. Since we (still) don't know which FreeBSD version you're running, it is hard to know which xorg version you installed.

I recommended installing portmaster because it makes ports management a lot easier. Using the portmaster command as I specified will upgrade your xorg installation to the latest version.

Could you get set up with a 'net connection?

tamtam 10-29-2008 05:15 PM

Quote:

Originally Posted by anomie (Post 3325452)
Sure - you need to update your ports tree to get the latest xorg software. Since we (still) don't know which FreeBSD version you're running, it is hard to know which xorg version you installed.

I recommended installing portmaster because it makes ports management a lot easier. Using the portmaster command as I specified will upgrade your xorg installation to the latest version.

Could you get set up with a 'net connection?

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


tamtam 10-30-2008 03:40 AM

Thanks for your patience anomie.

I did install ports during the installation. Will enable the network when I get home tonight and try the update method. The following is rather puzzling though.
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".

anomie 10-30-2008 10:29 AM

Quote:

Originally Posted by tamtam
Will enable the network when I get home tonight and try the update method.

I think that'll be the best approach. The nice thing is, after you update, you can try deleting /etc/X11/xorg.conf and then simply try startx again. Xorg 7.3 is supposed to be a little smarter about just working (even without a config file).

As for the parse error - very odd about the line numbers. But rather than investing time and energy into that, an update is pretty quick and painless.

anomie 10-30-2008 03:27 PM

I see you've opened a (mostly) identical thread on daemonforums, so I'm presuming the discussion will continue there.

http://daemonforums.org/showthread.php?t=2303

tamtam 10-30-2008 04:03 PM

Quote:

Originally Posted by anomie (Post 3326479)
I see you've opened a (mostly) identical thread on daemonforums, so I'm presuming the discussion will continue there.

http://daemonforums.org/showthread.php?t=2303

Keeping my options open so to speak. Been at this constantly for three nights now without success. Would like to continue on both forums.

Okay, followed your guidelines from above...

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
The result of which does not look promising...
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.

Well that will be it then.

Will I never get FreeBSD going graphical?

nifund9 10-30-2008 07:42 PM

I had the same error after running portmanager,
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

except it was "i810" instead of "ATI", and I lost the desktop. I ran "pkg_add i810" and ran xorgconfig and got the desktop back.
I'm still new to FreeBSD, but you might try "pkg_add ati" and regonfiguring the setting if need be. Hope this helps in some way.

tamtam 10-31-2008 10:49 AM

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.


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