How to (permanently) disable efi framebuffer

soupdiver

Active Member
Feb 24, 2021
36
2
28
56
I try to get my system running and passing through my GPU to a windows VM.
After reading all the gazillion tutorials and what not... it seems I figured out a config that works (on my system).
The final comannd that I was looking for is

Code:
echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind

I guess this disables the efi framebuffer... that otherwise "somehow" collides with my GPU and makes my VM hang on boot.
I tried to make this a persistent setting .... trying all kind of things in the grub config e.g. adding "nomodeset, efifb:eek:ff" etc etc
But none seems to have an effect. After rebooing I always hve to issue the above command again and then things are groovin'.

So my question is: How do I make this setting permanent and does this have any sideeffects?

Not sure if this matters but the whole system only has that one GPU in it. No integrated gpu in the CPU or alike.
I could sense that this might causes the problem... maybe the OS always grabs that one GPU?
 
For me, video=efifb:off always worked, but recently I also need video=simplefb:off. Can you show cat /proc/cmdline to check your kernel parameters are actually used?

EDIT: You could consider using a hookscript that automatically runs before the VM (that uses passthrough of the GPU that is used during boot).
 
Last edited: