<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>plasma &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/plasma/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Sun, 07 Mar 2021 03:40:21 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>KDE Plasma CPU High Usage After Install Nvidia Driver</title>
		<link>https://richliu.com/2021/03/07/4401/kde-plasma-cpu-high-usage-after-install-nvidia-driver/</link>
					<comments>https://richliu.com/2021/03/07/4401/kde-plasma-cpu-high-usage-after-install-nvidia-driver/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Sun, 07 Mar 2021 03:36:16 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Nvidia]]></category>
		<category><![CDATA[plasma]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=4401</guid>

					<description><![CDATA[<p>My notebook with RTX3060 has this issue after do someth [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2021/03/07/4401/kde-plasma-cpu-high-usage-after-install-nvidia-driver/">KDE Plasma CPU High Usage After Install Nvidia Driver</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>My notebook with RTX3060 has this issue after do something I don&#8217;t know. OS is Ubuntu 18.04<br /><br />Everything is ok after first time install RTX3060, there is no high cpu issue, but after install IME(gcin), nomachine and anydesk and do something I don&#8217;t remember, plasma high cpu usage issue happened. </p>



<span id="more-4401"></span>



<p>Tried to uninstall anydesk, nomachine and gcin, but those actions cannot solve this issue. <br /><br />but one time, when plasma cpu usage 100%, the nvidia-smi command shows GPU usage 100%, so I think whether if prevent plasma to use nvidia, it might solve this issue temporary ? </p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="990" height="566" src="https://richliu.com/wp-content/uploads/2021/03/plasma-nvidia-normal.png" alt="" class="wp-image-4402" srcset="https://richliu.com/wp-content/uploads/2021/03/plasma-nvidia-normal.png 990w, https://richliu.com/wp-content/uploads/2021/03/plasma-nvidia-normal-600x343.png 600w, https://richliu.com/wp-content/uploads/2021/03/plasma-nvidia-normal-768x439.png 768w" sizes="(max-width: 990px) 100vw, 990px" /><figcaption>Plasma CPU / GPU usage is normal</figcaption></figure>



<figure class="wp-block-image"><img decoding="async" width="989" height="574" src="https://richliu.com/wp-content/uploads/2021/03/plasma-nvidia-cpu-high.png" alt="" class="wp-image-4403" srcset="https://richliu.com/wp-content/uploads/2021/03/plasma-nvidia-cpu-high.png 989w, https://richliu.com/wp-content/uploads/2021/03/plasma-nvidia-cpu-high-600x348.png 600w, https://richliu.com/wp-content/uploads/2021/03/plasma-nvidia-cpu-high-768x446.png 768w" sizes="(max-width: 989px) 100vw, 989px" /><figcaption>Plasma CPU / GPU usage is high.</figcaption></figure>



<p>Notebook has intel i915 driver, so, prevent plasma to use GPU can solve this issue. <br /><br />First modify <code>/usr/share/X11/xorg.conf.d/11-nvidia-prime.conf</code> and replace it with text below </p>



<pre class="wp-block-code"><code># DO NOT EDIT. AUTOMATICALLY GENERATED BY gpu-manager

Section "OutputClass"
    Identifier "Nvidia Prime"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "IgnoreDisplayDevices" "CRT"
    # Option "PrimaryGPU" "Yes"
    ModulePath "/x86_64-linux-gnu/nvidia/xorg"
EndSection


Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
    Option "PrimaryGPU" "yes"
EndSection
</code></pre>



<p>Protect the file will not be overwrite by gpu-manager</p>



<pre class="wp-block-code"><code>chattr +i /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf</code></pre>



<p>Reboot system and run nvidia-smi, plasma will not use nvidia GPU, so my plasma cpu usage 100% issue disappear. <br /><br />this solution might not solve all plasma 100% cpu usage issue, but might be one possible solution.</p>



<figure class="wp-block-image"><img decoding="async" width="990" height="493" src="https://richliu.com/wp-content/uploads/2021/03/plasma-without-gpu.png" alt="" class="wp-image-4404" srcset="https://richliu.com/wp-content/uploads/2021/03/plasma-without-gpu.png 990w, https://richliu.com/wp-content/uploads/2021/03/plasma-without-gpu-600x299.png 600w, https://richliu.com/wp-content/uploads/2021/03/plasma-without-gpu-768x382.png 768w" sizes="(max-width: 990px) 100vw, 990px" /><figcaption>Plasma without GPU</figcaption></figure>



<p>Detail information which can refer to this url  <a href="https://askubuntu.com/questions/1061551/how-to-configure-igpu-for-xserver-and-nvidia-gpu-for-cuda-work" target="_blank" rel="noopener">How to configure iGPU for xserver and nvidia GPU for CUDA work</a><br /></p>
<p>The post <a rel="nofollow" href="https://richliu.com/2021/03/07/4401/kde-plasma-cpu-high-usage-after-install-nvidia-driver/">KDE Plasma CPU High Usage After Install Nvidia Driver</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2021/03/07/4401/kde-plasma-cpu-high-usage-after-install-nvidia-driver/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
