LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-26-2024, 11:08 AM   #211
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled

Quote:
Originally Posted by Jeebizz View Post
its only a thing for vlc or mplayer , but when you are watching youtube in a browser thats different ..
Firefox for linux has no proper hardware decoding yet. It usually gives you a cisco binary, which uses processor to decode youtube's drm infested video.
There is a thing called vaapi for AMD chips, but nvidia's implementation of that thing (vdpau) was still unsupported by mozilla last time I checked.
This is why you can see a lot of internet drama about windows streaming all 60fps videos on 0.5% cpu, while linux streaming same videos on 20% cpu.
Also why a lot of folks just use youtube-dl or similar tools to pipe online video into ffmpeg. It can decode video directly on GPU.

If you want more about tearing, does it happen in glxgears? Is it the same when running glxgears on xfce4 and glxgears on plasma?
Did you force triple buffering in xorg.conf? Did you use cvt tool to generate a modeline for your monitor? Did you enable vsync in nvidia-settings?
I get that it's all a lot of hassle, but there are sometimes simple ways to fix stuff. Unless it's apple, then you get a canned response to recycle it
 
Old 02-26-2024, 01:39 PM   #212
bigbadaboum
Member
 
Registered: Apr 2023
Posts: 145

Rep: Reputation: 59
Quote:
elcore
Senior Member
If you want more about tearing, does it happen in glxgears? Is it the same when running glxgears on xfce4 and glxgears on plasma?
my god this man reads my mind
Quote:
$glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
336 frames in 5.0 seconds = 67.083 FPS
300 frames in 5.0 seconds = 59.993 FPS
300 frames in 5.0 seconds = 59.994 FPS
300 frames in 5.0 seconds = 59.996 FPS
300 frames in 5.0 seconds = 59.995 FPS
300 frames in 5.0 seconds = 59.997 FPS
301 frames in 5.0 seconds = 60.007 FPS
301 frames in 5.0 seconds = 60.008 FPS
301 frames in 5.0 seconds = 60.007 FPS
301 frames in 5.0 seconds = 60.003 FPS
301 frames in 5.0 seconds = 60.007 FPS
301 frames in 5.0 seconds = 60.002 FPS
--with-zlib \ inside libpciaccess.SlackBuild seems to give a little better result.
 
Old 02-26-2024, 03:59 PM   #213
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by elcore View Post
Firefox for linux has no proper hardware decoding yet.
I thought Firefox use ffmpeg for some/alot of its decoding of video. But then I heard it's not really ffmpeg on the computer, but Firefox having turned into a media player as well, shipping with its own custom version of ffmpeg. How is that even possible? Isn't that incredibly bad if the user actually has ffmpeg installed? Is there any technical reason it can't send output through ffmpeg directly?
 
Old 02-26-2024, 04:05 PM   #214
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by wpeckham View Post
X.Org is quite mature. Wayland is still under development at a rapid pace. I see no reason for a distribution like Slackware, LFS, Gentoo, that is source based to be quick to jump onto Wayland
They aren't really. Slackware is shipping with Xorg as default, but it ALSO ships Wayland, which is great. I'm using Wayland.

Perhaps you could consider it "testing", but mature. This works out perfectly well actually. People can chose and both are available. KDE6 will use Wayland as default, and I suspect Slackware will do the same if/when moving to KDE6, but I would think Slackware will keep Xorg around for a long time also.

Last edited by zeebra; 02-26-2024 at 04:06 PM.
 
Old 02-26-2024, 05:35 PM   #215
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by bigbadaboum View Post
my god this man reads my mind


--with-zlib \ inside libpciaccess.SlackBuild seems to give a little better result.
This is the result of glxgears:

Code:
slackuser@slackmachine:~$ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
297 frames in 5.0 seconds = 59.298 FPS
300 frames in 5.0 seconds = 59.954 FPS
301 frames in 5.0 seconds = 60.002 FPS
301 frames in 5.0 seconds = 60.001 FPS
301 frames in 5.0 seconds = 60.053 FPS
300 frames in 5.0 seconds = 59.952 FPS
300 frames in 5.0 seconds = 59.852 FPS
299 frames in 5.0 seconds = 59.754 FPS
299 frames in 5.0 seconds = 59.796 FPS
301 frames in 5.0 seconds = 60.001 FPS
301 frames in 5.0 seconds = 60.055 FPS
298 frames in 5.0 seconds = 59.598 FPS
300 frames in 5.0 seconds = 59.988 FPS
300 frames in 5.0 seconds = 59.989 FPS
290 frames in 5.0 seconds = 57.828 FPS
295 frames in 5.0 seconds = 58.967 FPS
295 frames in 5.0 seconds = 58.854 FPS
300 frames in 5.0 seconds = 59.788 FPS
300 frames in 5.0 seconds = 59.962 FPS
299 frames in 5.0 seconds = 59.736 FPS
300 frames in 5.0 seconds = 59.903 FPS
299 frames in 5.0 seconds = 59.612 FPS
301 frames in 5.0 seconds = 59.997 FPS
295 frames in 5.0 seconds = 58.825 FPS
294 frames in 5.0 seconds = 58.798 FPS
293 frames in 5.0 seconds = 58.579 FPS
301 frames in 5.0 seconds = 59.978 FPS
301 frames in 5.0 seconds = 60.042 FPS
301 frames in 5.0 seconds = 60.014 FPS
300 frames in 5.0 seconds = 59.952 FPS
Also nvidia settings show compositor pipeline and force full composition pipeline is enabled.

Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 470.161.03

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 470.161.03

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    FontPath        "/usr/lib64/X11/fonts/misc/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/misc/"
    FontPath        "/usr/lib64/X11/fonts/Type1/"
    FontPath        "/usr/lib64/X11/fonts/Speedo/"
    FontPath        "/usr/lib64/X11/fonts/100dpi/"
    FontPath        "/usr/lib64/X11/fonts/75dpi/"
    FontPath        "/usr/lib64/X11/fonts/cyrillic/"
    FontPath        "/usr/lib64/X11/fonts/TTF/"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics 23EA63"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce GT 710"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

-edit

attached xorg.log Xorg.0.log

Last edited by Jeebizz; 02-26-2024 at 06:07 PM.
 
Old 02-26-2024, 06:22 PM   #216
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by elcore View Post
Firefox for linux has no proper hardware decoding yet. It usually gives you a cisco binary, which uses processor to decode youtube's drm infested video.
There is a thing called vaapi for AMD chips, but nvidia's implementation of that thing (vdpau) was still unsupported by mozilla last time I checked.
This is why you can see a lot of internet drama about windows streaming all 60fps videos on 0.5% cpu, while linux streaming same videos on 20% cpu.
Also why a lot of folks just use youtube-dl or similar tools to pipe online video into ffmpeg. It can decode video directly on GPU.

If you want more about tearing, does it happen in glxgears? Is it the same when running glxgears on xfce4 and glxgears on plasma?
Did you force triple buffering in xorg.conf? Did you use cvt tool to generate a modeline for your monitor? Did you enable vsync in nvidia-settings?
I get that it's all a lot of hassle, but there are sometimes simple ways to fix stuff. Unless it's apple, then you get a canned response to recycle it
I don't know why youtube in their infinite wisdom switched to vp9, when I thought it was always using AV1, or maybe just a standard mp4 format, but my bluray player doesn't like VP9, at least not through my dlna server, because it says it cannot play the format, so I always have to use clipgrab to not only download the video and convert it thus degrading the quality. I tend to watch youtube videos offline when they are longform anyhow - I just find it weird that if I use the youtube app on the bluray, I can watch videos but I can't playback the videos offline through minidlna it hates the VP9 format yet it plays videos just fine from the app, so I don't know, again though this is just another tangent.

As for the playback, I notice in vlc or youtube on firefox or brave that there is some horizontal tearing, depending on if there is a lot of motion on the video in question; I know it also sounds anecdotal but thats all I have.

Last edited by Jeebizz; 02-26-2024 at 06:26 PM.
 
Old 02-26-2024, 07:05 PM   #217
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,674

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
Okay, I just discovered another reason to move to wayland. In AUR (and I presume elsewhere) there is a set of packages for a Wayfire desktop. Wayfire is the Wayland compositor and it RIPS! IT also takes very little resource! With the rest of the desktop modules and settings it gives Fluxbox a run for the money, as my new lean and fast desktop that gets out of my way and lets me work. Cube animation, animated windows, wobbly windows, the whole set of special stuff without the overhead! (Except blur. Forget blur, it is a dog.)

Wayfire is implemented as a bare-bones Wayland compositor that allows for plug-in modules and it comes with all the modules I need to go crazy. I gotta play with this a while! I feel like a kid with a new toy!
 
Old 02-27-2024, 01:04 AM   #218
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
@Jeebizz
The glxgears output is not so relevant, I asked about whether or not you see the same tearing in both plasma and xfce.
Try expanding glxgears to fullscreen in both those environments and see if it tears.
If it only tears in plasma, complain to kwin developer. If it tears in all environments, you can probably assume it's the driver fault or your X configuration.
Also, a (cvt generated) Modeline goes into Monitor section, this one's mine, for example:
Code:
ModeLine       "1680x1050_60" 146.250 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
EDID binary goes into device section:
Code:
Option       		"CustomEDID"           "CRT-0:/lib/firmware/edid/1680x1050.bin"
Triple buffer and hardware cursor also go into Device section:
Code:
Option       		"TripleBuffer"         "TRUE"
Option       		"HWCursor"             "TRUE"
Pipeline should probably go into Device section, but I don't use it/not sure, see the README provided with the driver.
Wayland should at least support a configuration file for these options, before being taken seriously as a replacement for Xorg.

@zeebra
Firefox is funded by google, not by ffmpeg. And long ago in the past, flash player used to support vdpau hardware decoding.
 
Old 02-27-2024, 09:23 AM   #219
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by elcore View Post
@Jeebizz
The glxgears output is not so relevant, I asked about whether or not you see the same tearing in both plasma and xfce.
Try expanding glxgears to fullscreen in both those environments and see if it tears.
If it only tears in plasma, complain to kwin developer. If it tears in all environments, you can probably assume it's the driver fault or your X configuration.
Also, a (cvt generated) Modeline goes into Monitor section, this one's mine, for example:
Code:
ModeLine       "1680x1050_60" 146.250 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
EDID binary goes into device section:
Code:
Option       		"CustomEDID"           "CRT-0:/lib/firmware/edid/1680x1050.bin"
Triple buffer and hardware cursor also go into Device section:
Code:
Option       		"TripleBuffer"         "TRUE"
Option       		"HWCursor"             "TRUE"
Pipeline should probably go into Device section, but I don't use it/not sure, see the README provided with the driver.
Wayland should at least support a configuration file for these options, before being taken seriously as a replacement for Xorg.

@zeebra
Firefox is funded by google, not by ffmpeg. And long ago in the past, flash player used to support vdpau hardware decoding.
I'll append that when I have time, but it is just confusing and maybe im reading too much into it - why is CRT even mentioned when nobody is using a crt these days, oh well. I haven't been in xfce either, just plasma5 and before that mate, but i removed MATE and just stuck with plasma5.
 
Old 02-27-2024, 09:41 AM   #220
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
why is CRT even mentioned when nobody is using a crt these days, oh well.
Don't worry about it, I only posted my ModeLine as an example, you should make yours with 'cvt' and use "DFP-0" in there.
I use "CRT-0" because the driver identified the connector as CRT-0, as it's connected with plain old VGA cable.
Do not use my ModeLine, cause the numbers are certainly all wrong for your monitor. Read 'man cvt' for more info.

And it might be a good time to update your driver, because you have 470.161.03 and the latest in 470 series is 470.239.06.

Edit:
And you probably don't need a custom EDID binary at all. since DFP connected modern monitors expose the EDID information automatically.
The EDID line is intended only for old monitors, those old school fat VGA cables with ferrite cores, and monitors behind KVM switches as @dhalliwe explained on previous page.

Last edited by elcore; 02-27-2024 at 10:03 AM.
 
Old 02-27-2024, 12:30 PM   #221
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 163

Rep: Reputation: 154Reputation: 154
Quote:
why is CRT even mentioned when nobody is using a crt these days
As elcore mentions, this is just a naming convention for the port on the video card.

In my xorg.conf file, I have two lines that refer to settings on my dual-monitor setup.

Quote:
Option "CustomEDID" "CRT:/etc/X11/LG2261_edid.bin" #Only for the CRT that is blocked by the KVM
Option "metamodes" "DVI-I-1: 1920x1080 +0+0, VGA-0: 1920x1080 +1920+0"
The CustonEDID specification is labelled CRT, but I am using an LED monitor on that VGA output. (As previously mentioned,it passes through a VGA Keyboard-Video-Mouse device, Also known as a KVM.)

The second line mentions a DVI port and a VGA port, and provides me with a single screen across the two monitors (3840x1080 resolution). The labels/names for the two ports on the video card are DVI-I-1 and VGA-0. These names match what I see from the NVIDIA X Server Settings - maybe because it uses what I specified in xorg.conf. I don't remember exactly how I figured out these names,but they need to have some meaning to the driver. The CRT and VGA-0 names are the same port on the video card. As mentioned earlier, I use Nvidia's 390.x driver.
 
Old 02-27-2024, 01:29 PM   #222
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
You should be able to get display interface names using the following
Code:
grep . /sys/class/drm/*/status
Code:
xrandr
 
Old 02-27-2024, 01:47 PM   #223
bigbadaboum
Member
 
Registered: Apr 2023
Posts: 145

Rep: Reputation: 59
Quote:
Jeebizz
Senior Member
I am trying to be somewhat diplomatic and not totally blame x
I promise you that the problem does not come from X11 and your EDID (your Xorg setup is good https://www.linuxquestions.org/quest...ml#post6486131)

To make a Swedish or a Finnish angry it takes, a lot, it is not in the culture of Linus Torvald to make dramas, just look where the problem comes from....
 
Old 02-27-2024, 08:16 PM   #224
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by bigbadaboum View Post
I promise you that the problem does not come from X11 and your EDID (your Xorg setup is good https://www.linuxquestions.org/quest...ml#post6486131)

To make a Swedish or a Finnish angry it takes, a lot, it is not in the culture of Linus Torvald to make dramas, just look where the problem comes from....
Oh well, I might mess with it later but I just don't feel like it right now. I'm also going to be a bit generous and blame the driver perhaps.
 
Old 02-27-2024, 11:03 PM   #225
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by wpeckham View Post
Wayfire is implemented as a bare-bones Wayland compositor that allows for plug-in modules and it comes with all the modules I need to go crazy. I gotta play with this a while! I feel like a kid with a new toy!
Slackware as far as I remember has always shipped with a nice selection of Xorg window managers and/or desktop alternatives alongside major one(s). I hope this tradition continues with Wayland (also).
 
  


Reply

Tags
kde, xorg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Save development time and effort with Ruby LXer Syndicated Linux News 0 04-07-2016 08:21 AM
LXer: Mutter Wayland 3.11.2 Now Syncs Keymap from X.Org to Wayland LXer Syndicated Linux News 0 12-04-2013 02:15 AM
Problem: xorg 1.7.7 on Mandriva 2010.2 / ATI X600: X11 crashing or slowing down grover Linux - Software 10 06-16-2011 01:46 AM
Future !X ? Wayland : X - what is wayland? serafean Linux - General 5 03-04-2011 11:09 AM
LXer: Is Linux Kernel Development Slowing Down? LXer Syndicated Linux News 0 12-02-2010 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration