<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5233&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Installing CoreCtrl on Devuan Ceres]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5233</link>
		<description><![CDATA[The most recent posts in Installing CoreCtrl on Devuan Ceres.]]></description>
		<lastBuildDate>Fri, 09 Sep 2022 05:57:01 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Installing CoreCtrl on Devuan Ceres]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37475#p37475</link>
			<description><![CDATA[<div class="quotebox"><cite>brocashelm wrote:</cite><blockquote><div><h5>Method 2. Installing from PPA</h5></div></blockquote></div><p>Better guide here:</p><p><a href="https://wiki.debian.org/CreatePackageFromPPA" rel="nofollow">https://wiki.debian.org/CreatePackageFromPPA</a></p><p>^ That shows how to use PPA source code to build local Devuan packages.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 09 Sep 2022 05:57:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37475#p37475</guid>
		</item>
		<item>
			<title><![CDATA[Installing CoreCtrl on Devuan Ceres]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37468#p37468</link>
			<description><![CDATA[<p>These instructions are copied from <a href="https://linuxreviews.org/CoreCtrl" rel="nofollow">LinuxReviews</a>.</p><p><span class="bbc">corectrl</span> is a graphical system monitor for your graphics card that can assist in optimizing GPU fan curves, frequency, and voltage in order to improve performance quality. You can also monitor usage metrics to see which processes are demanding more power from your GPU. It&#039;s a handy tool for gamers, streamers, video creators, musicians, and even developers (particularly if software is more GPU-bound). It can also handle your CPU frequency scaling and governors, but the draw of <span class="bbc">corectrl</span> is for GPU optimization.</p><p><strong>Before proceeding, keep in mind that this program WILL interfere with <span class="bbc">fancontrol</span> from <span class="bbc">lm-sensors</span>. Make sure that this is something you are absolutely sure of (i.e. you have experience fixing stuff by yourself), as <span class="bbc">corectrl</span> will take immediate effect once launched. In following along with this tutorial, you agree to not hold anyone but yourself liable for any potential damages caused.</strong></p><p>The official repository is hosted at <a href="https://gitlab.com/corectrl/corectrl" rel="nofollow">GitLab</a>, where you can view the source code and report issues.</p><p>As Debian doesn&#039;t provide a DEB file for this tool, your only choices are to either compile it from source or add Ernst Sjöstrand&#039;s <a href="https://launchpad.net/~ernstp/+archive/ubuntu/mesarc" rel="nofollow">PPA</a>.</p><h5>Method 1. Compiling from Source</h5><p>You must first install the following packages:</p><div class="codebox"><pre><code>apt install botan2-devel qca-qt5-devel qt5-qtcharts-devel</code></pre></div><p>The process for building is as follows:</p><div class="codebox"><pre><code>git clone https://gitlab.com/corectrl/corectrl.git
cd corectrl
mkdir build;cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ..
make -j$(nproc)
sudo make install</code></pre></div><p>If you leave the <span class="bbc">-DCMAKE_INSTALL_PREFIX=/usr</span> part unchanged, the binary will be installed to <span class="bbc">/usr/bin/</span>, instead of <span class="bbc">/usr/local/</span>, which is more preferable because it relies on a daemon called <span class="bbc">corectrl-helper</span>, and is started as root via <span class="bbc">dbus</span>. We can learn how to make it work with PolicyKit (<span class="bbc">polkitd</span>) rules and start up automatically later on in the tutorial.</p><h5>Method 2. Installing from PPA</h5><p>You will need the package <span class="bbc">libbotan-2-12</span>, which is available from Ubuntu&#039;s repositories (should install just fine). Click <a href="https://packages.ubuntu.com/focal/libbotan-2-12" rel="nofollow">here</a> to download the package dependency.</p><p>Otherwise, you can run the following commands:</p><div class="codebox"><pre><code>wget http://mirrors.kernel.org/ubuntu/pool/universe/b/botan/libbotan-2-12_2.12.1-2build1_amd64.deb &amp;&amp; sudo dpkg -i libbotan-2-12_2.12.1-2build1_amd64.deb</code></pre></div><p>To add the PPA to your repository list, open your <span class="bbc">/etc/apt/sources.list</span> file and add the following (no need to change the <span class="bbc">focal</span> codename, unless it won&#039;t install):</p><div class="codebox"><pre><code>deb http://ppa.launchpad.net/ernstp/mesarc/ubuntu focal main</code></pre></div><p>As root, run <span class="bbc">apt update</span>. It&#039;s likely you&#039;ll have an unverified key issue, so run these commands:</p><div class="codebox"><pre><code>apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B78C97EF9B2235DD &amp;&amp; mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/corectrl.gpg</code></pre></div><p>If <span class="bbc">apt update</span> works, then run <span class="bbc">apt install corectrl</span>. It should install with all dependencies met.</p><p>Keep the following information in mind:</p><p>Although Debian and Devuan documentation strongly recommend against using outside repositories (particularly PPAs and anything outside of a Debian-specific build), I can confirm that this method works without any issues while using the unstable branches of Debian or Devuan. It&#039;s possible that this might also work for Bookworm or Daedalus (the current testing branches as of the date of this post), but I haven&#039;t tested installing it on them yet. My instructions are for Sid and Ceres users.</p><p>With the installation process done, the following is completely optional, but highly recommended:</p><h5>Step 1. Making <span class="bbc">corectrl</span> Work with <span class="bbc">polkitd</span> and Launch Automatically on Startup</h5><p>Create or edit the file in <span class="bbc">/etc/polkit-1/localauthority/50-local.d/90-corectrl.pkla</span>:</p><div class="codebox"><pre><code>[User permissions]
Identity=unix-group:*
Action=org.corectrl.*
ResultActive=yes</code></pre></div><p>If you have an older PolicyKit version (0.106 and older -- check with <span class="bbc">pkaction --version</span>), create a file in <span class="bbc">/etc/polkit-1/rules.d/90-corectrl.rules</span> and add the following lines of code:</p><div class="codebox"><pre><code>polkit.addRule(function(action, subject) {
    if ((action.id == &quot;org.corectrl.helper.init&quot; ||
         action.id == &quot;org.corectrl.helperkiller.init&quot;) &amp;&amp;
        subject.local == true &amp;&amp;
        subject.active == true &amp;&amp;
        subject.isInGroup(&quot;*&quot;)) {
            return polkit.Result.YES;
    }
});</code></pre></div><p>Afterwards, you&#039;ll need to create a desktop launcher:</p><div class="codebox"><pre><code>cp /usr/share/applications/org.corectrl.corectrl.desktop ~/.config/autostart/org.corectrl.corectrl.desktop</code></pre></div><p>Change <span class="bbc">StartupNotify=true</span> to <span class="bbc">StartupNotify=false</span>.</p><p>Save the file and reboot your system. Once you log into your graphical session, <span class="bbc">corectrl</span> will launch automatically.</p><h5>Step 2. Unlocking Kernel Parameters for the <span class="bbc">amdgpu</span> Module (NOT RECOMMENDED FOR INEXPERIENCED USERS)</h5><p>For AMD GPU users (like myself), you&#039;ll probably want to unlock the kernel parameters of the <span class="bbc">amdgpu</span> kernel module by going into your <span class="bbc">/etc/default/grub</span> file and inserting this line into <span class="bbc">GRUB_CMDLINE_LINUX</span>:</p><div class="codebox"><pre><code>amdgpu.ppfeaturemask=0xffffffff</code></pre></div><p>It should look like this:</p><div class="codebox"><pre><code>GRUB_CMDLINE_LINUX=&quot;amdgpu.ppfeaturemask=0xffffffff&quot;</code></pre></div><p>Save the file and run <span class="bbc">update-grub</span>, and then reboot your system. You&#039;ll be able to increase the maximum watts of your AMD GPU and adjust both voltage and frequency. Leaving them by default is generally recommended, unless you know exactly what you&#039;re doing and won&#039;t ruin your hardware.</p><p><strong>Once again, this is all done at your own risk, as I&#039;m not liable for any problems that could arise. Please keep this in mind, should you do this.</strong></p><p>All feedback is welcomed.</p>]]></description>
			<author><![CDATA[dummy@example.com (brocashelm)]]></author>
			<pubDate>Fri, 09 Sep 2022 02:19:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37468#p37468</guid>
		</item>
	</channel>
</rss>
