resolut
Posts: 9
Joined: Fri Jun 26, 2020 1:55 pm

failed to enable hardware cursor

Thu Jul 09, 2020 10:51 pm

Hi I'm using a non-Raspian distro and I'm seeing these errors in Xorg0.log:

Code: Select all

[   182.952] (II) FBTURBO(0): hardware: vc4drmfb (video memory: 4050kB)
[   183.001] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[   183.001] (II) FBTURBO(0): G2D hardware acceleration can't be enabled
[   183.008] (EE) FBTURBO(0): FBIOPUTCMAP: Invalid argument
[   183.009] (II) FBTURBO(0): failed to enable hardware cursor
Could these be caused by (A) a missing kernel module (B) a wrongly configured X server or (C) anything else?
In config.txt I gave the GPU 256M, up from the standard 64M.

Without a properly working X server my GUI experience is bad: It's slow, the bpp appears reduced, and the mouse pointer flickers a lot.
Thanks.

User avatar
kerry_s
Posts: 741
Joined: Thu Jan 30, 2020 7:14 pm

Re: failed to enable hardware cursor

Thu Jul 09, 2020 11:02 pm

do you get the same in regular raspberry os?

resolut
Posts: 9
Joined: Fri Jun 26, 2020 1:55 pm

Re: failed to enable hardware cursor

Thu Jul 09, 2020 11:07 pm

kerry_s wrote:
Thu Jul 09, 2020 11:02 pm
do you get the same in regular raspberry os?
I don't. X works fine in Raspian 32-bit.
But Raspberry OS has other bugs that disincline me to use it, specifically neither the kernel nor the GUI deals with encrypted drives well; it's tedious to reverse mouse scrolling direction; and firefox crashes a lot in the 64-bit beta.

User avatar
kerry_s
Posts: 741
Joined: Thu Jan 30, 2020 7:14 pm

Re: failed to enable hardware cursor

Thu Jul 09, 2020 11:17 pm

so what are you using?

if your not using the recommended os, then problems should be expected. no other os is optimized for pi's.
also 256mb is to much, your starving you cpu's. it's 1024mb shared between cpu & gpu, cpu is more important.
Last edited by kerry_s on Thu Jul 09, 2020 11:20 pm, edited 1 time in total.

resolut
Posts: 9
Joined: Fri Jun 26, 2020 1:55 pm

Re: failed to enable hardware cursor

Thu Jul 09, 2020 11:19 pm

kerry_s wrote:
Thu Jul 09, 2020 11:17 pm
so what are you using?
if your not using the recommended os, then problems should be expected. no other os is optimized for pi's.
Slackware for Raspberry pi 4. In many ways it works better but the X Windows part is messed up.

User avatar
kerry_s
Posts: 741
Joined: Thu Jan 30, 2020 7:14 pm

Re: failed to enable hardware cursor

Thu Jul 09, 2020 11:22 pm

resolut wrote:
Thu Jul 09, 2020 11:19 pm
kerry_s wrote:
Thu Jul 09, 2020 11:17 pm
so what are you using?
if your not using the recommended os, then problems should be expected. no other os is optimized for pi's.
Slackware for Raspberry pi 4. In many ways it works better but the X Windows part is messed up.
you most likely have no hardware acceleration

User avatar
kerry_s
Posts: 741
Joined: Thu Jan 30, 2020 7:14 pm

Re: failed to enable hardware cursor

Thu Jul 09, 2020 11:38 pm

i read through there docs, it seems most things are manually configured like arch.
the best thing to do is ask in there forums for the proper settings.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8739
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: failed to enable hardware cursor

Fri Jul 10, 2020 8:42 am

FBturbo is incompatible with using mesa and GL for composition.

Rasbian has a systemd script in /usr/lib/systemd/scripts/gldriver_test.sh that nukes /usr/share/X11/xorg.conf.d/99-fbturbo.conf should the KMS driver be detected.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

resolut
Posts: 9
Joined: Fri Jun 26, 2020 1:55 pm

Re: failed to enable hardware cursor

Fri Jul 10, 2020 9:52 pm

6by9 wrote:
Fri Jul 10, 2020 8:42 am
FBturbo is incompatible with using mesa and GL for composition.

Rasbian has a systemd script in /usr/lib/systemd/scripts/gldriver_test.sh that nukes /usr/share/X11/xorg.conf.d/99-fbturbo.conf should the KMS driver be detected.
That's good. What is the current state of 2D and GPU acceleration on the Pi4b? The other distro is just using fbdev for 2D.
I though I heard a while back of a plan to get Vulkan working with the GPU.

cleverca22
Posts: 581
Joined: Sat Aug 18, 2012 2:33 pm

Re: failed to enable hardware cursor

Fri Jul 10, 2020 10:31 pm

resolut wrote:
Fri Jul 10, 2020 9:52 pm
6by9 wrote:
Fri Jul 10, 2020 8:42 am
FBturbo is incompatible with using mesa and GL for composition.

Rasbian has a systemd script in /usr/lib/systemd/scripts/gldriver_test.sh that nukes /usr/share/X11/xorg.conf.d/99-fbturbo.conf should the KMS driver be detected.
That's good. What is the current state of 2D and GPU acceleration on the Pi4b? The other distro is just using fbdev for 2D.
I though I heard a while back of a plan to get Vulkan working with the GPU.
rpi4 has an fkms layer, which is just a kernel-side wrapper that maps the new kms api to the old dispmanx api
v3d is still handled in linux like before i believe

which kms you use, has to be set in the config.txt, like:

Code: Select all

dtoverlay=vc4-fkms-v3d
(i think)

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8739
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: failed to enable hardware cursor

Sat Jul 11, 2020 7:51 am

cleverca22 wrote:
Fri Jul 10, 2020 10:31 pm
resolut wrote:
Fri Jul 10, 2020 9:52 pm
6by9 wrote:
Fri Jul 10, 2020 8:42 am
FBturbo is incompatible with using mesa and GL for composition.

Rasbian has a systemd script in /usr/lib/systemd/scripts/gldriver_test.sh that nukes /usr/share/X11/xorg.conf.d/99-fbturbo.conf should the KMS driver be detected.
That's good. What is the current state of 2D and GPU acceleration on the Pi4b? The other distro is just using fbdev for 2D.
I though I heard a while back of a plan to get Vulkan working with the GPU.
rpi4 has an fkms layer, which is just a kernel-side wrapper that maps the new kms api to the old dispmanx api
v3d is still handled in linux like before i believe

which kms you use, has to be set in the config.txt, like:

Code: Select all

dtoverlay=vc4-fkms-v3d
(i think)
(You're correct).
The full KMS implementation for Pi4 has just had v4 sent to the relevant mailing lists. It's now pretty functional, and I'm in the process of updating our 5.4 kernel branch to use it.
On 5.4 you have 3 choices
- "dtoverlay=vc4-fkms-v3d" - FKMS. ARM 3D with a faked KMS implementation using the firmware. This is the default on Pi4.
- "dtoverlay=vc4-kms-v3d" - (full) KMS. ARM control of everything. Currently not totally stable on Pi4 using our kernel branch as it is still using v1 of the patchset.
- no additional overlay - a simple framebuffer with no 3d acceleration.

Your log snippet shows "hardware: vc4drmfb (video memory: 4050kB)". vc4drmfb will be one of the KMS options with emulated frame buffer, hence the guidance not to use fbturbo.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Other”