fixed nvidia issues fallback to software rendering, removed accidentally made readme file in src/, added gtk to cargo lock

This commit is contained in:
Martin Dvořák 2026-05-03 23:26:44 +02:00
commit d6b604639d
4 changed files with 89 additions and 183 deletions

View file

@ -44,7 +44,7 @@ cargo run -- --title "RustyWolf"
cargo run -- --private
cargo run -- --dry-run
# Linux backend controls (wayland has issues currently, x11 recommended)
# Linux backend controls
cargo run -- --linux-backend x11
cargo run -- --linux-backend wayland
cargo run -- --linux-disable-dmabuf
@ -89,10 +89,29 @@ source "$HOME/.cargo/env"
```bash
doas emerge --sync
doas emerge --ask net-libs/webkit-gtk:4.1 x11-libs/gtk+ virtual/pkgconfig dev-vcs/git x11-misc/appmenu-gtk-module
doas mkdir -p /etc/portage/package.use
echo ">=media-libs/gst-plugins-base-1.24.13-r1 gbm" | doas tee /etc/portage/package.use/rustywolf-media
doas emerge --ask 'media-libs/gst-plugins-base[gbm]' media-plugins/gst-plugins-soup media-plugins/gst-plugins-vpx media-plugins/gst-plugins-hls media-plugins/gst-plugins-dash media-plugins/gst-plugins-libav
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
```
For NVIDIA, make the DRM modeset setting part of the boot command line, not only
`/etc/modprobe.d`, then reboot:
```bash
doas cp /etc/default/grub /etc/default/grub.bak
doas sed -i 's/^#GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1 nvidia-drm.fbdev=1"/' /etc/default/grub
doas grub-mkconfig -o /boot/grub/grub.cfg
doas reboot
```
After reboot, verify the active command line:
```bash
cat /proc/cmdline
```
## Linux media playback deps (important)
If Linux logs `gstreamer element autoaudiosink not found` or YouTube/audio fails, install GStreamer audio/video plugins.
@ -120,19 +139,27 @@ If your distro is not Debian-based, install the equivalent GStreamer base/good/b
RustyWolf supports both X11 and native Wayland on Linux.
Some NVIDIA + WebKitGTK stacks can fail with dmabuf/gbm allocation errors, especially on Wayland.
On NVIDIA X11, RustyWolf disables WebKitGTK's broken dmabuf renderer automatically.
This avoids the blank webview/GBM allocation failure while keeping GStreamer media
codecs available for sites such as YouTube.
Try these launch modes:
```bash
# safest fallback on many NVIDIA setups
cargo run -- --linux-backend x11 --linux-disable-dmabuf
# auto backend (also applies the NVIDIA/X11 WebKitGTK fallback when needed)
cargo run
# native wayland
cargo run -- --linux-backend wayland
# X11/XWayland
cargo run -- --linux-backend x11
# auto backend, dmabuf disabled only
# last-resort compatibility fallback
cargo run -- --linux-disable-dmabuf
# force the upstream dmabuf renderer anyway
WEBKIT_FORCE_DMABUF_RENDERER=1 cargo run
```
If you still see `Failed to load module "appmenu-gtk-module"`, that is a desktop GTK setup issue (not a RustyWolf crash).