Friday, April 01, 2022

Re: "xrandr" cannot find "1920x1080" as an available mode when using OpenBSD as a host from Linux with the "virtio" driver

1 Απρ 2022, 17:22 Από hello@ezaquarii.com:

> Yeah, autodetection doesn't do the right thing. You can
> do better with a custom xorg config.
>
> Accelerated X11 under vm is not going to work, so you are
> stuck with 2 options:
>
> 1. wsfb if your system supports UEFI and console framebuffer is on
> 2. vesa (needs aperture sysctl)
>
> Here is an example for wsfb:
>
> 1. Create /etc/X11/xorg.conf.d/
> 2. Place custom monitor config in /etc/X11/xorg.conf.d/00-monitor.conf
>
> Section "Device"
> Identifier "Framebuffer"
> Driver "wsfb"
> BoardName "Graphics Adapter"
> EndSection
>
> Section "Monitor"
> Identifier "Monitor"
> ModelName "Monitor"
> HorizSync 1.0 - 1000.0
> VertRefresh 1.0 - 1000.0
> EndSection
>
> Section "Screen"
> Identifier "Screen"
> Device "Framebuffer"
> Monitor "Monitor"
> DefaultDepth 24
> SubSection "Display"
> Viewport 0 0
> Depth 24
> Modes "1920x1080"
> EndSubSection
> EndSection
>
> 3. restart your Xorg server.
>
> Cheerio,
> Chris
>
Thank you! I'll test it out when I can and tell you if I need anything. Have a nice day!

No comments:

Post a Comment