LINUX.ORG.RU

Смена драйвера framebuffer'a на ходу - возможно?


0

0

У меня в ядро вкомпилено vesa fb, но при загрузке оно меняется на i915.

Можно ли обратно на vesafb переключиться, не выключая модуль i915 с перезагрузкой?



Последнее исправление: tempuser002 (всего исправлений: 1)

Deactivating KMS and unloading Nouveau

The framebuffer console reserves nouveaufb and therefore you cannot directly unload the Nouveau kernel module. You have to unbind nouveaufb first. When you unbind nouveaufb, the earlier fb driver or the VGA console driver will take over. Your kernel configuration needs to have CONFIG_VT_HW_CONSOLE_BINDING enabled.

NOTE: For NV50 class hardware and above, the VGA text mode cannot be restored, you will be without a working virtual console until you load a new framebuffer driver! For older hardware the VGA text mode console should be restored fine. If you want to try to restore the VGA text mode yourself, the command vbetool post might be able to do that. Please, read the vbetool manual, before attempting it.

Here is an example script to unload Nouveau KMS:

#!/bin/bash

echo 0 > /sys/class/vtconsole/vtcon1/bind
rmmod nouveau
/etc/init.d/consolefont restart
rmmod ttm
rmmod drm_kms_helper
rmmod drm
The echo line unbinds nouveaufb from the framebuffer console driver (fbcon). Usually it is vtcon1 as in this example, but it may also be another vtcon*. See /sys/class/vtconsole/vtcon*/name which one of them is a «frame buffer device».

The console font trick may be needed with the VGA text mode to restore proper console state (to keep the active line visible), and depends on your distribution.

У меня не сработало - просто отвалился терминал.

anon_666
()
Ответ на: комментарий от anon_666

echo 0 > /sys/class/vtconsole/vtcon1/bind

не работает. Дальше даже и пробовать бесполезно.

tempuser002
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.