#### Archived

This topic is now archived and is closed to further replies.

# Changing bit depth in Linux?

This topic is 5215 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi! I''m already quite familiar with the XF86VidMode extension, but I noticed that it isn''t possible to change the bit depth through this extension. How do you do it then? Not that it is really important, but I''m just curious! cya, Drag0n ----------------------------- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook My future web presence: Dave''s Programming Resources

##### Share on other sites
in your XFree86 config file ( normaly /etc/X11/XF86Config ), in the "Screen" Module, you have to write something like this:

Section "Screen"	Identifier "Screen0"	Device     "Card0"	Monitor    "Monitor0"	DefaultDepth      24	SubSection "Display"		Depth     1	EndSubSection	SubSection "Display"		Depth     4	EndSubSection	SubSection "Display"		Depth     8	EndSubSection	SubSection "Display"		Depth     15	EndSubSection	SubSection "Display"		Depth     16	EndSubSection	SubSection "Display"		Depth     24	EndSubSectionEndSection

##### Share on other sites
quote:
Original post by 666_1337
in your XFree86 config file ( normaly /etc/X11/XF86Config ), in the "Screen" Module, you have to write something like this:

Section "Screen"	Identifier "Screen0"	Device     "Card0"	Monitor    "Monitor0"	DefaultDepth      24	SubSection "Display"		Depth     1	EndSubSection	SubSection "Display"		Depth     4	EndSubSection	SubSection "Display"		Depth     8	EndSubSection	SubSection "Display"		Depth     15	EndSubSection	SubSection "Display"		Depth     16	EndSubSection	SubSection "Display"		Depth     24	EndSubSectionEndSection

Yeah, I already have the 16bit and 24bit modes, but I want to use Xlib for changing the bit depth!

cya,
Drag0n

-----------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook

My future web presence: Dave''s Programming Resources

##### Share on other sites
er, doesn''t randr do something like this?

I remember there being something along those lines out there.

##### Share on other sites
The RANDR extension changes resolution on the fly. I''m not sure if it can do bit-depths aswell, but it would be the first place to look.

• 23
• 10
• 19
• 15
• 14