SOLVED Playing videos - xv crashes system but gl is a workaround
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
SOLVED Playing videos - xv crashes system but gl is a workaround
Hello forum,
I am running CentOS 7 with the Mate desktop and an Intel video chipset. Whenever I use xv for a video output in any of my video players such as mplayer or VLC, my desktop will freeze solid after a few minutes, with no keyboard or mouse functions but if I use these same video players using the openGL (GLX) video output, everything plays perfectly.
Interestingly enough, if I install Compiz over Mate, I can then use the xv video output without any freezups or crashes. Everything will then play perfectly using xv.
But I do not necessarily want to use Compiz just to fix my xv problem, so my question would be, how can I fix this problem without installing Compiz?
I will not get any errors from a media player started in a terminal due to the fact that the freeze is so sudden and solid that the log files do not have enough time to populate with information.
But I have been Googgling and have read that the Mate desktop is buggy, or at least it is on CentOS. KDE or Gnome installed on CentOS do not have these problems.
I will not get any errors from a media player started in a terminal due to the fact that the freeze is so sudden and solid that the log files do not have enough time to populate with information.
Yeah, I've run into that situation too--the freeze freezes everything, including logging. If changing the desktop environment fixes it, let us know. That might help someone else.
I like MATE on Mint and haven't run into any issues, but I know all these spins to other distros are new and new often means buggy.
I have a multi-boot system with several partitions and I have three installations of CentOS installed, one with Mate, one with Gnome3, and one with KDE, and I can vouch for the fact that Mate not only has the xv freeze problem but Mate also will suddenly peg my processor to 100 per cent for hours when it is idle, hogging all of the resources and essentially freezing the system and it seems to be unrelated to the xv freeze. But I appreciate the Linux developers for their free contribution time in what they do for Linux. So I don't like to complain.
Roy
UPDATE
The problem exists in KDE also, though not as often. The solution is as previously stated, substitute xv with gl in all of the video players.
I solved my problem by using a different video acceleration method. By default, Centos uses the the latest accelerator called SNA (Sandybridge's New Acceleration) for Intel based video, but once I replaced SNA with UXA (Unified Acceleration Architecture), I was able to use the xv video output to play videos without any crashes or freezes, and I did not need Compiz for the "fix". Both SNA and UXA are backends for DDX (Device Dependant X).
Code:
Section "Device"
Option "AccelMethod" "uxa"
Above shows how I edited my xorg.conf file.
UPDATE
For those who don't have an xorg.conf file, the same thing can be done this way:
I found a fix for the problem instead of the posted workaround. The "intel_ips" module needs to be loaded. Enable this module to auto-load on boot and the freeze problem goes away, plus you can then use revert back to the default video acceleration method, SNA instead of the slower UXA.
And FYI, ips stands for Intelligent Power Sharing and I think it pertains to the Intel processor, not the Intel video graphics, I'm not sure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.