Skip to content

Instantly share code, notes, and snippets.

View bugra455's full-sized avatar
🐧

Buğra Osman Soysal bugra455

🐧
  • Turkiye
  • 23:04 (UTC +03:00)
View GitHub Profile
@bugra455
bugra455 / Solve KDE6 Animation Lagging with defaulting KWIN GPU to Nvidia.md
Created August 16, 2025 08:10
Solve KDE6 Animation Lagging with defaulting KWIN GPU to Nvidia

Fix KDE Plasma Lagging on NVIDIA Hybrid Graphics

This guide provides a workaround to launch a KDE Plasma Wayland session on laptops with hybrid GPU setups, particularly those with NVIDIA DGPU's. This method forces KWin, the Plasma compositor, to recognize and use specific DRM (Direct Rendering Manager) devices, resolving the common bug of lagging animations on hybrid setups.


1. Create the Launcher Script

First, you'll create a shell script that sets a necessary environment variable before starting the Plasma session. This explicitly tells KWin which DRM devices (your GPUs) to use.

@bugra455
bugra455 / Docker PGadmin4: [Errno 13] Permission denied: Solution.md
Last active April 6, 2025 18:53
Docker PGadmin4: [Errno 13] Permission denied: '/var/lib/pgadmin/sessions' Solution

Hello.

Since you are here, you are having trouble accessing your PGAdmin container that you created with docker and one of the reasons is this writing error.

Lets read the error first, if you came here by luck and dont know what causes you to cant access your pgadmin container lets try writing docker logs <container with pgadmins id> to our terminal first.

[2025-04-06 11:17:23 +0000] [502] [INFO] Worker exiting (pid: 502) 
HINT Create the directory /var/lib/pgadmin/sessions, ensure it is writeable by 'pgadmin', and try again, or, create a config_local.py file and override the SESSION DB PATH setting per https://www.pgadmin.org/docs/pgadmin4/9.2/config.py.html 
[Errno 13] Permission denied: '/var/lib/pgadmin/sessions'