Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105529 - [vesafb-tng] printing "^[[41mXXXXXXXXX^[[K^[[0m" results in garbage
Summary: [vesafb-tng] printing "^[[41mXXXXXXXXX^[[K^[[0m" results in garbage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-10 13:30 UTC by Dima Ryazanov
Modified: 2007-01-26 08:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot (fb.png,352.78 KB, image/png)
2005-09-10 13:32 UTC, Dima Ryazanov
Details
Screenshot without fbsplash (fb2.png,352.78 KB, image/png)
2005-09-17 23:20 UTC, Dima Ryazanov
Details
Screenshot without fbsplash (fb2.png,352.78 KB, image/png)
2005-09-17 23:23 UTC, Dima Ryazanov
Details
Screenshot without fbsplash (fb2.png,9.29 KB, image/png)
2005-09-17 23:31 UTC, Dima Ryazanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2005-09-10 13:30:37 UTC
When a program prints text with background color and erases the rest of the   
line, all of the text (and other parts of the screen) get replaced by  
"garbage": 1px-wide vertical lines, colored blue-green-red. (See attached  
screenshot.)   
 
If I switch to a different terminal and go back, or move over the mouse  
pointer (from gpm), the text becomes normal.  
I thought this might be hardware-related, but it's probably not - since I can  
take a screenshot (from /dev/fb0), and still see the garbage there.  
 
This does not happen if I use the radeonfb driver. (But radeonfb has other  
problems, unfortunately.)  
 

Reproducible: Always
Steps to Reproduce:
1. Start Linux with vesafb as the framebuffer driver. I used options   
"video=vesafb:ywrap,mtrr,1280x1024-24@60", but they don't seem to matter.   
2. In text mode, clear screen, and run "echo -e \\e[41mXXXXXXXXX\\e[K\\e[0m".  
  
Actual Results:  
First "X" is visible, but the rest are replaced with garbage (as well as parts 
of the screen at the left and at the right of the line). 

Expected Results:  
A line of X's with the specified background color. 
 

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,   
glibc-2.3.5-r1, 2.6.13-gentoo i686)   
=================================================================   
System uname: 2.6.13-gentoo i686 AMD Athlon(tm) XP 2000+   
Gentoo Base System version 1.6.13   
ccache version 2.3 [disabled]   
dev-lang/python:     2.3.5   
sys-apps/sandbox:    1.2.12   
sys-devel/autoconf:  2.13, 2.59-r6   
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5   
sys-devel/binutils:  2.16.1   
sys-devel/libtool:   1.5.16   
virtual/os-headers:  2.6.8.1-r2   
ACCEPT_KEYWORDS="x86"   
AUTOCLEAN="yes"   
CBUILD="i686-pc-linux-gnu"   
CFLAGS="-march=athlon-xp -O3 -pipe"   
CHOST="i686-pc-linux-gnu"   
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"   
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"   
CXXFLAGS="-march=athlon-xp -O3 -pipe"   
DISTDIR="/usr/portage/distfiles"   
FEATURES="autoconfig distlocks sandbox sfperms strict"   
GENTOO_MIRRORS="ftp://mirror.usu.edu/mirrors/gentoo/   
ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/   
http://gentoo.noved.org/"   
LANG="en_US.UTF-8"   
LINGUAS="en uk ru de es"   
PKGDIR="/stuff/pkg"   
PORTAGE_TMPDIR="/var/tmp"   
PORTDIR="/usr/portage"   
SYNC="rsync://rsync.gentoo.org/gentoo-portage"   
USE="x86 3dnow X Xaw3d aalib acl acpi aim alsa apache2 arts artswrappersuid   
audiofile avi bash-completion bcmath berkdb bitmap-fonts cdparanoia cdr crypt   
cups curl dga divx4linux dvd dvdr eds emboss encode esd ethereal fam fbcon   
flac flash foomaticdb gd gdbm gif glitz gphoto2 gpm gstreamer gtk gtk2 hal icq   
imagemagick imlib ipv6 java javascript jikes jpeg jpeg2k junit kde   
kdeenablefinal ldap lesstif libg++ libwww live lm_sensors logitech-mouse mad   
mikmod mmx mozilla mp3 mpeg msn mysql ncurses nls nptl offensive ogg oggvorbis   
openexr opengl oscar pam pcre pdflib perl png povray python qt quicktime   
rdesktop readline real rtc ruby samba scanner sdl session sftplogging slang   
slp snmp spell sse ssl svg symlink tcltk tcpd tetex theora tiff timidity   
truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs wmf xine   
xinerama xml xml2 xmms xprint xscreensaver xv xvid yahoo zeroconf zlib   
video_cards_radeon linguas_en linguas_uk linguas_ru linguas_de linguas_es   
userland_GNU kernel_linux elibc_glibc"   
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY   
  
 
I've had this problem for quite a while - since kernel 2.6.7, maybe earlier. 
My video card is ATI Radeon 7000.
Comment 1 Dima Ryazanov 2005-09-10 13:32:55 UTC
Created attachment 68138 [details]
Screenshot
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2005-09-11 07:36:00 UTC
Doesn't seem reproducible with plain old vesafb
Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2005-09-11 14:00:30 UTC
Could you please try disabling fbsplash (splash_util -c off should be enough,
you don't have to compile it out of the kernel) and checking whether the problem
still occurs?
Comment 4 Dima Ryazanov 2005-09-17 23:18:24 UTC
I tried... But without the fbsplash, everything is still the same. 
Comment 5 Dima Ryazanov 2005-09-17 23:20:13 UTC
Created attachment 68711 [details]
Screenshot without fbsplash

Here's a screenshot of the "make menuconfig" dialog, with fbsplash disabled.
Comment 6 Dima Ryazanov 2005-09-17 23:23:14 UTC
Created attachment 68712 [details]
Screenshot without fbsplash

Here's a screenshot of "make menuconfig" dialog, with fbsplash disabled.
Comment 7 Dima Ryazanov 2005-09-17 23:31:24 UTC
Created attachment 68713 [details]
Screenshot without fbsplash

Sorry... I keep posting the wrong screenshot.

This is a "make menuconfig" dialog with fbsplash disabled. Still, same
problems.
Comment 8 Dima Ryazanov 2006-01-04 13:06:50 UTC
Apparently, the problem was that the depth was set to 24 bits, instead of 32. With 32, everything works fine.
You might be able to reproduce my problems after running "fbset -depth 24".

I don't know if this should be considered a bug - I'll leave it open, just in case.
Comment 9 Michal Januszewski (RETIRED) gentoo-dev 2006-07-12 04:16:01 UTC
Is it still a problem with the latest gentoo-sources?
Comment 10 Dima Ryazanov 2007-01-26 08:25:00 UTC
Hm, seems fixed now.