Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop template app running on embedded Linux: high CPU usage (framebuffer display, linux-arm) #17113

Open
ps3681 opened this issue Sep 24, 2024 · 0 comments

Comments

@ps3681
Copy link

ps3681 commented Sep 24, 2024

Describe the bug

[I am a complete Avalonia newbie here, evaluating Avalonia vs. Qt for an embedded Linux UI project.]

When running the VS template desktop app "Welcome to Avalonia!" modified for framebuffer display (StartLinuxFbDev) on my SBC (Digi ConnectCore with yacto build), top shows high CPU usage (~30%) for an otherwise completely idle app.

To Reproduce

Modify the VS desktop template Main method line:
return builder.StartLinuxDrm(args: args, card: null, scaling: 1.0);
to:
return builder.StartLinuxFbDev(new string[] { "--fbdev" }, "/dev/fb0", 1, new LibInputBackend());
Include the LinuxFramebuffer package reference, if necessary, in the Desktop .csproj file
build and publish for .net8, self-contained, linux-arm in VS2022 on Windows 10.
Copy the published files to the SBC, chmod +x the desktop app and run.

Expected behavior

I would expect the CPU to be at or near 0% usage.

Avalonia version

11.1.3

OS

Linux

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants