Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use my old computer as an NAS, so I remove the monitor after I installed linux on it (disconnect vga cable). I use ssh to control the machine and it works fine. Until some day, after kernel/softare upgrade or messing up some configs, I cannot connect to it through ssh, then I have to plug the monitor back, but the monitor says "No input signal". So I have to restart the computer WITH the monitor connected, and the monitor's back!

I think the computer/linux kernel doesn't detect the monitor plug-in event. So how can I start my linux box without a monitor, but when it goes wrong I can still plug my monitor (vga) back and use the console.

Edit: just one pci-e video card, has dvi, vga, tv/out (s-video)

Edit2: Xorg is not running. I just need the console (CTRL+ALT+F1). The problem is, if the machine booted without a monitor connected, it won't give me a pseudo terminal after I attach the vga cable while it's running. Clearly the monitor is not auto detected as usb device. I'm wondering how to let the monitor auto detected.

share|improve this question
    
Toni: Does this computer with Linux have two video cards? (onboard and expansion slot) or perhaps two video ports (DSUB and DVI)? –  deltaray Mar 19 '11 at 14:02
    
Do you also connect a keyboard at the same time as the monitor, or have one connected all the time? It could well be failing to detect a keyboard and deciding to use serial console. There should be a setting in Grub to force VGA console. –  Majenko Mar 19 '11 at 15:14
    
@MattJenkins: how to force VGA console? –  yaroot Mar 19 '11 at 15:38
    
If I knew that I'd have put it in my comment. –  Majenko Mar 19 '11 at 15:42

2 Answers 2

Do you have an xorg.conf file, or do you let X auto-detect the configuration? Recent Linux distributions use a version of X that auto-detects your configuration so an xorg.conf file is not necessary. But if X is auto-detecting, it probably doesn't see a monitor so it can't start. Try creating an xorg.conf file manually, or use this to have Xorg generate one for you:

Xorg :1 -configure
cp /root/xorg.conf.new /etc/X11/xorg.conf

I haven't tried this without a monitor present so I'm not sure it will work. You might also need to restart X after plugging in the monitor, by pressing CTRL+ALT+Backspace on the keyboard.

share|improve this answer
    
As it's an NAS, it doesn't need GUI, so xorg is not running. And, CTRL+ALT+Backspace it not working with recent version of xorg. –  yaroot Mar 19 '11 at 15:14

If you are talking about the X server running then this is normal behaviour.

X tries to load but since you do not have the screen connected it fails...usually there is a maximum number of tries for that from which on it fails and stops.

However, the system is left at with a blank screen. So when you connect you are probably getting at best case a blinking cursor.

The pseudo terminals should be visible though. Try CTRL+ALT+F2 , F3 ... should give something.

If this does not work then it seems that for some reason the pseudo-terminals have failed. I cannot know the reason for that. You should post more details, i.e. /var/log/messages.

Normally you should start your system at runlevel 3 .

share|improve this answer

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.