Xorg crashes with -depth 24, unless "fbset -depth 32" before

Ask questions about Arch Linux ARM. Please search before making a new topic.

Xorg crashes with -depth 24, unless "fbset -depth 32" before

Postby lvml » Tue Nov 12, 2019 4:58 pm

Hi,

I am an experienced Linux and ArchLinux user, but new to the "Raspberry Pi" environment.

On a Raspberry Pi 4B, I noticed that X11 was, by default, only using a 16-bit visual (*ugly*).
I configured

framebuffer_depth=32
framebuffer_ignore_alpha=1

in /boot/config.txt to enable a 32-bit frame buffer.
But still, when I invoke "fbset -i" as root on the console (before starting Xorg), it tells me it uses a 16bit depth mode.

If at that point, I start "Xorg -depth 24" or "Xorg -depth 32", then Xorg will crash with a segmentation fault (and the screen will stay blank).

If I first, on the console, as root, enter "fbset -depth 32", the situation changes: Then "fbset -i" will show the framebuffer used (only on the current virtual console) uses 32bit depth, and if by then I enter "Xorg -depth 24", X11 starts up fine and using a nice 24-bit deep visual.

Of course I would like to avoid "logging in as root, then stating fbset -depth 32" every time when I want to start Xorg.

Is there any way to tell the kernel bcm2708_fb module to use 32bit depth by default? Or maybe some Arch-specific config file where to configure a default mode to use?

(If KMS was used, I know about the video=... kernel command line option - but that does not help with fb, right?)
lvml
 
Posts: 6
Joined: Tue Nov 12, 2019 4:18 pm

Re: Xorg crashes with -depth 24, unless "fbset -depth 32" be

Postby lvml » Fri Nov 15, 2019 1:59 pm

In absence of any better solution I now work around this issue by having created a file /etc/systemd/system/fbset.service
with content:

$this->bbcode_second_pass_code('', '
# set framebuffer of first virtual terminal to 32 bit depth after reboot

[Unit]
Description=fbset to default 32bit depth
DefaultDependencies=no
After=initrd-switch-root.target
ConditionPathExists=/dev/tty0

[Service]
Type=oneshot
ExecStart=/usr/bin/fbset -depth 32

[Install]
WantedBy=multi-user.target
')
lvml
 
Posts: 6
Joined: Tue Nov 12, 2019 4:18 pm

Re: Xorg crashes with -depth 24, unless "fbset -depth 32" be

Postby louisemarsh » Thu Nov 28, 2019 6:33 am

Worked perfectly - thanks @lvml!! happy wheels
louisemarsh
 
Posts: 1
Joined: Thu Nov 28, 2019 6:31 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 22 guests