-
- Posts: 34
- Joined: Sat May 19, 2012 11:24 am
- Contact: Website
Xorg, configuring bpp (defaults to 16)
I installed Xorg with LXDE. By default it runs without any xorg.conf, but I noticed some colours weren't correct and I suspect that the bpp defaulting to 16 causes this. However, `man xorg.conf` states the default bpp is 24, so why would the RPi choose 16? Did I miss something, is this easy to configure or is the bpp not to blame?
Re: Xorg, configuring bpp (defaults to 16)
The framebuffer on boot-up (which is what the console device is drawn on) is in 16-bit mode. X detects this and uses this mode. Even when changing the framebuffer mode to 24/32 bit for the console, I can't yet make X work on it.
EDIT: on the fixes to-do list
EDIT: on the fixes to-do list

Re: Xorg, configuring bpp (defaults to 16)
Note that 16bpp will be faster....
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.
-
- Posts: 34
- Joined: Sat May 19, 2012 11:24 am
- Contact: Website
Re: Xorg, configuring bpp (defaults to 16)
Yeah, I just noticed the same thing, and was looking for a way to change that. Thanks for the confirmationteh_orph wrote:The framebuffer on boot-up (which is what the console device is drawn on) is in 16-bit mode. X detects this and uses this mode. Even when changing the framebuffer mode to 24/32 bit for the console, I can't yet make X work on it.
EDIT: on the fixes to-do list

Can you confirm that omxplayer actually runs in > 16 bpp? I was trying to compare that to Xorg, but omxplayer segfaults when you pass it a simple imagejamesh wrote:Note that 16bpp will be faster....

Re: Xorg, configuring bpp (defaults to 16)
I get wrong colors when I use freerdp, would it be the same problem?


It's fine in rdesktop


It's fine in rdesktop
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 5706
- Joined: Wed Aug 17, 2011 7:41 pm
- Location: Cambridge
Re: Xorg, configuring bpp (defaults to 16)
@felix123
What image/firmware are you running?
Try updating firmware to latest GitHub (Hexxeh's updater tool is one way). There has been a fix to RGB ordering in 32bpp mode.
What image/firmware are you running?
Try updating firmware to latest GitHub (Hexxeh's updater tool is one way). There has been a fix to RGB ordering in 32bpp mode.
Re: Xorg, configuring bpp (defaults to 16)
I'm using the arch 29-04-12 image and I did a pacman -Syyu. I just did an update with Hexxeh's tool but the result is the same.
Also I notice if I drag the icons on the desktop around, then the correct color will show beneath the positions I drag.

Also I notice if I drag the icons on the desktop around, then the correct color will show beneath the positions I drag.
-
- Posts: 34
- Joined: Sat May 19, 2012 11:24 am
- Contact: Website
Re: Xorg, configuring bpp (defaults to 16)
I am pretty sure that those problems are not related to the RPi booting in 16 bpp 

Re: Xorg, configuring bpp (defaults to 16)
It is very odd. "fbset -depth N" appears to work, but then Xorg switches back to 16 bits when it starts. "startx -- -depth N -fbbpp Z" switches the framebuffer into the requested mode, but either displays black or segfaults.teh_orph wrote:The framebuffer on boot-up (which is what the console device is drawn on) is in 16-bit mode. X detects this and uses this mode. Even when changing the framebuffer mode to 24/32 bit for the console, I can't yet make X work on it.
The following undocumented settings in config.txt do appear to work, however. This probably requires recent firmware:
Code: Select all
framebuffer_depth=32
framebuffer_ignore_alpha=1
Re: Xorg, configuring bpp (defaults to 16)
I can only make it work if I start the fb console in 32-bit mode - changing at run time won't do it. Append to you kernel command line "bcm2708_fb.fbdepth=32" and reboot the system. Make sure you are using the new start.elf and have "framebuffer_ignore_alpha=1" in your config.txt.
Then start X, and it'll pick 32-bit mode. You won't need the -fbbpp option. No need for fbset.
X is not too much slower in 32-bit versus 16.
(this is what I'm doing in Arch with a hand-compiled git Xorg)
Then start X, and it'll pick 32-bit mode. You won't need the -fbbpp option. No need for fbset.
X is not too much slower in 32-bit versus 16.
(this is what I'm doing in Arch with a hand-compiled git Xorg)
Re: Xorg, configuring bpp (defaults to 16)
Just using the undocumented config.txt settingsteh_orph wrote:I can only make it work if I start the fb console in 32-bit mode - changing at run time won't do it. Append to you kernel command line "bcm2708_fb.fbdepth=32" and reboot the system. Make sure you are using the new start.elf and have "framebuffer_ignore_alpha=1" in your config.txt.
Then start X, and it'll pick 32-bit mode. You won't need the -fbbpp option. No need for fbset.
X is not too much slower in 32-bit versus 16.
(this is what I'm doing in Arch with a hand-compiled git Xorg)
Code: Select all
framebuffer_depth=32
framebuffer_ignore_alpha=1