LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-03-2005, 11:22 AM   #1
jfall
Member
 
Registered: Oct 2002
Location: PEI
Distribution: Slackware
Posts: 56

Rep: Reputation: 15
Please help me get my mobile radeon working in Slack 10


Hey all,

I have been trying to get the ATI Radeon Mobile driver (for xorg 6.8) working on my Slack 10 laptop for the past two days but am not having much luck.

Laptop: Averatec 6100 HS (ATI Radeon 9600 Mobility M10, 15" Widescreen)
Slackware 10 / Xorg 6.8.1 / Kernel 2.4.26

I believe the actual fglrx driver is installed properly. I have downloaded the RPM for Xorg 6.8 and converted it to TGZ than built it using the make.sh and make_install.sh that it comes with.

I ran the fglrxconfig (for some reason this generates an XF86config file) so I renamed that to xorg.conf. When I start X all I get is a black screen, than I see some white flashes than back to black. After this happens I cannot get back to a shell or kill X in any way, I have to reboot.

I tailed /var/log/messages to see what was going on:

Code:
Feb  3 13:03:34 darkstar kernel: hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
Feb  3 13:03:34 darkstar kernel: hid-core.c: USB HID support drivers
Feb  3 13:03:34 darkstar kernel: mice: PS/2 mouse device common for all mice
Feb  3 13:03:34 darkstar kernel: uhci.c: USB Universal Host Controller Interface driver v1.1
Feb  3 13:03:35 darkstar kernel: usb-uhci.c: $Revision: 1.275 $ time 17:55:05 Jun 13 2004
Feb  3 13:03:35 darkstar kernel: usb-uhci.c: High bandwidth mode enabled
Feb  3 13:03:35 darkstar kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Feb  3 13:03:51 darkstar logger: /etc/rc.d/rc.hotplug start (exiting script)
Feb  3 13:03:52 darkstar sshd[2216]: Server listening on 0.0.0.0 port 22.
Feb  3 13:04:05 darkstar /usr/sbin/gpm[2245]: imps2: Auto-detected intellimouse PS/2
Feb  3 13:05:54 darkstar kernel: [fglrx] Maximum main memory to use for locked dma buffers: 431 MBytes.
Feb  3 13:05:54 darkstar kernel: [fglrx] module loaded - fglrx 8.8.25 [Jan 14 2005] on minor 0
Feb  3 13:05:54 darkstar kernel: Fire GL built-in AGP-support
Feb  3 13:05:54 darkstar kernel: Based on agpgart interface v0.99 (c) Jeff Hartmann
Feb  3 13:05:54 darkstar kernel: agpgart: Maximum main memory to use for agp memory: 439M
Feb  3 13:05:54 darkstar kernel: agpgart: Detected SiS 645dx chipset
Feb  3 13:05:54 darkstar kernel: agpgart: AGP aperture is 128M @ 0xe0000000
Feb  3 13:05:54 darkstar kernel: Power management callback for AGP chipset installed
Feb  3 13:05:54 darkstar kernel: [fglrx] AGP detected, AgpState   = 0x1f004e0b (hardware caps of chipset)
Feb  3 13:05:54 darkstar kernel: AGP: Found 2 AGPv3 devices
Feb  3 13:05:54 darkstar kernel: AGP: Doing enable for AGPv3
Feb  3 13:05:54 darkstar kernel: agpgart: Found an AGP 3.5 compliant device.
It looks like the driver is loading properly. At this point, I believe the problem is within the xorg config, possibly due to the monitor/screen sections.

Here is my current WORKING xorg.conf file which uses a generic ATI driver:

Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath     "/usr/share/fonts/monotype/TrueType/"
EndSection

Section "Module"
        Load  "record"
        Load  "extmod"
        Load  "dbe"
        Load  "dri"
        Load  "glx"
        Load  "xtrap"
        Load  "freetype"
        Load  "type1"
        Load  "speedo"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/mouse"
        Option  "ZAxisMapping" "4 5"
EndSection

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

Section "Device"
        Identifier  "Card0"
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName   "RV350 [Mobility Radeon 9600 M10]"
        BusID       "PCI:1:0:0"
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

and here is the code for the xorg config which fglrxconfig generated:

Code:
Section "dri"
    Mode 0666
EndSection

Section "Module"

    Load        "dbe"   # Double buffer extension

    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

    Load        "type1"
    Load        "freetype"

    Load        "glx"   # libglx.a
    Load        "dri"   # libdri.a

EndSection

Section "Files"

    RgbPath     "/usr/X11R6/lib/X11/rgb"

    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

EndSection

Section "ServerFlags"

EndSection

Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "Keyboard"

    Option "AutoRepeat" "500 30"

    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "microsoft"
    Option "XkbLayout"  "us"

EndSection


Section "InputDevice"

    Identifier  "Mouse1"
    Driver "mouse"
    Option "Protocol"   "ImPS/2"
    Option "ZAxisMapping"   "4 5"
    Option "Device"     "/dev/mouse"

EndSection


Section "Monitor"
    Identifier  "Monitor0"
    HorizSync   31.5
    VertRefresh 20 - 60
    Option "DPMS"

EndSection


Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver      "vga"

EndSection

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
# ### generic DRI settings ###
# === disable PnP Monitor  ===
    #Option                              "NoDDC"
# === disable/enable XAA/DRI ===
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
# === misc DRI settings ===
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
    Option "DesktopSetup"               "0x00000000"
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified"
    Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
# === TV-out Management ===
    Option "NoTV"                       "yes"
    Option "TVStandard"                 "NTSC-M"
    Option "TVHSizeAdj"                 "0"
    Option "TVVSizeAdj"                 "0"
    Option "TVHPosAdj"                  "0"
    Option "TVVPosAdj"                  "0"
    Option "TVHStartAdj"                "0"
    Option "TVColorAdj"                 "0"
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
# === OpenGL specific profiles/settings ===
    Option "Capabilities"               "0x00000000"
# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
    Option "OpenGLOverlay"              "off"
# === Center Mode (Laptops only) ===
    Option "CenterMode"                 "off"
# === Pseudo Color Visuals (8-bit visuals) ===
    Option "PseudoColorVisuals"         "off"
# === QBS Management ===
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
# === FSAA Management ===
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=4e50
    Screen 0
EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "Monitor0"
    DefaultDepth 24
    #Option "backingstore"

    Subsection "Display"
        Depth       24
        Modes       "640x480"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
#        Virtual     1280 1024
    EndSubsection
EndSection

Section "ServerLayout"

    Identifier  "Server Layout"

    Screen "Screen0"

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection
Any help would be GREATLY appreciated.

Thanks!

- Jayme

EDIT. I did some more hunting. Perhaps the problem is with my Kernel or possibly the fglrx driver. Take a look at these errors I get in my xorg log:

Code:
(EE) fglrx(0): [agp] Failed to set AGP mode!
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xe0b50000 at 0x40022000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *

Last edited by jfall; 02-03-2005 at 11:50 AM.
 
Old 02-04-2005, 10:10 AM   #2
jfall
Member
 
Registered: Oct 2002
Location: PEI
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 15
Anyone?
 
Old 02-04-2005, 11:09 AM   #3
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
Looks like the drivers agpgart doesn't support your SIS chipset properly.

To confirm, change Option "UseInternalAGPGART" "yes" to "no" in the fglrxconfig file,
Make sure you have your kernel's agpgart modules loaded before you start X, agpgart and agp-sis [...doublecheck the exact name, I don't have the SIS module built].

If it still doesn't work, post the output of lsmod and cat /var/log/Xorg.0.log | grep EE
 
Old 02-05-2005, 09:02 PM   #4
jfall
Member
 
Registered: Oct 2002
Location: PEI
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 15
Thank-you for you help.

I have set UseInternalAGPGART to "no" in xorg.conf and verified the agpgart module was loaded. When I started X I experienced the same problem, black screen, few flickers of white and total system freeze.

Here are the EE's from the xorg log:

(EE) fglrx(0): [agp] Failed to set AGP mode!
(EE) fglrx(0): cannot init AGP

This is taken from /var/log/messages which appears to show the AGPgart module loading and properly detecting the SIS chipset:

darkstar kernel: agpgart: Maximum main memory to use for agp memory: 439M
darkstar kernel: agpgart: Detected SiS 648 chipset
darkstar kernel: agpgart: AGP aperture is 128M @ 0xe0000000

LSMOD output:

Code:
snd-pcm-oss            37736   0  (unused)
snd-mixer-oss          12504   0  [snd-pcm-oss]
keybdev                 2052   0  (unused)
mousedev                4212   1
hid                    21220   0  (unused)
usbmouse                2040   0  (unused)
input                   3200   0  [keybdev mousedev hid usbmouse]
ohci1394               24112   0  (unused)
ieee1394               42276   0  [ohci1394]
snd-intel8x0           18924   1
snd-ac97-codec         49500   0  [snd-intel8x0]
gameport                1420   0  [snd-intel8x0]
snd-pcm                56072   0  [snd-pcm-oss snd-intel8x0]
snd-timer              13604   0  [snd-pcm]
snd-page-alloc          6328   0  [snd-intel8x0 snd-pcm]
snd-mpu401-uart         3200   0  [snd-intel8x0]
snd-rawmidi            12740   0  [snd-mpu401-uart]
snd-seq-device          3888   0  [snd-rawmidi]
snd                    30852   1  [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3396   4  [snd]
usb-ohci               19240   0  (unused)
ehci-hcd               17580   0  (unused)
usbcore                59308   1  [hid usbmouse usb-ohci ehci-hcd]
sis900                 12396   0
crc32                   2880   0  [sis900]
rt2500                163200   2
ds                      6548   2
yenta_socket           10336   2
pcmcia_core            39972   0  [ds yenta_socket]
ntfs                   51424   1  (autoclean)
ide-scsi                9328   0
agpgart                43940   0  (unused)
 
Old 02-05-2005, 09:21 PM   #5
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Rep: Reputation: 15
Where did you get the driver for the mobility card? ATI only has PC cards drivers, not the mobility drivers.
 
Old 02-05-2005, 09:56 PM   #6
jfall
Member
 
Registered: Oct 2002
Location: PEI
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 15
i'm using the Linux ATI Radeon 9600 driver. It says it supports ATI mobility cards when I run fglrxconfig
 
Old 02-05-2005, 10:11 PM   #7
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
jfall,

If you're using a kernel 2.6.x, agpgart comes in 2 modules as I mentioned earlier, you're missing a agp-sis [...or something like that] from your list of loaded modules.
If you're using your distro's default kernel, it's most likely available, look into /lib/modules/<kernel-version>/kernel/drivers/char/agp for availability and the exact name.

Drop out of X, remove the fglrx module with modprobe -r fglrx, insert the missing agp module, modprobe -v agp-sis then restart X, fglrx should reload itself automatically, if not reload it manually.

If it solves it, make sure you load the extra agp module at boot and you should be all set.


mindfrost82,

Ati has the list of supported chips somewhere on their website and the driver isn't restricted to desktop cards.

If you find your chip is supported, select any chip from the list, it's all the same driver, just different pkgs for different XFree/Xorg versions.

If you don't plan on playing the latest games, DRI's "radeon" driver, supplied with your X server might also support your card.
 
Old 02-05-2005, 10:35 PM   #8
jfall
Member
 
Registered: Oct 2002
Location: PEI
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 15
I'm running 2.4.26 and only have agpgart.o.gz in /lib/modules/2.4.26/kernel/drivers/char/agp .. does 2.4.26 not support sis-agp?
 
Old 02-06-2005, 09:06 AM   #9
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Rep: Reputation: 15
Quote:
mindfrost82,

Ati has the list of supported chips somewhere on their website and the driver isn't restricted to desktop cards.

If you find your chip is supported, select any chip from the list, it's all the same driver, just different pkgs for different XFree/Xorg versions.

If you don't plan on playing the latest games, DRI's "radeon" driver, supplied with your X server might also support your card. [/B]
I noticed that. No matter what I do, I cannot get fgl_glxgears to run. I always get errors.
 
Old 02-06-2005, 10:56 AM   #10
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
jfall,

Kernel 2.4 and you had already mentionned it in your first post, my mistake.

Do you remember any error from when you built the module, there should be a make.log file in /lib/modules/fglrx/build_mod.
Also what do you get when you try to load the module manually with modprobe -v fglrx [...-v for verbose]

I'm a bit at loss here, having no experience with mobility chips, and I haven't used the driver on a kernel 2.4 in over a year probably, though kernel 2.4 shouldn't be the issue.
Does 2.4.26 support your SiS chipset, I would assume so, you can always try to load agpgart with
modprobe -v agpgart agp_try_unsupported=1

The best I can recommend at this point is a search, specific to mobility chips and Ati driver, here on LQ and/or Rage3d's linux forum.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI radeon 9000 mobile. proprietary driver help. claybub Linux - Hardware 1 02-04-2005 07:00 PM
ATI Drivers Radeon 9600 Mobile Trouble gbkyle Linux - Laptop and Netbook 1 12-04-2004 01:51 PM
Mobile Radeon 9600 gbkyle Linux - Hardware 1 09-28-2004 07:13 AM
Radeon mobile 7500 (LW) - Xv black video enryfox Linux - Hardware 6 07-20-2004 02:57 PM
ATI Radeon 9600 Pro 128MB mobile sharpie Linux - Laptop and Netbook 1 01-25-2004 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration