cirruslabs / tart

macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://tart.run
Other
3.67k stars 103 forks source link

GRUB too high resolution #682

Closed unikzforce closed 6 months ago

unikzforce commented 7 months ago

Hello Tart team,

can you please guide me to understand why the resolution is too high on the grub menu? it will be fixed afterwards.

is this a bug?

image

after booting: image

tart version is 2.4.1 :

brew info tart
==> tart: stable 0.38.0 (bottled)
macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://github.com/cirruslabs/tart
/opt/homebrew/Cellar/tart/2.4.1 (6 files, 11.5MB) *
  Built from source on 2023-12-04 at 00:07:15
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/t/tart.rb
License: AGPL-3.0-or-later
==> Dependencies
Build: rust ✘
==> Requirements
Build: Xcode >= 14.1 (on macOS) ✔
Required: arm64 architecture ✔, macOS >= 12 (or Linux) ✔, macOS ✔
==> Analytics
install: 48 (30 days), 92 (90 days), 209 (365 days)
install-on-request: 48 (30 days), 92 (90 days), 209 (365 days)
build-error: 0 (30 days)
fkorotkov commented 7 months ago

Could you please try with the official Tart installation?

brew uninstall tart
brew install cirruslabs/cli/tart
unikzforce commented 7 months ago

sure, i have tried unfortunately it would stay the same same. (by the way i'm using Sonoma 14.1.2)

fkorotkov commented 7 months ago

If I understand you issue correctly, display size for your VM is too big and therefore everything is too small in the window?

Can you try running tart get fedora? It will print out display size and you can change it via tart set --display 1200x800 fedora.

unikzforce commented 7 months ago

i have tested many resolutions, even 200x80, there is no change in the result,

in my laptop without any external monitor, both the grub and the booted fedora have very small fonts. this picture are taken using the macbook pro m1 laptop without any external monitor attached:

image image

unikzforce commented 7 months ago

if i use my external 34inch monitor, it's getting a bit more usable when the system is booted, but still things are barely visible in grub.

this pictures is taken when using external 34 inch monitor:

image

image

unikzforce commented 7 months ago

I think the scaling depends on the monitor that tart window is open on, now the external monitor is opened, i transition the program to macbook 16inch lcd.

image

and then without restarting the program or resizing its' window, I move the tart window to the 34inch external monitor: image

so i think there are two separate problems:

ghost commented 6 months ago

This also happens on an M1 Air (1440x900 native resolution) when creating a VM from scratch in Tart 2.4.3, using Alpine 3.19.0 and Ubuntu 22.04.3. It does not appear to make any difference whether the resolution given via -set is high or low. The number of columns and rows in the boot loader/installer is still significant, to the degree that the text is so small that it's unreadable (same as above screenshots).

ghost commented 6 months ago

tart set --display does not appear to have any effect at all on console graphics. This is reproducible on the official ubuntu:latest image.

edigaryev commented 6 months ago

Thanks for reporting this 🙌

This was fixed in https://github.com/cirruslabs/tart/pull/697, please check out the new 2.4.4 release which should be available shortly.

unikzforce commented 6 months ago

Awesome, thanks, it's fixed and it's working like a charm

unikzforce commented 6 months ago

@edigaryev Is it possible to add a cli option to force enable automaticallyReconfigureDisplay in case we really want the tart to decide on the display size? in case of graphical ubuntu image, it's really useful,

image

although it is possible to change the resolution after logging in, but it would also amazing if we have the option to force enable automatically reconfigure display, if one really likes it.

i have attached the initial ubuntu desktop resolution, although if i change the resolution to proper one it will remain next time start the ubuntu machine

image