Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st December 2006, 04:39 PM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
strange mc colors under console text mode

Hi all. When I run mc in console text mode without X11 running, the colors of mc's ncurses-based GUI are really strange. White shows as light-gray, so directories are the same color as ordinary files, instead of a bold white color. Yellow shows up as a rusty brown color. I really need to get this sorted, as I need directories to show up in bold white.

The thing is, when I run mc in a KDE konsole, all the coloring work right.

Anyone have any ideas what the problem is please?
Reply With Quote
  #2  
Old 1st December 2006, 04:58 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,619
Are you running in console text mode with framebuffer support? If so, that could be giving you a greater color depth than what KDE's konsole is using. I use the radeonfb framebuffer in console mode at 8-bit color depth, since I had some color issues with certain console apps when I used 24-bit depth. You're probably running X in 24-bit color depth, but I don't know if konsole uses that. I've seen some terminal emulators (like mrxvt) that can support 24-bit depth for the text, though it has to be compiled in as a special option.

If you aren't using a framebuffer in console mode, then I'm not sure what would be causing your problem. Does this color difference happen with just mc, or are there other console apps that have this issue?
Reply With Quote
  #3  
Old 12th December 2006, 06:29 PM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
Here is a part of /etc/X11/xorg.conf:

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 640 1200
EndSubSection
EndSection

So as you say, that is running in 24 bit mode. How do I check what color depth I'm using for the console please? This is on my laptop, and IIRC I did select frame buffering during the installation. So this could be the reason for my strange colors with mc.

Under debian 3.1 I did not have this problem with mc's colors. But I cannot remember whether FB was in use there.

Last edited by CD-RW; 13th December 2006 at 05:31 PM.
Reply With Quote
  #4  
Old 12th December 2006, 07:13 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,619
In console mode, run the 'fbset' command. Just running it with no options will display the current settings. See the fbset man page for more options. The color depth is a kernel parameter, which may be either specified in your /boot/grub/grub.conf file or in your /etc/modprobe.conf file. Depending on your video card, it will usually look something like this:

video=radeonfb:1024x768-24@85

The 1024x768 is the resolution, the 24 is the color depth, and the 85 is the vertical refresh rate (your framebuffer may be named something different from 'radeonfb').
Reply With Quote
  #5  
Old 13th December 2006, 05:33 PM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
Thankyou RP. I'll get back to you on this one, as I'm running KDE at the moment.
Reply With Quote
  #6  
Old 14th December 2006, 01:51 PM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
Strange things are happening here. When I boot my laptop and do 'fbset' I get the following error:
open /dev/fb0: No such file or directory.

If I look in /dev/ there are no fd0 .. fd7 device files created.

/etc/fb.modes exists though.

If I then run X11 as root with startx and shutdown the X11 server and go back into console mode, the device files now exist in /dev for fb0 .. fb7.

So now doing fbset in console mode after running X11 I get the following error:

ioctl FBIOGET_VSCREENINFO: Inappropriate ioctl for device



Is there some way to set the color depth for the video card (onboard SiS) as a kernel parameter?

my /boot/grub/grub.conf parameters for this kernel are:

kernel /boot/vmlinuz-2.6.18-1.2849.fc6 ro /root=/dev/hda6 acpi=off noapic nolapic vga=0

would the vga=0 make any difference to the colors? IIRC I used this on my debian 3.1r3 sarge installation without any mc color problems.
Reply With Quote
  #7  
Old 15th December 2006, 12:59 AM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,619
You need to find out how framebuffer support was enabled for your system: either built-in to the kernel or as a module. Also, you need to find out the name of the framebuffer (e.g. mine is radeonfb, yours will be different since you have a SiS chipset).
Reply With Quote
  #8  
Old 15th December 2006, 07:43 PM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
I've looked at openSuSE 10.1 on my main machine when in console mode. That does not seem to support framebuffers, but I still have proper colors for the mc display. I might even look for another rpm and see if that is the cause of the color problem.
Reply With Quote
Reply

Tags
colors, console, mode, strange, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot install in Graphical Mode, Forced into Text mode, an stuck with text mode!! yogeshnachnani Installation and Live Media 14 11th February 2009 06:57 AM
Cannot Login to Console(Text Mode) Peter_APIIT Installation and Live Media 19 7th March 2007 02:27 AM
console text mode shows fedora core 5 but fc6 installed jsanza@terra.es EOL (End Of Life) Versions 6 13th January 2007 09:10 PM
Text Mode console does not change back to GUI, savio_mit_glug Using Fedora 1 24th June 2006 04:54 PM
no text console, improper video mode? Beomoss Using Fedora 3 27th May 2006 09:56 AM


Current GMT-time: 08:23 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat