Mark Fletcher wrote:

On Tuesday 12 July 2005 18:45, Ivan Glushkov wrote:
Hi List,

Since I went from standart radeon driver to fglrx,
Indeed, the problem is in the driver, when I remove it, gdm restarts properly

when I issue:

/etc/init.d/gdm restart

Everything dissapiares, including the terminals
(Ctrl+Alt+F1..). I swithed to kdm. The result was the
same. I made dpkg-reconfigure xserver-xfree86, but
nothing changed. The strange thing is that there is
nothing interesting in /var/log/XFree86.0.log or in
/var/log/messages.0

   Any ideas are very welcome.

   Cheers,
   Ivan

P.S.: In the moment the only way to stop/restart my
laptop is by pushing the button..

I had a similar problem not so long ago, when I upgraded from woody to sarge. The cause was an innocent-looking option in the XF86Config-4 configuration file in /etc in the section that related to my graphics card. In the previous version of X under woody, this option hadn't done anything, but when I upgraded X was broken in exactly the way you describe and turning the option off fixed my problem. No error messages, nothing obviously wrong, nothing going wrong at the kernel level either -- just blank screen (actually my monitor went into power saving mode because the card stopped talking to it altogether!!!)

The options available are dependent on the graphics card you have so I won't confuse you with the specific option that caused this for me. Instead, can you post your /etc/XF86Config-4 file to this list and we can see
Find it attached...

if there's anything dodgy about it.

Cheers

Mark


===================
After rebooting, dmesg gives:

Fire GL built-in AGP-support
Based on agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected an Intel 855PM Chipset, no integrated grapics found.
agpgart: Detected Intel i855PM chipset
agpgart: AGP aperture is 256M @ 0xe0000000
Power management callback for AGP chipset installed
[fglrx] AGP detected, AgpState   = 0x1f000217 (hardware caps of chipset)
AGP: Found 2 AGPv2 devices
AGP: Doing enable for AGPv2
[fglrx] AGP enabled,  AgpCommand = 0x1f000314 (selected caps)
[fglrx] free  AGP = 256126976
[fglrx] max   AGP = 256126976
[fglrx] free  LFB = 52719616
[fglrx] max   LFB = 52719616
[fglrx] free  Inv = 0
[fglrx] max   Inv = 0
[fglrx] total Inv = 0
[fglrx] total TIM = 0
[fglrx] total FB  = 0
[fglrx] total AGP = 65536

======================
After /etc/init.d/gdm stop, it says:

mtrr: no MTRR for d0000000,400000 found
mtrr: no MTRR for d0400000,100000 found
mtrr: no MTRR for d0500000,80000 found
mtrr: no MTRR for d0580000,40000 found
mtrr: no MTRR for d05c0000,20000 found
mtrr: no MTRR for d05e0000,8000 found
mtrr: no MTRR for d05e8000,1000 found

(yes, MTRR option IS compiled in the kernel)

==================
After /etc/init.d/gdm start :

Unable to handle kernel NULL pointer dereference at virtual address 00000067
printing eip:
e08e4038
*pde = 1b4c8067
*pte = 00000000
Oops: 0002 [#1]
PREEMPT
Modules linked in: ipw2200 ieee80211 ieee80211_crypt fglrx intel_agp agpgart
CPU:    0
EIP:    0060:[<e08e4038>]    Tainted: P      VLI
EFLAGS: 00213202   (2.6.12.2)
EIP is at agp_backend_release+0x8/0x10 [agpgart]
eax: 00000023   ebx: 00000001   ecx: 00000000   edx: 00000023
esi: e09c8c50   edi: dbb560c8   ebp: 40046463   esp: d87f5e8c
ds: 007b   es: 007b   ss: 0068
Process XFree86 (pid: 3578, threadinfo=d87f4000 task=df20b0e0)
Stack: e099ad19 00000023 d82b20c0 e099ad47 00000001 081f3460 0000004c e09c8c50 e09b031c 00000001 00000000 0000004c d82b20c0 d87f5ee0 e09c8a60 e09c7f04 e09b0c46 e09c8c50 00000001 bff35574 00000004 e09c8a60 e09c8a60 e09c7f04
Call Trace:
[<e099ad19>] __ke_agpgart_available+0x69/0x80 [fglrx]
[<e099ad47>] __ke_agp_available+0x17/0xf0 [fglrx]
[<e09b031c>] drm_agp_init+0x5c/0x90 [fglrx]
[<e09b0c46>] _firegl_agp_acquire+0x76/0x360 [fglrx]
[<e09b0937>] firegl_agp_acquire+0x77/0xa0 [fglrx]
[<e09a4530>] firegl_umm_init+0x0/0x450 [fglrx]
[<e09b08c0>] firegl_agp_acquire+0x0/0xa0 [fglrx]
[<e099c75d>] firegl_ioctl+0x15d/0x1e0 [fglrx]
[<c01708b0>] do_ioctl+0x70/0xb0
[<c0170aa5>] vfs_ioctl+0x65/0x200
[<c0170c85>] sys_ioctl+0x45/0x70
[<c01031d5>] syscall_call+0x7/0xb
Code: c8 8e e0 31 c9 85 c0 89 c2 74 0c 8b 40 44 85 c0 75 05 ff 42 44 89 d1 5a 89 c8 c3 90 8d b4 26 00 00 00 00 8b 44 24 04 85 c0 74 03 <ff> 48 44 c3 8d 74 26 00 57 56 53 83 ec 04 bb 01 0
0 00 00 8b 35
=====================
### BEGIN DEBCONF SECTION
# XF86Config-4 (XFree86 server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# If you want your changes to this file preserved by dexconf, only make changes
# before the "### BEGIN DEBCONF SECTION" line above, and/or after the
# "### END DEBCONF SECTION" line below.
#
# To change things within the debconf section, run the command:
#   dpkg-reconfigure xserver-xfree86
# as root.  Also see "How do I add custom sections to a dexconf-generated
# XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.

Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        RgbPath         "/usr/X11R6/lib/X11/rgb"
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "glx"   # libglx.a
        Load    "dri"   # libdri.a
#       Load    "extmod"
        Load    "freetype"
        Load    "type1"
        Load    "int10"
        Load    "pex5"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
        Load    "xie"
# Load "extmod" but omit DGA extension
# (the DGA extension is broken in the fglrx driver)
        SubSection "extmod"
                Option "omit xfree86-dga"
        EndSubSection
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xfree86"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "PS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

#=========================
#       USB Mouse
#=========================
Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

#========================
#         ATI
#========================
Section "Device"
        Identifier      "ATI"
        Driver          "fglrx"
# ### generic DRI settings ###
# === disable PnP Monitor  ===
#       Option          "NoDDC"
# === 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"
# === Use internal AGP GART support? ===
# disable the kernel agpgart driver == yes.
        Option          "UseInternalAGPGART"    "yes"
#for internal and external monitor
        Option          "DesktopSetup"          "0x00000100" 
        Option          "MonitorLayout"         "AUTO, AUTO"
        Option          "HSync2"                "unspecified" 
        Option          "VRefresh2"             "unspecified"
        Option          "ScreenOverlap"         "0" 
EndSection

Section "Monitor"
        Identifier      "Laptop Monitor"
        HorizSync       28-50
        VertRefresh     43-75
        Option          "DPMS"
EndSection

Section "Monitor"
        Identifier      "External Monitor"
        HorizSync       28-50
        VertRefresh     43-75
        Option          "DPMS"
EndSection

Section "Screen"
        Identifier      "Laptop Screen"
        Device          "ATI"
        Monitor         "Laptop Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           16
                Modes           "1280x800" "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x800" "1024x768" "800x600"
        EndSubSection
EndSection

Section "Screen"
        Identifier      "External Screen"
        Device          "ATI"
        Monitor         "External Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           16
                Modes           "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1024x768" "800x600"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Laptop Layout"
        Screen          "Laptop Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "USB Mouse"
EndSection


Section "ServerLayout"
        Identifier      "External Layout"
        Screen          "External Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "USB Mouse" "Always Core"
EndSection

Section "DRI"
# Access to OpenGL ICD is allowed for all users:
#    Group 100    # users
#    Mode 0660
        Mode    0666
EndSection

### END DEBCONF SECTION

Reply via email to