You are not logged in.

#1 2015-03-30 11:23:17

Aklo
Member
Registered: 2015-03-30
Posts: 2

Hyper-V - How to change screen size

If you have installed arch inside an Hyper-V virtual machine this is a procedure to select a different screen size from the default ones:

It will work both in X and in the virtual console (without X server)
It's not really flexible becouse it will select a screen size at boot without the possibility to change it after.

First you need xf86-video-fbdev, I had no success with different video drivers
Then you need to change grub configuration file /etc/default/grub :

find the line starting with: "GRUB_CMDLINE_LINUX_DEFAULT"
and add to the options: video=hyperv_fb:<your preferred screen resolution>

For example in my /etc/default/grub the line reads as:
GRUB_CMDLINE_LINUX_DEFAULT="quiet video=hyperv_fb:1920x1080"

Finally rebuild grub configuration file, usually with the command:
grub-mkconfig -o /boot/grub/grub.cfg


I'm still loking for a better way to do it, but I had no success.
In particular the way I was used to do it in other distributions (xrandr --newmode) doesn't work in archlinux


thanks

Offline

#2 2015-05-07 16:18:14

weust
Member
Registered: 2015-05-07
Posts: 3

Re: Hyper-V - How to change screen size

That worked excellent for me.
Can set the display to 1600x900 now on a 1920x1080 screen, which is good enough for me right now.

Thanks a lot!
Very hard to find useful information on Hyper-V and screen resolution.

Offline

#3 2015-08-07 21:03:38

theoutlander
Member
Registered: 2015-08-07
Posts: 1

Re: Hyper-V - How to change screen size

This doesn't work for me. Any other ideas for how to address it? I've made all the changes suggested above.

Offline

#4 2017-04-23 02:04:01

Luso
Member
Registered: 2017-04-23
Posts: 1

Re: Hyper-V - How to change screen size

Sorry for the bump, but GRUB_CMDLINE_LINUX_DEFAULT="video=hyperv_fb:1920x1080" super works as long as you do not have RemoteFX 3D Video Adpater installed on the VM. The only caveat is that the VM feels a bit slow and sluggish without it. Still looking for ideas to have both.

Running this on Windows 10 with Hyper-V role enabled.

Offline

#5 2017-07-07 14:00:36

shenrobi
Member
Registered: 2017-07-07
Posts: 1

Re: Hyper-V - How to change screen size

All suggestions posted above also have not worked for me. I do notice that the vm console window resizes to my desired resolution (1920x1080) when the vm is booting. The window size remains at FullHD but the desktop resolution seems stuck at 1152x864. Any other ideas or suggestions I could possibly try?

Offline

Board footer

Powered by FluxBB