LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   X locking when switching back to console (http://www.linuxquestions.org/questions/linux-hardware-18/x-locking-when-switching-back-to-console-287717/)

jfall 02-08-2005 12:30 PM

X locking when switching back to console
 
Thanks to this great forum, I have finally got mostly everything on my laptop working in Slackware, I faught with the ATI driver for days. I got the ATI driver working after upgrading to kernel 2.6.10 and am currently getting over 4,500FPS in glxgears.

One problem remains. When I am in X I cannot go back to the console using CTRL + ALT + F1 for example, I get a black screen and my computer locks. I first thought it may have been a problem with frame buffer, so I recompiled my kernel without it, but the problem continued.

If I do not load the FGLRX driver before starting X everything works fine, I can switch back to the console without issues. This leads me to believe that there is a problem with the FGLRX driver on my system.

System Info:
Averatec 6100HS, P4 3ghz HT, 512DDR, Radeon Mobility 9600 M10
Slackware 10 current, Kernel 2.6.10, Xorg 6.8.1
Have a SIS chipset, kernel is compiled for sis_agpgart support.

I have patched the fglrx driver with the 2.6.10 patch before compiling it.

Below is my xorg config:

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/"
        ModulePath "/usr/X11R6/lib/modules"

EndSection

Section "ServerFlags"

EndSection

Section "InputDevice"

        Identifier  "Keyboard0"
        Driver          "kbd"

EndSection

Section "InputDevice"

        Identifier  "Mouse1"
        Driver "mouse"
        Option "Protocol"  "IMPS/2"
        Option "ZAxisMapping"  "4 5"
        Option "Device"        "/dev/input/mice"

EndSection


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

Section "Monitor"
                Identifier  "Monitor0"
                VendorName  "Monitor Vendor"
                ModelName        "Monitor Model"
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"                "no"
        Option "ForceGenericCPU"                        "no"
        BusID "PCI:1:0:0"        # vendor=1002, device=4e50
        Screen 0
EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
        Identifier  "Screen0"
        Device          "ATI Graphics Adapter"
        Monitor        "Monitor0"
        DefaultDepth 24
        #Option "backingstore"

        Subsection "Display"
                Depth          24
                Modes          "1280x1024"
                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 "Keyboard0" "CoreKeyboard"

EndSection

### EOF ###

I wonder if it's a problem with using the external AGPgart kernel module instead of internal? I have tried using the internal, however it doesn't work right and ends up using the Mesa drivers.

I'm not sure where to even begin troubleshooting as the computer is locking up.. would any of the logs help me here?

Any advice is appreciated.

J.W. 02-08-2005 04:51 PM

I ran into the same problem myself and I would take another look because it may turn out to be a framebuffer issue. Assuming you're using lilo, edit your lilo.conf file and comment out whatever "vga=" parameter that's active, then uncomment the "vga=normal" entry so it becomes active. Rerun lilo (/sbin/lilo as root) I can't promise that will solve the problem but it's worth a shot. Good luck with it -- J.W.


All times are GMT -5. The time now is 08:11 AM.