LINUX.ORG.RU

История изменений

Исправление ZenitharChampion, (текущая версия) :

Наверное, ты отсутствовал на ЛОРе летом 2013 года, и не следил за новостями пристально? Была громкая новость о том, что NVIDIA реализовала Optimus. Вот официальный мануал: http://us.download.nvidia.com/XFree86/Linux-x86_64/358.16/README/randr14.html

Системные требования: Linux kernel 3.9, X-Server 1.13 (в версиях 1.17.0 и 1.17.1 сломано), X-Randr 1.4, драйвер xf86-video-modesetting (входит в X-Server начиная с версии 1.16, а в старых системах есть в репозитории) и драйвер NVIDIA 319.xx.

Конфиг /etc/X11/xorg.conf для X-Server 1.13 - 1.16:

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

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

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

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

Конфиг для X-Server 1.17.2:

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

Опциональные строки: 1). «Virtual 1600 900» (фиксит фулскрин в майнкрафте). 2). Кастомный DPI.

Конфига xorg.conf мало. Нужно ещё добавить в GDM/KDM консольные команды:

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

Вот примеры конфигов: https://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops#Display_manag..., https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers

GDM - файл /etc/gdm/Init/Default:

#!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
#  -George
 
PATH="/usr/bin:$PATH"
OLD_IFS=$IFS
 
## XRANDR
exec xrandr --setprovideroutputsource modesetting NVIDIA-0
exec xrandr --auto

Я добавлял без «exec», и всё работало. GNOME2, если что.

LightDM: создать файл /etc/lightdm/display_setup.sh с содержимым:

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

Сделать файл исполняемым: # chmod +x /etc/lightdm/display_setup.sh В конфиге /etc/lightdm/lightdm.conf найти [SeatDefaults] и добавить строку display-setup-script=/etc/lightdm/display_setup.sh.

Исправление ZenitharChampion, :

Наверное, ты отсутствовал на ЛОРе летом 2013 года, и не следил за новостями пристально? Была громкая новость о том, что NVIDIA реализовала Optimus. Вот официальный мануал: http://us.download.nvidia.com/XFree86/Linux-x86_64/358.16/README/randr14.html

Системные требования: Linux kernel 3.9, X-Server 1.13 (в версиях 1.17.0 и 1.17.1 сломано), X-Randr 1.4, драйвер xf86-video-modesetting (входит в X-Server начиная с версии 1.16, в старых системах есть в репозитории) и драйвер NVIDIA 319.xx.

Конфиг /etc/X11/xorg.conf для X-Server 1.13 - 1.16:

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

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

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

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

Конфиг для X-Server 1.17.2:

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

Опциональные строки: 1). «Virtual 1600 900» (фиксит фулскрин в майнкрафте). 2). Кастомный DPI.

Конфига xorg.conf мало. Нужно ещё добавить в GDM/KDM консольные команды:

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

Вот примеры конфигов: https://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops#Display_manag..., https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers

GDM - файл /etc/gdm/Init/Default:

#!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
#  -George
 
PATH="/usr/bin:$PATH"
OLD_IFS=$IFS
 
## XRANDR
exec xrandr --setprovideroutputsource modesetting NVIDIA-0
exec xrandr --auto

Я добавлял без «exec», и всё работало. GNOME2, если что.

LightDM: создать файл /etc/lightdm/display_setup.sh с содержимым:

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

Сделать файл исполняемым: # chmod +x /etc/lightdm/display_setup.sh В конфиге /etc/lightdm/lightdm.conf найти [SeatDefaults] и добавить строку display-setup-script=/etc/lightdm/display_setup.sh.

Исправление ZenitharChampion, :

Наверное, ты отсутствовал на ЛОРе летом 2013 года, и не следил за новостями пристально? Была громкая новость о том, что NVIDIA реализовала Optimus. Вот официальный мануал: http://us.download.nvidia.com/XFree86/Linux-x86_64/358.16/README/randr14.html

Системные требования: Linux kernel 3.9, X-Server 1.13 (в версиях 1.17.0 и 1.17.1 сломано), X-Randr 1.4, драйвер xf86-video-modesetting (входит в X-Server начиная с версии 1.16, в старых системах есть в репозитории) и драйвер NVIDIA 319.xx.

Конфиг /etc/X11/xorg.conf для X-Server 1.13 - 1.16:

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

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

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

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

Конфиг для X-Server 1.17.2:

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

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

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

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

Опциональные строки: 1). «Virtual 1600 900» (фиксит фулскрин в майнкрафте). 2). Кастомный DPI.

Конфига xorg.conf мало. Нужно ещё добавить в GDM/KDM консольные команды:

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

Вот примеры конфигов: https://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops#Display_manag..., https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers

GDM - файл /etc/gdm/Init/Default:

#!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
#  -George
 
PATH="/usr/bin:$PATH"
OLD_IFS=$IFS
 
## XRANDR
exec xrandr --setprovideroutputsource modesetting NVIDIA-0
exec xrandr --auto

Я добавлял без «exec», и всё работало. GNOME2, если что.

LightDM: создать файл /etc/lightdm/display_setup.sh с содержимым:

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

Сделать файл исполняемым: # chmod +x /etc/lightdm/display_setup.sh В конфиге /etc/lightdm/lightdm.conf найти [SeatDefaults] и добавить строку display-setup-script=/etc/lightdm/display_setup.sh.

Исходная версия ZenitharChampion, :

Наверное, ты отсутствовал на ЛОРе летом 2013 года, и не следил за новостями пристально? Была громкая новость о том, что NVIDIA реализовала Optimus. Вот официальный мануал: http://us.download.nvidia.com/XFree86/Linux-x86_64/358.16/README/randr14.html

Системные требования: Linux kernel 3.9, X-Server 1.13 (в версиях 1.17.0 и 1.17.1 сломано), X-Randr 1.4, драйвер xf86-video-modesetting (входит в X-Server начиная с версии 1.16, в старых системах есть в репозитории) и драйвер NVIDIA 319.xx.

Конфиг /etc/X11/xorg.conf для X-Server 1.13 - 1.16:

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

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

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

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

Конфиг для X-Server 1.17.2:

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

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

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

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

Опциональные строки: 1). «Virtual 1600 900» (фиксит фулскрин в майнкрафте). 2). Кастомный DPI.

Конфига xorg.conf мало. Нужно ещё добавить в GDM/KDM консольные команды:

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

Вот примеры конфигов: https://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops#Display_manag..., https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers

GDM - файл /etc/gdm/Init/Default:

#!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
#  -George
 
PATH="/usr/bin:$PATH"
OLD_IFS=$IFS
 
## XRANDR
exec xrandr --setprovideroutputsource modesetting NVIDIA-0
exec xrandr --auto

Я добавлял без «exec», и всё работало. GNOME2, если что.

LightDM: создать файл /etc/lightdm/display_setup.sh с содержимым:

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

Сделать файл исполняемым: # chmod +x /etc/lightdm/display_setup.sh В конфигке /etc/lightdm/lightdm.conf найти [SeatDefaults] и добавить строку display-setup-script=/etc/lightdm/display_setup.sh.