Bottles and Nvidia Prime Optimus GPU

Hi all, im trying to run Fusion 360 inside of Bottles on my device. In a VM, it runs without any issues. Now if I want to run it on my machine directly. it wont start. In Steam, I dont have any issues running games with the paramter prime-run %command% and I also can see in nvtop that the Nvidia GPU is getting used.

It seems to be an issue with using the discrete GPU, if I disable that option in Bottles, Fusion starts just like in the VM. If I start it with use discrete GPU active, I get some errors regarding xrandr. Shell output from that case see below.

(bottles:2): Gtk-WARNING **: 17:28:33.594: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Keine derartige Schnittstelle »org.freedesktop.portal.Inhibit« des Objekts im Pfad /org/freedesktop/portal/desktop
17:28:39 (INFO) Performing Bottles checks… 
17:28:39 (INFO) Dxvks found:
	 - dxvk-2.3
17:28:39 (INFO) Vkd3ds found:
	 - vkd3d-proton-2.10
17:28:39 (INFO) Nvapis found:
	 - dxvk-nvapi-v0.6.4
17:28:39 (INFO) Latencyflexs found:
	 - latencyflex-v0.1.1
17:28:39 (INFO) Runners found:
	 - soda-experimental_8.0
	 - sys-wine-8.0.2
17:28:39 (INFO) Bottles found:
	 - Fusion
	 - Fusion_gaming
17:28:40 (INFO) Catalog installers loaded 
17:28:40 (INFO) Catalog components loaded 
17:28:40 (INFO) Catalog dependencies loaded 
17:28:46 (INFO) Launching an executable… 
17:28:46 (WARNING) Windows path detected. Avoiding validation. 
17:28:46 (INFO) Using Wine Starter -- run 
17:28:48 (INFO) Using EasyAntiCheat runtime 
17:28:48 (INFO) Using BattlEye runtime 
wineserver: using server-side synchronization.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
00d8:err:xrandr:xrandr14_get_adapters Failed to get adapters
00d8:err:xrandr:xrandr14_get_adapters Failed to get adapters
00d8:err:xrandr:xrandr14_get_adapters Failed to get adapters
00d8:err:xrandr:xrandr14_get_adapters Failed to get adapters
00d8:err:xrandr:xrandr14_get_adapters Failed to get adapters
00d8:err:xrandr:xrandr14_get_adapters Failed to get adapters
0114:err:xrandr:xrandr14_get_adapters Failed to get adapters
0114:err:xrandr:xrandr14_get_adapters Failed to get adapters
0130:err:xrandr:xrandr14_get_adapters Failed to get adapters
0130:err:xrandr:xrandr14_get_adapters Failed to get adapters
info:  Game: Fusion360.exe
info:  DXVK: v2.3
info:  Vulkan: Found vkGetInstanceProcAddr in winevulkan.dll @ 0x2d4ad3fe0
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
info:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  NVIDIA RTX A2000 Laptop GPU:
info:    Driver : NVIDIA 545.29.2
info:    Memory Heap[0]: 
info:      Size: 4096 MiB
info:      Flags: 0x1
info:      Memory Type[1]: Property Flags = 0x1
info:      Memory Type[4]: Property Flags = 0x7
info:    Memory Heap[1]: 
info:      Size: 23868 MiB
info:      Flags: 0x0
info:      Memory Type[0]: Property Flags = 0x0
info:      Memory Type[2]: Property Flags = 0x6
info:      Memory Type[3]: Property Flags = 0xe
info:  Process set as DPI aware
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  156 (NV-GLX)
  Minor opcode of failed request:  43 ()
  Serial number of failed request:  353
  Current serial number in output stream:  354

Output of inxi:

[daniel@fs0ciety ~]$ inxi -Fxxc0z
  Kernel: 6.6.1-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    Desktop: i3 v: 4.23 dm: LightDM Distro: EndeavourOS base: Arch Linux
  Type: Laptop System: Dell product: Precision 5560 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0G06MM v: A00 serial: <superuser required> UEFI: Dell
    v: 1.24.0 date: 09/12/2023
  ID-1: BAT0 charge: 43.0 Wh (74.9%) condition: 57.4/84.3 Wh (68.1%)
    volts: 11.2 min: 11.4 model: BYD DELL M59JH19 serial: <filter>
    status: discharging
  Info: 8-core model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 640 KiB L2: 10 MiB L3: 24 MiB
  Speed (MHz): avg: 1369 high: 1500 min/max: 800/4600 cores: 1: 788 2: 1236
    3: 1331 4: 1500 5: 1439 6: 1500 7: 1500 8: 1500 9: 1095 10: 1257 11: 1409
    12: 1500 13: 1357 14: 1500 15: 1500 16: 1500 bogomips: 73744
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Dell driver: i915
    v: kernel arch: Gen-12.1 ports: active: eDP-1 empty: DP-1,DP-2,DP-3
    bus-ID: 00:02.0 chip-ID: 8086:9a60
  Device-2: NVIDIA GA107GLM [RTX A2000 Mobile] vendor: Dell driver: nvidia
    v: 545.29.02 arch: Ampere pcie: speed: 2.5 GT/s lanes: 8 bus-ID: 01:00.0
    chip-ID: 10de:25b8
  Device-3: Microdia Integrated_Webcam_HD driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-11:3 chip-ID: 0c45:672e
  Display: x11 server: X.Org v: 21.1.9 driver: X: loaded: modesetting,nvidia
    alternate: fbdev,intel,nouveau,nv,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96
  Monitor-1: eDP-1 model: LG Display 0x06b3 res: 1920x1200 dpi: 145
    diag: 396mm (15.6")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: iris
    device: 3 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11:
    drv: iris inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.2.1-arch1.2
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
    device-ID: 8086:9a60
  Device-1: Intel Tiger Lake-H HD Audio vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:43c8
  API: ALSA v: k6.6.1-arch1-1 status: kernel-api
  Server-1: PipeWire v: 0.3.85 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
  Device-1: Intel Tiger Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:43f0
  IF: wlan0 state: up mac: <filter>
  IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 3-14:4 chip-ID: 8087:0026
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
  Local Storage: total: 3.96 TiB used: 444.82 GiB (11.0%)
  ID-1: /dev/nvme0n1 vendor: Lexar model: SSD NM790 4TB size: 3.73 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 39.9 C
  ID-2: /dev/nvme1n1 model: PCIe SSD size: 238.47 GiB speed: 31.6 Gb/s
    lanes: 4 serial: <filter> temp: 24.9 C
  ID-1: / size: 491.08 GiB used: 28.62 GiB (5.8%) fs: ext4 dev: /dev/nvme0n1p1
  ID-2: /home size: 3.21 TiB used: 415.91 GiB (12.7%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-1: swap-1 type: partition size: 32.23 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p2
  System Temperatures: cpu: 54.0 C mobo: N/A
  Fan Speeds (rpm): N/A
  Processes: 453 Uptime: 11m Memory: total: 32 GiB note: est.
  available: 31.08 GiB used: 9.38 GiB (30.2%) Init: systemd v: 254
  default: graphical Compilers: gcc: 13.2.1 clang: 16.0.6 Packages: 1296
  pm: pacman pkgs: 1281 pm: flatpak pkgs: 15 Shell: Bash v: 5.2.15
  running-in: xfce4-terminal inxi: 3.3.31

Any one of you using a similar combination without issues or with any hints what I should look into?