Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old October 21st, 2007   #1
El Chupacabras
5 Cups of Ubuntu
 
El Chupacabras's Avatar
 
Join Date: Oct 2007
Location: Florida, United States
Beans: 28
Ubuntu 8.04 Hardy Heron
Exclamation Guide: Blank TTY in Gutsy/Hardy?

There's a slight problem with the init scripts in Gutsy/Hardy involving its new kernel. It appears that the framebuffer has been incorporated into the kernel, instead of being added as a separate kernel module.

So what, you ask? If you press ctrl+alt+F1 through ctrl+alt+F6, you're supposed to see a terminal, much like a fullscreen version of gnome-terminal. However, (and I'm not sure how prevalent this issue is) in Gutsy/Hardy, you may see one of the following:
  • If your monitor REALLY old, it might fry. (you may want to press ctrl+alt+F7 or ctrl+alt+F9 before this happens)
  • If your monitor is semi-old, it might just display nothing
  • if your monitor is modern, you will see "Out of Range" upon it
    • or a black screen with a cursor blinking
    • ... or a black screen with nothing on it.
These are all caused by the same bug, which is marked CRITICAL in launchpad, so hopefully an update will fix it soon. (see it here).

This guide may or may not cause your resolution to go a bit wonky until you get the settings right, but it shouldn't completely break X. If you see that you get an error message, please press ok. The X server did that to me a few times, but it reverted to VESA (crappy graphics mode), and allowed me to log in once more. I can't guarantee this won't break your installation, but I don't think it should. As a final word of warning: please don't do this if you're afraid to muck around in your system. If that's you, please wait for the Ubuntu devs to fix this.

However, I think I may have found a solution whilst looking through launchpad, and mixing and matching others' methods of solving this issue.

NOTE: Wherever it says `$ sudo vi «text file»`, you can either type it as you see it and use vi, or if you don't know how to use it, just use `sudo gedit` (Ubuntu) or `sudo kate`(Kubuntu), instead of `sudo vi`.

There are four parts to this solution:

STEP 1 - Edit /etc/modprobe.d/blacklist-framebuffer.

$ sudo vi /etc/modprobe.d/blacklist-framebuffer
It should look like:
Code:
 # Framebuffer drivers are generally buggy and poorly-supported, and cause
# suspend failures, kernel panics and general mayhem.  For this reason we
# never load them automatically.
blacklist aty128fb
blacklist atyfb
blacklist radeonfb
blacklist cirrusfb
blacklist cyber2000fb
blacklist cyblafb
blacklist gx1fb
blacklist hgafb
blacklist i810fb...
Find the fb module corresponding to your video card's driver. You may have to experiment, but its generally straightforward. If you use a radeon driver, try radoenfb. Try vesafb first if you have another card. It's a generic video driver, and may be what you're supposed to use. Comment out the line that blacklists the module you have chosen. (This means you should add a # before the line).

WARNING: If you use the proprietary nvidia driver, save yourself some time and comment out vesafb. nvidiafb is the kernel module for the open-source nv driver's framebuffer, with which the proprietary driver is not compatible. Maybe it should be called nvfb to be more consistent?

You may or may not have to comment out vga16fb. If you try with vesafb and it still fails, try again with your card's specific fb module, and if it's still failing, add vga16fb as well. Be warned though- vga16 might make windows in compiz appear white after you use a tty.

STEP 2 - Edit /etc/initramfs-tools/modules
$ sudo vi /etc/initramfs-tools/modules
It shoud look like:
Code:
# List of modules that you want to include in your initramfs.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
Add the following after the last line.
Code:
fbcon
vesafb
Again, vesafb is what I used. Remember the driver you uncommented for step 1? Use that one. Also, if you un-blacklisted vga16fb above, type it in right after vesafb. It probably isn't necessary though (At least, it wasn't for me...)

STEP 3 - Update the init scripts. This step is fortunately, simple.
$ sudo update-initramfs -u -k all

STEP 4- Edit /etc/grub/menu.lst
by now you should know:
$ sudo vi /etc/grub/menu.lst

Scroll down until it says: ## ## END DEFAULT OPTIONS ##
go to the first line that starts with Kernel,
Code:
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=763f09b5-cf76-42a1-8dd2-123a2739b3ab ro quiet splash
and select a resolution from below:

(Image Coutesy of Zenwalk Wiki)

Remember the decimal value for it, (the one that has no 0x at the start) and change the line that says kernel to something like:
Code:
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=763f09b5-cf76-42a1-8dd2-123a2739b3ab ro quiet splash vga=###
(Replace the ### with the aforementioned number)

The vga=XXX parameter allows you to select the resolution at which you will see your tty. Apparently the default setting may be too low for some monitors.

Conclusion-
I have an Nvidia GeForce 7600 GS, and this worked for me, after a bit of testing. I can now use TTY 1-6. I'm not sure if there are any negative side effects to this, but at least the terminals work again. Post your feedback below. I won't be able to get back to you until Tuesday, but if I get a chance to pop in on my free time, I'll try and answer any questions/remarks.

For simplicity's sake maybe the framebuffer should be compiled as a module in the future?
Attached Thumbnails
Click image for larger version

Name:	screenshot2.png
Views:	3691
Size:	22.2 KB
ID:	47213  

Last edited by El Chupacabras; May 3rd, 2008 at 01:57 PM.. Reason: Updating for Hardy Heron
El Chupacabras is offline  
Old October 23rd, 2007   #2
patrickthebold
5 Cups of Ubuntu
 
Join Date: Jul 2006
Beans: 40
Re: TTY Blank in Gutsy? Click here!

My terminals are not blank, but sort of a black and white scrambled mess. Also mine worked fine before I installed nvidia-glx. Do you think this is the same bug or something different. I tried a similar solution to your post, and it did not work. Basically I did everything except pass the vga=### parameter. I will try again with the parameter when I get home.
patrickthebold is offline  
Old October 24th, 2007   #3
patrickthebold
5 Cups of Ubuntu
 
Join Date: Jul 2006
Beans: 40
Re: TTY Blank in Gutsy? Click here!

So I followed the instructions and I my terminals are still scrambled but a different color, I did not try all of the vga codes yet, so I guess I can play with it some more. I also didn't try vgafb. Its kinda of annoying when there are several dozen options and a reboot is required.
patrickthebold is offline  
Old November 12th, 2007   #4
Farax
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 3
Re: TTY Blank in Gutsy? Click here!

Hi, i followed every step and all my terminals were still black with blinking underscore, plus my X became black + underscore.

OK, i've fixed all the changes in the files, so i'm at the starting point and i've noticed that my ctrl + alt + F1 works normally(i see the X starting procedure without any problems) but all F2-F6 are dead (black screen + underscore). Do I understand correctly that it's not a graphics bug since one of terminals is alive?

Last edited by Farax; November 12th, 2007 at 01:36 PM..
Farax is offline  
Old November 15th, 2007   #5
piccobello
First Cup of Ubuntu
 
Join Date: Sep 2006
Beans: 7
Kubuntu 7.10 Gutsy Gibbon
Smile Re: TTY Blank in Gutsy? Click here!

Thanks a lot! I had the same problem, now I can see the ttys again!
On a thinkpad X31 I had to use radeonfb.
One thing that I still don't understand is that I don't see anything on the screen
between grub menu and x. I mean where are all the messages gone?
Is it a new "feature" of gutsy, or am I still missing something?
piccobello is offline  
Old November 16th, 2007   #6
cyberslayer
5 Cups of Ubuntu
 
Join Date: Nov 2006
Beans: 41
Ubuntu 9.04 Jaunty Jackalope
Re: TTY Blank in Gutsy? Click here!

I tried this method for the vesafb and radeonfb driver and although the tty's are visible now and can be used, switching to and from Xorg with ctrl-alt-F7/F1 occasionally fails and the screen goes black and the system locks up. At this point, I cannot switch back to the tty or Xorg. This happens with both the vesafb and radeonfb drivers (I have not tested the others). Anyone else have this problem?

Thanks for posting this guide.
cyberslayer is offline  
Old November 29th, 2007   #7
th3t1nm4n
Just Give Me the Beans!
 
Join Date: Sep 2005
Beans: 72
Send a message via AIM to th3t1nm4n
Re: Guide: Blank TTY in Gutsy

I think step 4 should be:
sudo vi /boot/grub/menu.lst
or
gksudo gedit /boot/grub/menu.lst
__________________
NeonPulse
Gateway P-6831FX Laptop | 3GB RAM | Core2 Duo CPU T5450 | NVIDIA GeForce 8800M GTS
Desktop | 4GB RAM | AMD Phenom X4 2.6GHz | Radeon 4870
th3t1nm4n is offline  
Old December 14th, 2007   #8
exjinn
5 Cups of Ubuntu
 
exjinn's Avatar
 
Join Date: Nov 2005
Location: Philadelphia, Pa
Beans: 34
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to exjinn Send a message via Yahoo to exjinn Send a message via Skype™ to exjinn
Re: TTY Blank in Gutsy? Click here!

Just wanted extend my thanks for helping me fix this issue. Works just fine with the radeonfb and vesafb!
__________________
The Urban Mage | Exjinn.Net | Acer Aspire 6530 | AMD Turion X2 2.0ghz | Crunchbang #!
exjinn is offline  
Old January 12th, 2008   #9
amikrop
First Cup of Ubuntu
 
amikrop's Avatar
 
Join Date: Nov 2007
Location: Greece
Beans: 1
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to amikrop Send a message via Yahoo to amikrop Send a message via Skype™ to amikrop
Re: TTY Blank in Gutsy? Click here!

Greetings. I have a GeForce FX Go5650 and I use the nvidia-glx-new driver. I followed your guide, and my problem is solved. TTYs are OK and look nice (with the graceful framebuffer support). I chose vga=773. Thanks a lot for publishing this, it was very helpful

PS: I hope the respective launchpad bug will be fixed soon.
__________________
Programs must be written for people to read, and only incidentally for machines to execute.
amikrop is offline  
Old February 3rd, 2008   #10
H_Plow
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 9
Re: TTY Blank in Gutsy? Click here!

THIS IS A DUPLICATE OF thread #105 in "ATI 8.1 Drivers -- Post Your results " (#671726), trying to post here to find a solution...

Ubuntu GUTSY AMD64 Desktop
Kernel 2.6.22-14-generic (also tried on a 2.6.20.3-custom..)

Using fglrx 8.1 here on my HD2600XT 256MB PCI-E

My situation:

- fglrx installed and working "properly" (Note: I have disabled ATIEVENTSD on startup to fix the famous "CTRL+ALT+BACKSPACE" problem);
- compiz is working "like a charm"

but..........

TTY console are unaccessible..

Before or after GDM LOGIN, if I try to access any TTY (CTRL+ALT+F1-F6) the screen goes black (whatever the monitor sync LED remains always ON...not blinking) and I can't neither go back to X (CTRL+ALT+F7-F9) nor switch to another console (CTRL+ALT+F1-F6)...can only hard reboot or ALT+R SIST+S+U+B to reboot.....

I've tried to:

1) unblacklist "vesafb" driver:
$ sudo gedit /etc/modprobe.d/blacklist-framebuffer (and put a # before the vesafb line..);

2) $ sudo gedit /etc/initramfs-tools/modules
and add lines "fbcon" and "vesafb" lines

3) update the init scripts:
$ sudo update-initramfs -u -k all

4) add a vga=XXX as a kernel parameter in /boo/grub/menu.lst

Results are:
- I can see usplash (but this wasn't a problem yet before...)
- I can see "text lines" (system messages) during bootup...after the usplash
- I CANNOT STILL ACCESS THOSE FU**IN TTY CONSOLES...like before!!!

This is rather frustrating....
Any suggestion from the experts?
Thanks.
H_Plow is offline  
 

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 06:28 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry