LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-07-2007, 04:38 AM   #1
dve
LQ Newbie
 
Registered: Dec 2006
Location: France
Distribution: Debian Testing
Posts: 22

Rep: Reputation: 15
Question Xorg running in grayscale?


Hello.
I have this (bizarre) request to see my system in grayscale. Is it possible to do it?
Can it be achieved by editing xorg.conf or rather by installing some software?
I use Dell Inspiron laptop with ATI's fglrx drivers, and using the built-in configurations and tweaking panels I am able to edit things like gamma correction and so on.

I know that in xorg.conf there are sections responsible for modes, but I don't know how to edit my file in order to 'go grayscale' with as many shades as possible.

Can it be done?

Thanks

(PS. I know this is a strange question...)
 
Old 09-07-2007, 08:52 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Can you not turn off the color on your monitor?
 
Old 09-07-2007, 10:56 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
http://www.x.org/archive/X11R6.8.0/doc/xorg.conf.5.html
Quote:
Display subsection
Visual "visual-name"
This optional entry sets the default root visual type. This may also be specified from the command line (see the Xserver(1x) man page). The visual types available for depth 8 are (default is PseudoColor):


StaticGray
GrayScale
StaticColor
PseudoColor
TrueColor
DirectColor

The visual type available for the depths 15, 16 and 24 are (default is TrueColor):


TrueColor
DirectColor

Not all drivers support DirectColor at these depths.

The visual types available for the depth 4 are (default is StaticColor):


StaticGray
GrayScale
StaticColor
PseudoColor

The visual type available for the depth 1 (monochrome) is StaticGray.
 
Old 09-08-2007, 02:59 AM   #4
dve
LQ Newbie
 
Registered: Dec 2006
Location: France
Distribution: Debian Testing
Posts: 22

Original Poster
Rep: Reputation: 15
Sure, thanks. At the moment, I've got
Code:
Section "Screen"
	Identifier	"aticonfig-Screen[0]"
	Device		"aticonfig-Device[0]"
	Monitor		"aticonfig-Monitor[0]"
	Defaultdepth	24
	SubSection "Display"
		Viewport	0	0
		Depth	4
		Visual "GrayScale"
	EndSubSection
EndSection
(And the
Code:
Visual "Grayscale"
is ignored by the system).
I understand that I need to have 8bpp mode, so I changed
Code:
Defaultdepth 24
to
Code:
Defaultdepth 8
- but with this modification my X won't start.

How should I write it then?
 
Old 09-08-2007, 08:34 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Looks like you are pretty close, but you put GrayScale in the 4 Bit display section not 8...

Code:
Section "Screen"
        Identifier      "Default Screen"
        Device          "nVidia Corporation NV40 [GeForce 6800]"
        Monitor         "Generic Monitor"
        DefaultDepth    8
        SubSection "Display"
                Depth           1
                Modes           "1280x1024" "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1280x1024" "1024x768"
        EndSubSection
        SubSection "Display"
                Visual "GrayScale"
                Depth           8
                Modes           "1280x1024" "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1280x1024" "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1280x1024" "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x1024" "1024x768"
        EndSubSection
EndSection
Other than that minor discrepancy it looks right..
Check your /var/log/Xorg.0.log for errors if X doesn't start, see if it gives a clue why..

cat /var/log/Xorg.0.log | grep EE

I haven't tried running GrayScale, so I can't confirm if this is entirely correct, but it looks right according to the docs..

Last edited by farslayer; 09-08-2007 at 08:37 PM.
 
Old 09-10-2007, 02:53 PM   #6
dve
LQ Newbie
 
Registered: Dec 2006
Location: France
Distribution: Debian Testing
Posts: 22

Original Poster
Rep: Reputation: 15
Yeah, it didn't work, I'll post the log tail in the next thread...
 
Old 09-11-2007, 04:13 AM   #7
dve
LQ Newbie
 
Registered: Dec 2006
Location: France
Distribution: Debian Testing
Posts: 22

Original Poster
Rep: Reputation: 15
Well, I guess it can not be done. The reason is that I use flgrx driver, which implies impossibility of using 8bpp displays.

Namely, the log tail looks like:

(EE) fglrx (0): Given depth (8) is not supported by fglrx driver.
(EE) fglrx (0): PostInitVisual failed.

and on...

Thanks for help anyway!

Best
 
Old 09-11-2007, 09:14 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Bummer. .

Well I had to try it, to see for myself. I made the change to the default depth, and the visual line and restarted X and it worked. if you want to shoot an email to farslayer at netzero.net (junk e-mail account) I'll send you a grayscale screen shot so you can at least see what it looks like.

reply here if you send an email since I don't normally check that account.
 
Old 09-14-2007, 05:33 AM   #9
dve
LQ Newbie
 
Registered: Dec 2006
Location: France
Distribution: Debian Testing
Posts: 22

Original Poster
Rep: Reputation: 15
Quite nice, man, but I can as well take a screenshot of my own desktop and
then make it grayscale using Gimp
I believe you, no need for proving anything.

However, my situation, as you've seen from xorg log is quite different.
 
Old 09-14-2007, 08:11 AM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
ATI cards using fglrx can only use 24 bit color. Change to the free radeon driver, switch the monitor to monochrome, or use another card.
 
Old 09-20-2007, 02:43 AM   #11
dve
LQ Newbie
 
Registered: Dec 2006
Location: France
Distribution: Debian Testing
Posts: 22

Original Poster
Rep: Reputation: 15
Won't go for changing monitor or switching it to anything - I'm using a laptop. As for free drivers, that's an option. I'll have to think about it.

Thanks.
 
Old 09-20-2007, 09:20 AM   #12
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
As for free drivers, that's an option. I'll have to think about it.
You'll actually try fiddling the modelines in xorg.conf but you have to "think about" changing "fglrx" to "radeon"?? You realize you already have the free driver right?

<mutter>
 
Old 09-21-2007, 04:29 PM   #13
dve
LQ Newbie
 
Registered: Dec 2006
Location: France
Distribution: Debian Testing
Posts: 22

Original Poster
Rep: Reputation: 15
As far as I remember, changing it (which I've already done quite a few times) causes X to crash.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to tell if you're running xorg or xfree86? beeblequix Linux - General 2 11-22-2006 08:43 PM
wrong grayscale with remote X to Solaris popeye2 Linux - Networking 0 04-29-2006 03:17 PM
.png to grayscale command bendeco13 Linux - General 2 03-18-2005 03:56 PM
Grayscale mode in X with depth 16 bacon22 Linux - General 2 04-17-2004 11:32 AM
Grayscale font smoothing in Gnome2... and KDE? myst Linux - Software 0 06-14-2003 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration