LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   If I switch virtual consoles, my x session is lost (http://www.linuxquestions.org/questions/ubuntu-63/if-i-switch-virtual-consoles-my-x-session-is-lost-330949/)

K2712 06-06-2005 03:53 PM

If I switch virtual consoles, my x session is lost
 
I switched to virtual console 1 today(Ctrl+Alt+F1) and instead of seeing a prompt, I saw the end of my Xorg.0.log file:

Synaptics DeviceInit called
SynapticsCtrl called
Synaptics DeviceOn called
Warning: font renderer for ".pcf" already registered at priority 0
Warning: font renderer for ".pcf.Z" already registered at priority 0
Warning: font renderer for ".pcf.gz" already registered at priority 0
Warning: font renderer for ".snf" already registered at priority 0
Warning: font renderer for ".snf.Z" already registered at priority 0
Warning: font renderer for ".snf.gz" already registered at priority 0
Warning: font renderer for ".bdf" already registered at priority 0
Warning: font renderer for ".bdf.Z" already registered at priority 0
Warning: font renderer for ".bdf.gz" already registered at priority 0
Warning: font renderer for ".pmf" already registered at priority 0
Could not init font path element unix/:7100, removing from list!
Synaptics Deviceoff called

I tried switching back to console 7(Ctrl+Alt+F7), had a blank screen with a blinking cursor in the top left corner.
So I switched back to console one, stopped X with Ctrl+C which gave me this:

waiting for x server to shut down Synaptics Deviceoff called

xinit: unexpected signal 2

prompt:

I typed startx and x started up no problem.

I've searched the forums, wiki.x.org, and google, and I can't find anything.

Any ideas?

masand 06-06-2005 04:10 PM

differnt OS have different settings in inittab files
so there different behaviour betweeen switching consoles

u need to look in to ur /etc/inittab file for this

regards

jonr 06-07-2005 06:03 PM

Ubuntu sometimes puts the X session on console #2 instead of #7. Try alt+ctl+F2 if this happens again, and see if that's your X session. For that matter, if it isn't #2, try 3 through 5. If you would like to have regular non-X consoles on 2 through 6.

In your /etc/inittab file you'll see something like this:

Code:

# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
2:2345:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

I changed the lines that begin with "1:2345" and "2:2345" myself, because I wanted a console in addition to number one.

The 1:2345 means console one is available for run levels 2,3,4, and 5. The 2:2345 means the same thing for console two.

Kind of confusing but if you will read /etc/inittab it goes into some detail.

Just be careful with typing when modifying that file--or just about any file in /etc. It's a good idea always to save a file you're about to modify, under another distinctive name such as "/etc/inittab.this_one_works" just in case a major error occurs and you need to restore it in order to use your system.


All times are GMT -5. The time now is 05:03 AM.