X completely corrupts VesaFB Virtual Terminals' image

Bug #40297 reported by kko
8
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Invalid
Undecided
Unassigned
xserver-xorg-video-mga (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

After further research I am able to give a more precise bug description. (See original description below.)

The bug:
- When the kernel uses vesafb at startup, everything works fine _until X has been started_. After that, vesafb output becomes completely garbled.

- The virtual terminals are there, only the display is messed up. I can even do "Ctrl-Alt-F1" (or any of F1-F6), do a (blind) login and then (in blind) issue "sudo reboot".

- Passing "vga = normal" to the boot loader avoids using vesafb, and yields usable virtual terminals!

- I did a study of my bootup with various vga-modes. _Each and every one of them_ works perfectly at bootup time, only when X starts do they become garbled.

- My Slackware install boots nicely with a vesafb setting (vga=773).

- I am using a Breezy install, details available in the original report. My machine's details also. My "uname -s -r -v -m -o" gives the kernel version as:
Linux 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686 GNU/Linux

Questions I have in mind:
- How / why does X mess up vesafb? Is it a new "feature" (that's not present on my Slackware install's older version)? In case it has anything to do with xorg.conf (the "Modules" section or something else), I am attaching my xorg.conf.

- How on earth was my system affected in the update in such a way that this problem emerged, where it previously hadn't shown itself? (Before the updates I did, I had been happily booting with "vga=773" !)

For the curious, here are the results of the bootup experiments:

vga=normal: Works fully, even after X has started.

All the following work too, but only until X starts.

8 bit colors:
vga=769 - 640x480: Messed up, small white dots / pitch black.
vga=771 - 800x600: same
vga=773 - 1024x768: same
vga=775 - 1280:1024: same

15 bit colors:
vga=784: Messed up, purple dots (of roughly the size of a normal vga mode letter). Rather psychedelic, in fact, since when you type, the patterns change. :-)
vga=787: same
vga=790: same
vga=793: same

16 bit colors:
vga=785: Messed up, green dots flashing with purple.
vga=788: skip
vga=791: skip
vga=794: Messed up, green dots.

24 bit colors
vga=786: Messed up, green flashing with bright green.
vga=789: skip
vga=792: skip
vga=795: Messed up, green / pitch black.

Revision history for this message
kko (kko) wrote : Synaptic's log files

.

Revision history for this message
kko (kko) wrote : Package versions used by debootstrap

.

description: updated
Revision history for this message
kko (kko) wrote : xorg.conf

.

description: updated
Revision history for this message
kko (kko) wrote :

Marking as confirmed based on reports at the ubuntuforums, URL: http://www.ubuntuforums.org/showthread.php?t=160006 .

Changed in xorg:
status: Unconfirmed → Confirmed
description: updated
Revision history for this message
kko (kko) wrote : Re: X completely corrupts VesaFB Virtual Terminals' image (also Dapper)

Based on a report at http://www.ubuntuforums.org/showthread.php?t=160006 suggesting that setting vesafb mode to match X resolution would fix this issue, I have tried setting my X resolution
back to 1280x1024 (from 1600x1200) and using a 1280x1024 vesafb mode, to no avail.

As a further note - along with installing the updates, I ran "sudo dpkg-reconfigure xserver-xorg", changing at least the max. resolution from 1280x1024 to 1600x1200. (My current xorg.conf is already attached to this bug report.)

I will attach Xorg.0.log and the output of "sudo hwinfo --framebuffer".

Revision history for this message
kko (kko) wrote : Xorg.0.log

Boot parameter vga=normal used, since I very much prefer to have usable VT's. If a log-file of X while passing the kernel a vesafb boot value would be useful, let me know.

Revision history for this message
kko (kko) wrote : Output of "sudo hwinfo --framebuffer"

.

Revision history for this message
kko (kko) wrote : Re: X completely corrupts VesaFB Virtual Terminals' image (also Dapper)

Reverting, will let the developers mark this as "confirmed".

Changed in xorg:
status: Confirmed → Unconfirmed
Revision history for this message
kko (kko) wrote :

Seemingly identical effects present after hibernation at bug 36904. Cause may be different, will not mark either as a duplicate at this time.

Revision history for this message
kko (kko) wrote :

There are numerous reports on seemingly identical issues, all related to the framebuffer VTs / consoles not working when X is run. This occurs with varying hardware (and varying kernel versions), so the issue may be wider than previously suspected, and possibly related to something that these occurrences have in common.

However, even as these reports have much in common, I am hesitant to mark any as duplicates, since the hardware varies (e.g. four different graphics cards), and because the cause may or may not be the same.

As I summarised these reports, I find it beneficial to attach the summary to each report. Apologies to recipients of Ubuntu Bugs & Ubuntu X SWAT for having to receive multiple copies of the same.

A brief summary follows:

Four reports, with the common behaviour that the framebuffer consoles stop working _as soon as X starts_:
- Bug 21416 - reported by felix.rommel. Acer Aspire 1350 with a Via KN400 Unichrome graphics card.
- Bug 29407 - unsure if original report is related or caused by a different issue, but all comments are related. Comments by Ignacio Lago Fontán, Compaq Evo N600c, ATI Radeon Mobility M6 LY; also by Thilo Six.
- Bug 40297 - reported by kko. Matrox G450 graphics card.
- Bug 42974 - reported by Richard Laager. HP dv800 with a GeForce Go 7400 graphics card.

A fifth report, with identical behaviour (fb stops working with X running), but only after hibernate + resume):
- Bug 36904 - reported by kamome with "dapper flight5 on a via mII12000".

A further report that may or may not be related, but lacks details (i.e. does the fb not work at all, or only stop working after X has been started? what equipment?):
- Bug 42168 - reported by vertiger.

Revision history for this message
kko (kko) wrote :

Is this significant? Both in bug 21416 and bug 40297 the Xorg.0.log shows the following:

(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
Skipping "/usr/X11R6/lib/modules/libfb.a:fbmmx.o": No symbols found
(II) Module fb: vendor="X.Org Foundation"
 compiled for 6.8.2, module version = 1.0.0
 ABI class: X.Org ANSI C Emulation, version 0.2

On my system, libfb.a has the following details:
 -rw-r--r-- 1 root root 214592 2005-10-10 21:10 libfb.a

Even mc complains of "no symbols" for fbmmx.o if I take a look at libfb.a.

Revision history for this message
kko (kko) wrote :

A further comment related to the previous.
File libfb.a belongs to package xserver-xorg-core:
$ dpkg -S libfb.a
xserver-xorg-core: /usr/X11R6/lib/modules/libfb.a

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

kko: have you tried with later releases? Feisty herd5 was just released, and after that a new mga-driver got in so you could try them.

Changed in xserver-xorg-video-mga:
status: Unconfirmed → Needs Info
Revision history for this message
kko (kko) wrote :

Thank you for the information.

I must say that I am now comfortably running an install of Kubuntu Dapper (apparently with no special vga options for grub), and so am unlikely to at this point take the trouble of fixing something that isn't broken.

I will report back, however, if I decide to e.g. try the Feisty live-CD.

Revision history for this message
kko (kko) wrote :

Bug is not present on current Dapper.

Changed in xserver-xorg-video-mga:
status: Needs Info → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

kko: did you mean that this bug isn't present in current Feisty? You already said before that Dapper is fine :)

Revision history for this message
kko (kko) wrote :

Umm, no. Haven't tested on Feisty. What my last two comments mean, on Dapper, is this:
- First, with boot parameters amounting to "vga=normal" ("no special vga options", i.e. vesafb not used), this problem isn't actual and can't be tested.
- Second, after I passed "vga=791" to the kernel at boot time, the vesafb worked correctly, showing the expanded console mode (and the splash appeared accordingly smaller), _and_, more importantly, the consoles continued to work even after X had been started.

Thanks for your concern, though.

PS. You may notice I edited the title earlier to remove the reference to Dapper. I hadn't myself met the problem on Dapper, at the time - only reports of it from other people. (I have since stopped referencing other people's experiences in my reports. ;-) So, I can't personally verify that the problem existed on Dapper, but if it did, an update has fixed this.

Revision history for this message
kko (kko) wrote :

The activity log doesn't show who added the task for "...-ati" to this bug.

Anyone able to share some light on that, and if the bug is fixed also for ati? (There are probably other reports originally reported against ati, too.)

Revision history for this message
kko (kko) wrote :

Since there is no information whatsoever relating to the "...-ati" -task in this bug report, in the interest of bug database maintenance I am going to mark that task as "rejected". As mentioned, there are other reports (also referenced here) on ATI cards, and tracking the possible issue is probably best done where at least some information already exists. (Odds are that also some of those issues may have been fixed, but I can't really tell.) If anyone has cause to continue tracking the ATI issue here, please revert the status and try to provide the relevant information in the report.

Changed in xserver-xorg-video-ati:
status: Unconfirmed → Rejected
Revision history for this message
eppy 1 (choppy121212) wrote :

Hi, I have an ATI Radeon 7200, using the open source drivers. If I change to virtual console 1 (ctrl + alt +f1) or any of the others, I get very strange things going on. Text in the wrong places, the blinking cursor not in the correct position, strange colors, etc.

All my virtual consoles are corrupted and display very weirdly, and this makes it impossible for me to edit text files like xorg.conf. I'm not sure what info to provide but I can take some pictures and upload them here.

I haven't modified anything but this issue comes up out of the box for me on a fully updated Feisty Fawn. I didn't use Edgy, but I had no issues with this on Dapper Drake (which also had usplash) or previous.

Revision history for this message
eppy 1 (choppy121212) wrote :

Bug 73826 seems related to this---the open source ati/radeon and fglrx drivers cause unusable virtual terminals in Edgy

Revision history for this message
eppy 1 (choppy121212) wrote :
Revision history for this message
kko (kko) wrote :

I'll see if my advice can be of any use.

From the bug report you referenced it seems that disabling splash from kernel boot options (in grub) has helped the reporters. You could try the same to see if your screen corruption is also caused by the splash, in which case it's probably useful to continue tracking the issue in that report. (Apparently - I don't know - they are still running a _framebuffer_ virtual console at this point.)

If disabling splash doesn't help, you can check if the corruption is instead caused by X by booting to text mode, and verifying that you are still running a framebuffer virtual console (instead of the "normal" or "extended" modes). If the corruption occurs when X is running, but is absent without X, your issue would seem related to this bug.

Hope this helps.

Revision history for this message
eppy 1 (choppy121212) wrote :

Hi kko, thanks for replying so quickly,

I just installed feisty's new kernel packages (2.6.20-13->2.6.20-14 before reading your response, so I restarted and the problem was gone. Hmm...

I will keep the hints in mind if this happens again and respond back here.

Thanks again

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.