Suddenly I see only the shades of the GUI any Idea how to fix this? using Plasma x11

  • GravelPieceOfSword@lemmy.ca
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Try running it from the command line with code --disable-gpu.

    If that works, you can update the desktop shortcut files (exec section) with the same added parameter.

    I recently ran into something similar (opensuse slowroll//kde)

    Ref: stackoverflow/Google for the --disable-gpu argument, the desktop file editing - I did for convenience.

    Here’s how you can find . desktop files

    Desktop file reference.- easy format

    • kawlb@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      First, thank you! Sadly, this didn’t help. In ended up deleting (renaming) ~/.config/Code which helped. Luckily enough all the plugins survived because they are installed under ~/.vscode

  • Disable GPU acceleration to fix the immediate problem. Deep dive into GPU rendering errors to solve the underlying problem.

    If GPU acceleration fucks up, there’s a good chance it’s not just VS Code is being affected. I get this sometimes after I update my Nvidia drivers, and some applications struggle to use Vulkan in Wayland on Nvidia (on Gnome). I had to switch back to X11 on my desktop to make browsers and other GPU accelerated programs behave normally, because software rendering was eating up CPU cores for no reason.

    If you’ve just updated your firmware or drivers, a reboot may help. Disabling the GPU through either config flags or command line parameters will make the text appear, but it’ll also cost you more CPU cycles (and battery life, if you’re on a laptop).

    • kawlb@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I am on X11. rebooting, reinstalling and code --disable-gpu didn’t help. Only deleting the config files. However, reading other comments it seems code --disable-gpu seems to work for most folks.

    • kawlb@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Actually, while figuring things out, I did also install Codium and copied the extensions folder from VSCode to the codium folder… Works like a charm - might stay there for the peace of mind.