Парные мониторы с 2 драйверами видео с xrandr 1.4

Существует сценарий Vim по имени Spreadsheet.vim (и на GitHub). От раздела описания связанной страницы:

Этот сценарий позволяет Вам использовать энергию в качестве электронной таблицы, добавляя арифметические вычисления к Вашим текстовым файлам.

Полезный для счетов, расходов, оценок и других числовых текстовых шаблонов.

Это обеспечивает три основных функции:

Get("cell")
Set("cell", "value")
Calculate("operation")

Подробные инструкции и примеры включены в файл сценария.

Я еще не сравнил это с решениями, упомянутыми другими. Я подозреваю, что это имеет недостаток того, чтобы не быть столь же мощным как определенная программа электронной таблицы до некоторой степени; но так как это позволяет Вам использовать сам Vim, Вы принимаете другого довольно мощного пропорциональный величию Вашего Vimfoo.

Один протест состоит в том, что это не кажется очень портативным:

Это использует 'до н.э' команду Linux OS для Вычислить функции.

Однако, так как Вы спросили это относительно U&L.SE, возможно, который не является проблемой для Вас.

10
20.12.2017, 02:46
2 ответа

Вы должны определить свой графический процессор в /etc/X11/xorg.conf следующим образом:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "<BusID for NVIDIA device here>"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    # Uncomment this line if your computer has no display devices connected to
    # the NVIDIA GPU.  Leave it commented if you have display devices
    # connected to the NVIDIA GPU that you would like to use.
    #Option "UseDisplayDevice" "none"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

вы можете активировать карту не NVIDIA с помощью следующих команд :

$ xrandr --setprovideroutputsource modesetting NVIDIA-0
$ xrandr --auto

источник: Документация NVIDIA Linux Глава 33

1
27.01.2020, 20:03

Я могу подтвердить, что это действительно работает. Новый URL-адрес страницы документации nvidia теперь http://us.download.nvidia.com/XFree86/Linux-x86/319.12/README/randr14.html (старый не работает).

Моя установка с двумя мониторами — это GTX1080 и встроенная графика Intel HD Graphics 4000 (i5 3570) — по одному монитору на каждый.

У меня прекрасно работал следующий xorg.conf:

Section "ServerLayout"
        Identifier      "X.org Configured"
        Screen          0  "screen_nvidia"
        Inactive        "card_intel"
        InputDevice     "Mouse0" "CorePointer"
        InputDevice     "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc"
        FontPath     "/usr/share/fonts/X11/cyrillic"
        FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/Type1"
        FontPath     "/usr/share/fonts/X11/100dpi"
        FontPath     "/usr/share/fonts/X11/75dpi"
        FontPath     "built-ins"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Device"
        Identifier  "card_nvidia"
        Driver      "nvidia"
        BusID       "PCI:1:0:0"
EndSection

Section "Device"
        Identifier  "card_intel"
        Driver      "modesetting"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "screen_nvidia"
        Device     "card_nvidia"
EndSection

Section "Screen"
        Identifier "screen_intel"
        Device     "card_intel"
EndSection
0
27.01.2020, 20:03

Теги

Похожие вопросы