Closed RobertoAlda closed 1 month ago
No DRM device sounds like you're missing the nvidia-drm.modeset=1
kernel module parameter.
the nvidia-drm.modeset=1 kernel module parameter seems ok.
cat /etc/modprobe.d/nvidia-graphics-drivers-kms.conf shows this:
# This file was generated by nvidia-driver-550
# Set value to 0 to disable modesetting
options nvidia-drm modeset=1
and
sudo dmesg | grep nvidia:
[ 2.963662] nvidia: loading out-of-tree module taints kernel.
[ 2.963668] nvidia: module license 'NVIDIA' taints kernel.
[ 2.963671] nvidia: module license taints kernel.
[ 3.026005] nvidia-nvlink: Nvlink Core is being initialized, major device number 235
[ 3.026953] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[ 3.105589] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 550.107.02 Wed Jul 24 23:24:27 UTC 2024
[ 3.132074] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 3.951690] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[ 4.340382] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 4.372141] nvidia-uvm: Loaded the UVM driver, major device number 511.
Maybe am i missing something?
the nvidia-drm.modeset=1 kernel module parameter seems ok.
What is the output of
# cat /sys/module/nvidia_drm/parameters/modeset
?
The output of sudo cat /sys/module/nvidia_drm/parameters/modeset
is:
Y
i added sudo
because without it it gives me a permission error:
cat: /sys/module/nvidia_drm/parameters/modeset: Permission denied
Try launching Firefox with MOZ_DRM_DEVICE=/dev/dri/renderD128
as a workaround
TESTED ON: Ubuntu Desktop 24.04.1 LTS Kernale:6.8.0-45-generic Nvidia RTX4000 ADA SFF 20GB Nvidia drivers:Driver Version: 550.107.02 CUDA Version: 12.4 Firefox Nightly 132.0a1 (2024-09-22) (64-bit) Gnome desktop manager with Wayland
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | gpg --dearmor | sudo tee /etc/apt/keyrings/packages.mozilla.org.gpg > /dev/null
2.add the apt repository by running the single command below:
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.gpg] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
This command will create the ‘mozilla.list‘ file under /etc/apt/sources.list.d directory and write the source line into it.
3.install the Nightly build of Firefox from that repository by running command:
sudo apt update
sudo apt install firefox-nightly
Open firefox and go to url about:config Set these flags:
gfx.webrender.all = true
media.ffmpeg.vaapi.enabled = true
media.hardware-video-decoding.enabled = true
In /etc/environment:
export NVD_BACKEND=direct
export MOZ_DISABLE_RDD_SANDBOX=1
export LIBVA_DRIVER_NAME=nvidia
nvidia-vaapi-drievr is built (https://github.com/elFarto/nvidia-vaapi-driver)
MOZ_ENABLE_WAYLAND=1 \ firefox-nightly
Hi, i can't make nvidia gpu hw decoding work in Firefox, plaese help me.
My system is:
My video card is Nvidia RTX4000 Ada SFF with 20Gb DDR6, with driver version 550.107.02
I have succesfully built nvidia-vaapi-driver project and file /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so is created.
I have set these enviroment variables in /etc/environment file:
ffmpeg has vaapi in ffmpeg -hwaccels output.
After i've tried with no success the official Firefox, i've installed Firefox Nightly 132.0a1 (2024-09-16) (64-bit) Firefox flags are:
I start it with these flags:
and when i open a H264 file or HEVC or AV1 it will not use hardware decoding.
This is the Output:
and this is the about:support page:
and nvidia-smi output is:
Plaes tell me how to make it work, if necessary i can use another browser like chromium, brave,... but i need it running on Ubuntu 22.04 or Ubuntu 24.04,
thank you.
sources: https://askubuntu.com/questions/1477892/firefox-refuse-to-use-gpu-hardware-acceleration-with-nvidia-gpu-how-to-fix