390xx bumblebee Lutris/Wine Settings

Hi, im new to linux, got the dGpu running with Optirun and Primusrun (no Optimus Manager),

System:
  Kernel: 5.4.164-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-5.4-x86_64
    root=UUID=1a7c5ff1-f63c-4fcc-9922-2df9fea7fdfc rw rootflags=subvol=@ quiet
    apparmor=1 security=apparmor udev.log_priority=3
  Desktop: KDE Plasma 5.23.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: K73SV v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: K73SV v: 1.0 serial: <superuser required>
    BIOS: American Megatrends v: K73SV.207 date: 07/01/2011
Memory:
  RAM: total: 7.68 GiB used: 3.1 GiB (40.3%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-2410M bits: 64 type: MT MCP arch: Sandy Bridge
    family: 6 model-id: 0x2A (42) stepping: 7 microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 1945 high: 2552 min/max: 800/2900 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1554 2: 1822 3: 1854
    4: 2552 bogomips: 18364
  Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov
    constant_tsc cpuid cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept est
    flexpriority flush_l1d fpu fxsr ht ibpb ibrs ida lahf_lm lm mca mce
    md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat pbe pcid
    pclmulqdq pdcm pebs pge pln pni popcnt pse pse36 pti pts rdtscp rep_good
    sep ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc
    tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: Split huge pages
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    vendor: ASUSTeK driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0116
    class-ID: 0300
  Device-2: NVIDIA GF108M [GeForce GT 540M] driver: N/A
    alternate: nouveau, nvidia_drm, nvidia bus-ID: 01:00.0 chip-ID: 10de:0df4
    class-ID: 0300
  Device-3: IMC Networks UVC VGA Webcam type: USB driver: uvcvideo
    bus-ID: 1-1.2:3 chip-ID: 13d3:5710 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.21.1.2 compositor: kwin_x11 driver:
    loaded: intel display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.7x9.4")
    s-diag: 485mm (19.1")
  Monitor-1: LVDS1 res: 1600x900 hz: 60 dpi: 107 size: 380x210mm (15.0x8.3")
    diag: 434mm (17.1")
  OpenGL: renderer: Mesa DRI Intel HD Graphics 3000 (SNB GT2)
    v: 3.3 Mesa 21.2.5 compat-v: 3.0 direct render: Yes
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:1c20 class-ID: 0403
  Device-2: NVIDIA GF108 High Definition Audio driver: snd_hda_intel
    v: kernel bus-ID: 01:00.1 chip-ID: 10de:0bea class-ID: 0403
  Sound Server-1: ALSA v: k5.4.164-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.40 running: yes
Network:
  Device-1: Ralink RT5390 Wireless 802.11n 1T/1R PCIe vendor: AzureWave
    driver: rt2800pci v: 2.3.0 bus-ID: 03:00.0 chip-ID: 1814:5390 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet vendor: ASUSTeK
    driver: atl1c v: 1.0.1.1-NAPI port: a000 bus-ID: 04:00.0 chip-ID: 1969:1083
    class-ID: 0200
  IF: enp4s0 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 465.76 GiB used: 131.32 GiB (28.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST9500325AS
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: SDM1 scheme: MBR
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GT34N rev: AS00
    dev-links: cdrom
  Features: speed: 24 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 465.76 GiB size: 465.76 GiB (100.00%)
    used: 131.32 GiB (28.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 1a7c5ff1-f63c-4fcc-9922-2df9fea7fdfc
  ID-2: /home raw-size: 465.76 GiB size: 465.76 GiB (100.00%)
    used: 131.32 GiB (28.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 1a7c5ff1-f63c-4fcc-9922-2df9fea7fdfc
  ID-3: /run/timeshift/backup raw-size: 465.76 GiB
    size: 465.76 GiB (100.00%) used: 131.32 GiB (28.2%) fs: btrfs dev: /dev/sda1
    maj-min: 8:1 label: N/A uuid: 1a7c5ff1-f63c-4fcc-9922-2df9fea7fdfc
  ID-4: /var/cache raw-size: 465.76 GiB size: 465.76 GiB (100.00%)
    used: 131.32 GiB (28.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 1a7c5ff1-f63c-4fcc-9922-2df9fea7fdfc
  ID-5: /var/log raw-size: 465.76 GiB size: 465.76 GiB (100.00%)
    used: 131.32 GiB (28.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 1a7c5ff1-f63c-4fcc-9922-2df9fea7fdfc
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Device-1: 1-1.2:3 info: IMC Networks UVC VGA Webcam type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 13d3:5710 class-ID: 0e02 serial: <filter>
  Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Device-1: 2-1.1:3 info: GreenAsia 2.4G RX type: Keyboard,Mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s
    power: 100mA chip-ID: 0e8f:00a8 class-ID: 0301
Sensors:
  System Temperatures: cpu: 67.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 3000
Info:
  Processes: 241 Uptime: 2h 43m wakeups: 1 Init: systemd v: 249
  tool: systemctl Compilers: gcc: 11.1.0 Packages: 1431 pacman: 1415 lib: 388
  flatpak: 9 snap: 7 Shell: Zsh v: 5.8 default: fish v: 3.3.1
  running-in: konsole inxi: 3.3.11

now i just want to install a single Game with Lutris. but no luck.

i installed

sudo pacman -Syu wine-staging winetricks wine-mono wine_gecko vulkan-icd-loader lib32-vulkan-icd-loader vkd3d lib32-vkd3d gvfs

and
sudo pacman -S lutris

when i

optirun lutris

i get: Your NVIDIA driver is outdated. you are currently running driver 390.144 wich does not fully support all features for Vulkan and DXVK games.

primusrun lutris

doesnt work at all.
and starting just lutris opens it without an error message.

Now i click Add new Game
Give it a Name/ Runner=Wine/Executable=path to the instal.exe/ Wineprefix= New folder in GamesFolder

Wine version = System(6.23(Staging))
Disable DXVK VKD3D Esync
Use discrete graphics =disabled

i save and run the new game First Wine starts after that the installer.
now if i change the exe to the installed game and run nothing happens.

lutris-wrapper: Isaac 1.0
Started initial process 15800 from /usr/bin/wine /home/jakob/Games/Isaac1.0/drive_c/GOG Games/The Binding of Isaac Rebirth/isaac-ng_repentance.exe
Start monitoring process.
Xlib:  extension "NV-GLX" missing on display ":0".
Monitored process exited.
Initial process has exited (return code: 13568)
Exit with return code 13568

when i turn on Optimus launcher (Nvidia Optimus laptops)= optirun/virtualgl

lutris-wrapper: Isaac 1.0
Started initial process 15976 from optirun -b virtualgl /usr/bin/wine /home/jakob/Games/Isaac1.0/drive_c/GOG Games/The Binding of Isaac Rebirth/isaac-ng_repentance.exe
Start monitoring process.
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  7 (X_GLXQueryVersion)
  Value in failed request:  0x17
  Serial number of failed request:  9
  Current serial number in output stream:  9
wine: Unhandled page fault on execute access to 00007F69BB14D880 at address 00007F69BB14D880 (thread 0080), starting debugger...
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Monitored process exited.
Initial process has exited (return code: 13568)
Exit with return code 13568

Any Help appreciated

Not so sure about that. Try reinstalling it: Configure Graphics Cards - Manjaro

optirun inxi --admin --verbosity=7 --filter --width

...

Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    vendor: ASUSTeK driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0116
    class-ID: 0300
  Device-2: NVIDIA GF108M [GeForce GT 540M] vendor: ASUSTeK driver: nvidia
    v: 390.144 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:0df4
    class-ID: 0300
  Device-3: IMC Networks UVC VGA Webcam type: USB driver: uvcvideo
    bus-ID: 1-1.2:3 chip-ID: 13d3:5710 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.21.1.2 compositor: kwin_x11 driver:
    loaded: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.7x9.4")
    s-diag: 485mm (19.1")
  Monitor-1: LVDS1 res: 1600x900 hz: 60 dpi: 107 size: 380x210mm (15.0x8.3")
    diag: 434mm (17.1")
  OpenGL: renderer: GeForce GT 540M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.144
    direct render: Yes

Just run Lutris normally and configure the settings instead. Lutris has support for running games with hybrid graphics.

starting Lutris normaly, (DXVK VK3D D3DExtras DXVK-NVAPI Esync all disabled)

lutris-wrapper: Isaac 1.0
Started initial process 15800 from /usr/bin/wine /home/jakob/Games/Isaac1.0/drive_c/GOG Games/The Binding of Isaac Rebirth/isaac-ng_repentance.exe
Start monitoring process.
Xlib:  extension "NV-GLX" missing on display ":0".
Monitored process exited.
Initial process has exited (return code: 13568)
Exit with return code 13568

under System Options: Use discrete graphics= enabled or disabled
no change in the LogFile

Enable NVIDIA Prime Render Offload = enabled or disabled
no change in the LogFile

Optimus launcher (Nvidia Optimus laptops)=primusrun
no change in the LogFile

Only optirun/virtualgl gives

lutris-wrapper: Isaac 1.0
Started initial process 15976 from optirun -b virtualgl /usr/bin/wine /home/jakob/Games/Isaac1.0/drive_c/GOG Games/The Binding of Isaac Rebirth/isaac-ng_repentance.exe
Start monitoring process.
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  7 (X_GLXQueryVersion)
  Value in failed request:  0x17
  Serial number of failed request:  9
  Current serial number in output stream:  9
wine: Unhandled page fault on execute access to 00007F69BB14D880 at address 00007F69BB14D880 (thread 0080), starting debugger...
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Monitored process exited.
Initial process has exited (return code: 13568)
Exit with return code 13568

Lutris spit out this message for a reason:

GeForce GT 540M needs Legacy Drivers 390.xx to function with optirun, thats also why the Kernel is 5.4.
Is there no way to run DirectX (if needed) through winetricks?