LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-26-2013, 11:32 PM   #1
tara
Member
 
Registered: Aug 2005
Location: Australia
Distribution: Mageia 1
Posts: 53

Rep: Reputation: 15
Linux Booting into X too quickly after Matrox power failure


Hi

I have a rather strange problem. I have a HP DL360 using Mageia 1, which uses a external Matrox graphics device (this device has its own power supply). The server powers up has runlevel 5, autologin for a user, bash_profile then checks if tty=1 if so then startx is called and the .xinitrc file is executed and my 2 applications start up. All is good.

I have discovered that if the matrox device is unplugged from the power and the server starts up you see nothing on the monitor, this is ok and as expected. I then power the matrox device on and restart the server. I get to the boot up screen ok, it defaults to my normal option then a load of writing on the screen goes past as normal until it stops at the output of the following line:

bash-hotplug (54) : /proc/54/oom_adjs is deprecated etc....

It then clears the screen and goes into X and opens up 2 xterm windows (which is how my applications are normally automatically started but are not as not in tty1 at this stage and no services have started), (It has also autologged as per my inittab file, not sure how when runlevel 3 hasn't started). I do not want this behaviour and it only happens after the server starts up without the matrox. Linux never goes to runlevel 3 or the line "Welcome to Mageia 1", never see a single line with a green [OK] at the end.

If in one of these 2 xterm windows I run init 3 as root user it takes me back to 'F1' console and continues booting up linux and my applications eventually come up ok. This would not be a problem but the application is a touchscreen application and by default there is no physical keyboard so the user cannot type init 3 to get in should the above matrox power issue occur.

This scenario never changes after any number of reboots. To get it back to the way it is suppose to run the server has to be completely rebuilt.

Any ideas why the 2 console windows might be starting up before init 3 has even started and none of the services (e.g. networking etc) have started? How do I stop it?

Thank you for reading
Tara
 
Old 07-02-2013, 12:52 AM   #2
Linux MR
Member
 
Registered: May 2013
Distribution: Red Hat, Scientific, Fedora, openSuSE, Mageia, Mint, Arch
Posts: 57

Rep: Reputation: Disabled
When I've seen the oom in my log files it normally is telling me something is Out Of Memory (oom).
https://www.kernel.org/doc/Documenta...oc-pid-oom_adj

You may want to further investigate your log files (a bit before and after the out of memory message) and also your server's power settings. Sounds like they could have some correlation if this only happens when the power is removed.
 
Old 07-02-2013, 01:13 AM   #3
tara
Member
 
Registered: Aug 2005
Location: Australia
Distribution: Mageia 1
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks, but I don't think it is a problem with the power as the power is not removed from the linux device (i.e. HP DL 360) but from the external matrox graphics device, it is externally powered.

The oom stuff comes up every time I use Mageia 1 on these servers, comes up when server working as expected, just hangs there for a while.. shouldn't affect linux getting into init 3?
 
Old 07-02-2013, 09:53 AM   #4
Linux MR
Member
 
Registered: May 2013
Distribution: Red Hat, Scientific, Fedora, openSuSE, Mageia, Mint, Arch
Posts: 57

Rep: Reputation: Disabled
Ah...I see. You should be able to get to init3 but something's amiss

Which runlevel are you in when the 2 xterm windows start? sounds like you may be in single-user mode but I wonder why
If you're privy would you be able to post the last few entries from the log files after the unwanted boot

Quote:
# tail -50 /var/log/messages
# dmesg | tail
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Quickly booting C64 games in Linux LXer Syndicated Linux News 1 08-18-2011 09:44 PM
LXer: Running Android Apps on Linux - Booting the Emulator Quickly LXer Syndicated Linux News 0 06-28-2011 02:41 AM
WDC ROM MODEL-PINNACLE problem booting after power failure nubix Linux - Hardware 4 10-26-2009 03:59 AM
Error booting FC6 after a power failure HackTidus Fedora 1 02-29-2008 03:16 AM
problems booting up after power failure. adrianbbs Linux - Newbie 1 08-23-2004 08:38 PM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration