pages tagged linuxFeeding the Cloudhttps://feeding.cloud.geek.nz/tags/linux/Feeding the Cloudikiwiki2021-06-11T20:43:57ZLinux kernel module options on Debianhttps://feeding.cloud.geek.nz/posts/linux-kernel-module-options-on-debian/
<a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>
2021-06-11T20:43:57Z2015-12-30T17:25:00Z
<p>Linux kernel modules often have options that can be set. Here's how to make
use of them on Debian-based systems, using the <code>i915</code> Intel graphics driver
as an example.</p>
<p>To get the list of all available options:</p>
<pre><code>modinfo -p i915
</code></pre>
<p>To check the current value of a particular option:</p>
<pre><code>cat /sys/module/i915/parameters/enable_ppgtt
</code></pre>
<p>To give that option a value when the module is loaded, create a new
<code>/etc/modprobe.d/i915.conf</code> file and put the following in it:</p>
<pre><code>options i915 enable_ppgtt=0
</code></pre>
<p>and then re-generate the initial RAM disks:</p>
<pre><code>update-initramfs -u -k all
</code></pre>
<p>Alternatively, that option can be set at boot time on the kernel command
line by setting the following in <code>/etc/default/grub</code>:</p>
<pre><code>GRUB_CMDLINE_LINUX="i915.enable_ppgtt=0"
</code></pre>
<p>and then updating the grub config:</p>
<pre><code>update-grub2
</code></pre>