Moderator: SlashBeast
Code: Select all
# lspci
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
04:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 730M] (rev a1)Code: Select all
# cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
# generated from data in "/etc/conf.d/gpm"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
VendorName "Unknown"
ModelName "Unknown"
EndSection
Section "Device"
Identifier "intel"
Driver "intel"
Option "CustomEDID" "DFP-0:/lib/firmware/edid/1920x1080_T440s.bin"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
Monitor "Monitor0"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSectionCode: Select all
# cat /etc/bumblebee/bumblebee.conf
[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d
[optirun]
Bridge=primus
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false
[driver-nvidia]
KernelDriver=nvidia
PMMethod=auto
LibraryPath=/usr/lib64/opengl/nvidia/lib:/usr/lib32/opengl/nvidia/lib:/usr/lib/opengl/nvidia/lib
XorgModulePath=/usr/lib64/opengl/nvidia/lib,/usr/lib64/opengl/nvidia/extensions,/usr/lib64/xorg/modules/drivers,/usr/lib64/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveauCode: Select all
# cat /etc/bumblebee/xorg.conf.nvidia
Section "Files"
ModulePath "/usr/lib64/xorg/nvidia"
ModulePath "/usr/lib64/xorg/modules"
EndSection
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "ProbeAllGpus" "false"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
# my settings
Option "CustomEDID" "DFP-0:/lib/firmware/edid/1920x1080_T440s.bin"
BusID "PCI:4:0:0"
Option "UseEDID" "True"
Option "ModeValidation" "NoVirtualSizeCheck"
Option "ModeDebug" "True"
EndSection
# my screen
Section "Screen"
Identifier "nvidia"
Device "DiscreteNvidia"
Monitor "Monitor0"
Option "RenderAccel" "True"
Option "NoRenderExtension" "False"
Option "AllowGLXWithComposite" "True"
Option "AddARGBGLXVisuals" "True"
Option "DamageEvents" "True"
Option "ConnectToAcpid" "True"
Option "UseDisplayDevice" "none"
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
Modelname "Unknown"
EndSectionCode: Select all
/etc/init.d/bumblebee startCode: Select all
> glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
306 frames in 5.0 seconds = 61.053 FPS
301 frames in 5.0 seconds = 60.048 FPSCode: Select all
> primusrun glxgears
293 frames in 5.0 seconds = 58.460 FPS
301 frames in 5.0 seconds = 60.049 FPSCode: Select all
# cat /etc/X11/xorg.conf.d/99-synaptics.conf
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "60% 0 0 2400 40% 60% 0 2400"
Option "AreaTopEdge" "2400"
Option "TapButton1" "1"
Option "TapButton3" "2"
Option "TapButton2" "3"
# Calm the pad down while clicking
Option "VertHysteresis" "50"
Option "HorizHysteresis" "50"
# Drag lock
Option "LockedDrags" "1"
# Tap to click
Option "FingerLow" "50"
Option "FingerHigh" "55"
# Prevent accidental clicks
Option "PalmDetect" "1"
Option "PalmMinWidth" "5"
Option "PalmMinZ" "40"
# Natural scrolling
Option "VertTwoFingerScroll" "1"
Option "VertScrollDelta" "-90"
Option "HorizTwoFingerScroll" "1"
Option "HorizScrollDelta" "-90"
Option "MinSpeed" "0.5"
Option "MaxSpeed" "1.9"
Option "AccelerationProfile" "2"
Option "ConstantDeceleration" "4"
EndSectionChodziło mi o wersje a) bez bumblebee, jako że z wersji b) korzystałem wcześniej.dziadu wrote: a) użycie nVidia jako głównej i jedynej karty graficznej,
b) użycie karty zintegrowanej jako głównej i przełączanie się na zewnętrzną w razie potrzeby?
Note
This article is about native Optimus support using the official Nvidia drivers (x11-drivers/nvidia-drivers) – it is not about bumblebee; bumblebee is not used in the following configuration.
The README mentions this in Chapter 32, "Offloading Graphics Display with RandR 1.4":
Caveats
There is no synchronization between the images rendered by the NVIDIA GPU and the output device. This means that the output device can start reading the next frame of video while it is still being updated, producing a graphical artifact known as “tearing”. Tearing is currently expected due to limitations in the design of the X.Org X server.
Poczekałem kilka lat na driver, więc poczekam aż naprawią tą współpracę z RandR 1.4.dziadu wrote:Ja osobiście nie widzę większych zalet korzystania tylko i wyłącznie z nVidii na laptopie, przede wszystkim większy pobór mocy. Natomiast kiedy tak miałem skonfigurowany system, to nie zauważyłem żadnych negatywnych efektów o których pisałeś - też używam KDE. A z bumblebee jestem bardzo teraz zadowolony.

na M$ (po zainstalowaniu sterowników) pojawia się ikonka w Tray'u.robertsurma wrote:Zastanawiam się jednak, czy jest jakiś sposób, aby sprawdzić czy nVidia pracuje w danym momencie czy odpoczywa (zagadnienie dotyczy także Windowsa).


Code: Select all
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" # Screen powiązany ze sterownikiem nvidia
Inactive "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
[...]

Code: Select all
#!/bin/sh
# Ustawia korzystanie z karty graficznej Intel + NVidia
eselect opencl set 2
eselect opengl set 1
cp /etc/X11/optimus/xorg-optimus.conf /etc/X11/xorg.conf
cp /etc/X11/optimus/94-xrandr-nvidia /etc/X11/xinit/xinitrc.d/94-xrandr
/etc/init.d/udev restarttCode: Select all
#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr –autoCode: Select all
#!/bin/sh
# Ustawia korzystanie tylko z karty graficznej Intel
eselect opencl set 1
eselect opengl set 2
cp /etc/X11/optimus/xorg-intel-only.conf /etc/X11/xorg.conf
cp /etc/X11/optimus/94-xrandr-intel /etc/X11/xinit/xinitrc.d/94-xrandr
/etc/init.d/udev restartCode: Select all
#!/bin/sh
xrandr --autoCode: Select all
##################### PROFILE ###################
Section "ServerLayout"
Identifier "Main Layout"
Screen 0 "IntelScreen"
EndSection
Section "Files"
ModulePath "/usr/lib64/xorg/modules,/usr/lib64/opengl/xorg-x11/extensions"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/dejavu"
FontPath "/usr/share/fonts/freefonts"
FontPath "/usr/share/fonts/liberation-fonts"
FontPath "/usr/share/fonts/libertine"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/urw-fonts"
EndSection
Section "Module"
Load "synaptics"
Load "type1"
Load "freetype"
EndSection
Section "ServerFlags"
Option "Xinerama" "0"
Option "AIGLX" "off"
Option "AllowEmptyInput" "off"
Option "AutoAddDevices" "true"
Option "AutoEnableDevices" "true"
Option "AutoAddGPU" "true"
Option "blank time" "7"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
###################### TYPY MONITOROW #######################
Section "Monitor"
Identifier "Monitor0"
ModelName "DFP"
Option "dpms"
Modeline "1366x768_60.00" 85.25 1366 1440 1576 1784 768 771 781 798 -hsync +vsync
EndSection
######################### KARTY GRAFICZNE #######################
Section "Device"
Identifier "nVidia"
VendorName "nVidia Corporation"
Driver "nvidia"
BusID "PCI:4:0:0"
Option "UseDisplayDevice" "none"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Device"
Identifier "Intel"
Driver "intel"
BusID "PCI:0:2:0"
Option "Monitor-eDP-0" "Monitor0"
EndSection
##################### SPRZET WYSWIETLAJACY ######################
Section "Screen"
Identifier "IntelScreen"
Device "Intel"
Monitor "Monitor0"
# W przypadku sterownika "intel", nie trzeba tutaj definiowac "Modes", bo on to robi sam.
EndSection
Code: Select all
##################### PROFILE ###################
Section "ServerLayout"
Identifier "Main Layout"
Screen 0 "nVidiaScreen"
Inactive "Intel"
EndSection
Section "Files"
ModulePath "/usr/lib64/xorg/modules,/usr/lib64/opengl/xorg-x11/extensions"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/dejavu"
FontPath "/usr/share/fonts/freefonts"
FontPath "/usr/share/fonts/liberation-fonts"
FontPath "/usr/share/fonts/libertine"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/urw-fonts"
EndSection
Section "Module"
Load "synaptics"
Load "type1"
Load "freetype"
EndSection
Section "ServerFlags"
Option "Xinerama" "0"
Option "AIGLX" "off"
Option "AllowEmptyInput" "off"
Option "AutoAddDevices" "true"
Option "AutoEnableDevices" "true"
Option "AutoAddGPU" "true"
Option "blank time" "7"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
###################### TYPY MONITOROW #######################
Section "Monitor"
Identifier "Monitor0"
ModelName "DFP"
Option "dpms"
Modeline "1366x768_60.00" 85.25 1366 1440 1576 1784 768 771 781 798 -hsync +vsync
EndSection
######################### KARTY GRAFICZNE #######################
Section "Device"
Identifier "nVidia"
VendorName "nVidia Corporation"
Driver "nvidia"
BusID "PCI:4:0:0"
Option "DPI" "96 x 96"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Device"
Identifier "Intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
##################### SPRZET WYSWIETLAJACY ######################
Section "Screen"
Identifier "nVidiaScreen"
Device "nVidia"
Monitor "Monitor0"
SubSection "Display"
Depth 24
Modes "1366x768" "1024x768" "800x600"
Virtual 1366 768
EndSubSection
EndSection
Section "Screen"
Identifier "IntelScreen"
Device "Intel"
Monitor "Monitor0"
EndSection
Code: Select all
(EE) Screen 1 deleted because of no matching config section.Ponoć Optimus gryzię się Plasma 5 z KDE, a ja potrzebuje najnowsze wersji kdenlive, które wymaga już Plasma 5working on this issue, tracking this issue under bug 1629916

Ja mam 620M a wątek na Nvidi dotyczy 630M (i ponoć całej serii mobilnej).robertsurma wrote:Moja karta: nVidia GeForce 820M.
Hmm... ja mam kdenlive i nie mam plasmy
Przed chwilą specjalnie sprawdzałem najnowszą wersję.
Możesz użyć nvidia-settings, gdzie jednym z parametrów przekazywanych jest numer desktopu: bumbleebee zwyczajowo używa :8robertsurma wrote:Zastanawiam się jednak, czy jest jakiś sposób, aby sprawdzić czy nVidia pracuje w danym momencie czy odpoczywa (zagadnienie dotyczy także Windowsa).
Code: Select all
nvidia-settings -q [gpu:0]/GPUCoreTemp -c :8 -t 2> /dev/nulldlatego ja przekierowuje błędy do null i sprawdzam, czy mam coś na wyjściu czy nie. Ten kog chodzi mi m.in. w conky.ERROR: Unable to load info from any available system
