FreeBSD with KDE on UTM (Apple Silicone) has only one resolution

Hello everyone! I am new to FreeBSD but extremely curious, so I decided to discover it on my M1 mac as a VM using UTM.

So I decided to start my discovery installing KDE Plasma 5. After installation I see that the only one display resolution option is available. Could anyone please suggest the cure for this issue? I'd appreciate your help in making my FreeBSD vm look good on my M1. Thank you!
 

Attachments

  • Screenshot 2023-02-12 at 6.12.43 PM.png
    Screenshot 2023-02-12 at 6.12.43 PM.png
    160.7 KB · Views: 993
  • Screenshot 2023-02-12 at 6.36.59 PM.png
    Screenshot 2023-02-12 at 6.36.59 PM.png
    228.7 KB · Views: 976
In ./.xinitrc i have
Code:
xrandr --output HDMI-0 --mode 1680x1050 --primary --output DP-3 --mode 1600x900  --right-of HDMI-0
Or you can go to a terminal and type "xrandr".
 
unfortunately, that returned me the following errors (see screenshot)
 

Attachments

  • Screenshot 2023-02-14 at 9.25.32 AM.png
    Screenshot 2023-02-14 at 9.25.32 AM.png
    276.4 KB · Views: 703
That looks like something that should be set up in UTM (that's some frontend to QEMU, right?).

Quickly looking over its documentation, it mentions the video ram settings that could affect "available resolutions", try that?
 
I tried `-vga std` and `-vga virtio` as suggested here with no luck: `-vga std` does not change anything, `-vga virtio` - causes vm fail to start with the error (see screenshot). Any other ideas what can be done are highly appreciated. Thank you.
 

Attachments

  • Screenshot 2023-02-14 at 3.20.48 PM.png
    Screenshot 2023-02-14 at 3.20.48 PM.png
    114.9 KB · Views: 429
Also, setting anything in VGA Device RAM (see screenshot1) make the vm fail with another error (see screenshot2)
 

Attachments

  • Screenshot1.png
    Screenshot1.png
    218.4 KB · Views: 423
  • Screenshot2.png
    Screenshot2.png
    144.7 KB · Views: 419
In "Emulated Display Card" , is "virtio-ramfb" the only option available?

Also, I strongly recommend VirtualBox, they should have a version for Macs... and FreeBSD works pretty well as a vbox guest.
 
In "Emulated Display Card" , is "virtio-ramfb" the only option available?
No, but most of them no not work returning the following errors (see screenshots)
 

Attachments

  • Screenshot 2023-02-15 at 12.00.27 PM.png
    Screenshot 2023-02-15 at 12.00.27 PM.png
    25 KB · Views: 556
  • Screenshot 2023-02-15 at 12.13.48 PM.png
    Screenshot 2023-02-15 at 12.13.48 PM.png
    144.6 KB · Views: 411
  • Screenshot 2023-02-15 at 12.15.12 PM.png
    Screenshot 2023-02-15 at 12.15.12 PM.png
    498.2 KB · Views: 444
NFC, try the following:

At the boot menu choose "3. Escape to loader prompt", enter at the "OK" prompt gop list. That should list all available screen resolutions in "mode <number>: <resolution>" listing.

Try the resolutions with gop set <mode number>.

To make the best suited resolution permanent, set in /boot/loader.conf:
Code:
efi_max_resolution="1920x1080"

"1920x1080" is set as example, replace it with the value of your choosing from the "gop list".

Reference:
 
T-Daemon Thanks, it works. Unfortunately though, for FreeBSD on QEMU/UTM the max resolution possible is "1024x768" for some reason((. But at least something... Still a question, how come e.g. Kali has all that variety of resolutions to choose including "2048x1152" which imo looks the best at least on my 14" M1 mac? Is there any chance to make it possible for FreeBSD VM (e.g.: to recompile kernel etc.. - Sorry if sound silly, not a pro here lol)?
 
Ah, you're using brew... Something wrong with just navigating to the web page and clicking on the link like in the screenshot? you should get a .dmg file downloading. Install the downloaded .dmg file instead of using brew... ?‍?

FWIW, I don't own any Apple hardware - but I do end up successfully helping Apple owners to get things going.

oh, and if you give the VM enough RAM and processing power, kernel recompilation is not out of question (as long as you follow the Handbook instructions on that, and don't do stuff out of order).

Update: Your brew downloads a generic .dmg file... and my screenie points to a different file that's actually aimed at M1/M2 ARM architecture. This is why my screenie should work. The error messages are pretty clear. Oh, and brew is not a standard part of MacOS. I certainly heard of brew, though.
 
  • Thanks
Reactions: NFC
Sorry for the late response. I tried to collect more information about the issue.

Kali has all that variety of resolutions to choose including "2048x1152" which imo looks the best at least on my 14" M1 mac?
Linux might have a higher EFI framebuffer resolution support:

Unanswered question on the projects Github repository:

It could be there is no appropriate Xorg driver for FreeBSD. Look at the Kali guest systems /var/log/Xorg.0.log which driver is used. If you are unsure paste the log here.

Also Linux has so-called "Spice agent" extensions which features "Automatic adjustment of the X-session resolution to the client resolution". See if the Kali guest system has those extensions installed.

Support documentation on projects home page:

No "Spice agent" for FreeBSD. Reported issue on Github:

Is there any chance to make it possible for FreeBSD VM (e.g.: to recompile kernel etc..
I'm afraid not.

Sorry if sound silly, not a pro here lol)?
Don't worry, no problem.
 
  • Thanks
Reactions: NFC
Back
Top