> Externe Grafikkarte unter Linux nutzen: Schritt-für-Schritt Setup für Ubuntu, Fedora & Arch. NVIDIA/AMD Treiber, Hotplug, Wayland & Performance-Tipps.

Quelle: https://egpu.de/ratgeber/setup-linux/
Stand: 2026-01-30

# eGPU unter Linux

Linux + eGPU? Geht besser als gedacht.

## Voraussetzungen

- Kernel 4.13+ (besser 5.6+)
- [TB3/4](/ratgeber/anschlussarten/) oder [USB4](/glossar/#usb4)
- `bolt`

**Getestet:** Ubuntu, Fedora, Arch, Pop!_OS (beste eGPU-Support)

---

## Schritt 1: Thunderbolt autorisieren

Linux braucht `bolt` für [Thunderbolt](/glossar/#thunderbolt-3)-Geräte.

### Installation

```bash
# Ubuntu/Debian
sudo apt install bolt

# Fedora
sudo dnf install bolt

# Arch
sudo pacman -S bolt
```

### Gerät autorisieren

```bash
# eGPU anschließen, dann:
boltctl list
boltctl authorize DEVICE_UUID
boltctl enroll DEVICE_UUID  # Permanent speichern
```

---

## Schritt 2: GPU-Treiber

### AMD (empfohlen für Linux)

AMD-Treiber sind im Kernel integriert. Meist funktioniert alles automatisch.

```bash
# Prüfen ob erkannt
lspci | grep -i amd
```

Für neueste Features:
```bash
# Ubuntu
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update && sudo apt upgrade
```

### NVIDIA

NVIDIA braucht proprietäre Treiber.

```bash
# Ubuntu
sudo ubuntu-drivers autoinstall

# Fedora (RPM Fusion aktivieren)
sudo dnf install akmod-nvidia

# Arch
sudo pacman -S nvidia nvidia-utils
```

**Nach Installation:**
```bash
sudo reboot
nvidia-smi  # Sollte die eGPU zeigen
```

---

## Schritt 3: Automatische Erkennung

### udev-Regel für eGPU

Erstelle `/etc/udev/rules.d/99-egpu.rules`:

```
# Thunderbolt eGPU Autorisierung
ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
```

```bash
sudo udevadm control --reload-rules
```

---

## Schritt 4: X11 vs Wayland

### X11 (zuverlässiger für eGPU)

Erstelle `/etc/X11/xorg.conf.d/10-egpu.conf`:

```
Section "Device"
    Identifier "eGPU"
    Driver "nvidia"  # oder "amdgpu"
    BusID "PCI:XX:XX:X"  # Von lspci holen
EndSection
```

BusID finden:
```bash
lspci | grep -i vga
# Ausgabe: 06:00.0 VGA compatible controller...
# BusID wird: PCI:6:0:0
```

### Wayland

Funktioniert, aber manchmal tricky mit eGPU. Bei Problemen:
```bash
# NVIDIA: GBM Backend aktivieren
echo "KWIN_DRM_USE_EGL_STREAMS=0" | sudo tee -a /etc/environment
```

---

## Schritt 5: Anwendungen auf eGPU ausführen

### Mit DRI_PRIME (AMD)

```bash
DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
DRI_PRIME=1 steam  # Steam auf eGPU starten
```

### Mit prime-run (NVIDIA)

```bash
prime-run glxinfo | grep "OpenGL renderer"
prime-run steam
```

### Permanent für Steam

Steam Startoptionen:
```
DRI_PRIME=1 %command%
# oder
prime-run %command%
```

---

## Hotplug-Unterstützung

Linux kann eGPU [hot-pluggen](/glossar/#hot-plug) (während das System läuft).

### Script für Hotplug

Erstelle `/usr/local/bin/egpu-hotplug.sh`:

```bash
#!/bin/bash
# Rescan PCI Bus nach eGPU connect
echo 1 | sudo tee /sys/bus/pci/rescan
```

Mache es ausführbar:
```bash
sudo chmod +x /usr/local/bin/egpu-hotplug.sh
```

---

## Performance-Tipps

### 1. Kernel-Parameter

In `/etc/default/grub`:
```
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1 pcie_aspm=off"
```

```bash
sudo update-grub
```

### 2. GPU-Power-Management deaktivieren

```bash
# NVIDIA
sudo nvidia-smi -pm 1
```

### 3. Compositor deaktivieren beim Gaming

KDE:
```bash
qdbus org.kde.KWin /Compositor suspend
```

---

## Troubleshooting

### GPU wird nicht erkannt

```bash
# Thunderbolt prüfen
boltctl list

# PCI-Bus neu scannen
echo 1 | sudo tee /sys/bus/pci/rescan

# Kernel-Messages checken
dmesg | grep -i thunder
dmesg | grep -i nvidia
```

### Schwarzer Bildschirm nach Login

Meist ein X11/Wayland-Problem. Lösung:
```bash
# Zum TTY wechseln: Ctrl+Alt+F3
# X11 conf zurücksetzen
sudo rm /etc/X11/xorg.conf.d/10-egpu.conf
sudo reboot
```

### NVIDIA: "GPU fallen off the bus"

```bash
# Power-Management deaktivieren
echo "options nvidia NVreg_EnablePCIeGen3=1" | sudo tee /etc/modprobe.d/nvidia.conf
sudo update-initramfs -u
```

---

## Empfohlene Tools

- **gwe** - NVIDIA GPU-Überwachung (Green With Envy)
- **nvtop** - GPU-Monitoring im Terminal
- **corectrl** - AMD GPU-Überwachung und Overclocking
- **egpu-switcher** - Automatisches Umschalten zwischen iGPU/eGPU

```bash
# nvtop installieren
sudo apt install nvtop  # Ubuntu
sudo dnf install nvtop  # Fedora
```

---

## Fazit

Linux + eGPU läuft gut, vor allem mit AMD. Kernel-Support ist ausgereift. Bei Problemen hilft der [Troubleshooting-Guide](/ratgeber/troubleshooting/).

**Empfehlung:**
- Pop!_OS (einfach)
- AMD-GPU (weniger Probleme)
- X11 (statt Wayland bei Problemen)

Windows-Nutzer finden die passende Anleitung im [Windows Setup Guide](/ratgeber/setup-windows/), Mac-Nutzer im [macOS Guide](/ratgeber/macos-egpu/).
