View previous topic :: View next topic |
Author |
Message |
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 12:22 pm Post subject: Switching to nouveau |
|
|
After I removed steam because I didn't play any games in a long time, I decided to also remove x11-drivers/nvidia-drivers to go full foss.
Code: | $ vrms-gentoo
No non-free packages installed on GentooPC! rms would be proud. |
A few things to note:
The bar in dwm is considerably bigger. Any idea how to get it to it's original size? The resolution is the same as before, 1920*1080.
I get screen tearing when playing videos. Any idea how to fix that?
Code: | $ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DVI-D-1 disconnected primary (normal left inverted right x axis y axis)
HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 698mm x 392mm
1920x1080 60.00*+ 60.00 50.00 59.94 59.93 |
To enable hw accel, I added VIDEO_CARDS="nouveau" to my make.conf and enabled USE="vaapi vdpau" on media-libs/mesa after reading this.
In total, I have:
Code: | [ebuild R ] media-libs/mesa-23.1.5::gentoo USE="X gles2 proprietary-codecs vaapi vdpau zstd -d3d9 -debug -gles1 -llvm -lm-sensors -opencl -osmesa (-selinux) -test -unwind -valgrind -vulkan -vulkan-overlay -wayland -xa -zink" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" VIDEO_CARDS="nouveau -d3d12 (-freedreno) -intel -lavapipe (-lima) (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware" |
Is this enough? Too much?
I have USE="proprietary-codecs" enabled too. From the name, I assume it has a non-free license, but it isn't masked be the default ACCEPT_LICENSE, which afaik is @FREE.
If I run emerge -ca, I get:
Code: | All selected packages: =app-alternatives/cpio-0 =virtual/libelf-3-r1 =x11-apps/xrandr-1.5.2 =acct-group/video-0-r2 =sec-keys/openpgp-keys-elfutils-20220427 =virtual/linux-sources-3-r6 =dev-libs/elfutils-0.189-r3 =app-arch/cpio-2.14 =sys-kernel/gentoo-sources-6.4.3 =sys-kernel/gentoo-sources-6.4.10 |
virtual/linux-sources and sys-kernel/gentoo-sources are slated for removal. Shouldn't the kernel be in the system set. I can't see how someone might run gentoo without a kernel. _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 9:37 pm Post subject: |
|
|
Looks like I don't have hw accel:
Code: | [vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu/drm] Failed to create DRM atomic context, no DRM Atomic support
[vo/gpu-next/opengl] Suspected software renderer or indirect context.
[vo/gpu-next/drm] Can't handle VT release - signal already used
[vo/gpu-next/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu-next/drm] Failed to create DRM atomic context, no DRM Atomic support
[vo/xv] No Xvideo support found.
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO. |
If I build x11-base/xorg-server with -Dglx=true, I can use the xv vo, but there is a lot of lag and palemoon with hw accel enabled is unusable.
If I build x11-base/xorg-server with -Dglamor=true(enabled by default by USE="-minimal") xorg is broken.
the gpu vo doesn't work.
I can get mplayer to work with both sdl and x11. Mpv works only with x11. Is the sdl vo preferable to the x11 vo? _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2840
|
Posted: Tue Aug 15, 2023 9:51 pm Post subject: |
|
|
vaapi doesn't work with nouveau (and not really with nvidia-drivers either, albeit there is an attempt to use nvdec with vaapi but that wouldn't work with nouveau either), and vdpau is very limited in usage with nouveau (only with some old cards, and most need to extract some firmware from nvidia-drivers, see EXTFW in [1] -- in other words, I wouldn't bother with vdpau/vaapi at all)
You should be able to get opengl to work but you'll also get subpar performance given as [1] says, it can't do power management meaning most cards are permanently stuck in low power mode. Not that it's much of an issue if not playing games.
And are you actually using USE=minimal and passing -Dglx=true manually on xorg? Unlike nvidia-drivers, afaik nouveau needs dri and other stuff (not that I messed with it much), aka try to disable minimal completely to be sure (Edit: think glamor needs libepoxy[egl] too, which is pulled with -minimal). May potentially be other flags, but given you're disabling all the sane defaults with -* who knows.
[1] https://nouveau.freedesktop.org/FeatureMatrix.html |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 10:34 pm Post subject: |
|
|
Ionen wrote: |
And are you actually using USE=minimal and passing -Dglx=true manually on xorg? Unlike nvidia-drivers, afaik nouveau needs dri and other stuff (not that I messed with it much), aka try to disable minimal completely to be sure
|
That's what I did when I was using steam. I tried both with and without USE=minimal along with passing different things to it with MYMESONARGS.
Ionen wrote: |
(Edit: think glamor needs libepoxy[egl] too, which is pulled with -minimal). May potentially be other flags, but given you're disabling all the sane defaults with -* who knows.
|
Removed USE=-* from make.conf and took a look:
Code: | $ USE="-udev -elogind -pam -nls -minimal -readline -llvm -ncurses -xattr -cxx" emergeall -pqv xorg-server | grep -i x
[ebuild N ] sys-libs/libseccomp-2.5.4 USE="(-experimental-loong) -python -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10"
[ebuild N ] sys-apps/attr-2.5.1-r2 USE="(split-usr) -debug -nls -static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild N ] sys-apps/acl-2.3.1-r2 USE="(split-usr) -nls -static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild N ] virtual/acl-0-r2 USE="-static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild R ] virtual/libcrypt-2-r1 USE="-static-libs" ABI_X86="32* (64) (-x32)"
[ebuild R ] sys-libs/libxcrypt-4.4.36 USE="(compat) (split-usr) (system) -headers-only -static-libs -test" ABI_X86="32* (64) (-x32)"
[ebuild R ] dev-perl/Net-SSLeay-1.920.0 USE="-examples -minimal* -test"
[ebuild R ] dev-libs/expat-2.5.0 USE="unicode* -examples -static-libs -test" ABI_X86="(64) -32 (-x32)"
[ebuild R ] x11-libs/libpciaccess-0.17-r1 USE="zlib*" ABI_X86="(64) -32 (-x32)"
[ebuild R ] x11-libs/libXfont2-2.0.6 USE="bzip2* -doc -truetype"
[ebuild R ] x11-libs/libSM-1.2.4 USE="uuid* -doc" ABI_X86="(64) -32 (-x32)"
[ebuild R ] sys-devel/gcc-13.2.0 USE="(cxx) fortran* jit lto (multilib) nptl openmp pgo (pie) sanitize ssp -ada (-cet) (-custom-cflags) -d -debug -default-stack-clash-protection -default-znow -doc (-fixed-point) -go -graphite -hardened (-ieee-long-double) (-libssp) -modula2 -nls -objc -objc++ -objc-gc (-pch) -systemtap -test -valgrind -vanilla -vtv -zstd"
[ebuild R ] app-crypt/libb2-0.98.1-r3 USE="openmp* -native-cflags -static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild R ] app-arch/libarchive-3.7.1 USE="acl* bzip2* e2fsprogs* iconv* lzma* verify-sig -blake2 -expat -lz4 -lzo -nettle -static-libs -xattr -zstd" ABI_X86="(64) -32 (-x32)"
[ebuild R ] app-arch/tar-1.35 USE="acl* verify-sig -minimal* -nls (-selinux) -xattr"
[ebuild R ] app-arch/xz-utils-5.4.4 USE="extra-filters* (split-usr) verify-sig -doc -nls -static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild R ] app-arch/zstd-1.5.5 USE="lzma* (split-usr) zlib* -lz4 -static-libs -test" ABI_X86="(64) -32 (-x32)"
[ebuild R ] sys-apps/sandbox-2.38 USE="nnp*" ABI_X86="(32) (64) (-x32)"
[ebuild N ] app-crypt/gpgme-1.21.0 USE="verify-sig -common-lisp -cxx -debug -python -qt5 -static-libs -test" PYTHON_TARGETS="python3_11 -python3_10 -python3_12"
[ebuild R ] dev-lang/python-3.11.4 USE="ensurepip gdbm lto pgo sqlite ssl verify-sig -bluetooth -build -debug -examples -libedit -ncurses* -readline -test -tk -valgrind"
[ebuild R ] dev-libs/libxml2-2.11.5 USE="ftp* python -debug -examples -icu -lzma -readline -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10 -python3_12"
[ebuild R ] x11-libs/libxcb-1.15-r1 USE="xkb* -doc (-selinux) -test" ABI_X86="(64) -32 (-x32)"
[ebuild R ] dev-libs/libxslt-1.1.38 USE="crypt* -debug -examples -python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10 -python3_12"
[ebuild R ] media-libs/mesa-23.1.5 USE="X gles2 proprietary-codecs* zstd -d3d9 -debug -gles1 -llvm -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -vulkan-overlay -wayland -xa -zink" ABI_X86="(64)
-32 (-x32)" CPU_FLAGS_X86="sse2" VIDEO_CARDS="nouveau -d3d12 (-freedreno) -intel -lavapipe (-lima) (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware"
[ebuild R ] dev-libs/libpcre2-10.42-r1 USE="bzip2* jit pcre16 (split-usr) unicode verify-sig zlib* -libedit -pcre32 -readline -static-libs -valgrind" ABI_X86="(64) -32 (-x32)"
[ebuild R ] dev-vcs/git-2.41.0 USE="blksha1 curl gpg iconv* pcre* perl safe-directory webdav -cgi -cvs -doc -highlight -keyring -mediawiki -nls -perforce (-selinux) -subversion -test -tk -xinetd" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12"
[ebuild N ] net-dns/c-ares-1.19.1 USE="verify-sig -static-libs -test" ABI_X86="(64) -32 (-x32)"
[ebuild R ] net-misc/curl-8.2.1 USE="adns* ftp http2 imap openssl pop3 progress-meter samba smtp ssl tftp verify-sig -alt-svc -brotli -gnutls -gopher -hsts -idn -kerberos -ldap -mbedtls -nghttp3 -nss -rtmp -rustls -ssh (-sslv3) -static-libs -telnet -test -websockets -zstd" ABI_X86="(64) -32 (-x32)" CURL_SSL="openssl -gnutls -mbedtls -nss -rustls"
[ebuild R ] net-libs/gnutls-3.8.1-r1 USE="idn* openssl* seccomp* tls-heartbeat* verify-sig zlib* -brotli -cxx -dane -doc -examples -nls -pkcs11 (-sslv2) (-sslv3) -static-libs -test -test-full -tools -zstd" ABI_X86="(64) -32 (-x32)"
[ebuild R ] app-crypt/gnupg-2.4.3 USE="bzip2* smartcard* ssl tofu verify-sig -doc -ldap -nls -readline (-selinux) -test -tools -tpm -usb -user-socket -wks-server"
[ebuild R ] sys-libs/ncurses-6.4_p20230401 USE="(split-usr) stack-realign* (tinfo) verify-sig -ada -cxx -debug -doc -gpm -minimal -profile -static-libs -test -trace" ABI_X86="(64) -32 (-x32)"
[ebuild R ] sys-apps/sed-4.9 USE="acl* verify-sig -nls (-selinux) -static"
[ebuild R ] sys-apps/coreutils-9.3-r3 USE="acl* openssl* (split-usr) verify-sig -caps -gmp -hostname -kill -multicall -nls (-selinux) -static -test -vanilla -xattr"
[ebuild R ] sys-apps/file-5.45-r1 USE="bzip2* seccomp* verify-sig zlib* -lzip -lzma -python -static-libs -zstd" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10"
[ebuild R ] net-misc/rsync-3.2.7-r2 USE="acl* iconv* ssl verify-sig -examples -lz4 -rrsync -stunnel -system-zlib -xattr -xxhash -zstd" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
[ebuild R ] sys-devel/gettext-0.22-r1 USE="acl* git openmp* verify-sig -cxx -doc -emacs -java -ncurses -nls -static-libs -xattr" ABI_X86="(64) -32 (-x32)"
[ebuild R ] sys-apps/texinfo-7.0.3 USE="standalone* -nls -static" |
Where emergeall is:
Code: | alias emergeall="rdo emerge --deep --update --newuse --verbose --ask --keep-going --autounmask-write --with-bdeps=y" |
And rdo is used for doing things as root.
Of note, I see:
Code: | [ebuild R ] x11-libs/libpciaccess-0.17-r1 USE="zlib*" ABI_X86="(64) -32 (-x32)"
[ebuild R ] x11-libs/libXfont2-2.0.6 USE="bzip2* -doc -truetype"
[ebuild R ] x11-libs/libSM-1.2.4 USE="uuid* -doc" ABI_X86="(64) -32 (-x32)"
[ebuild R ] x11-libs/libxcb-1.15-r1 USE="xkb* -doc (-selinux) -test" ABI_X86="(64) -32 (-x32)"
[ebuild R ] dev-libs/libxslt-1.1.38 USE="crypt* -debug -examples -python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10 -python3_12"
[ebuild R ] media-libs/mesa-23.1.5 USE="X gles2 proprietary-codecs* zstd -d3d9 -debug -gles1 -llvm -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -vulkan-overlay -wayland -xa -zink" ABI_X86="(64)
-32 (-x32)" CPU_FLAGS_X86="sse2" VIDEO_CARDS="nouveau -d3d12 (-freedreno) -intel -lavapipe (-lima) (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware" |
Anything seem off? _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2840
|
Posted: Tue Aug 15, 2023 10:46 pm Post subject: |
|
|
I don't see anything that stand out except maybe USE=-llvm on mesa which is default but I assume you're explicitly disabling it regardless of -* (gallium is gimped without llvm and nouveau uses gallium, not sure what kind of impact it really has though, pretty sure it should at least work without but I never tried lately).
May want to look at what is happening in Xorg's logs too, is nouveau even really in use? Note it needs linux-firmware to work too (for some fine non-free firmware) |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 10:49 pm Post subject: |
|
|
Ionen wrote: | I don't see anything that stand out except maybe USE=-llvm on mesa which is default but I assume you're explicitly disabling it regardless of -* (gallium is gimped without llvm and nouveau uses gallium, not sure what kind of impact it really has though, pretty sure it should at least work without but I never tried lately).
May want to look at what is happening in Xorg's logs too, is nouveau even really in use? Note it needs linux-firmware to work too (for some fine non-free firmware) |
https://bpa.st/IUVA
I'll try using this and see if it works:
https://packages.gentoo.org/packages/sys-firmware/nvidia-firmware _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2840
|
Posted: Tue Aug 15, 2023 10:52 pm Post subject: |
|
|
nvidia-firmware won't matter, that's for the EXTFW thing and vdpau, but again that hardly works -- for normal usage all the needed firmware by nouveau are in the linux-firmware package
Code: | 10514.596] (II) LoadModule: "nouveau"
[ 10514.596] (WW) Warning, couldn't open module nouveau
[ 10514.596] (EE) Failed to load module "nouveau" (module does not exist, 0) | Yeah...
Do you even have x11-drivers/xf86-video-nouveau? It would be installed by x11-base/xorg-drivers[video_cards_nouveau] normally. |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 10:56 pm Post subject: |
|
|
Ionen wrote: | nvidia-firmware won't matter, that's for the EXTFW thing and vdpau, but again that hardly works -- for normal usage all the needed firmware by nouveau are in the linux-firmware package
Code: | 10514.596] (II) LoadModule: "nouveau"
[ 10514.596] (WW) Warning, couldn't open module nouveau
[ 10514.596] (EE) Failed to load module "nouveau" (module does not exist, 0) | Yeah...
Do you even have x11-drivers/xf86-video-nouveau? It would be installed by x11-base/xorg-drivers[video_cards_nouveau] normally. |
Ah...
Code: | $ head -6 /etc/portage/profile/package.provided | tail -1
x11-base/xorg-drivers-21.1-r2 |
But it's not my fault. This is needed because:
Code: | $ eix -I xf86
[I] x11-drivers/xf86-input-keyboard [1]
Available versions: 1.9.0-r1
Installed versions: 1.9.0-r1(12:49:43 AM 08/09/2023)
Homepage: https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard
Description: Keyboard input driver
[I] x11-drivers/xf86-input-mouse [1]
Available versions: 1.9.3-r1
Installed versions: 1.9.3-r1(12:49:28 AM 08/09/2023)
Homepage: https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/driver/xf86-input-mouse
Description: X.Org driver for mouse input devices |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 11:02 pm Post subject: |
|
|
Emerged x11-drivers/xf86-video-nouveau. The problems are still there.
https://bpa.st/G4BQ _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2840
|
Posted: Tue Aug 15, 2023 11:05 pm Post subject: |
|
|
Pretty sure things should be at least different even if still have issues, that log seem to be using nouveau now. |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 11:06 pm Post subject: |
|
|
Ionen wrote: | Pretty sure things should be at least different even if still have issues, that log seem to be using nouveau now. |
Yup. I can now use xorg witu USE=-minimal and no MYMESONARGS.
Code: | [ 11872.702] (EE) NOUVEAU(0): Error creating GPU channel: -19
[ 11872.702] (EE) NOUVEAU(0): Error initialising acceleration. Falling back to NoAccel
[ 11872.702] (**) NOUVEAU(0): [COPY] acceleration disabled
[ 11872.702] (II) NOUVEAU(0): Hardware support for Present disabled
[ 11872.702] (==) NOUVEAU(0): Backing store enabled
[ 11872.702] (==) NOUVEAU(0): Silken mouse enabled
[ 11872.702] (**) NOUVEAU(0): DPMS enabled
[ 11872.702] (WW) NOUVEAU(0): Option "Stereo" is not used
[ 11872.702] (WW) NOUVEAU(0): Option "nvidiaXineramaInfoOrder" is not used
[ 11872.702] (WW) NOUVEAU(0): Option "metamodes" is not used
[ 11872.702] (WW) NOUVEAU(0): Option "SLI" is not used
[ 11872.702] (WW) NOUVEAU(0): Option "MultiGPU" is not used
[ 11872.702] (WW) NOUVEAU(0): Option "BaseMosaic" is not used |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Last edited by stefan11111 on Tue Aug 15, 2023 11:07 pm; edited 1 time in total |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 11:11 pm Post subject: |
|
|
Ionen wrote: | This isn't still a minimal xorg, right? Errors seem to indicate something may be missing.
Edit: e.g. Code: | [ 11610.736] (II) AIGLX: Screen 0 is not DRI2 capable | Is DRI2 disabled? |
I removed my local overrides:
Code: | #post_pkg_postinst() {
# chown root:xorg /usr/bin/Xorg
# chmod 2711 /usr/bin/Xorg
#}
#MYMESONARGS="-Dglx=true -Dglamor=false"
#MYMESONARGS="-Ddri1=true -Ddri2=true -Ddri3=true -Dglx=true" |
So it shouldn't be disabled.
Code: | [ebuild R ] x11-base/xorg-server-21.1.8-r2:0/21.1.8::gentoo USE="suid xorg -debug -elogind -minimal (-selinux) -systemd -test -udev -unwind -xcsecurity -xephyr -xnest -xvfb" |
Edit:
I removed the setgid stuff after sending the log.
https://bpa.st/6OMA
This thing doesn't error out, so something must be right.
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2840
|
Posted: Tue Aug 15, 2023 11:18 pm Post subject: |
|
|
So Xorg works? So what issues are you having exactly now? Still mpv? does it give a different error?
wrt mpv, do enable USE=egl on it -- you want it over USE=opengl in this particular case. |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 11:23 pm Post subject: |
|
|
Ionen wrote: | So Xorg works? So what issues are you having exactly now? Still mpv? does it give a different error?
wrt mpv, do enable USE=egl on it -- you want it over USE=opengl in this particular case. |
Xorg works now with USE=-minimal, hwaccel doesn't. Also screen tearing.
Code: | [ebuild R ] media-video/mpv-0.36.0-r1:0/2::gentoo USE="X alsa cli drm egl iconv libmpv libplacebo lua uchardet xv zlib (-aqua) -archive -bluray -cdda (-coreaudio) -debug -dvb -dvd -gamepad -jack -javascript -jpeg -lcms -libcaca (-mmal) -nvenc -openal -opengl -pipewire -pulseaudio (-raspberry-pi) -rubberband -sdl (-selinux) -sixel -sndio -test -tools -vaapi -vdpau -vulkan -wayland -zimg" LUA_SINGLE_TARGET="(luajit) (-lua5-1)" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12" |
Code: | $ mpv *01*
(+) Video --vid=1 (*) 'ENCODED BY DARKDREAM' (h264 1920x1080 23.976fps)
(+) Audio --aid=1 --alang=eng (*) 'English' (aac 6ch 48000Hz)
Audio --aid=2 --alang=jpn 'Japanese' (aac 6ch 48000Hz)
(+) Subs --sid=1 --slang=eng (*) 'English (Translation Only)' (ass)
Subs --sid=2 --slang=eng 'English' (ass)
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu/drm] Failed to create DRM atomic context, no DRM Atomic support
libEGL warning: DRI2: failed to authenticate
[vo/gpu-next/opengl] Suspected software renderer or indirect context.
[vo/gpu-next/drm] Can't handle VT release - signal already used
[vo/gpu-next/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu-next/drm] Failed to create DRM atomic context, no DRM Atomic support
[vo/xv] No Xvideo support found.
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
AO: [alsa] 48000Hz stereo 2ch float
VO: [x11] 1920x1080 yuv420p
AV: 00:00:01 / 00:24:10 (0%) A-V: 0.000 Cache: 56s/110MB
Exiting... (Quit) |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2840
|
Posted: Tue Aug 15, 2023 11:28 pm Post subject: |
|
|
I see, and yeah these still don't sound good: Code: | [ 11610.735] (EE) NOUVEAU(0): Error creating GPU channel: -19
[ 11610.735] (EE) NOUVEAU(0): Error initialising acceleration. Falling back to NoAccel
[ 11610.735] (**) NOUVEAU(0): [COPY] acceleration disabled
[ 11610.735] (II) NOUVEAU(0): Hardware support for Present disabled | Not sure what may be missing at this point, my last suspicion is USE=llvm on mesa given it's used by gallium nouveau.
But it "could" even just be a problem with nouveau, given it can be finnicky with some cards and even monitors. nouveau is pretty limited and is more of a last resort for old cards when nvidia drops support. |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 15, 2023 11:41 pm Post subject: |
|
|
Ionen wrote: | I see, and yeah these still don't sound good: Code: | [ 11610.735] (EE) NOUVEAU(0): Error creating GPU channel: -19
[ 11610.735] (EE) NOUVEAU(0): Error initialising acceleration. Falling back to NoAccel
[ 11610.735] (**) NOUVEAU(0): [COPY] acceleration disabled
[ 11610.735] (II) NOUVEAU(0): Hardware support for Present disabled | Not sure what may be missing at this point, my last suspicion is USE=llvm on mesa given it's used by gallium nouveau.
But it "could" even just be a problem with nouveau, given it can be finnicky with some cards and even monitors. nouveau is pretty limited and is more of a last resort for old cards when nvidia drops support. |
Will try. I disabled USE=llvm because I didn't want to build 2 toolchains.
I'll post my kernel config too. Maybe it helps.
http://0x0.st/HLNv.txt
Thanks for your help so far. _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2840
|
Posted: Wed Aug 16, 2023 11:54 am Post subject: |
|
|
Given the feature matrix mention both 2d and 3d features as working for 10xx I thought GL was "supposed" to work, but honestly not surprised. I've personally only used nouveau with my 560ti and use nvidia-drivers on my 1070.
Ah well. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54575 Location: 56N 3W
|
Posted: Wed Aug 16, 2023 1:40 pm Post subject: |
|
|
stefan11111,
There is no sign in you Xorg log of the bits needed for hardware acceleration.
Not even a failed to open /dev/dri/cord0 message.
You need DRM support in your kernel and since you have a static /dev, you need to make the /dev/dri/* nodes too.
Hint: Code: | $ ls /sys/dev/*/ -l | grep drm
lrwxrwxrwx 1 root root 0 Aug 15 19:50 226:0 -> ../../devices/pci0000:00/0000:00:03.1/0000:0a:00.0/0000:0b:00.0/0000:0c:00.0/drm/card0
lrwxrwxrwx 1 root root 0 Aug 16 14:35 226:128 -> ../../devices/pci0000:00/0000:00:03.1/0000:0a:00.0/0000:0b:00.0/0000:0c:00.0/drm/renderD128 |
I don't suffer from nVidia any longer so your nodes may differ from mine. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Wed Aug 16, 2023 6:56 pm Post subject: |
|
|
NeddySeagoon wrote: | stefan11111,
There is no sign in you Xorg log of the bits needed for hardware acceleration.
Not even a failed to open /dev/dri/cord0 message.
You need DRM support in your kernel and since you have a static /dev, you need to make the /dev/dri/* nodes too.
Hint: Code: | $ ls /sys/dev/*/ -l | grep drm
lrwxrwxrwx 1 root root 0 Aug 15 19:50 226:0 -> ../../devices/pci0000:00/0000:00:03.1/0000:0a:00.0/0000:0b:00.0/0000:0c:00.0/drm/card0
lrwxrwxrwx 1 root root 0 Aug 16 14:35 226:128 -> ../../devices/pci0000:00/0000:00:03.1/0000:0a:00.0/0000:0b:00.0/0000:0c:00.0/drm/renderD128 |
I don't suffer from nVidia any longer so your nodes may differ from mine. |
That feels like cheating...
Code: | $ ls /sys/dev/*/ -l | grep drm
lrwxrwxrwx 1 root root 0 Aug 16 21:47 226:0 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
lrwxrwxrwx 1 root root 0 Aug 16 21:47 226:128 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/renderD128 |
Yup, I have them both:
Code: | $ ls /dev/dri/* -lah
crw-rw---- 1 root video 226, 0 Aug 16 15:08 /dev/dri/card0
crw-rw---- 1 root video 226, 128 Aug 16 15:08 /dev/dri/renderD128 |
I am in the video group, so xorg should be able to access them.
I can cat both of them, but there is no output. That means that there is something there at least. _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54575 Location: 56N 3W
|
Posted: Wed Aug 16, 2023 7:07 pm Post subject: |
|
|
stefan11111,
They should be in your Xorg.0.log too.
Hmm ... maybe not, They have gone from my Xorg.0.log now _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Wed Aug 16, 2023 7:26 pm Post subject: |
|
|
NeddySeagoon wrote: | stefan11111,
They should be in your Xorg.0.log too.
Hmm ... maybe not, They have gone from my Xorg.0.log now |
Just tested. xorg doesn't even start without them. _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
|