You are not logged in.

#1 2023-01-11 08:43:06

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

firefox only runs with prime-run [SOLVED]

Hi I have a very weird issue since a few days back.

Firefox refuses to start, but I realized that if I start it with prime-run it works.

First of all, my computer (Dell Precision 3560) is already very strange (Nvidia/Intel hybrid graphics) where I can start Wayland sessions but X11 sessions always fail (log says that X11 starts, but there is no output to display). Been following basically every guide I could find to make stuff work as they should, but don't bother anymore since I rarely need an X11 session anyway.


I use a sway/KDE hybrid environment with the following startup script:


#!/bin/sh
#KDE stuff
export QT_QPA_PLATFORMTHEME=qt5ct
export XDG_CURRENT_DESKTOP=sway
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export KDEWM=/usr/bin/sway
#GTK stuff
export GDK_BACKEND=wayland
export GTK_USE_PORTAL=1
#Applications
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland
export MOZ_ENABLE_WAYLAND=1
export _JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
#export JDK_JAVA_OPTIONS='-Dsun.java2d.opengl=true'
export JAVA_FONTS=/usr/share/fonts/noto
export SAL_USE_VCLPLUGIN=gtk3
#Sway stuff
#export WLR_RENDERER=vulkan
export WLR_DRM_NO_ATOMIC=1
export __GL_GSYNC_ALLOWED=0
export __GL_VRR_ALLOWED=0
export WLR_NO_HARDWARE_CURSORS=1
#Nvidia stuff
export GBM_BACKEND=nvidia-drm
export GBM_BACKENDS_PATH=/usr/lib/gbm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
exec sway --unsupported-gpu

Last edited by W.F.Cody (2023-01-11 14:28:18)


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

#2 2023-01-11 09:00:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: firefox only runs with prime-run [SOLVED]

Do not export these last 3 (not sure about the first 2 pretty sure about the last one) variables globally they will lead to a GL program being implicitly forced to look for the nvidia GPU.

Offline

#3 2023-01-11 14:28:37

W.F.Cody
Member
From: Ghent
Registered: 2010-11-18
Posts: 155

Re: firefox only runs with prime-run [SOLVED]

V1del wrote:

Do not export these last 3 (not sure about the first 2 pretty sure about the last one) variables globally they will lead to a GL program being implicitly forced to look for the nvidia GPU.

Ah indeed that solved it smile


My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!

Offline

Board footer

Powered by FluxBB