LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-08-2010, 01:15 AM   #1
pjeeanah
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Rep: Reputation: 1
Alt+Ctrl+F1 restarts x server - no virtual console


I installed latest stable debian lenny. However when I want to switch to a virtual console by pressing Alt+Ctrl+F(1-6) the X server is restarted and I get the gdm login screen. When I kill gdm, virtual console switching works fine.

How to switch a to a terminal and return to my X session by pressing Alt+Ctrl+F7?
 
Old 02-08-2010, 03:47 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
What happens if you are in a terminal emulator in x and as root run:
Code:
chvt 1
Warning, since Ctrl-Alt-F1 should be the same as this, it may crash your xserver.

After trying to switch to a virtual console and crashing/restarting X, what is in /var/log/Xorg.0.log.old?


Evo2.
 
Old 02-08-2010, 03:47 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,356

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
/etc/inittab:

set initdefault to 3 and run startx, or edit to make sure consoles run on 2-6 while the X server runs on 1. I use the former method as I prefer the old fashioned consoles to xterms and don't always need X anyhow.
 
Old 02-08-2010, 03:49 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by business_kid View Post
/etc/inittab:

set initdefault to 3 and run startx, or edit to make sure consoles run on 2-6 while the X server runs on 1. I use the former method as I prefer the old fashioned consoles to xterms and don't always need X anyhow.
On Debian run levels 2 through 5 are the same, and 2 is the default.

Evo2.
 
Old 02-08-2010, 04:26 AM   #5
pjeeanah
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 1
chvt 1 restarts the X server. When I run xev to capture the keyboard, the X server is again restarted.

Puzzles me. Does it have something to do with gdm?
 
Old 02-08-2010, 04:31 AM   #6
pjeeanah
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 1
The log tells: caught signal 11
 
Old 02-09-2010, 03:55 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you want to be without gdm in Ubuntu / Debian :
https://lists.ubuntu.com/archives/ub...ly/087620.html
Quote:
Ubuntu uses the Debian model, and the default runlevel is 2, unless
otherwise configured - so init 3 won't help, I'm afraid, unless you
enjoy reconfiguring runlevels .

If you have the file /etc/X11/default-display-manager you can edit it or
do

echo "false" | sudo tee /etc/X11/default-display-manager

This will disable gdm/kdm/xdm , or whatever you have in that file

You can put it back with a text editor, or do for example

echo "/usr/sbin/gdm" | sudo tee /etc/X11/default-display-manager

Of course, for a temporary disabling of X you can just do

sudo /etc/init.d/gdm stop then use the "restart" option or the
"start" option of that init.d script to restart it.
Short : open a terminal, do
echo "false" | sudo tee /etc/X11/default-display-manager

.....
 
Old 02-09-2010, 09:27 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by pjeeanah View Post
The log tells: caught signal 11
Can you please post the whole log file?

Evo2.
 
Old 02-14-2010, 11:12 PM   #9
pjeeanah
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 1
Back to work today evo2. I am attaching the Xorg log.

Perhaps you could find the offender.


Thanks

Pravind
Attached Files
File Type: txt Xorg.0.log.old.txt (50.7 KB, 32 views)

Last edited by pjeeanah; 02-14-2010 at 11:18 PM.
 
Old 02-15-2010, 02:02 AM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Seems to be a real bug. Looks like it could be related to:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523529

If it is not the same as the above, you should probably report it.

Evo2.
 
Old 02-16-2010, 04:05 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,356

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
It's definitely bad, and shouldn't be happening. But you shouldn't be in many of the places you are. A few thoughts.

There's a lot of waffle about vesa in there. Vesa and dri are incompatible, and a widescreen (16:9 ratio) is a problem since the vesa modes are mainly 4:3. I would put in /etc/X11/xorg.conf these lines
DisplaySize 410 256
HorizSync 31.5-whatever
VertRefresh 50-whatever

I believe you can enable SSE because hardly any box these days doesn't do it. The sky won't fall in any harder for trying it.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
No console from CTRL-ALT-F2 (or 3 or 4...) laxdad8992 Linux - Newbie 4 03-23-2009 11:03 AM
Can't switch to console with ctrl+alt in X. gbowden Slackware 1 06-20-2007 05:07 AM
dark screen when pressing Ctrl + Alt + Backspace or Ctrl + Alt F1-F6 in Gnome or KDE trinoo Slackware 5 01-28-2005 08:13 AM
Switching To Console With CTRL+ALT+F2 Chryzmo Slackware 4 03-13-2004 08:40 PM
ctrl+alt+F6 does NOT restore console kadaver Slackware 1 03-10-2004 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:28 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