Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] X.Org 7.1 colour depth stuck at 16
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Tue Jun 20, 2006 2:52 am    Post subject: [Solved] X.Org 7.1 colour depth stuck at 16 Reply with quote

On my iBook 1.2 Ghz with an ATI Radeon 9200, I've emerged X.Org 7.1 and it seems that my colour depth is stuck at 16, instead of the 24 that I want. Besides trying with the old configuration file, I have used Xorgautoconfig to generate a new X.Org configuration file, and then substituted the DefaultDepth option from 16 to 24.

Here's my xorg.conf file:
Code:
# This file was generated by Xorgautoconfig v0.2.2.
Section "ServerLayout"
        Identifier      "X.Org Configured"
        Screen          0  "Screen0" 0 0
        InputDevice     "Mouse0" "CorePointer"
        InputDevice     "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

# For X Font Server support, uncomment this and comment the other FontPaths
# Note that this is not required for most configurations
#       FontPath        "unix/:-1"
        FontPath        "/usr/share/fonts/TTF/"
        FontPath        "/usr/share/fonts/ukr/"
        FontPath        "/usr/share/fonts/misc/"
        FontPath        "/usr/share/fonts/util/"
        FontPath        "/usr/share/fonts/default/"
        FontPath        "/usr/share/fonts/75dpi/"
        FontPath        "/usr/share/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/Type1/"
        FontPath        "/usr/share/fonts/local/"
        FontPath        "/usr/share/fonts/xawtv/"
        FontPath        "/usr/share/fonts/encodings/"
        FontPath        "/usr/share/fonts/freefont/"
        FontPath        "/usr/share/fonts/latex-xft-fonts/"
        FontPath        "/usr/share/fonts/100dpi/"
        FontPath        "/usr/share/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/ttf-bitstream-vera/"
        FontPath        "/usr/share/fonts/cyrillic/"
EndSection

Section "Module"
        Load    "extmod"
        Load    "dri"
        Load    "dbe"
        Load    "record"
        Load    "glx"
        Load    "type1"
        Load    "freetype"
EndSection

Section "Extensions"
#       Option "Composite"      "Disable"       # Experimental
EndSection

Section "ServerFlags"
        Option  "blank time"    "10"    # 10 minutes
        Option  "standby time"  "20"
        Option  "suspend time"  "30"
        Option  "off time"      "60"
### Uncomment this Server flag if X should not change resolutions.
### This is useful if mode changing crashes / corrupts the X server
#       Option  "DisableVidModeExtensions"
EndSection

Section "InputDevice"
        Identifier      "Keyboard0"
        Driver          "kbd"
# Change "XkbModel" to "macintosh_old" if you are using
# the deprecated adb keycodes.
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "us"
        Option          "XkbOptions"    "compose:rwin"
### Uncomment this if your layout uses nodeadkeys
        #Option         "XkbVariant"    "nodeadkeys"
EndSection

Section "InputDevice"
        Identifier      "Mouse0"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Protocol"       "auto"
        Option          "Device"         "/dev/input/mice"
EndSection

Section "Monitor"
        Identifier      "Monitor0"
        UseModes        "Modes0"
        ModelName       "Monitor Model"
        Option          "DPMS"
        HorizSync       30-70
        VertRefresh     50-160
EndSection

Section "Modes"
        Identifier      "Modes0"

        # Generated
        # D: 65.003 MHz, H: 48.365 kHz, V: 60.006 Hz
        Modeline "1024x768" 65.003 1024 1048 1184 1344  768 771 777 806  -HSync -VSync
EndSection

Section "Device"
        Identifier      "Card0"
        ### Available Driver options:
        Option "BackingStore" "true"  # Increases performance
        Option "EnablePageFlip" "true" # Increases performance
        #Option "SWcursor"      "false" # Use Software Cursor
        #Option "NoAccel"       "false" # Disable Hardware Acceleration
        #Option "AGPMode"       "1"     # Set AGP data transfer rate, DRI only
        #Option "AGPFastWrite" "false" # Use AGP Fast Write, DRI only
        #Option "RenderAccel" "true"  # Hardware acceleration
        #Option "DCCMode"       "false" # Use querried modes from monitor
        #Option "MonitorLayout" "TMDS" # Enable this for Apple DVI LCDs
        ### See "man radeon" for additional options
        Driver  "radeon"
#       BusID   "PCI:0:16:0"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "Card0"
        Monitor         "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Depth           8
                Modes           "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1024x768"
        EndSubSection
EndSection

Section "DRI"
        Group 0
        Mode 0666
EndSection


And here is some interestig stuff:
Code:
# cat /var/log/Xorg.0.log | grep -i depth
        "Screen0" for depth/fbbpp 16/16
(==) RADEON(0): Depth 16, (==) framebuffer bpp 16
(II) RADEON(0): Pixel depth = 16 bits stored in 2 bytes (16 bpp pixmaps)
(II) RADEON(0): Depth moves disabled by default
(II) RADEON(0): Will use depth buffer at offset 0x780000


Code:
# xdpyinfo  | grep -i depth
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
  depths (7):    16, 1, 4, 8, 15, 24, 32
  depth of root window:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes
    depth:    16 planes


So it seems that X.Org ignores the DefaultDepth in xorg.conf. What can I do?


Last edited by Sodki on Tue Jun 20, 2006 8:27 am; edited 1 time in total
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Tue Jun 20, 2006 3:29 am    Post subject: Reply with quote

Code:
(==) RADEON(0): Depth 16, (==) framebuffer bpp 16
(II) RADEON(0): Pixel depth = 16 bits stored in 2 bytes (16 bpp pixmaps)

Are you booting into a 16-bit framebuffer?

Use this as a kernel boot argument in your yaboot.conf:
Code:
video=radeonfb:1024x768-32@60

_________________
--Aaron
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Tue Jun 20, 2006 8:27 am    Post subject: Reply with quote

AaronPPC wrote:
Are you booting into a 16-bit framebuffer?

Use this as a kernel boot argument in your yaboot.conf:
Code:
video=radeonfb:1024x768-32@60

That did the trick. Thank you! :D
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Tue Jun 20, 2006 5:28 pm    Post subject: Reply with quote

Excellent! You're welcome!
_________________
--Aaron
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum