LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 06-06-2005, 03:53 PM   #1
K2712
LQ Newbie
 
Registered: May 2005
Distribution: Arch
Posts: 11

Rep: Reputation: 0
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?
 
Old 06-06-2005, 04:10 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 06-07-2005, 06:03 PM   #3
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
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.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strange dir fonts in virtual consoles during X session nephalem Linux - Newbie 1 10-20-2005 05:51 PM
I have upgraded from FC3 to FC4 and have lost all of my virtual consoles. kurtdriver Fedora 2 07-28-2005 08:09 PM
virtual consoles pesachzon Linux - Software 1 05-15-2005 06:09 PM
can't see virtual consoles from/after X session cyberphiliac Linux - Newbie 2 04-06-2005 05:49 PM
switch x getty consoles? gongli Linux - Software 0 06-01-2003 05:16 PM


All times are GMT -5. The time now is 12:12 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration