LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Xorg can't start (https://www.linuxquestions.org/questions/linux-desktop-74/xorg-cant-start-847449/)

abdoullah 11-30-2010 08:28 AM

Xorg can't start
 
Hi Guys,
we have a CentOsS 5.5 server kernel 2.6.18-194.el5 #1 SMP.
All of the sudden we can't see the GUI, I forced the server to restart several times but it seems like Xorg is trying to start but can't, I can access the server through SSH, when i type TOP command I see that Xorg appear and disappear, in the screen I see the mouse for a while then the command line, It seems like xorg is struggling to start but i don't know how to help him starting :(, please give me some hints!!!
Thanks a lot for any help!

TobiSGD 11-30-2010 08:35 AM

To give you hints, we need more info. What graphics hardware? Which drivers are used? Your /var/log/Xorg.0.log?

abdoullah 11-30-2010 09:27 AM

1 Attachment(s)
Quote:

Originally Posted by TobiSGD (Post 4175810)
To give you hints, we need more info. What graphics hardware? Which drivers are used? Your /var/log/Xorg.0.log?

Thanks for the reply,
the hardware is : VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)
for the driver I think it's RADEON, as when i started Xorg I saw RADEON setting up the config.
the log is attached.( I did kill Xorg and started it gain, so you may find this in there).
Thank you once more!

adamk75 11-30-2010 10:21 AM

There's no indication of anything failing in that log file. Perhaps your window manager or desktop environment is exiting immediately. Which one are you trying to use? What happens if you try
Code:

xinit /full/path/to/xterm
? The full path is probably /usr/X11R6/bin/xterm or /usr/bin/xterm.

Adam

TobiSGD 11-30-2010 10:52 AM

It seems to me that after initializing the hardware the display constantly changes from virtual terminal to X and back again.
This is constantly repeated in your logs, bold text from me:
Quote:

(**) RADEON(0): RADEONSaveScreen(2)
(**) RADEON(0): RADEONLeaveVT
(**) RADEON(0): RADEONRestore
(**) RADEON(0): RADEONRestoreMode()
(**) RADEON(0): RADEONRestoreMemMapRegisters() :
(**) RADEON(0): MC_FB_LOCATION : 0xffff0000
(**) RADEON(0): MC_AGP_LOCATION : 0x003fffc0
(**) RADEON(0): Map Changed ! Applying ...
(**) RADEON(0): Map applied, resetting engine ...
(**) RADEON(0): Updating display base addresses...
(**) RADEON(0): Memory map updated.
(**) RADEON(0): Programming CRTC1, offset: 0x00000000
(**) RADEON(0): Wrote: 0x0000000c 0x00030065 0x00000000 (0x0000a500)
(**) RADEON(0): Wrote: rd=12, fd=101, pd=3
(**) RADEON(0): Ok, leaving now...
(II) Open ACPI successful (/var/run/acpid.socket)
(**) RADEON(0): RADEONEnterVT
(**) RADEON(0): RADEONModeInit()
1024x768 78.80 1024 1040 1136 1312 768 769 772 800 (24,32) +H +V
1024x768 78.80 1024 1040 1136 1312 768 769 772 800 (24,32) +H +V
(**) RADEON(0): Pitch = 8388736 bytes (virtualX = 1024, displayWidth = 1024)
(**) RADEON(0): dc=7880, of=31520, fd=140, pd=4
(**) RADEON(0): RADEONInit returns 0x5591ab0
(**) RADEON(0): RADEONRestoreMode()
(**) RADEON(0): RADEONRestoreMemMapRegisters() :
(**) RADEON(0): MC_FB_LOCATION : 0xe3ffe000
(**) RADEON(0): MC_AGP_LOCATION : 0xffffffc0
(**) RADEON(0): Map Changed ! Applying ...
(**) RADEON(0): Map applied, resetting engine ...
(**) RADEON(0): Updating display base addresses...
(**) RADEON(0): Memory map updated.
(**) RADEON(0): Programming CRTC1, offset: 0x00000000
(**) RADEON(0): Wrote: 0x0000000c 0x0002008c 0x00000000 (0x0000a500)
(**) RADEON(0): Wrote: rd=12, fd=140, pd=2
(**) RADEON(0): GRPH_BUFFER_CNTL from 20005c5c to 20095c5c
(**) RADEON(0): EngineRestore (32/32)
But I don't have a clue why it is doing that. May be anybody else has an idea?

impert 11-30-2010 12:56 PM

Code:

RADEONRestoreMemMapRegisters() :
(**) RADEON(0):  MC_FB_LOCATION  : 0xe3ffe000
(**) RADEON(0):  MC_AGP_LOCATION  : 0xffffffc0
(**) RADEON(0):  Map Changed ! Applying ...
(**) RADEON(0):  Map applied, resetting engine ...
(**) RADEON(0): Updating display base addresses...
(**) RADEON(0): Memory map updated.

It seems to be something to do with the memory map FB and AGP cycling between addresses.

abdoullah 11-30-2010 03:11 PM

I really appreciate guys your answers, i did try the command Adam suggested and i got this:

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

I did delete this before but issue was not fixed!!!
So i hope somebody will have a path to diagnose more the issue!
Thanks!

abdoullah 11-30-2010 03:55 PM

Hi Guys,
I tried killing Xorg but i couldn't and when i see the processes running, it says:

root 16615 11.8 0.0 88076 5304 tty8 Ss+ 12:55 0:00 /usr/bin/Xorg :1 -br -audit 0 -auth /var/gdm/:1.Xauth -nolisten tcp vt8

i hope this can help you help me :)!

jschiwal 11-30-2010 06:55 PM

I have 2 ideas.

A) Since according to the Xorg.0.log file, direct rendering isn't used, add "nomodeset" to your kernel boot option. (You can enter it to the kernel line when booting up, if it helps, add it to your grub config file /boot/grub/menu.lst or /boot/grub/grub.conf) I have found that this helps with video problems if you use NVidia or ATI graphics.

B)
Quote:

using VT number 7
The xorg.0.log file indicated that it was using VT7, while the last line you posted is saying VT 8 is being used. I wonder if using VT7 instead will help. Use the `pstree' command to locate the parent (script) process of the /usr/bin/Xorg command. There may be a setting in /etc/inittab or a file in /etc/sysconfig/ where you can make the change. (Sorry, I'm not running CentOS & am not familiar with distro specific config files)

adamk75 11-30-2010 07:30 PM

His kernel and Xorg are too old for modesetting to even come into play. "nomodeset" won't make a difference. I did notice that Xorg is running as server :1, which suggests that server :0 was running at some point.

To the OP, do you have a display manager (xdm/gdm/kdm) starting up when you reboot?

Adam

abdoullah 12-01-2010 08:40 AM

Hi Guys,
Thanks for your suggestions!
to jschiwal:
I did try nomodeset boot option (I did put it in the files you said like that:kernel /vmlinuz-2.6.18-194.el5 ro nomodeset root=/dev/VolGroup00/LogVol00 rhgb quiet crashkernel=128M@16M; I guess this how it should be, i've never have to do that:) )
however i didn't change anything as adamk75 said, still showing mouse then terminal just switching in between there.

to adamk75:
yes I do have a gdm, I checked and it says already running.

adamk75 12-01-2010 08:43 AM

Before you do any further testing, I'd highly recommend disabling gdm and rebooting to make sure that X is not starting up by default. Then try the command I gave above "xinit /full/path/to/xterm"

Adam

abdoullah 12-01-2010 09:30 AM

If you mean by disabling, prevent gdm from running at startup: I tried disabling gdm using ntsysv and chkconfig but i couldn't.
but if you mean just using gdm-stop (which i don't think what you mean), I did try it but no success, I even tried to kill all gdm processes but i throws this :

root 9037 0.0 0.0 255356 4132 ? Sl 06:23 0:00 /usr/libexec/gdm-rh-security-token-helper
root 9423 0.0 0.0 255356 4124 ? Sl 06:26 0:00 /usr/libexec/gdm-rh-security-token-helper
root 10403 0.4 0.0 167600 2592 ? Ss 06:32 0:00 /usr/sbin/gdm-binary -nodaemon
root 10435 0.0 0.0 167600 1328 ? S 06:32 0:00 /usr/sbin/gdm-binary -nodaemon
root 10437 0.2 0.0 255356 4132 ? Sl 06:32 0:00 /usr/libexec/gdm-rh-security-token-helper
root 10455 0.0 0.0 3780 380 ? Ss 06:32 0:00 /usr/libexec/gdmopen -l /bin/sh -c /usr/bin/whiptail --yesno 'There already appears to be an X server running on display :0. Should another display number by tried? Answering no will cause GDM to attempt starting the server on :0 again. (You can change consoles by pressing Ctrl-Alt plus a function key, such as Ctrl-Alt-F7 to go to console 7. X servers usually run on consoles 7 and higher.)

can you give me a hint how to disable gdm?

adamk75 12-01-2010 09:32 AM

I meant disabling gdm from starting up at all when you boot up your machine. I do not know how to do this on CentOS, frankly, but ntsysv and chkconfig do sound like the correct mechanisms.

Adam

abdoullah 12-01-2010 09:39 AM

Quote:

Originally Posted by adamk75 (Post 4177122)
I meant disabling gdm from starting up at all when you boot up your machine. I do not know how to do this on CentOS, frankly, but ntsysv and chkconfig do sound like the correct mechanisms.

Adam

Thanks Adam,
the thing is i tried using ntsysv but i can't see it at all, i cannot even see gnome. iwth chkconfig it says smthing like not applicable or...
anybody know how to prevent gdm from starting at boot or a solution to the whole issue? please help?


All times are GMT -5. The time now is 02:22 PM.