LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-07-2003, 12:57 PM   #1
cc0
LQ Newbie
 
Registered: Mar 2003
Posts: 2

Rep: Reputation: 0
X server restart after switching virtual consoles


Hi,

I just installed Redhat 8.0 on a new machine and everything seems to be working except the following:

If I log in using the graphical login screen and then switch to another virtual console (Ctrl-Alt-F1), briefly after switching, the screen goes black and the X server appears to restart. I am left with the graphical login screen again, and my previous X session is gone.

If I am not logged in when I switch virtual consoles, everything works normally.

I don't know if this has anything to do with the video, but I am using the i845 driver downloaded from intel.com.

Any help would be appreciated. Thanks.
 
Old 03-08-2003, 02:48 AM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
When you hit CTRL+ALT+F1, you're going to see the "behind the scenes" starting of X. To get back to X from the command line, just hit ALT+F7.

F1-F6 are your virtual terminals. F7 and up would be your X sessions. It is possible to have multiple X sessions running at once, but I can't remember how it's done. There's a thread here about that though somewhere. Anyway, it sounds like all you need to do is hit your ALT+F7 to get back to where you were.

When you're not logged in, your X hasn't "officially" started. You're most likely under the spell of gdm or kdm at the GUI "login screen". So when you hit CTRL+ALT+F7, and you type startx, it will start your X session. However, if you've already logged into X then go to virtual terminal 1 and type startx, you'll get an error saying that you've already got a session open--at this point, ALT+F7 and you should be back in X. Let me know if this works out for you.
 
Old 03-08-2003, 11:23 PM   #3
cc0
LQ Newbie
 
Registered: Mar 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your reply. Perhaps I need to be a little clearer about what the problem is. Here is the typical scenario:

1) Boot up and wait for the graphical login screen (gdm) to appear.

2) Enter user name and password to log in.

3) Do some stuff in X -- open windows, etc.

4) Hit Ctnl-Alt-F1.

At this point, without me doing anything, the following happens:

1) A regular text login screen appears (vitrual console 1)
2) About 1 second passes
3) The screen goes black, and the familiar 'X' cursor appears.
4) The gdm graphical login screen comes up.

At this point, my previous X session with all my windows is gone. The only X virtual console is F7. There aren't any other X servers running on F8 or higher.
 
Old 03-13-2003, 04:50 PM   #4
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
It sounds as though your runlevel is set to 3 for graphical boot. When you open a virtual terminal, I think it's automatically trying to go to runlevel 3 again. It errors because X is already running, and it kills the running X as well. The only solution I can think of is to change your run level in /etc/inittab to 5 instead of 3 so you'll have to boot to command line then startx. Also, have you tried to go to virtual terminal 2 (CTRL+ALT+F2)? Maybe it won't do the same thing, but I'm not too sure. Either way, it's a weird problem. Hopefully this helps.
 
  


Reply



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
X restarts when switching Virtual Consoles. blehargh Fedora 2 11-13-2005 04:12 PM
Slackware 10.1 - Xserver freezes when switching to virtual consoles or logout slacklinux-user Slackware 5 04-13-2005 07:29 AM
Switching virtual consoles from X then back takes me out of X sharpie Slackware 3 02-13-2004 07:10 AM
switching consoles in Mandrake 9.1 spuzzzzzzz Mandriva 2 11-14-2003 02:45 AM
command-line way of switching virtual consoles? chrisgr Red Hat 1 10-31-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration