Bug 467793

Summary: Typing alt-ctrl-f1 does not go to virtual terminal 1, but results in black screen
Product: [Fedora] Fedora Reporter: Peter Gückel <pgueckel>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 10CC: covex, mcepl, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-13 22:02:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Gückel 2008-10-20 21:48:30 UTC
Description of problem:
While in an X session, trying to get to a virtual terminal 1 (presumably 2-6 as well, but untried) by typing Alt-Ctrl-F1 resulted in a black screen and no way to log in.

Version-Release number of selected component (if applicable):
7.0.2.1

How reproducible:
Type Ctrl-Alt-F1

Steps to Reproduce:
1. Type Ctrl-Alt-F1
2. See black screen
3.
  
Actual results:
Black screen appears, no login

Expected results:
Login prompt should appear

Additional info:

Comment 1 Peter Gückel 2008-10-21 00:44:51 UTC
Clarification, upon further experimentation: alt-ctrl-f1 produces a black screen; alt-ctrl-f2-6 appear to work correclty, displaying the virtual terminals; and alt-ctrl-f7 does NOT go back to X (it shows a black screen and the mouse pointer, but it is dead and unmovable). In case it is significant, I am using KDE (4).

Comment 2 Adam Pribyl 2008-10-22 18:22:00 UTC
In F10 if you start to init 5, the Xserver is by default started at tty1, therefore you should be able to return to X at his vt. More important is what graphics card you have and wherether you tried to disable modeseting (add kernel parameter nomodeset) and plymouth (remove parameter rhgb).

Comment 3 Peter Gückel 2008-10-22 19:32:42 UTC
I had begun to think that plymouth was using virtual terminal 1, so that explained the black screen, but neither virtual terminal 1 nor ctrl-alt F7 (the 'old' or usual standard) returned to my X session. As stated, virtual terminal 1 is just black and alt-ctrl-F7 is also black, but with a dead mouse pointer on it. It is not possible to break out of this without alt-SysRq-reisub.

So, to answer some question just posed, I am using the onboard Intel graphics. My kernel boot line has: rhgb vga=0x31b. I was under the impression that modesetting would not work with Intel until kernel-2.29.

Yes, later, I can try removing rhgb and inserting nomodeset.

Comment 4 Peter Gückel 2008-10-22 19:56:09 UTC
Ok, I just rebooted, and edited my kernel boot line in grub.conf, taking out rhgb vga=0x31b and putting in nomodeset. Since I removed vga=0x31b, I was not able to see plymouth's pretty blue screen and the framebuffer did not start, so all was black until after nash started (where the udev stuff is initialized). Once logged in, I tried alt-ctrl-F1 and got the black screen (no X), alt-ctrl-F2-F6 produced the virtual terminals, and alt-ctrl-F7 returned me to my running X session.

So, do I have the wrong things on my kernel boot line in grub? I read that, until modesetting is available (I read that it will not be available for Intel until kernel-2.29), one should use the framebuffer by putting vga=0x31b after rhgb on the kernel boot line in order for the plymouth video to display. Is my understanding correct? should I leave that and add nomodeset, too? I am confused about the proper arguments.

Comment 5 Peter Gückel 2008-10-22 20:13:48 UTC
So, I decided to reboot yet again. This time, I removed only rhgb, left vga=0x31b in place, and appended nomodeset.

The result was that the framebuffer started, but there was no pretty blue plymouth display, and when udev started, I began to see some output. Once logged in, I tried the keys again.

This time, alt-ctrl-F1 gave me the black screen, and if I recall correctly, there was a flashing underline in the upper left corner, alt-ctrl-F2-F6 gave me the virtual terminals, and they were shown tiny, like the framebuffer shows them, not like normal, as was my previous attempt (see previous post), and alt-ctrl-F7 returned me - successfully - to my running X session.

So, what can I conclude here? That I can either use or dispense with vga=0x31b, that I need nomodeset (until kernel-2.29 when modesetting for Intel is in the kernel), and that I must remove rhgb (that means, just a black screen, no more blue plymouth screen). Or else I leave it and don't use the virtual terminals?

Or can you fix something?

Comment 6 Adam Pribyl 2008-10-23 12:10:02 UTC
The framebuffer vga=0x31b nasty solution:
http://fedoramagazine.wordpress.com/2008/10/21/interview-fedora-10s-better-startup/ 
Adam Jackson: There’s also a secret cheat code to run the graphical plymouth splash on vesafb, which is of course wildly unsupported. (vga=0x318 on the grub command line)

If you are not using it, you should see text plymouth boot up (blue progress bar at the bottom of the screen). 

Did you updated from F9, or is this new F10beta installation?

Comment 7 Adam Jackson 2008-10-23 13:38:56 UTC
There was also a bug in firstboot that would break vt switching for the one boot cycle where firstboot runs.  should be fixed in firstboot-1.101-1, although that might not be what you're seeing here.

Comment 8 Peter Gückel 2008-10-23 17:33:16 UTC
I installed f10alpha to a clean partition and kept on doing the updates. Before I learned of the vga=0x3xx grub parameter, I had that bar across thebottim, in 2 shades of blue and white, showing progress. I don't know what each colour symbolizes, it at least you know it's making progress :)

Comment 9 Matěj Cepl 2008-10-23 23:46:35 UTC
Could you please upgrade to the latest Rawhide packages? There was some shifting of X between VT7 and VT1 (we are now back at VT7) and some nasty problems with keyboard in relation to the Xserver.

Comment 10 Peter Gückel 2008-10-24 00:14:17 UTC
I have all of the latest rawhide updates for my system installed. I just gave it a try again. As I had said earlier, and so it still is: vt1 is just a black screen (I presume this is the one that plymouth or the framebuffer uses), vt2-vt6 are fine and show the login prompt (I did not attempt to log in), and vt7, which is supposed to return me to my active X session, gets me to a black screen with a dead mouse pointer. After having done this, it is impossible to do anything. I cannot return to one of the virtual terminals, I cannot move the mouse, I cannot kill the X server with alt-ctrl-backsp, nor can I gently bow out with alt-SysRq. The system is locked dead. I can only push the power button and restart.

Comment 11 Adam Pribyl 2008-10-25 18:00:53 UTC
(In reply to comment #9)
> Could you please upgrade to the latest Rawhide packages? There was some
> shifting of X between VT7 and VT1 (we are now back at VT7) and some nasty
> problems with keyboard in relation to the Xserver.

I have fully updated my rawhide installation, but I still has X server at vt1.

Comment 12 Peter Gückel 2008-10-28 02:03:29 UTC
Some progress has been achieved. With kernel-2.6.27.4-51.fc10.i686, I just tried it again. The result:

vt1 is a black screen with nothing else on it
vt2-vt6 have a login prompt (I did not try to log in)
vt7 finally DID return to the running X session (no more pressing the power button to reboot)

A post on fedora-devel, I think, suggested that vt1 is supposed ot be X and vt7 is no longer, but that is not how it is on this computer with the aforementioned kernel.

Comment 13 Adam Pribyl 2008-11-14 21:04:46 UTC
Petrus I think I know how your problem happens, because I was able to reproduce it today when I was triing to move the X in f10 from default vt1 to vt7.
This is because both mingetty and X server are started at vt1. For me it shows in processes that I have mingetty running on tty1 and Xorg on vt1 too. This happens when you enable tty1 in upstart (this could remain in your installation from past), but plymouth is forcing X to start at vt1, thru gdm parameter (the process is somehow too complicated to discribe here). Please make sure, you do not start mingetty on tty and everything works (besides that now we all have X at vt1, but this is another story).

Comment 14 Bug Zapper 2008-11-26 04:03:04 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 15 Adam Pribyl 2008-11-29 13:46:35 UTC
I think we can close this bug, because this is a problem of setup (mingetty and Xorg at vt1), if we do not want to fix the problem that it is possible to start X at the VT that is already busy though. Or maybe it is a problem of mingetty starting at VT that is already busy?

Comment 16 Peter Gückel 2009-02-13 20:20:21 UTC
The problem appears to be resolved in f11 alpha. I just tested and it worked correctly.

Comment 17 Matěj Cepl 2009-02-13 22:02:23 UTC
Wonderful, thank you for letting us know.