GithubHelp home page GithubHelp logo

Comments (1)

srosano avatar srosano commented on June 30, 2024

Fixed this by using the modesetting driver instead of "intel" as I didn't have the intel drivers installed - this is as recommended by the Debian wiki. However it is personal preference what drivers you choose to use - note to use intel drivers they must be installed.

You will also need to do the following as per the multi-monitor bumblebee wiki:
xrandr --listproviders (don't need to do this one but makes more sense to work out which monitors are in which order)
xrandr --setprovideroutputsource 1 0
xrandr --output eDP-1-1 --mode 1920x1080 --primary --preferred --output HDMI-0 --right-of eDP-1-1

You will also need to find the ModulePath "/usr/lib/x86_64-linux-gnu/" to libGL.so directory (not sure if directory has changed since new updates and thus hasn't been updated in the bumblebee multi-monitor wiki).

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 460.32.03

Section "ServerLayout"
    Identifier      "Layout0"
    #Screen       0  "intel" leftof "DiscreteNvidia"
    Screen       0  "DiscreteNvidia"
    Inactive        "intel"
    InputDevice     "Keyboard0" "CoreKeyboard"
    InputDevice     "Mouse0" "CorePointer"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

## NVIDA GPU DEVICE ##
Section "Device"
    Identifier     "DiscreteNvidia"
    Driver         "nvidia"
    BusID          "PCI:1:0:0"
#   Option              "DPI" "96 x 96"  # Uncoment to fix the size of fonts
    Option "ConstrainCursor" "off"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "DiscreteNvidia"
    Device         "DiscreteNvidia"
    Monitor        "HDMI-0"
    # 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"
    Option "AllowEmptyInitialConfiguration" "on"
#    Option "IgnoreDisplayDevices" "CRT"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Monitor"
    Identifier     "HDMI-0"
    Option "PreferredMode" "1920x1080"
    Option "TargetRefresh" "60"
    #Option "leftof" "eDP1"
    #Option "Position" "1920 0"
    VendorName     "Dell Inc. 24inch"
    ModelName      "P2417H"
EndSection

## END NVIDA GPU DEVICE ##

## START INTEL ##
Section "Device"
    Identifier     "intel"
#intel graphic card is 2007 and newer, try uninstalling the xserver-xorg-video-intel package and use the builtin modesetting driver (xserver-xorg-core) instead.
    Driver         "modesetting"
    BusID          "PCI:0:2:0"
    Option         "AccelMethod"  "uxa"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
#    Monitor        "eDP1"
EndSection

## The montior section isn't needed because we are using xrandr to manage this instead of XORG

#Section "Monitor"
#    Identifier     "eDP1"
#    Option "PreferredMode" "1920x1080"
#    Option "TargetRefresh" "60"
#    Option "rightof" "Monitor0"
#    Option "Position" "0 0"
#    VendorName     "Intel"
#    ModelName      "Intel"
    #Option         "DPMS"
#EndSection
## ENG INTEL ##

Section "Files"
# Module path should point to the libGL.so directory use sudo ldconfig -p | grep libGL.so to find 
  ModulePath   "/usr/lib/x86_64-linux-gnu/"
  ModulePath   "/usr/lib/xorg/modules/"
EndSection

from bumblebee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.