Screen depth

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Screen depth

Postby kankuman » Mon Jul 30, 2007 21:18

I wonder why do I have 24 bit depth in every linux distro (Sabayon, Ubuntu, Fedora) instead of 32 bit?
Should I try to modify the xorg.conf and create a subsection with this value and then select it as default, or it won't work?
I know that my screen supports it, as I have 32 bits depth in Windows.
kankuman
Baby Hen
 
Posts: 14
Joined: Sat Jul 28, 2007 11:29

Postby kankuman » Mon Jul 30, 2007 21:19

Here it is my xor.conf file, as it may help:

###################################################
Section "Files"


#FontPath "/usr/share/fonts/local/"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/corefonts"

EndSection

# **********************************************************************
# Module section -- this is an optional section which is used to specify
# which run-time loadable modules to load when the X server starts up.
# **********************************************************************

Section "Module"

Load "dbe"
Load "i2c"
Load "glx"
Load "ddc"
Load "type1"
Load "freetype"
Load "extmod"
Load "synaptics"
Load "vbe"
Load "dri"

EndSection


# **********************************************************************
# Server flags section. This contains various server-wide Options.
# **********************************************************************

Section "ServerFlags"

Option "AllowMouseOpenFail" "true"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"
Identifier "Synaptics1"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
# For ALPS/MacBook TouchPads
#Option "MaxSpeed" "0.7"
#Option "MinSpeed" "0.18"
#Option "AccelFactor" "0.08"
#Option "TopEdge" "120"
#Option "LeftEdge" "120"
#Option "BottomEdge" "830"
#Option "RightEdge" "650"
#Option "FingerLow" "25"
#Option "FingerHigh" "30"
# MacBook touchpad
#Option "MaxTapTime" "180"
#Option "MaxTapMove" "220"
#Option "MaxDoubleTapTime" "180"
#Option "VertScrollDelta" "20"
#Option "HorizScrollDelta" "50"
#Option "TapButton2" "3"
#Option "TapButton3" "2"
#Option "VertTwoFingerScroll" "1"

# Do you keep moving the mouse while typing? Try this trick.
#synclient TouchpadOff=1 disable your synaptics touchpad
#synclient TouchpadOff=0 enable your synaptics touchpad
EndSection


Section "InputDevice"

Identifier "Keyboard1"
Driver "kbd"

Option "AutoRepeat" "500 5"
Option "XkbModel" "pc105"
Option "XkbLayout" "es"
Option "XkbRules" "xorg"
# Macintosh keyboard
#Option "XkbOptions" "lv3:rwin_switch"

EndSection


Section "InputDevice"
Driver "wacom"
Identifier "wacom1"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "wacom2"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "wacom3"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

Identifier "Mouse1"
Driver "mouse"

Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"

EndSection

Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection


# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

Identifier "Generic Monitor"
Option "DPMS"

VertRefresh 50-160
HorizSync 30-71

EndSection

# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

Section "Device"
Identifier "VESA"
Driver "fglrx" # do not remove vesa
Option "RenderAccel" "on"
Option "VideoOverlay" "on"
#Option "XAANoOffscreenPixmaps"
#Option "BusType" "PCI"
#Option "ColorTiling" "on"
#Option "EnablePageFlip" "on"
EndSection


# **********************************************************************
# Screen sections.
# **********************************************************************

Section "Screen"

# The Identifier, Device and Monitor lines must be present

Identifier "Screen 1"
Device "VESA"
Monitor "Generic Monitor"
#Option "AddARGBGLXVisuals" "true"

# The favoured Depth and/or Bpp may be specified here

DefaultDepth 24

SubSection "Display"
Depth 8
ViewPort 0 0
Modes "1024x768" "800x600" "640x480"
EndSubsection

SubSection "Display"
Depth 16
ViewPort 0 0
Modes "1024x768" "800x600" "640x480"
EndSubsection

SubSection "Display"
Depth 24
ViewPort 0 0
Modes "1024x768" "800x600" "640x480"
EndSubsection


EndSection


Section "ServerLayout"
# The Identifier line must be present

Identifier "Main Layout"
Screen 0 "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "SendCoreEvents"
#InputDevice "Synaptics1" "SendCoreEvents"
#InputDevice "wacom1" "SendCoreEvents"
#InputDevice "wacom2" "SendCoreEvents"
#InputDevice "wacom3" "SendCoreEvents"
InputDevice "Keyboard1" "CoreKeyboard"

EndSection

Section "DRI"
Mode 0666
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection
kankuman
Baby Hen
 
Posts: 14
Joined: Sat Jul 28, 2007 11:29

Postby wolfden » Mon Jul 30, 2007 21:25

the worst that will happen is your X won't start
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby kankuman » Mon Jul 30, 2007 21:56

I have tried adding the lines for 32 bit depth on the xorg.conf and the X did not start, so I am back again to 24.
Should I change the monitor description, as it says "Generic monitor"?
I may have to type here my monitor (I have a Flatron ez T710BH). How can I put this information on the xorg.conf file?
Thank you very much!
kankuman
Baby Hen
 
Posts: 14
Joined: Sat Jul 28, 2007 11:29

Postby wolfden » Mon Jul 30, 2007 22:39

Try looking here:

http://www.gentoo.org/doc/en/xorg-config.xml

scroll down to #4. Tweaking Your Monitor for and example

Make sure your
VertRefresh 50-160
HorizSync 30-71
are correct - just adjust the numbers to the specs of your monitor.

Basically all I worry about is the res settings and the Vert and Horiz
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby lordgrover » Wed Aug 01, 2007 15:33

As I understand it, 24 is 32 bit really.
It's just that linux is a bit more honest about it - 24 of the 32 bits is used for colour, the other 8 bits for other 'stuff' (Sorry if I got a bit techie there).

Maybe someone more knowledgeable than me can confirm this?
User avatar
lordgrover
Baby Hen
 
Posts: 6
Joined: Fri Jul 27, 2007 14:21
Location: UK


Return to Hardware

Who is online

Users browsing this forum: albfneto and 2 guests