LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-16-2015, 09:48 AM   #1
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Rep: Reputation: 34
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'm hoping somebody will give me a hint or a fix.

Thanks abundantly,
Roy

Last edited by rrrssssss; 11-21-2015 at 06:40 AM.
 
Old 11-17-2015, 07:02 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,382
Blog Entries: 28

Rep: Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163
Just to be clear, you are referring to the X video extension, not the xv image viewer, are you not?

Try using running one of the problem applications from a terminal; perhaps it will throw some useful error messages. If it does, post them here.
 
Old 11-17-2015, 07:32 PM   #3
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
Yes, I am referring to the X video extension.

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.

Thanks.

Last edited by rrrssssss; 11-17-2015 at 07:33 PM.
 
Old 11-17-2015, 07:51 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,382
Blog Entries: 28

Rep: Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163
Quote:
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.
 
Old 11-17-2015, 09:24 PM   #5
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
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.

Last edited by rrrssssss; 11-19-2015 at 08:50 AM.
 
Old 11-21-2015, 06:39 AM   #6
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
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:

Code:
sudo mkdir /etc/X11/xorg.conf.d/
echo -e 'Section "Device"\n Identifier "Card0"\n Driver "Intel"\n Option "AccelMethod" "uxa"\nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf
Roy

Last edited by rrrssssss; 11-22-2015 at 09:28 AM.
 
1 members found this post helpful.
Old 01-08-2016, 10:19 AM   #7
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
found a permanent fix

UPDATE

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.


All the best,
Roy

Last edited by rrrssssss; 01-08-2016 at 10:58 AM.
 
  


Reply



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
Videos not playing. paulie_linux Linux - Newbie 10 12-08-2013 09:44 AM
System crashes when Youtube videos playing cantab Linux - Software 13 07-20-2010 06:01 PM
whole fedora 10 crashes (and reboots) on playing videos in full screen mode manoj_isi Linux - Hardware 1 03-17-2010 09:57 AM
help in playing videos new_to_linux Linux - Newbie 9 11-02-2007 01:11 PM
playing two videos at once. Moebius Linux - Software 1 07-09-2003 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:52 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