Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98804 - ncurses or midnight are broken with frame buffer
Summary: ncurses or midnight are broken with frame buffer
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-12 12:53 UTC by Massimiliano Adamo
Modified: 2010-09-19 22:04 UTC (History)
2 users (show)

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


Attachments
dialog sample (dialog.png,26.86 KB, image/png)
2005-07-12 13:30 UTC, Massimiliano Adamo
Details
midnight commander (mc.png,231.19 KB, image/png)
2005-07-12 13:31 UTC, Massimiliano Adamo
Details
emerge info (emerge_info,2.04 KB, text/plain)
2005-07-16 16:30 UTC, Massimiliano Adamo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Massimiliano Adamo 2005-07-12 12:53:03 UTC
ncurses or midnight are broken with frame buffer.
The visualization is really bad.
I don't know if it's some defect in the frame buffer or if it's possible any
kind of customization.
Under X curses and midnight commander works properly.

Reproducible: Always
Steps to Reproduce:
1. install frame buffer and try running Midnight commander or any application
like dialog.

Actual Results:  
visualization is broken
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 12:54:21 UTC
Hmm, could you attach some screenshot?
Comment 2 Massimiliano Adamo 2005-07-12 13:15:31 UTC
sure I can.
can you please give me a suggestion how to make a a screenshot from console??
can I cat /dev/fb/0 ?? and what kind of file I get? :-)
... I'l try to have a look on freshmeat if there is any package for that...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 13:19:55 UTC
(In reply to comment #2)
> sure I can.
> can you please give me a suggestion how to make a a screenshot from console??

What about 'emerge media-gfx/fbgrab' ?
Comment 4 Massimiliano Adamo 2005-07-12 13:30:14 UTC
Created attachment 63264 [details]
dialog sample

sample dialog menu
Comment 5 Massimiliano Adamo 2005-07-12 13:31:37 UTC
Created attachment 63265 [details]
midnight commander

this is midnight commander.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-13 03:24:59 UTC
Works fine here with vesafb (amd64) ... fb driver issue ?
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-07-16 15:58:05 UTC
Please post "emerge info" output to every bug that you file.

Which fb driver are you using?

Does disabling fbsplash help at all?
Comment 8 Massimiliano Adamo 2005-07-16 16:30:04 UTC
Created attachment 63576 [details]
emerge info

result from emerge info
Comment 9 Massimiliano Adamo 2005-07-16 16:34:04 UTC
(In reply to comment #7)
> Please post "emerge info" output to every bug that you file.
> 
> Which fb driver are you using?
> 
> Does disabling fbsplash help at all?

I am using "standard" vesafb (NOT vesabf-tng)
Now I have tried withou fbsplash but it doesn't help.
I have also tried with an old kernel (without gensplash at boot) but it doesn't
help as well.
Comment 10 Alex Gerber 2005-07-21 04:27:38 UTC
fbconsole is broken for me also... Same simptoms - amd64 w/ vesafb (not -tng).
MC, alsamixer and kernel's menuconfig are all borked  (not to mention "most").
Tried 2.6.12-gentoo-r4, -ck3, -nitro4. 2.6.11 kernel works perfectly. (sorry
don't have my emerge --info handy :( )
Comment 11 Boris "borfig" Figovsky 2005-07-24 12:41:44 UTC
same here, w/ and w/o fb.
I do remember having that weird problem during my last Gentoo installations
(when make menuconfig'ing...)
I am using v5.4.20050319 with everything disabled except unicode.
can it be a wrong terminal definition?
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2005-07-25 03:39:01 UTC
Is this issue still present on 2.6.13-rc3?
Comment 13 Thomas Dickey 2005-08-07 12:51:27 UTC
Try setting NCURSES_NO_UTF8_ACS environment variable.
See the ncurses manpage.
Comment 14 Massimiliano Adamo 2005-08-07 15:28:20 UTC
(In reply to comment #12)
> Is this issue still present on 2.6.13-rc3?

To be honest I didn't try.
Usually I use gentoo-sources and I never installed other kernels

Comment 15 Massimiliano Adamo 2005-08-07 15:31:10 UTC
(In reply to comment #13)
> Try setting NCURSES_NO_UTF8_ACS environment variable.
> See the ncurses manpage.

I am not quit sure if I did right.
I exported NCURSES_NO_UTF8_ACS either to '0' or to '1' and tried to run something.
The problem is still there.

Comment 16 Daniel Drake (RETIRED) gentoo-dev 2005-08-07 15:40:13 UTC
(In reply to comment #14)
> To be honest I didn't try.
> Usually I use gentoo-sources and I never installed other kernels

If this is a kernel bug, then the first thing to do is reproduce on the latest
development kernel (currently vanilla-sources-2.6.13_rc6)

If you could compile it and boot it just to test if this bug is still there, it
would be appreciated.

If the issue still exists there, we can then contact the upstream developers.
Comment 17 Massimiliano Adamo 2005-08-08 08:14:44 UTC
(In reply to comment #16)
> If this is a kernel bug, then the first thing to do is reproduce on the latest
> development kernel (currently vanilla-sources-2.6.13_rc6)
> 
> If you could compile it and boot it just to test if this bug is still there, it
> would be appreciated.
> 
> If the issue still exists there, we can then contact the upstream developers.

I have tried with linux-2.6.13-rc5-mm1
The problem is still no solved.
Comment 18 Daniel Drake (RETIRED) gentoo-dev 2005-08-14 03:33:38 UTC
Are you using a UTF-8 locale? Please post "locale" output.

Is UNICODE set to yes or no in /etc/rc.conf?
Comment 19 Simon Toth 2005-08-14 13:56:06 UTC
(In reply to comment #18)
> Are you using a UTF-8 locale? Please post "locale" output.
> 
> Is UNICODE set to yes or no in /etc/rc.conf?

Yes this is the problem, if UNICODE is set to yes the output is broken. Doesn't
matter if framebuffer is used, or what version of kernel/curses/other is used.
Comment 20 Massimiliano Adamo 2005-08-14 14:03:01 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > Are you using a UTF-8 locale? Please post "locale" output.
> > 
> > Is UNICODE set to yes or no in /etc/rc.conf?
> 
> Yes this is the problem, if UNICODE is set to yes the output is broken. Doesn't
> matter if framebuffer is used, or what version of kernel/curses/other is used.

yes, this was the problem :-(
I have unset UNICODE and now it's ok.
Comment 21 William Waisse 2010-09-19 22:04:27 UTC
 I recently hitted the same problem, borked menuconfig very hard to use with [0m [39m

 For informationm in my case I finally found this was due to using a screen in another screen , on 2 different servers.

 When connecting directly to the "final" server, manke menuconfig and other curses programs were ok, normal, no more [0m [39m .