Video and desktop locks and sound stutters over and over
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.
Video and desktop locks and sound stutters over and over
I just upgraded to a newer machine, HP AMD Quad Core running LinuxMint Mate 17.
inxi -C reports CPU: Quad core AMD Phenom II X4 B95 (-MCP-) cache: 2048 KB flags: (lm sse sse2 sse3 sse4a svm)
Just tried for the first time watching video feed from the net via Youtube and other sources and I am getting freezing and stuttering(same sound repeats over and over). It seems that if I move the mouse around the screen rapidly I can reduce the severity of the problem, almost as if the system is not being kept busy enough. I tried opening System Monitor to see what was going on but it is showing very low levels of activity and also seems to freeze when the video freezes.
I shut the machine down and went into the Bios and turned off multi cpu and the same video from Youtube seems to be OK. Any thoughts on how to solve this problem without always having the other three cpus shut down all the time?
Also tried looking at a DVD with VLC Media Player and that is also stuttering.
a) i swear i've seen a very similar problem (sound stuttering gets better when the system is under stress. i think it was here on LQ.
b) as a workaround, you can start a program and tell it to run on a particular cpu via some shell variable, so you'd have to enter something like "CPU_NUMBER=0 firefox" (this is not the actual command, please search).
Tried using taskset to lock Firefox to CPU0 while running burnK6 on CPU1 to help load system but it didn't help. I was thinking that this might be a video driver problem so using another hard drive I loaded an older version Mint 13_64 so that I could try the AMD fglrx-legacy driver but that didn't work either, maybe slightly better but not OK. Could this be an audio driver problem instead?
on that other thread it was an audio problem. i found it! http://forums.debian.net/viewtopic.php?f=7&t=114502
have a close look, it says at some point that op's sound gets better when he starts 3 virtual machines.
it also links back to similar threads on LQ.
this should give you something to do.
fwiw, i don't think you need taskset to set cpu affinity - setting a shell var should be enough.
i don't remember the variable, but as an unrelated example of how it works:
Code:
GTK2_RC_FILES=$HOME/.gtkrc-alt /usr/bin/firefox
(this would start firefox with an alternate gtk theme)
Should I be asking this question in a different forum perhaps? I tried going back to the Windows 7 disk that came with this system and which presumably uses all 4 CPUs and it plays the DVD fine with VLC. VLC also plays perfectly in LinuxMint if I disable the other 3 CPUs via the BIOS. To me this sounds less and less like an audio or video problem and more like some sort of kernel timesharing issue?
did you actually read what i gave you?
there's a LOT of information in it, and it really seems very close to your problem.
of course posting on linuxmint forums can't hurt; but mint is based on ubuntu is based on debian, so debian forums is not the wrong place to search for solutions.
Yes ondoho I did read it plus a lot of other stuff but it didn't provide any real answers. I decided that the idea of trying another distro was probably a good one so I downloaded openSuse 13.1 and installed it on a spare drive. It still uses pulseaudio, I'm not sure there are any distros that don't anymore.
Anyways I can't get vlc or the resident player to play my DVD, probably codec issues or something I can't seem to resolve. After installing the flashplayer plugin I can watch youtube videos in Firefox. With all 4 CPUs working it does not freeze and the audio does not stutter but the video (top and bottom) is jittery. With only one CPU the video seemed to jitter for a couple of seconds and then stabilized.
I tried the inxi -Fxz command to see exactly what it says it's using but the output is unreadable due to the colours they're using in the terminal screen and I can't figure out how to change them. After years in the Red Hat/Fedora and Debian style worlds I'm not finding openSuse to be very user friendly I'm afraid.
Other checking shows that it is running the ati,radeon video driver though and the kernel is 3.11.6-4-desktop and Xorg is 1.14.3.901.
I figured what the heck lets try some other distros as well. Fedora 20 plays the youtube video completely stable but I couldn't easily fix vlc codec problems so moved on. Suprisingly Ubuntu 14.04 from which Mint17 is derived also plays the youtube video perfectly. After codec issues vlc also plays the DVD perfectly. here are the results of inxi -Fxz for both Mint 17 and Ububntu 14.04
Sorry I forgot to add that given they're both running the same Xorg, video driver and sound driver I don't think this is an audio or video problem. Am I right?
The two system reports show my starting point of LinuxMint 17 (to which I have returned) where the problem originates and a load of Ubuntu 14.04 on a spare hard drive which operates without problems. An attempt to use fglrx did not solve the issue.
I got the respective config files from /boot and compared them line by line, all 127 pages, using LibreOffice Writer as it gave me the best control over where I was in the document. There were not a lot of differences and most of them were to do with hardware I do not have.
The ones that might be significant are:
Page 3
"#CONFIG_MEMCG_KMEM is not set" is replaced in Ubuntu by "CONFIG_MEMCG_KMEM=y"
Page 9
"# CONFIG_ZBUD is not set" is replaced in Ubuntu by "CONFIG_ZBUD=y"
"# CONFIG_ZSWAP is not set" is replaced in Ubuntu by "CONFIG_ZSWAP=y"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.