Incorrect resolution detected by nvidia / intel-virtual-output

Hi,
I use Manjaro Cinnamon edition with legacy GRUB boot.
I have Lenovo P50 on docking station connected to 2 additional Samsung 1920x1200 monitors.
I have installed bumblebee with nvidia 390 proprietary drivers. That setup have been working for some time pretty well.

Today I experience problem with resolution detection. When I type intel-virtual-output after login, screens are detected but with incorrect max resolution 1600x900. It is also like this in nvidia-settings. Could you help me to fix the resolution detection?

mhwd -li

video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI

optirun inxi -Gxxxaz

Graphics:
  Device-1: Intel HD Graphics 530 vendor: Lenovo driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:191b 
  Device-2: NVIDIA GM107GLM [Quadro M2000M] vendor: Lenovo driver: nvidia 
  v: 390.132 bus ID: 01:00.0 chip ID: 10de:13b0 
  Display: server: X.Org 1.20.5 driver: intel 
  resolution: 1368x768~60Hz, 1600x900~60Hz, 1600x900~60Hz 
  OpenGL: renderer: Quadro M2000M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.132 
  direct render: Yes 

optirun xrandr

Screen 0: minimum 8 x 8, current 4568 x 900, maximum 32767 x 32767
eDP1 connected primary 1368x768+3200+0 (normal left inverted right x axis y axis) 350mm x 190mm
   3840x2160     60.00 +  59.97  
   3200x1800     59.96    60.00    59.94  
   2880x1620     60.00    59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.96    60.00    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     59.96    60.00    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00*   59.88    59.85  
   1280x800      59.81    59.91  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
VIRTUAL1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00  
   1600x900      59.82* 
   1400x900      59.88  
   1368x768      59.88    59.85  
   1280x800      59.91    59.81  
   1280x720      59.86    59.74  
   1024x576      59.90    59.82  
   960x540       59.82    59.63  
   864x486       59.92    59.57  
   VIRTUAL1.558-800x600  72.19  
   800x600       60.32    56.25  
   VIRTUAL1.561-800x450  59.82  
   VIRTUAL1.562-700x450  59.88  
   VIRTUAL1.563-684x384  59.88  
   VIRTUAL1.564-684x384  59.85  
   640x480       59.94  
   VIRTUAL1.566-640x400  59.98  
   VIRTUAL1.567-640x400  59.88  
   VIRTUAL1.568-640x360  59.86  
   VIRTUAL1.569-640x360  59.83  
   VIRTUAL1.570-512x384  60.00  
   VIRTUAL1.571-512x288  60.00  
   VIRTUAL1.572-512x288  59.92  
   VIRTUAL1.573-480x270  59.82  
   VIRTUAL1.574-480x270  59.63  
   VIRTUAL1.575-432x243  59.92  
   VIRTUAL1.576-432x243  59.57  
   VIRTUAL1.577-400x300  72.19  
   VIRTUAL1.578-320x240  60.05  
VIRTUAL2 connected 1600x900+1600+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00  
   1600x900      59.82* 
   1400x900      59.88  
   1368x768      59.88    59.85  
   1280x800      59.91    59.81  
   1280x720      59.86    59.74  
   1024x576      59.90    59.82  
   960x540       59.82    59.63  
   864x486       59.92    59.57  
   VIRTUAL1.558-800x600  72.19  
   800x600       60.32    56.25  
   VIRTUAL1.561-800x450  59.82  
   VIRTUAL1.562-700x450  59.88  
   VIRTUAL1.563-684x384  59.88  
   VIRTUAL1.564-684x384  59.85  
   640x480       59.94  
   VIRTUAL1.566-640x400  59.98  
   VIRTUAL1.567-640x400  59.88  
   VIRTUAL1.568-640x360  59.86  
   VIRTUAL1.569-640x360  59.83  
   VIRTUAL1.570-512x384  60.00  
   VIRTUAL1.571-512x288  60.00  
   VIRTUAL1.572-512x288  59.92  
   VIRTUAL1.573-480x270  59.82  
   VIRTUAL1.574-480x270  59.63  
   VIRTUAL1.575-432x243  59.92  
   VIRTUAL1.576-432x243  59.57  
   VIRTUAL1.577-400x300  72.19  
   VIRTUAL1.578-320x240  60.05  
VIRTUAL3 disconnected (normal left inverted right x axis y axis)
VIRTUAL4 disconnected (normal left inverted right x axis y axis)
VIRTUAL5 disconnected (normal left inverted right x axis y axis)
VIRTUAL6 disconnected (normal left inverted right x axis y axis)
VIRTUAL7 disconnected (normal left inverted right x axis y axis)
VIRTUAL8 disconnected (normal left inverted right x axis y axis)
VIRTUAL9 disconnected (normal left inverted right x axis y axis)

/etc/bumblebee/bumblebee.conf

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d
XorgBinary=Xorg

[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false



[driver-nvidia]
KernelDriver=nvidia
PMMethod=auto
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
XorgModulePath=/usr/lib/nvidia/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

/etc/bumblebee/xorg.conf.nvidia

Section "ServerLayout"
    Identifier "Layout0"
    Option "AutoAddDevices" "false"
EndSection

Section "Device"
    Identifier  "Device1"
    Driver      "nvidia"
    BusID       "PCI:1:0:0"
    VendorName "NVIDIA Corporation"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "ConnectedMonitor" "DFP"
EndSection

systemctl status bumblebeed --no-pager

● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-11-19 12:36:18 CET; 21min ago
 Main PID: 586 (bumblebeed)
    Tasks: 2 (limit: 4915)
   Memory: 52.9M
   CGroup: /system.slice/bumblebeed.service
           β”œβ”€ 586 /usr/bin/bumblebeed --use-syslog
           └─1774 /usr/lib/Xorg :8 -config /etc/bumblebee/xorg.conf.nvidia -configdir /etc/bumblebee/xorg.conf.d -sharevts -nolisten tcp -noreset -verbose 3 -isolateDevice PCI:01:00:0 -modulepath /usr/lib/nvidia/xorg,/usr/lib/xorg/modules

lis 19 12:37:07 michalmi bumblebeed[586]: [XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
lis 19 12:37:07 michalmi bumblebeed[586]: [XORG] (WW) NVIDIA(0):     maximum image size; cannot compute DPI from DFP-3.1's
lis 19 12:37:07 michalmi bumblebeed[586]: [XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
lis 19 12:37:07 michalmi bumblebeed[586]: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)
lis 19 12:37:56 michalmi bumblebeed[586]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
lis 19 12:37:56 michalmi bumblebeed[586]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
lis 19 12:37:56 michalmi bumblebeed[586]: [XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
lis 19 12:37:56 michalmi bumblebeed[586]: [XORG] (WW) NVIDIA(0):     maximum image size; cannot compute DPI from DFP-3.1's
lis 19 12:37:56 michalmi bumblebeed[586]: [XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
lis 19 12:37:56 michalmi bumblebeed[586]: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)

journalctl -b -g "bbswitch|bumble" --no-pager --no-hostname

-- Logs begin at Tue 2018-08-21 12:25:13 CEST, end at Tue 2019-11-19 12:57:59 CET. --
lis 19 12:36:18 systemd[1]: Started Bumblebee C Daemon.
lis 19 12:36:18 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bumblebeed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
lis 19 12:36:18 kernel: bbswitch: loading out-of-tree module taints kernel.
lis 19 12:36:18 kernel: bbswitch: module verification failed: signature and/or required key missing - tainting kernel
lis 19 12:36:18 kernel: bbswitch: version 0.8
lis 19 12:36:18 kernel: bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
lis 19 12:36:18 kernel: bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
lis 19 12:36:18 kernel: bbswitch: detected an Optimus _DSM function
lis 19 12:36:18 kernel: bbswitch: disabling discrete graphics
lis 19 12:36:18 bumblebeed[586]: /usr/bin/bumblebeed 3.2.1-2017-02-27-Format:%h$ started
lis 19 12:36:18 kernel: bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off
lis 19 12:37:04 kernel: bbswitch: enabling discrete graphics
lis 19 12:37:48 kernel: bbswitch: disabling discrete graphics
lis 19 12:37:54 kernel: bbswitch: enabling discrete graphics

Ok I found the solution:

/etc/bumblebee/xorg.conf.nvidia

    Option "AutoAddDevices" "true"
    ...
    Option "UseEDID" "true"
1 Like

Forum kindly sponsored by