IBM Thinkpad R51 & Xorg

Hello, I'm having trouble getting X or KDE to boot. My system crashes to a black screen when trying any of the command to teststart X (ie: startx, kdm, X -config ..., -retro, Xorg -config ...). I've deleted and recreated the the config file with Xorg -configure (testing both xorg.conf.new and a copied xorg.conf), tried using vesa driver, It never adds/edits the Xorg.0.log file after trying anything but the initial creaton. It would seem I'm not the only person with this exact issue:

http://forum.nginx.org/read.php?23,148376 there is a person with it exact (except vesa doesn't work for me) and he links to 2 others.

I did start with BSD-8.0-R, upgraded to 8.2-R. Did a full portupgrade -af after fixing all errors with pkgdb -F. Any help would be appreciated. I would love to give you a proper Xorg.0.log but as I said after the initial creation nothing gets shown during failed loads.

Anything info needed please ask, again thanks, and any help would be appreciated :)

If you would like I'll delete all the configs, logs and do an initial creation and post both. But not much is shown. No errors, nothing. The config ends up perfectly normal for a generated config. And the log shows nothing out of the ordinary as the creation goes perfect. Im very confused :/
 
installed versions:
Code:
blurr-ink# pkg_info|grep xorg
xorg-7.5            X.Org complete distribution metaport
xorg-apps-7.5_1     X.org apps meta-port
xorg-cf-files-1.0.3 X.org cf files for use with imake builds
xorg-docs-1.4,1     X.org documentation files
xorg-drivers-7.5    X.org drivers meta-port
xorg-fonts-100dpi-7.5 X.Org 100dpi bitmap fonts
xorg-fonts-7.5      X.org fonts meta-port
xorg-fonts-75dpi-7.5 X.Org 75dpi bitmap fonts
xorg-fonts-cyrillic-7.5 X.Org Cyrillic bitmap fonts
xorg-fonts-miscbitmaps-7.5 X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-7.5.1 X.Org TrueType fonts
xorg-fonts-type1-7.5 X.Org Type1 fonts
xorg-libraries-7.5  X.org libraries meta-port
xorg-macros-1.11.0  X.Org development aclocal macros
xorg-server-1.7.5,1 X.Org X server and related programs


blurr-ink# pkg_info | grep kde
kde-3.5.10_8        The "meta-port" for KDE
kde-xdg-env-1.0_3,1 Script which hooks into startkde and helps KDE pick up XDG
kdeaccessibility-3.5.10_4 Accessibility applications for KDE
kdeadmin-3.5.10_3   KDE applications related to system administration
kdeartwork-3.5.10_5 Additional themes, sounds, wallpapers and window styles for
kdebase-3.5.10_8    Basic applications for the KDE system
kdebase-kompmgr-3.5.10_3 Utility needed to enable XComposite support in KDE
kdeedu-3.5.10_4     Collection of entertaining, educational programs for KDE
kdegames-3.5.10_3   Games for the KDE integrated X11 desktop
kdegraphics-3.5.10_8 Graphics utilities for the KDE3 integrated X11 desktop
kdehier-1.0_11      Utility port which installs a hierarchy of shared KDE direc
kdelibs-3.5.10_7    Base set of libraries needed by KDE programs
kdemultimedia-3.5.10_5 Multimedia utilities for the KDE integrated X11 desktop
kdenetwork-3.5.10_3 Network-related programs and modules for KDE
kdepim-3.5.10_9     Personal Information Management tools for KDE
kdesdk-3.5.10_7     KDE Software Development Kit
kdetoys-3.5.10_3    Small applications for KDE
kdeutils-3.5.10_8   Utilities for the KDE integrated X11 desktop
kdevelop-3.5.4_6    IDE for a wide variety of programming tasks
kdewebdev-3.5.10_8,2 Comprehensive html/website development environment
 
xorg.conf - default (generated from Xorg -configure)
Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/TTF/"
        FontPath     "/usr/local/lib/X11/fonts/OTF"
        FontPath     "/usr/local/lib/X11/fonts/Type1/"
        FontPath     "/usr/local/lib/X11/fonts/100dpi/"
        FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "dri2"
        Load  "extmod"
        Load  "glx"
        Load  "record"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/sysmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "82852/855GM Integrated Graphics Device"
        BusID       "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "PageFlip"                  # [<bool>]
        Identifier  "Card1"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "82852/855GM Integrated Graphics Device"
        BusID       "PCI:0:2:1"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Does a multihead system make a difference? I do remember seeing this:
"Xorg has configured a multihead system, please check your config."
 
After closer examination it looks like the Xorg.0.log is getting cut short, but still finishing:
Code:
X.Org X Server 1.7.5
Release Date: 2010-02-16
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 8.0-RELEASE-p6 i386
Current Operating System: FreeBSD blurr-ink.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:
Build Date: 02 February 2011  12:50:49PM

Current version of pixman: 0.21.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Apr 29 17:23:14 2011
(II) Loader magic: 0x81def20
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 6.0
        X.Org XInput driver : 7.0
        X.Org Server Extension : 2.0
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 9

(--) PCI:*(0:0:2:0) 8086:3582:1014:0557 Intel Corporation 82852/855GM Integrated Graphics Device rev
(--) PCI: (0:0:2:1) 8086:3582:1014:0557 Intel Corporation 82852/855GM Integrated Graphics Device rev
List of video drivers:
        radeon
        radeonhd
        r128
        openchrome
        nv
        mach64
        intel
        ati
        vesa
(II) LoadModule: "radeon"
(II) Loading /usr/local/lib/xorg/modules/drivers/radeon_drv.so
(II) Module radeon: vendor="X.Org Foundation"
        compiled for 1.7.5, module version = 6.13.2
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "radeonhd"
(II) Loading /usr/local/lib/xorg/modules/drivers/radeonhd_drv.so
(II) Module radeonhd: vendor="AMD GPG"
        compiled for 1.7.5, module version = 1.3.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "r128"
(II) Loading /usr/local/lib/xorg/modules/drivers/r128_drv.so
(II) Module r128: vendor="X.Org Foundation"
        compiled for 1.7.5, module version = 6.8.1
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "openchrome"
(II) Loading /usr/local/lib/xorg/modules/drivers/openchrome_drv.so
(II) Module openchrome: vendor="http://openchrome.org/"
        compiled for 1.7.5, module version = 0.2.904
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "nv"
(II) Loading /usr/local/lib/xorg/modules/drivers/nv_drv.so
(II) Module nv: vendor="X.Org Foundation"
        compiled for 1.7.5, module version = 2.1.17
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "mach64"
(II) Loading /usr/local/lib/xorg/modules/drivers/mach64_drv.so
(II) Module mach64: vendor="X.Org Foundation"
        compiled for 1.7.5, module version = 6.8.2
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "intel"
(II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so
(II) Module intel: vendor="X.Org Foundation"
        compiled for 1.7.5, module version = 2.7.1
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "ati"
(II) Loading /usr/local/lib/xorg/modules/drivers/ati_drv.so
(II) Module ati: vendor="X.Org Foundation"
        compiled for 1.7.5, module version = 6.13.2
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "vesa"
(II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
(II) Module vesa: vendor="X.Org Foundation"
        compiled for 1.7.5, module version = 2.3.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) Primary Device is: PCI 00@00:02:0
(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
        i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
        E7221 (i915), 915GM, 945G, 945GM, 945GME, IGD_GM, IGD_G, 965G, G35,
        965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        Mobile Intel® GM45 Express Chipset,
        Intel Integrated Graphics Device, G45/G43, Q45/Q43, G41
(II) VESA: driver for VESA chipsets: vesa
(++) Using config file: "/root/xorg.conf.new"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Screen "Screen1" (1)
(**) |   |-->Monitor "Monitor1"
(**) |   |-->Device "Card1"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Automatically adding devices
(==) Automatically enabling devices
(**) FontPath set to:
        /usr/local/lib/X11/fonts/misc/,
        /usr/local/lib/X11/fonts/TTF/,
        /usr/local/lib/X11/fonts/OTF,
        /usr/local/lib/X11/fonts/Type1/,
        /usr/local/lib/X11/fonts/100dpi/,
        /usr/local/lib/X11/fonts/75dpi/,
        /usr/local/lib/X11/fonts/misc/,
        /usr/local/lib/X11/fonts/TTF/,
        /usr/local/lib/X11/fonts/OTF,
        /usr/local/lib/X11/fonts/Type1/,
        /usr/local/lib/X11/fonts/100dpi/,
        /usr/local/lib/X11/fonts/75dpi/
(**) ModulePath set to "/usr/local/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0


Xorg detected your mouse at device /dev/sysmouse.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.

Xorg has configured a multihead system, please check your config.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'

This is the only logs posted to the Xorg.0.log file, when I try to start X, it crashes, I must powercycle, and nothing gets posted to the Xorg.0.log again.
 
Sorry DutchDaemon, It's been a while since I've been on the forums, I'll keep it proper from now on, any ideas about this?
 
If you put

Code:
WITHOUT_NOUVEAU=YES

in /etc/make.conf and recompile xorg, you will get newer versions of the ports below. There is an entry about this /usr/ports/UPDATING. Maybe the problem will be fixed in the later versions???

Code:
pkg_version -IvL=
dri-7.6.1,2                         >   succeeds index (index has 7.4.4,2)
libGL-7.6.1                         >   succeeds index (index has 7.4.4)
libGLU-7.6.1                        >   succeeds index (index has 7.4.4)
libdrm-2.4.17_1                     >   succeeds index (index has 2.4.12_1)
libglut-7.6.1                       >   succeeds index (index has 7.4.4

Oh, and I just noticed the version of xorg you are running is not the latest, so it might be worthwhile upgrading xorg anyway.
 
Thanks for the reply! I started another portupgrade -af after another portsnap fetch update, So we'll see what versions I have when all is said and done.

Is there a specific place in the /etc/make.conf I need to place that? Also, how do I recompile xorg? just make deinstall for both Xorg and KDE then make install clean for both? or can I just make deinstall both and pkg_add -r for both?

EDIT: is there a way to make the gray box only the size of the command? because it looks weird dragging the box to the end of the line.
# example
 
Lego said:
Thanks for the reply! I started another # portupgrade -af after another # portsnap fetch update, So we'll see what versions I have when all is said and done.

# portupgrade -af will build a new version of every port regardless whether there is a newer version or not. This is overkill. You can first do % pkg_version -IvL= to see what ports need to be updated, then check /usr/ports/UPDATING to see if any of those ports need special attention. Then you can update ports with base tools (make in the port directory) or your favourite ports-management tool like portupgrade or portmaster (portmaster is my favourite and seems to be gaining popularity).

Lego said:
Is there a specific place in the /etc/make.conf I need to place that?

No, it doesn't matter where. You might need an empty line at the end though; I can't remember for certain if that's required.

Lego said:
Also, how do I recompile xorg?
just # make deinstall for both Xorg and KDE then # make install clean for both? or can I just # make deinstall both and # pkg_add -r for both?

See above and here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html. From the page, # portupgrade -R xorg should do the trick. You probably don't want to use the packages, because you won't get the latest versions of dri and friends (the reason for the /etc/make.conf entry). That's the advantage of compiling: you can customize more.
 
Have you tried with noaccel? Are you certain the problem is with xorg and not kde? Try starting xterm only in .xinitrc and see if that crashes. You could also try removing all the xorg and kde ports and test the binary packages.
 
Thanks Mingrone, I'll give that a try my when the portupgrade -af is done. I really want to say LOL. Its been running for almost 12hrs!

Davidgurvich, Yes, the problem is with Xorg, other then kdm, all the commands I've tried have been xorg related not kde (ie startx, x -config, -retro, X -config). noaccel I believe is disabled by default in all xorg configs and you need to remove the comment under your gpu and bool it "true", right? I do have binaries installed (binaries are when you compile from ports, correct?). I really really really don't want to uninstall both and wait 2 days for them to recompile if I dont' have to, but Mingrone is suggesting a full recompile of xorg anyway so I'll probably have to do that anyway. any other ideas?
 
WHOA!!! okay wait!

an empty line at the end of the file!??!?!?! does that actually affect things? I always remove the blank line at the end of my xorg.conf that can't be the problem can it?

EDITED: Oh and thanks for pointing out that portupgrade -af is overkill, I thought it updated all ports that NEEDED to be updated not just update/recompile ALL. I'll have to read through the pages for updating again :p
 
Generally, make sure there's a linefeed at the end of the last line in config files. Your editor probably does this already.

As for xorg "crashes to a black screen", that may be working. Does ctrl-alt-f1 switch back to a console? What's in .xinitrc?
 
wblock said:
Generally, make sure there's a linefeed at the end of the last line in config files. Your editor probably does this already.

As for xorg "crashes to a black screen", that may be working. Does ctrl-alt-f1 switch back to a console? What's in .xinitrc?

No, ctrl/Alt/f1 doesn't work, it hard freezes, requires a powercycle. No .xinitrc exists for root or local users :/
 
davidgurvich said:
Create an xorg.conf file and add Option "NoAccel" "true" to the intel driver section.

Won't have to create it. It exists. When the portupgrade -af finishes, I have a few things to try but I will definitely try this quick. Mind you, with noaccel set to true I'll have no acceleration correct? How will that affect performance?
 
If noaccel solves the problem the performance will be much improved from crashing on startx. Not as good as having working hardware acceleration.

The intel drivers are not good for this particular graphics chipset. Using noaccel is a workaround not a solution. Intel graphics were a nightmare in linux also. There have been dri changes in linux that work better now but these haven't been and might not be ported to FreeBSD.
 
davidgurvich said:
If noaccel solves the problem the performance will be much improved from crashing on startx. Not as good as having working hardware acceleration.

The intel drivers are not good for this particular graphics chipset. Using noaccel is a workaround not a solution. Intel graphics were a nightmare in linux also. There have been dri changes in linux that work better now but these haven't been and might not be ported to FreeBSD.

Thanks, and it figures, I seem to get all the hardware with issues, you have a very good point though any graphical interface would be better than none.
 
wblock said:
The R51 is an old machine (2004?), and I'd expect it to work. There are several reports on The FreeBSD Laptop Compatibility List, although they're pretty old.

I expected the same but it turns out that was an old version of FreeBSD. I believe that 6.X has an old enough version of xorg but there are other problems with using such an old release. The two main ones are security and software. For a laptop the problems are wireless support and suspend/resume.

There is also an issue that xorg may require manual configuration of the monitor (vert, horiz, modelines, etc.) and screen. Finding the technical information isn't difficult for the thinkpad line but is troublesome on other laptops.

The packages are fairly old and you would probably want to build from ports to update them. That will not work in far too many cases as the recent ports tree is not well tested against older FreeBSD releases. Even worse, many of the ports will pull in newer versions of xorg.

Older FreeBSD versions don't have as good laptop support. Suspend/resume is much better on recent versions. Despite my complaints about networking in 8.X the wireless support is much better and actually works well in 9-current. If you want to use linux emulation for flash video then you would also need a newer version of FreeBSD.
 
I'm not suggesting running an old FreeBSD, or running a mix of old packages and ports, just saying that the xorg intel driver (2.7 or 2.9) works fine on older chipsets. It's the newer Intel video chipsets that are a problem.
 
Does not work fine on the 8xx chipsets. Each of them have idiosyncratic problems. I don't know about the 7xx but some of the 9xx chipsets also have problems with 2.7 and 2.9.

The intel gma 950 works well out of the box with all systems that I've tested. I haven't tried other intel graphics chipsets.
 
Okay, portupgrade -af finsihed. noaccel did not work.

Code:
blurr-ink# pkg_version -IvL=
screen-4.0.3_10                     <   needs updating (index has 4.0.3_11)
blurr-ink# pkg_info|grep xorg
xorg-7.5.1          X.Org complete distribution metaport
xorg-apps-7.5.1     X.org apps meta-port
xorg-cf-files-1.0.3 X.org cf files for use with imake builds
xorg-docs-1.4,1     X.org documentation files
xorg-drivers-7.5.1  X.org drivers meta-port
xorg-fonts-100dpi-7.5.1 X.Org 100dpi bitmap fonts
xorg-fonts-7.5.1    X.org fonts meta-port
xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts
xorg-fonts-cyrillic-7.5.1 X.Org Cyrillic bitmap fonts
xorg-fonts-miscbitmaps-7.5.1 X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-7.5.1 X.Org TrueType fonts
xorg-fonts-type1-7.5.1 X.Org Type1 fonts
xorg-libraries-7.5.1 X.org libraries meta-port
xorg-macros-1.11.0  X.Org development aclocal macros
xorg-server-1.7.7_1,1 X.Org X server and related programs

blurr-ink# portsnap fetch extract (Chose NOT to update)
blurr-ink# pkg_version -IvL=
screen-4.0.3_10                     <   needs updating (index has 4.0.3_11)

If the hardware should be compatible why am I having so many problems. What am I doing wrong? I was able to fix all the server problems I had setting up on this PC(laptop), Even the Bind Error, without help but I can't get a GUI!

EDIT: using hardwired connection not wireless... for anyway wondering.
 
Um, dumb question, but is the configuration setup for standard desktop monitor the same as the setup for a Panel monitor on a Laptop? Or do things need to be changed because now that I think about it, is it possible that its output is going to the vga port and not the panel? But that wouldnt' explain why I can't get out of the black screen with Ctrl/Alt/F1, unless it trys to stay on that output. I don't know I'm just snowballing I really want it to work :(
 
The configurations should be the same. The only thing that might be different are the names of ports used when specifying outputs or monitors, like LVDS rather than VGA.

Likely not the problem, since output on the wrong port won't stop console switching.
 
Back
Top