Problems with nvidia-driver and optimus laptop

If none of the more specific forums is the right place to ask

Problems with nvidia-driver and optimus laptop

Postby vctt » 2020-09-03 14:00

I have a laptop with debian 10 buster installed. It has a CPU i5-9300H and the output for lspci -v | egrep -i --color 'vga|3d|2d' is:

Code: Select all
vctt@vctt:~$ lspci -v | egrep -i --color 'vga|3d|2d'
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 3 GB Max-Q] (rev a1) (prog-if 00 [VGA controller])

I am using the nvidia-driver 440.100:

Code: Select all
vctt@vctt:~$ grep "X Driver" /var/log/Xorg.0.log
[     7.060] (II) NVIDIA dlloader X Driver  440.100  Fri May 29 08:21:27 UTC 2020

I also have a monitor model AOC 27G2G4, which works fine with my laptop (although I cant use both the laptop screen and the monitor)

This is my xorg.conf:

Code: Select all
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 440.64

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "LaptopScreen" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Inactive       "IntelCard"
    Option         "Xinerama" "0"

Section "Files"

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

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

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "AOC 27G2G4"
    HorizSync       30.0 - 160.0
    VertRefresh     48.0 - 144.0
    Option         "DPMS"

Section "Monitor"
   Identifier   "LaptopMonitor"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"

Section "Device"
   Identifier  "IntelCard"
   Driver      "intel"
   BusID       "PCI:0:2:0"
   Driver      "modesetting"

Section "Device"
    Identifier     "NvidiaCard"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1050"
    BusID          "PCI:1:0:0"
    Option         "AllowEmptyInitialConfiguration"

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-4"
    Option         "metamodes" "1920x1080_144 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24

Section "Screen"
   Identifier "LaptopScreen"
   Device     "NvidiaCard"
   Monitor    "LaptopMonitor"

The problem is: Everytime I want to use my laptop without the monitor, its screen does not work, unless I manually change my xorg.conf to use intel drivers and I can't use the nvidia-driver on the laptop screen, I have no ideai why, so any help would be appreciated.

Posts: 5
Joined: 2014-10-17 15:30

Re: Problems with nvidia-driver and optimus laptop

Postby sunrat » 2020-09-04 02:31

So you followed the wiki guide for Bumblebee? You need that for Optimus graphics.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
Posts: 3335
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Return to General Questions

Who is online

Users browsing this forum: No registered users and 13 guests