LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Startx issue (https://www.linuxquestions.org/questions/linux-software-2/startx-issue-708798/)

Padawan.AVT 03-03-2009 08:21 AM

Startx issue
 
Somehow I cannot start my X

I do startx then my screen goes blank, I see native X cursor, after that xterm flashes for a second and right after it system fail back to console with the output below:

Code:

padawan@Serenity ~ $ startx
xauth:  creating new authority file /home/padawan/.serverauth.4085


X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.28-gentoo-r2 x86_64
Current Operating System: Linux Serenity 2.6.28-gentoo-r2 #4 SMP Mon Mar 2 12:38:49 MSK 2009 x86_64
Build Date: 03 March 2009  01:57:10PM

        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 Mar  3 14:29:10 2009
(==) Using config file: "/etc/X11/xorg.conf"
(WW) fglrx: No matching Device section for instance (BusID PCI:0@7:0:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@7:0:1) found
xinit:  Resource temporarily unavailable (errno 11):  Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open session: Launch
helper
exited with unknown return code 0

Backtrace:
0: X(xorg_backtrace+0x26) [0x4e1676]
1: X(xf86SigHandler+0x39) [0x4742a9]
2: /lib/libc.so.6 [0x7f3c9703c270]
3: /usr/lib64/xorg/modules/drivers//fglrx_drv.so(atiddxDisplayShadowIsShadowPixmap+0x22) [0x7f3c95f9ac72]
4: /usr/lib64/xorg/modules//glesx.so [0x7f3c932482e3]
5: /usr/lib64/xorg/modules//libxaa.so(XAAComposite+0x196) [0x7f3c951c5946]
6: /usr/lib64/xorg/modules//libxaa.so [0x7f3c951e15d7]
7: X [0x521883]
8: X(miTrapezoids+0x204) [0x5084f4]
9: /usr/lib64/xorg/modules//libxaa.so [0x7f3c951e1310]
10: X [0x5119e6]
11: X(Dispatch+0x334) [0x449354]
12: X(main+0x43a) [0x4311ba]
13: /lib/libc.so.6(__libc_start_main+0xf4) [0x7f3c970295e4]
14: X [0x430599]

Fatal server error:
Caught signal 11.  Server aborting

xterm:  fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0.0"
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 533 requests (533 known processed) with 0 events remaining.
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
      after 128 requests (53 known processed) with 0 events remaining.
xterm:  fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0.0"
xinit:  connection to X server lost.

And another strange thing is that text input cursor stuck in the middle of the screen, but no X-related processes are running! And I cannot get rid of it until reboot


Logs do not show any errors (drivers and xorg-server compiled with debug option)

Distro: Gentoo, kernel 2.6.28-r2, latest ATI-drivers installed, card ATI HD 2600

Full text of /var/log/Xorg.0.log located here:
http://docs.google.com/Doc?id=dfw4qmbp_20d7jwhhc

jdkaye 03-03-2009 09:51 AM

This is just a wild guess but I use the fglrx driver also but I remember vaguely that I had to disable AIGLX for it to work. Could that be the problem?
cheers,
jdk

Padawan.AVT 03-04-2009 02:11 AM

AIGLX already disabled, but fglrx force it's loading (you can see that in Xorg.0.log)

Padawan.AVT 03-04-2009 04:42 AM

Here is my xorg.conf:

Code:

Section "ServerLayout"
        Identifier    "Simple Layout"
        Screen      0  "Screen 1" 0 0
        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "Keyboard1" "CoreKeyboard"
EndSection

Section "Files"
EndSection

Section "Module"
        Load  "dbe"          # Double buffer extension
        SubSection "extmod"
                Option            "omit xfree86-dga"  # don't initialise the DGA extension
        EndSubSection
        Load  "freetype"
        Load  "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard1"
        Driver      "kbd"
        Option            "AutoRepeat" "500 30"
        Option            "XkbRules" "xorg"
        Option            "XkbModel" "pc104"
        Option            "XkbLayout" "us,ru(winkeys),ua(winkeys)"
        Option            "XkbOptions" "grp:ctrl_shift_toggle"
EndSection

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option            "Protocol" "Auto"        # Auto detect
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier  "sm957df"
        HorizSync    30.0 - 96.0
        VertRefresh  50.0 - 160.0
EndSection

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

Section "Device"
        Identifier  "h2600"
        Driver      "fglrx"
        VideoRam    524288
        Option            "DRI" "true"
        Option            "XAANoOffScreenPixmaps" "true"
        Option            "VideoOverlay" "on"
        Option            "TexturedVideo" "on"
        Option            "Textured2D" "on"
        Option            "TexturedXrender" "true"
        Option            "ForceMonitors" "notv"
        Option            "UseFastTLS" "1"
        Option            "OpenGLOverlay" "off"
        BusID      "PCI:7:0:0"
EndSection
Section "Screen"
        Identifier "Screen 1"
       
        Device    "h2600"
        Monitor    "sm957df"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    8
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    16
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
Section "DRI"
        Mode        0666
EndSection
Section "Extensions"
        Option            "Composite" "true"
EndSection


Padawan.AVT 03-05-2009 04:31 AM

I cannot understand why I can see fully loaded xterm for a second and then all crashes.

As I understand drivers are configured properly because X starts as it should, but why this crash happens?

And why if I do startx for the second time in a row without reboot, I see only big black screen and neither ctrl+alt+F1, not ctrl+alt+backspace nor even ctrl+alt+del cannot bring system out of that state

Padawan.AVT 03-07-2009 04:08 AM

Wooohaa!!! Finaly I've launched that damn GUI!

What I did:

* added dri support to kernel as module (although in one of articles on this issue guys told to disable it at all)
* emerge -uDN world
* etc-update
* revdep-rebuild
* removed all X-related stuff from my home directory
* Added Option "AllowEmptyInput" "no" to my xorg.conf (cause my mouse and keyboard didn't work)

Now I'm sitting in the pretty Xfce4 envirinment, but I have to deal with one more thing - for some reason X process utilizes 100% of my CPU (and thus complitly wastes one of my CPU kernels)

Code:

$ top
.....
24816 root      19  -1  286m  72m  19m S    100  3.6  5:44.58 X
.....

Although I've launched X from my own user, not root

But I guess it has to do with debug USE flag enabled for xorg-server and related packages.

I will dig into it and post my results

Padawan.AVT 03-07-2009 05:57 AM

Ah, and that overload somehow also gone by itself.

2 problems less. 98 more left :)


All times are GMT -5. The time now is 11:31 PM.