#1004185 bumblebee: no auto screen lock + system freeze, but super+l does lock the screen + partial system

Package:
bumblebee
Source:
bumblebee
Description:
NVIDIA Optimus support for Linux
Submitter:
wim
Date:
2022-01-22 10:57:04 UTC
Severity:
normal
#1004185#5
Date:
2022-01-22 10:53:06 UTC
From:
To:
Hello,

i can lock my screen with super+l and unlock it, this works,
if the system is suspended after a while in this case,
the virtual monitors don't return automatically,
this takes some work,
and if they return the setup is not fully functional,

if i don't lock my screen explicitely, the screen does not seem to get locked,
the virtual screen go black after a while and the primary screen does not lock or go black;
if the system them suspend, it is inaccessible to use, no io possible with keyboard, mouse, builtin or not

more info:
to get the laptop screen + 2 monitors running i use:
$ primusrun true
$ intel-virtual-output

(because of the different resolution of the monitors, and a positioning problem,
ie 2x1920x0 as position of VIRTUAL1, as eDP1 can go up to 2x1920 horizontally,

Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
eDP1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   3840x2160     60.00*+  40.00

where the modeline from cvt to use 3840x2160/2 = 1920x1080 does not work (cvt, cvt -r)

which is not solved using the default gnome settings for the screens)

$ xrandr --output eDP1 --scale 0.5x0.5 --output VIRTUAL1 --primary --scale 1x1 --pos 1920x0 --output VIRTUAL2 --scale 1x1 --pos 3840x0
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  7 (RRSetScreenSize)
  Serial number of failed request:  72
  Current serial number in output stream:  74
(which gives this error, but seem to work most of the time)

after suspend clinfo does not dedect the nvidia device anymore, only the cpu;
but nvidia itself still does find the nvidia card using optirun
eg
$ optirun nvidia-settings -c :8

the setup used is a described on:
* https://wiki.debian.org/Bumblebee
* https://wiki.archlinux.org/title/HP_Zbook_Studio_G5#Bumblebee

if needed, i can sent the journal

hth,
Wim