Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am following this link for Xorg configuration on FreeBSD 8.1

After this step:

Xorg -config xorg.conf.new -retro

I can see the screen and mouse is also working but I cannot exit out of it any way.

I tried Ctrl+Alt+Fn, but it's not working.

Edit:0 Xorg.0.log - http://pastebin.com/bCh53nPR

Edit:2 xorg.conf.new http://pastebin.com/WPDnBBQy

share|improve this question
    
What do you mean by "not working"? You can't get to any of the TTYs (F1-F7)? Is your keyboard working at all? –  jasonwryan Aug 27 '11 at 22:47
    
Nope, I dont. After issuing the command I mentioned, I cannot switch to anywhere. blank screen all the way till I reboot. –  hari Aug 27 '11 at 22:56
    
So, in X your input devices work, but you have no TTYs? That seems a completely different problem. –  jasonwryan Aug 27 '11 at 23:01
    
Did you have a look at /var/log/Xorg.0.log? It may contain information about the problems with your keyboard. –  rozcietrzewiacz Aug 27 '11 at 23:01
    
@jasonwryan You miss the point - hari cannot switch to the ttys - but they are certainly working, since the Xorg was started from a tty! –  rozcietrzewiacz Aug 27 '11 at 23:03
show 1 more comment

1 Answer

up vote 3 down vote accepted

As it was revealed on chat, the actual problem lied in /etc/hosts not set up to recognize the local hostname. On some systems, including FreeBSD, the Xorg will halt trying to query the hostname of your machine before it becomes usable. So before starting X, one should ensure that the /etc/hosts file contains at least the line

127.0.0.1 localhost your_hostname_here localhost.my.domain

That is, the line has to contain the hostname.


Also, when you have such problems it might be a good idea to start an ssh daemon before running Xorg - then if you cannot do anything under X, you'll be able to log to your computer from another machine (if you have one at hand) and kill the Xorg. It will prevent the risk of data corruption on hard-reset and also spare you some time.

share|improve this answer
    
let me try what you are saying and thanks for the suggestion to have ssh access from other box. –  hari Aug 28 '11 at 0:14
    
I am getting checkered screen with mouse on that. An I cannot switch between ttys. –  hari Aug 28 '11 at 0:17
    
Ah, then you probably don't have xterm installed! What does which xterm output? –  rozcietrzewiacz Aug 28 '11 at 0:19
    
I have, I believe: it shows: /usr/local/bin/xterm –  hari Aug 28 '11 at 0:22
1  
@hari let us continue this discussion in chat –  rozcietrzewiacz Aug 28 '11 at 0:42
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.