LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fglrx & Debian Squeeze not letting Xorg start (https://www.linuxquestions.org/questions/linux-software-2/fglrx-and-debian-squeeze-not-letting-xorg-start-789414/)

William (Dthdealer) 02-16-2010 03:02 AM

Fglrx & Debian Squeeze not letting Xorg start
 
A few days ago I ditched the user friendly world of Ubuntu and installed Debian Squeeze amd64 (testing) over it. I did not install the suggested Gnome 'X desktop' in favour of booting to the terminal and starting X once logged in as a user.

Everything was fine except for the fact Xvesa was used instead of Xorg as the system did not have the required Fglrx driver. I'm using an Acer ASPIRE 5536 with an ATI Radeon HD 3200 Graphics stuffed in it, which certainly beats intel GMA.

Unfortunately the drivers for it are proprietary. :(

On Ubuntu this was automatically detected and I was asked if I wanted to sell my soul and enable the restricted drivers. On debian however I have to download a shell-script of the ATI website to install the fglrx module.

Following this guide I downloaded the correct file (Under motherboard/something) and ran it as root.

I couldn't run it with any --buildpky Debian/XXX option, they all failed.
Code:

==================================================
 ATI Technologies Linux Driver Installer/Packager
==================================================
Generating package: Debian/testing
cp: cannot stat `/root/fglrx-install.tCX8nC/x710_64a/*': No such file or directory
Package build failed!
Package build utility output:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 8.69-1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
 debian/rules build
dpkg-buildpackage: host architecture amd64
dh_testdir
# move licenses away from binary dir
if [ ! -d usr/share/doc/fglrx ]; then \
          mkdir -p usr/share/doc/fglrx; \
          mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \
        fi
# set executable on user apps
find usr/X11R6/bin -type f | xargs chmod a+x
# remove exec bit from files that don't deserve it
find usr/X11R6/include \
            usr/X11R6/lib \
            usr/X11R6/lib64 \
            usr/share usr/src    -type f | xargs chmod -x
find lib -not -name "*.sh" -type f | xargs chmod -x
find lib      -name "*.sh" -type f | xargs chmod +x
# set proper permissions on /etc files
if [ -d etc/ati ]; then                \
                chmod 755 etc/ati ;                    \
                chmod 644 etc/ati/* ;          \
                chmod a+x etc/ati/*.sh ;        \
        fi
if [ -f debian/fglrx.default ]; then \
          mv -v debian/fglrx.default debian/fglrx; \
        fi
`debian/fglrx.default' -> `debian/fglrx'
# remove exec bit from 64-bit libs too
find usr/X11R6/lib64      -type f | xargs chmod -x
 debian/rules binary
dh_testdir
# move licenses away from binary dir

... more useless crud ...

# the amd64 package includes 32bit compatibility libraries
dh_installdirs -pfglrx-driver \
                emul/ia32-linux/usr/lib \
                emul/ia32-linux/usr/lib/xorg \
                emul/ia32-linux/usr/lib/xorg/modules \
                emul/ia32-linux/usr/lib/dri
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_installdirs -pfglrx-driver-dev \
                usr \
                usr/include \
                usr/lib
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_installdirs -pfglrx-kernel-src \
                usr/src/modules/fglrx \
                usr/src/modules/fglrx/debian
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_installdirs -A -pfglrx-amdcccle \
                usr \
                usr/bin \
                usr/share \
                usr/share/applnk \
                usr/share/applications \
                usr/share/icons \
                usr/share/pixmaps
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_installdirs -p \
                usr/src
dh_installdirs: Compatibility levels before 5 are deprecated.
dh_install
dh_install: Compatibility levels before 5 are deprecated.
ldconfig -n usr/X11R6/lib/
dh_install -pfglrx-driver "usr/X11R6/bin/fgl*"      "usr/bin"
dh_install: Compatibility levels before 5 are deprecated.
dh_install -pfglrx-driver "usr/X11R6/bin/aticonfig" "usr/bin"
dh_install: Compatibility levels before 5 are deprecated.
dh_install -pfglrx-driver "usr/sbin/atieventsd"    "usr/sbin"
dh_install: Compatibility levels before 5 are deprecated.
dh_installman -pfglrx-driver "usr/share/man/man8/atieventsd.8"
dh_installman: Compatibility levels before 5 are deprecated.
# amd64 needs some library redirection
dh_install -pfglrx-driver "usr/X11R6/lib64/*.so*"          "usr/lib"
dh_install: Compatibility levels before 5 are deprecated.
dh_install -pfglrx-driver "usr/X11R6/lib64/modules/dri"    "usr/lib"
dh_install: Compatibility levels before 5 are deprecated.
dh_install -pfglrx-driver "usr/X11R6/lib64/modules/linux"  "usr/lib/xorg/modules"
dh_install: Compatibility levels before 5 are deprecated.
cp: cannot stat `./usr/X11R6/lib64/modules/linux': No such file or directory
dh_install: cp -a ./usr/X11R6/lib64/modules/linux debian/fglrx-driver/usr/lib/xorg/modules/ returned exit code 1
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
Removing temporary directory: fglrx-install.tCX8nC

Instead I ran the script directly. It detected my system type, I sold my soul at the license agreement and it successfully installed. Except now I get thrown errors when I try to startx.
Code:

startx


X.Org X Server 1.7.4
Release Date: 2010-01-08
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32.4-dsa-amd64 x86_64 Debian
Current Operating System: Linux AFKveyrdite 2.6.32-trunk-amd64 #1 SMP Sun Jan 10 22:40:40 UTC 2010 x86_64
Kernel command line: BOOT_IMAGE=//vmlinuz-2.6.32-trunk-amd64 root=UUID=de760e99-d6d4-40c4-a873-99027c3b364e ro quiet vga=791
Build Date: 20 January 2010  11:36:07PM
xorg-server 2:1.7.4-2 (buildd@brahms.debian.org)
Current version of pixman: 0.16.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: Tue Feb 16 19:55:48 2010
(==) Using config file: "/etc/X11/xorg.conf"
dlopen: /usr/lib/xorg/modules/drivers/fglrx_drv.so: undefined symbol: UpdateSpriteForScreen
(EE) Failed to load /usr/lib/xorg/modules/drivers/fglrx_drv.so
(EE) Failed to load module "fglrx" (loader failed, 7)
(EE) No drivers available.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
        at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

And the contents of Xorg.0.log are
Code:

X.Org X Server 1.7.4
Release Date: 2010-01-08
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32.4-dsa-amd64 x86_64 Debian
Current Operating System: Linux AFKveyrdite 2.6.32-trunk-amd64 #1 SMP Sun Jan 10 22:40:40 UTC 2010 x86_64
Kernel command line: BOOT_IMAGE=//vmlinuz-2.6.32-trunk-amd64 root=UUID=de760e99-d6d4-40c4-a873-99027c3b364e ro quiet vga=791
Build Date: 20 January 2010  11:36:07PM
xorg-server 2:1.7.4-2 (buildd@brahms.debian.org)
Current version of pixman: 0.16.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: Tue Feb 16 19:55:48 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "aticonfig Layout"
(**) |-->Screen "aticonfig-Screen[0]-0" (0)
(**) |  |-->Monitor "aticonfig-Monitor[0]-0"
(**) |  |-->Device "aticonfig-Device[0]-0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
        Entry deleted from font path.
(==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
        built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Cannot locate a core pointer device.
(II) Cannot locate a core keyboard device.
(II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
(II) Loader magic: 0x7c1600
(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 VT number 7

(--) PCI:*(0:1:5:0) 1002:9612:1025:0206 ATI Technologies Inc RS780M/RS780MN [Radeon HD 3200 Graphics] rev 0, Mem @ 0xd0000000/268435456, 0xcfdf0000/65536, 0xcfe00000/1048576, I/O @ 0x00009000/256
(II) Open ACPI successful (/var/run/acpid.socket)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded by default.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded by default.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded by default.
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="FireGL - ATI Technologies Inc."
        compiled for 7.4.0, module version = 1.0.0
(II) Loading extension GLX
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.7.4, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.7.4, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension SELinux
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.7.4, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
        compiled for 1.7.4, module version = 1.13.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
        compiled for 1.7.4, module version = 1.1.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "fglrx"
(II) Loading /usr/lib/xorg/modules/drivers/fglrx_drv.so
dlopen: /usr/lib/xorg/modules/drivers/fglrx_drv.so: undefined symbol: UpdateSpriteForScreen
(EE) Failed to load /usr/lib/xorg/modules/drivers/fglrx_drv.so
(II) UnloadModule: "fglrx"
(EE) Failed to load module "fglrx" (loader failed, 7)
(EE) No drivers available.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
        at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Now I can't get into X and I'm posting this using Elinks. Should I consult the X.Org Foundation or is this an easily fixable problem?

evo2 02-16-2010 03:21 AM

ATI has not release an fglrx that will work with recent versions of X (like what is found in squeeze)
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564444

Evo2.

William (Dthdealer) 02-16-2010 05:18 AM

Thankyou evo2.

According to the bug page there is no fix, all I can do is wait and hope for a workaround or ATI to update their drivers.

miros84 02-16-2010 06:40 AM

Try
Code:

apt-get install module-assistant && m-a prepare
Then install smxi

Code:

cd /usr/local/bin && wget -Nc smxi.org/smxi.zip && unzip smxi.zip && smxi
Then in terminal as root type smxi
and smxi has option to install ati drivers for you.
Just follow it.
More info about smxi here.

evo2 02-16-2010 06:49 PM

Quote:

Originally Posted by William (Dthdealer) (Post 3865402)
Thankyou evo2.

According to the bug page there is no fix, all I can do is wait and hope for a workaround or ATI to update their drivers.

You should try using the free drivers. However, on some hardware the performance is pretty bad.

Evo2.

William (Dthdealer) 02-17-2010 04:01 AM

SMXI allowed me to easily install the free drivers, however their performance is inferior.

This is a great improvement of using the wrong screen resolution on vesa however.

Thankyou miros84 and evo2


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