aleksey-hoffman / sigma-file-manager

"Sigma File Manager" is a free, open-source, quickly evolving, modern file manager (explorer / browser) app for Windows and Linux.
https://sigma-file-manager.vercel.app
Other
3.84k stars 145 forks source link

[bug] Blank white screen at app launch on linux + X11 + Nvidia card. #330

Open MeowRosya opened 6 months ago

MeowRosya commented 6 months ago

Problem description

If using linux + X11 + Nvidia you can open an app but can't do anything because this is just an blank Screen where you can drag elements, maybe this will help you.

There's a few ways to fix it:

Method 1

Set the environment variable. Webkit Composition Mode and Nvidia doesn't work properly yet, so you can disable it by setting env only for one launch:

WEBKIT_DISABLE_COMPOSITING_MODE=1 ./some-appimage-name

Or permanently, by adding:

WEBKIT_DISABLE_COMPOSITING_MODE=1

to ~/.profile file and logout.

Method 2

[!WARNING] Use this method at your own risk. It involves changing the Linux kernel parameters at boot, so if something bad happens you should be prepared to restore yourself.

Setting DRM KMS (Kernel mode setting) in the bootloader. It worked in my case, maybe it work for you. If you are using grub, add nvidia_drm.modeset=1 to the of GRUB_CMDLINE_LINUX_DEFAULT line:

GRUB_CMDLINE_LINUX_DEFAULT="some other options nvidia_drm.modeset=1"

Now rebuild grub.cfg:

sudo grub-mkconfig -o /boot/grub/grub.cfg

And reboot. It should work now properly without setting envs. If your are not using grub please check the your bootloader docs about DRM.

More info about DRM KMS you can find here https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting

Operating system

linux

App version

v2