PDA

View Full Version : xfce: how to check current color depth and set to 24bit if needed.



Martin_Mucha
December 15th, 2013, 11:11 AM
I've seen some weird colors is one app and suppose it's caused by too low color depth (take it as an axiom please).
Question: How do I check my current color bit depth?
Question2: How do I set one, if there's NO Xorg.conf, and cannot be easily generated by Xorg -configure (giving error: number of created screens does not match number of detected devices)?

thanks in advance
martin.

ajgreeny
December 15th, 2013, 01:14 PM
grep -i depth /var/log/Xorg.0.log will show output with info on your current colour depth showing output something like

user@Xubuntu:~$ grep -i depth /var/log/Xorg.0.log
"Default Screen Section" for depth/fbbpp 24/32
[ 15.968] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 16.672] (==) Depth 24 pixmap format is 32 bpp

You can write your own xorg.conf if you need to and if one exists it will be used. I had to do so in the past with the following entry to reduce colour depth to 16 with an old ATI card.

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 16
SubSection "Display"
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection