Skip to content

Instantly share code, notes, and snippets.

@andriyudatama
Last active May 1, 2026 19:35
Show Gist options
  • Select an option

  • Save andriyudatama/fe5d00deb36feeea30ef35a5ea0f7eff to your computer and use it in GitHub Desktop.

Select an option

Save andriyudatama/fe5d00deb36feeea30ef35a5ea0f7eff to your computer and use it in GitHub Desktop.
Disable Hardware Acceleration (GPU) on Visual Studio Code
Visual Studio Code frequently crashes linux. Using NVIDIA GPU
1. Open command pallete (Ctrl + Shift + P)
2. Enter "Preferences: Configure Runtime Arguments"
3. Add config: "disable-hardware-acceleration": true
4. Restart VS Code
@mariolando

Copy link
Copy Markdown

Thank you saved me in 2025

@ntonjeta

ntonjeta commented Apr 4, 2025

Copy link
Copy Markdown

thanks

@datprs2k1

Copy link
Copy Markdown

Thanks

@Wayne6530

Copy link
Copy Markdown

Thanks!

After Ubuntu 24.04.3 forced an NVIDIA driver upgrade to 580, VS Code became invisible on Wayland (worked fine with 550). Since I need fractional scaling on my 4K screen, X11 isn’t an option—it’s blurry.

Launching with code --disable-gpu fixes the issue: VS Code shows up properly on Wayland and stays sharp. Hope this helps others!

@ahakkar

ahakkar commented Oct 31, 2025

Copy link
Copy Markdown

"disable-hardware-acceleration": true

Seems to still work. Am am using 1.94.2 since I do not need the new chat features provided by newer builds. This on 25H2 and 5090, so not limited to Linux it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment