LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-06-2010, 11:58 AM   #1
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Rep: Reputation: 25
how to change color depth from 24 to 16 ?


Ok I've tried editing xorg.conf, screen section which looks like this

Code:
Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	Monitor    "aticonfig-Monitor[0]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
but without any luck. I need to use the 16 bit color depth, and if I change the value 24 to 16 I get an error when restarting and i have to change it back to 24.

I've already searched on internet about this but although I've found similar problems I've didn't found a conclusive answer yet.

Last edited by Tux Rules; 10-06-2010 at 01:23 PM.
 
Old 10-08-2010, 10:01 AM   #2
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
ok I can change the Display subsection, Depth parameter from 24 to 16. How can I test to see if I'm really using the 16 bit color depth ?
 
Old 10-08-2010, 10:29 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You should probably look at Xorg.log.

Why exactly would you want to change to 16-bit color depth ?
 
Old 10-30-2010, 12:32 PM   #4
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by H_TeXMeX_H View Post
You should probably look at Xorg.log.

Why exactly would you want to change to 16-bit color depth ?
Well there's this cool game named Commandos - Destination Berlin. The thing it's that looking through the scope view, because I run the game with wine, the view it's pretty damn colorful more than it should be that's for sure. So I went to wine HQ to see if there's a solution for that and there I saw that the only plausible thing to do it's to switch from using 24 bit color depth to 16.

Last edited by Tux Rules; 10-30-2010 at 12:34 PM.
 
Old 10-30-2010, 12:46 PM   #5
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
Quote:
Originally Posted by Tux Rules View Post
ok I can change the Display subsection, Depth parameter from 24 to 16. How can I test to see if I'm really using the 16 bit color depth ?
Run the game. If it's still acting funny then you're likelly still in 24bit color.
 
Old 10-30-2010, 01:38 PM   #6
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by fbsduser View Post
Run the game. If it's still acting funny then you're likelly still in 24bit color.
I've did that and it's still acting funny 8-) so I guess modifing the display subsection color depth didn't counted much
 
Old 10-30-2010, 01:50 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
So what is your xorg.conf now ?
 
Old 10-30-2010, 02:27 PM   #8
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
well it's pretty much like this

Code:
Section "ServerLayout"
	Identifier     "aticonfig Layout"
	Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"
	Identifier   "aticonfig-Monitor[0]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Monitor"
	Identifier   "0-CRT2"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
	Option	    "PreferredMode" "1280x1024"
	Option	    "TargetRefresh" "75"
	Option	    "Position" "0 0"
	Option	    "Rotate" "normal"
	Option	    "Disable" "false"
EndSection

Section "Device"
	Identifier  "aticonfig-Device[0]-0"
	Driver      "fglrx"
	Option	    "Monitor-CRT2" "0-CRT2"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
EndSection
I have to admit that after modifying the Display subsection Depth color depth from 24 to 16 at least at the first few seconds of playing the game the scope looked alright after that it becomed pretty damn colorful as always. So I guess the secret lays in changing the DefaultDepth but as I've already specified if I do that I get a huge xorg error when I restart.

Last edited by Tux Rules; 10-30-2010 at 02:52 PM.
 
Old 10-30-2010, 02:27 PM   #9
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
well it's pretty much like this

Code:
Section "ServerLayout"
	Identifier     "aticonfig Layout"
	Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"
	Identifier   "aticonfig-Monitor[0]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Monitor"
	Identifier   "0-CRT2"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
	Option	    "PreferredMode" "1280x1024"
	Option	    "TargetRefresh" "75"
	Option	    "Position" "0 0"
	Option	    "Rotate" "normal"
	Option	    "Disable" "false"
EndSection

Section "Device"
	Identifier  "aticonfig-Device[0]-0"
	Driver      "fglrx"
	Option	    "Monitor-CRT2" "0-CRT2"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
EndSection
I have to admit that after modifying the Display subsection Depth color depth from 24 to 16 at least at the first few seconds of playing the game the scope looked alright after that it becomed pretty damn colorful as always. So I guess the secret lays in changing the DefaultDepth but as I've already specified if I do that I get a huge xorg error when I restart.

Last edited by Tux Rules; 10-30-2010 at 02:52 PM.
 
Old 10-30-2010, 03:21 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
What error ? Can you post it ?

You may need to add some resolution options for it.
 
Old 10-30-2010, 03:49 PM   #11
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by H_TeXMeX_H View Post
What error ? Can you post it ?

You may need to add some resolution options for it.
sure if I change the DefaultDepth from 24 to 16 after I rebot I get something like that

Code:
Failed to start x sever 
(your graphical interface) 
it is likely that it is not 
set up correctly. Would you like 
to view the x server output 
to diagnose the problem ?

and I choose yes, why not heh 
8-) and at the error lines 
I get something like

(EE) fglrx(0): Given depth(16) is not supported by fglrx driver
(EE) fglrx(0): PreInitVisual failed
(EE) fglrx(0): PreInit failed
(EE) fglrx(0): Screen(s) found but none have unusable configuration

followed by other meaningless lines that at least are not flaged as errors but most likely are a consequence to those errors

Last edited by Tux Rules; 10-30-2010 at 04:40 PM.
 
Old 10-31-2010, 04:42 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, looks like fglrx is crap:

Code:
(EE) fglrx(0): Given depth(16) is not supported by fglrx driver
Maybe try radeon, but then the game in wine will probably not work.
 
Old 10-31-2010, 06:06 AM   #13
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by H_TeXMeX_H View Post
Well, looks like fglrx is crap:

Code:
(EE) fglrx(0): Given depth(16) is not supported by fglrx driver
Maybe try radeon, but then the game in wine will probably not work.
As I observed my display can switch from 24 display color depth to 16 if the application demands it, I don't really get it why it doesn't wanna start in 16 bit color depth, and sadly the game really lacks in setups, it doesn't even have a video setup for resolution. Anyway it's not such of a big deal.

Last edited by Tux Rules; 10-31-2010 at 07:01 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to write script to change monitor rez and color depth perlabsrat Linux - Newbie 7 03-31-2009 11:25 AM
Unable To Change Color Depth linuxadickt Linux - Software 4 05-15-2005 09:51 PM
How can I change the screen color depth in X? Xavius Linux - General 1 01-03-2005 10:48 AM
How do I change color depth setting from root login? everest Debian 12 07-07-2004 04:20 PM
change color depth in fedora core 2 paperdiesel Linux - Software 1 07-06-2004 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:44 PM.

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