# Non-existent shared VRAM on NVIDIA Linux drivers

**URL:** <https://forums.developer.nvidia.com/t/non-existent-shared-vram-on-nvidia-linux-drivers/260304>\
**Category:** Linux\
**Created:** [July 19, 2023, 8:18am UTC](https://forums.developer.nvidia.com/t/non-existent-shared-vram-on-nvidia-linux-drivers/260304 "2023-07-19T08:18:24Z")\
**Posts on this page:** 1\
**Showing post:** 79

<div class="post-metadata">

**Author:** ![renari](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/renari/32/410440_2.png) [@renari](https://forums.developer.nvidia.com/u/renari)\
**Post date:** [June 18, 2025, 7:18am UTC](https://forums.developer.nvidia.com/t/non-existent-shared-vram-on-nvidia-linux-drivers/260304/79 "2025-06-18T07:18:02Z")

</div>

I’ve been able to play via setting my default GPU to the iGPU in plasma.

> ~/.config/plasma-workspace/env/auto\_kwin\_drm.sh

```bash
#!/bin/bash

nvidia_has_outputs=$(grep -l "^connected" /sys/class/drm/card?-*/status)

if [["$nvidia_has_outputs" == *"card1"*]]; then
# Set igpu as primary renderer when it has at least one output connected
    export KWIN_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0
else
# otherwise, set dgpu as primary renderer
    export KWIN_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1
fi

```

Courtesy of someone on reddit (made changes to match my card and not disable the dGPU since it seems their use case was for a laptop).

Now everything except games run on the iGPU for me, allowing me to not cap out my VRAM, I allocated 8GB of RAM to the iGPU in bios which isn’t a problem for me but I could see it being an issue for others. This is a very serious problem with games pushing VRAM more and more. When playing Stellar Blade I’m sitting at 13GiB utilization, and that’s only the game.

---

_[View the full topic](https://forums.developer.nvidia.com/t/non-existent-shared-vram-on-nvidia-linux-drivers/260304)._
