You are not logged in.

#1 2017-10-04 07:30:35

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,464

Can i rebind the console framebuffer to another driver?

I've setup a gpu passthrough system through libvirt/qemu, it works fine; i'm able to switch between a native linux system using the nvidia gpu through the proprietary drivers to a windows system using the same gpu, not at the same time, but at least without rebooting.
Right now, I'm running integrated intel gpu (primary adapter) and an nvidia gpu at the same time on a desktop system.
My system does not use efi.
As the "bios" boots, from the bootloader to X, everything is displayed on the integrated chip; then X starts on proprietary Nvidia drivers.
So i have the console on the intel connector, and X on the nvidia connector; switching between them requires me to manually switch the input on the monitor (i know i could use a reverse prime configuration, but when i want to play a game on linux at minimum lag, and so i disable prime synchronization, it tears very, very badly, much worse than the tearing i observe when playing without vsync directly on the nvidia gpu).

So i wonder, is possible to tell the kernel to use another driver to display the console?

Right now,  i've:

# lsmod|grep -i modeset
nvidia_modeset        835584  10 nvidia_drm
nvidia              12935168  943 nvidia_modeset
# cat /sys/class/vtconsole/vtcon0/bind 
1

If i do:

#echo 0 > /sys/class/vtconsole/vtcon0/bind
#dmesg|grep Console:
[413180.192430] Console: switching to colour dummy device 80x25
#echo 1 > /sys/class/vtconsole/vtcon0/bind
[413937.876469] Console: switching to colour frame buffer device 160x64

So it detach/attach the console from the intel framebuffer, it works, but what if i want to use the nvidia framebuffer instead?
Latest nvidia drivers claims to support:  "frame-buffer console hotplug handling"

Thanks.

Last edited by kokoko3k (2017-10-04 07:38:28)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB