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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-26-2013, 11:32 PM
|
#1
|
Member
Registered: Aug 2005
Location: Australia
Distribution: Centos 7
Posts: 58
Rep:
|
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
|
|
|
07-02-2013, 12:52 AM
|
#2
|
Member
Registered: May 2013
Location: Pacific North West
Distribution: Red Hat, Scientific, Fedora, openSuSE, Mageia, Mint, Arch
Posts: 57
Rep: 
|
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.
|
|
|
07-02-2013, 01:13 AM
|
#3
|
Member
Registered: Aug 2005
Location: Australia
Distribution: Centos 7
Posts: 58
Original Poster
Rep:
|
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?
|
|
|
07-02-2013, 09:53 AM
|
#4
|
Member
Registered: May 2013
Location: Pacific North West
Distribution: Red Hat, Scientific, Fedora, openSuSE, Mageia, Mint, Arch
Posts: 57
Rep: 
|
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
|
|
|
|
All times are GMT -5. The time now is 07:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|