Cinnamon very high CPU consumption for video playback on Intel graphics

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
tutaum
Level 1
Level 1
Posts: 2
Joined: Sat Jul 07, 2018 3:30 pm

Cinnamon very high CPU consumption for video playback on Intel graphics

Post by tutaum » Sun Jul 08, 2018 12:35 pm

I currently have Linux Mint 19 Cinnamon (but also noticed this on 18.3 Cinnamon) on my laptop. Whenever I play a web browser video (e.g. Youtube in chromium), my CPU consumption sky rockets. If I play a 1080p60 video, I get 100% of CPU busy and my whole system becomes very slow and sluggish for any other basic task (given I'm not running anything else that is significantly CPU consuming). I suspect the same would happen with anything else that demands some graphics acceleration.
Interestingly, I've tried XFCE and the performance for the same use case is considerably better. Now I have seen people recommending XFCE in favor of Cinnamon for old hardware, but my laptop has a Intel i5 6200U (Intel HD Graphics 520, no dedicated GPU), so I don't think that would be my case.

Things that I have tried:
- Disabled all window animations
- Updating BIOS firmware
- Tried using another browser (FIrefox), but no difference in performance

inxi -F:

Code: Select all

System:    Host: Potato Kernel: 4.15.0-24-generic x86_64 bits: 64
           Desktop: Cinnamon 3.8.7  Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: LENOVO product: 20EV000TUK v: ThinkPad E560 serial: N/A
           Mobo: LENOVO model: 20EV000TUK v: SDK0J40705 WIN serial: N/A
           UEFI: LENOVO v: R00ET59W (1.34 ) date: 06/05/2018
Battery    BAT0: charge: 41.5 Wh 99.7% condition: 41.6/47.5 Wh (88%)
CPU:       Dual core Intel Core i5-6200U (-MT-MCP-) cache: 3072 KB
           clock speeds: max: 2800 MHz 1: 895 MHz 2: 895 MHz 3: 898 MHz
           4: 838 MHz
Graphics:  Card: Intel HD Graphics 520
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
           version: 4.5 Mesa 18.0.0-rc5
Audio:     Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.15.0-24-generic
Network:   Card-1: Intel Ethernet Connection I219-V driver: e1000e
           IF: enp0s31f6 state: down mac: 50:7b:9d:9e:e5:02
           Card-2: Intel Dual Band Wireless-AC 3165 Plus Bluetooth
           driver: iwlwifi
           IF: wlp1s0 state: up mac: 08:d4:0c:3c:ff:0a
Drives:    HDD Total Size: 256.1GB (7.8% used)
           ID-1: /dev/sda model: SAMSUNG_MZ7TY256 size: 256.1GB
Partition: ID-1: / size: 234G used: 19G (9%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 42.5C mobo: N/A
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 197 Uptime: 19 min Memory: 1151.5/7860.5MB
           Client: Shell (bash) inxi: 2.3.56
If you guys have any suggestions on how to improve this or why this could be happening would be great to know :)
Thx!

User avatar
jimallyn
Level 18
Level 18
Posts: 8941
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Cinnamon very high CPU consumption for video playback on Intel graphics

Post by jimallyn » Sun Jul 08, 2018 6:04 pm

Did you check for a recommended driver in Driver Manager?
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

User avatar
richyrich
Level 19
Level 19
Posts: 9075
Joined: Mon May 04, 2009 8:31 pm

Re: Cinnamon very high CPU consumption for video playback on Intel graphics

Post by richyrich » Sun Jul 08, 2018 6:11 pm

Please correct me, but wasn't there problems with the 4.15.0.24 kernel? causing problems with MESA (graphics)?

Have you tried booting to a different kernel to see if the problem is actually with the 4.15.0.24 kernel?

ssspace
Level 2
Level 2
Posts: 63
Joined: Mon Dec 18, 2017 8:44 pm

Re: Cinnamon very high CPU consumption for video playback on Intel graphics

Post by ssspace » Sun Jul 08, 2018 6:47 pm

Go to Firefox/other browser preferences, and check/uncheck hardware acceleration and other configurations there:
For Firefox: https://support.mozilla.org/en-US/kb/pe ... e-settings

tutaum
Level 1
Level 1
Posts: 2
Joined: Sat Jul 07, 2018 3:30 pm

Re: Cinnamon very high CPU consumption for video playback on Intel graphics

Post by tutaum » Thu Jul 12, 2018 4:55 pm

Thanks for the replies guys
jimallyn wrote:
Sun Jul 08, 2018 6:04 pm
Did you check for a recommended driver in Driver Manager?
No drivers are available in my Driver Manager. Probably proper drivers are are already with the kernel.
richyrich wrote:
Sun Jul 08, 2018 6:11 pm
Please correct me, but wasn't there problems with the 4.15.0.24 kernel? causing problems with MESA (graphics)?

Have you tried booting to a different kernel to see if the problem is actually with the 4.15.0.24 kernel?
I looked for issues reported on 4.15.0.24 but couldn't find anything related to MESA. Nevertheless, I'll downgrade a bit to give it a try.
ssspace wrote:
Sun Jul 08, 2018 6:47 pm
Go to Firefox/other browser preferences, and check/uncheck hardware acceleration and other configurations there:
For Firefox: https://support.mozilla.org/en-US/kb/pe ... e-settings
No difference whatsoever :(

gm10
Level 18
Level 18
Posts: 8249
Joined: Thu Jun 21, 2018 5:11 pm

Re: Cinnamon very high CPU consumption for video playback on Intel graphics

Post by gm10 » Thu Jul 12, 2018 5:31 pm

Don't know what Cinnamon is doing - it's always got too high CPU usage tbh but not that high - but also:

Linux Mint doesn't come with drivers for hardware accelerated video decoding pre-installed.
Chromium from the repository is not compiled to allow hardware accelerated video decoding.

So that alone means CPU usage will be high out of the box.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

fosssurfer
Level 1
Level 1
Posts: 5
Joined: Sun Jul 08, 2018 4:15 pm

Re: Cinnamon very high CPU consumption for video playback on Intel graphics

Post by fosssurfer » Thu Jul 12, 2018 8:51 pm

I had High CPU usage Mint 19 Cinnamon and this worked for me as listed below. I have a intel only cpu laptop and it works fine on that.

It appears that when you use W+L and Restart Cinnamon the 1 core at 92%+ constant high cpu usage disappears.

I fixed this or it got fixed like this...

1. W+L

2. click the littel box (Actions) on the bottom right

3. click Restart-Cinnamon

Note: at this point my system hung with no Cinnamon stayed like that for over 5 minutes so I hit the power button to shut down Off.

CPU usage now in the 10% or less range for 1-2 cores some at 0-1% the way it should be.

I switch back on problem solved! Go figure.

Post Reply

Return to “Cinnamon”