Bug 403783 - Laptop running Plasma slows down when 2nd monitor is plugged in via HDMI
Summary: Laptop running Plasma slows down when 2nd monitor is plugged in via HDMI
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.14.5
Platform: Ubuntu Linux
: NOR major
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-30 20:58 UTC by yamiyukisenpai
Modified: 2019-03-24 14:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of KSysGuard with montor plugged in via HDMI (91.94 KB, image/png)
2019-01-30 20:58 UTC, yamiyukisenpai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yamiyukisenpai 2019-01-30 20:58:24 UTC
Created attachment 117748 [details]
Screenshot of KSysGuard with montor plugged in via HDMI

SUMMARY
A laptop running Plasma slows down significantly when a secondary monitor is plugged in via HDMI.  Doesn't seem to slow down when plugged in via VGA.

STEPS TO REPRODUCE
1. Plug the the monitor to the laptop via HDMI
2. You'll notice the sluggish performance immediately
3. 

OBSERVED RESULT
Clock frequency stays at <1GHz most of the time.

EXPECTED RESULT
Performance shouldn't degrade

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
Intel Core i7-4510U
16GB RAM
Comment 1 yamiyukisenpai 2019-01-30 21:05:14 UTC
Just confirmed that VGA doesn't suffer from that same problem
Comment 2 David Edmundson 2019-01-31 10:14:15 UTC
Which process/processes are using a higher CPU when in this configuration?
Comment 3 yamiyukisenpai 2019-02-01 15:30:55 UTC
Turns out that a change I made to Firefox months ago made the performance suffer (disabled recommended settings).

However, is it normal for the CPU to dip below the minimum frequency (1.0GHz) I set on TLP?
Comment 4 yamiyukisenpai 2019-02-01 15:32:00 UTC
Just in case you misunderstand, I meant I re-enabled recommended settings for it to turbo clock again.
Comment 5 David Edmundson 2019-02-01 16:24:36 UTC
I can't help with CPU governor settings, sorry.
Thanks for investigating.
Comment 6 yamiyukisenpai 2019-03-05 04:56:34 UTC
Is it possible to reopen this report?  Turns out that it wasn't solved.

This was the frequencies on my laptop when I plugged a second monitor:
$ cpufreq-info | grep -i "current CPU freq"
  current CPU frequency is 1.54 GHz.
  current CPU frequency is 1.58 GHz.
  current CPU frequency is 1.73 GHz.
  current CPU frequency is 1.83 GHz.

Sometimes performance comes back after unplugging it, other times, reboot is required.

After reboot:
$ cpufreq-info | grep -i "current CPU freq"
  current CPU frequency is 2.95 GHz.
  current CPU frequency is 2.79 GHz.
  current CPU frequency is 2.85 GHz.
  current CPU frequency is 2.78 GHz.
Comment 7 yamiyukisenpai 2019-03-05 04:59:10 UTC
My current system info:
Operating System: Kubuntu 18.10
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.1
Kernel Version: 4.18.0-15-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-4510U CPU @ 2.00GHz
Memory: 15.6 GiB of RAM
Comment 8 Christoph Feck 2019-03-24 14:25:05 UTC
Plasma itself does not change the CPU speed. Please ask in a forum of your distribution which component of your system could be responsible. Comment #5 suggests that it is related to kernel CPU governor settings.

It is possible that kernel is configured to change the frequency to prevent overheating on-chip GPU when driving multiple monitors.