HW: 2008 iMac Core 2 Duo @ 2.8GHz, 6GB RAM, booting off an external SSD - Samsung T5 500GB
--VLC 3.0.6 Vetinari - when I have a couple of videos (.mp4 and .webm) loaded in the playlist queue, VLC shows as using ~5% CPU when doing nothing (video not playing, just showing the playlist.) Right now I have (7) .mp4 files in the queue and VLC is showing 13.5% to 14% CPU usage in 'top' even though it should be idle.
--Anyone else seeing this? Occasionally it prevents the iMac from sleeping when the display is put to sleep (running up the electricity bill.)
--I'm also experiencing a problem when playing DVDs - having to use the "F" and "G" keys to adjust audio delay up to (2) seconds to sync the audio.
--Workaround - I wrote a small script to stop/resume CPU for VLC, hope it helps... FYI when CPU is stopped for VLC you will see a beachball when the mouse is in its window.
BEGIN vlc-stop-resume.sh
Code: Select all
#!/bin/bash
# VLC uses CPU when videos are loaded in playlist, even supposedly Idling
# Temp. suspend CPU and resume when needed
# pass any arg e.g. '1' to resume CPU
# REF: https://www.ostechnix.com/suspend-process-resume-later-linux/
myvlc=`pidof VLC`
if [ "$1" = "" ]; then
kill -STOP "$myvlc"
else
kill -CONT "$myvlc"
fi
echo 'STAT should be T for stopped process'
# custom output
ps -exf -o pid,user,stime,time,command,pri,ni,state "$myvlc"