<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Microblog on Kévin Brault</title>
    <link>https://braultkevin.fr/microblog/</link>
    <description>Recent content in Microblog on Kévin Brault</description>
    <generator>Hugo</generator>
    <language>en</language>
    <managingEditor>contact@braultkevin.fr (BRAULT Kévin)</managingEditor>
    <webMaster>contact@braultkevin.fr (BRAULT Kévin)</webMaster>
    <lastBuildDate>Sun, 05 Apr 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://braultkevin.fr/microblog/index.xml" rel="self" type="application/rss+xml" />
    <image>
      <url>https://braultkevin.fr/favicon/favicon-512.png</url>
      <title>Kévin Brault</title>
      <link>https://braultkevin.fr/</link>
    </image>
    <item>
      <title>Installing FreeBSD 15 and CTWM on a ThinkPad x61s, because why not ?</title>
      <link>https://braultkevin.fr/microblog/2026-04-05-installing-freebsd-15-ctwm-thinkpad-x61s-because-why-not/</link>
      <pubDate>Sun, 05 Apr 2026 00:00:00 +0000</pubDate><author>contact@braultkevin.fr (BRAULT Kévin)</author>
      <guid>https://braultkevin.fr/microblog/2026-04-05-installing-freebsd-15-ctwm-thinkpad-x61s-because-why-not/</guid>
      <description><![CDATA[<blockquote>
<p><strong>TL;DR</strong> : Everything works fine out of the box except backlight and HD resolution. The fix : <code>pkg install drm_kmod</code>, enable it <code>sysctl kld_list=i915ms</code> and set <code>backlight 100</code></p></blockquote>
<p><img src="/freebsd_x61s.webp" loading="lazy" decoding="async" alt="freebsd_x61s.webp"></p>
<p>I had the opportunity to buy the famous <strong>ThinkPad x61s</strong> for just a few euros. I’ve owned many different ThinkPads because I find them well-built and particularly compatible with operating systems other than Windows. But I’ve never owned a model as old as this x61s.</p>]]></description>
      <content:encoded><![CDATA[<blockquote>
<p><strong>TL;DR</strong> : Everything works fine out of the box except backlight and HD resolution. The fix : <code>pkg install drm_kmod</code>, enable it <code>sysctl kld_list=i915ms</code> and set <code>backlight 100</code></p></blockquote>
<p><img src="/freebsd_x61s.webp" loading="lazy" decoding="async" alt="freebsd_x61s.webp"></p>
<p>I had the opportunity to buy the famous <strong>ThinkPad x61s</strong> for just a few euros. I’ve owned many different ThinkPads because I find them well-built and particularly compatible with operating systems other than Windows. But I’ve never owned a model as old as this x61s.</p>
<p>Released in May 2007, it’s just under 20 years old. Many models would have given up the ghost by now, but not this behemoth, which, despite the transition to Lenovo, still carries its IBM DNA. Even though its reputation of tank, the weight of the years and a reputation for overheating had me a little skeptical. It’s the smallest model, with its Intel Core 2 Duo L7300 CPU @ 1.40 GHz and 3 GB of RAM &hellip; not exactly a powerhouse. And yet, it came with Windows 10 and turned out to be surprisingly fast and cool &hellip; until I opened a 1080p YouTube video, at which point it nearly took off like a helicopter because the fan was spinning so fast. Final note for the awesome 3/2 ratio, yet the screen quality is far from modern standards.</p>
<h2 id="the-installation">
    <a class="heading-anchor" href="#the-installation" aria-label="Link to this section">#</a>The installation
</h2>
<p>The Intel Core 2 Duo L7300 is one of the first 64-bit CPUs for the consumer market. Great, FreeBSD seems to have dropped 32-bit support in its latest version, 15. After downloading an <code>AMD64</code> ISO and copying it to a bootable USB drive, I immediately configured the BIOS to set the USB port as the boot priority. I was expecting a complicated installation, but not at all. Yes, the interface is a far cry from Ubuntu, but everything is very easy to do.</p>
<ul>
<li>First, select the &ldquo;Distribution Sets&rdquo; installation type to select the minimum options and remove <code>kernel-dbg</code>and <code>lib32</code>components.</li>
<li>Set up the network. I had read a few tutorials beforehand that explained the post-installation method using <code>/etc/wpa_supplicant.conf</code>. But that wasn&rsquo;t the case at all, everything is done within the installation interface, including scanning for networks, selecting the <code>SSID</code>, and entering the <code>WEP</code> key. Everything worked perfectly the first time.</li>
<li>Select the <code>UNIX</code> file system. <code>UFS</code> is lightweight and uses fewer system resources than more advanced file systems like <code>ZFS</code>. Since the x31s has limited RAM and CPU power, <code>UFS</code> helps keep the system faster, more stable, and easier to manage. I don&rsquo;t need the advanced features of <code>ZFS</code>. Use the entire disk since the machine will be dedicated to this purpose, and choose the <code>GPT</code> partition scheme (which replaces <code>MBR</code> I wasn&rsquo;t able to test this for the exercise).</li>
<li>The <code>root</code> user is created by default; all that&rsquo;s left is to set a password.</li>
<li>After going through a few steps to select the HTTP mirror, choose the keyboard layout, and set the date and time, I’m prompted to add a few components. I select <code>powerd</code> for CPU frequency scaling and <code>moused</code> to start the mouse driver.</li>
<li>I&rsquo;m adding a user and adding it to the group <code>wheel</code>.</li>
</ul>
<h2 id="the-optimization">
    <a class="heading-anchor" href="#the-optimization" aria-label="Link to this section">#</a>The optimization
</h2>
<p>Right out of the box, FreeBSD on my x61s required very little tweaking :</p>
<ul>
<li>I limit the power consumption of the Wi-Fi chip (which is known to be a power hog) :  <code>vi /etc/system.conf</code> and set <code>dev.iwm.0.twpower = 50</code>.</li>
<li>Since powerd was set on during the install, I set configure the CPU with high speed when AC on and power-save on battery : <code>vi /etc/rc.conf</code>and set <code>powerd_flags=&quot;-a hiadaptive -b adaptive&quot;</code>.</li>
<li>A very obvious system update <code>freebsd-update fetch install</code> and the same for packages <code>pkg update</code>and <code>pkg upgrade</code>.</li>
<li>The backlight was very low and the resolution was limited to 800x600. So I installed the Direct Rendering Manager GPU driver <code>pkg install drm_kmod</code> and enable it <code>sysctl kld_list=i915ms</code>, after a reboot, the HD resolution was on and a simple <code>backlight 100</code> was enough to set a full screen brightness (yet quit low but never mind).</li>
</ul>
<h2 id="claudes-tab-window-manager">
    <a class="heading-anchor" href="#claudes-tab-window-manager" aria-label="Link to this section">#</a>Claude&rsquo;s Tab Window Manager
</h2>
<p><code>CTWM</code> is a very light window manager and yet very configurable. When idle, it uses almost no RAM or CPU. It&rsquo;s even easier to install :</p>
<ul>
<li>First, I installed the graphical environment components: the <code>Xorg</code> X server along with the lightweight window manager CTWM using: <code>pkg install xorg ctwm</code></li>
<li>Then, using the regular (non-root) user account I created during installation, I set up a <code>~/.xinitrc</code> file to tell X what session to start. For now, I kept it very simple: <code>exec ctwm &amp;</code></li>
<li>After that, I launched the graphical session with: <code>startx</code></li>
<li>And &hellip; yeah, the default CTWM look is pretty rough, very retro in the not immediately lovable sense. So I decided to customize it by creating a <code>~/.ctwmrc</code> configuration file with my own settings. <a href="https://www.ctwm.org/themes.html"><code>You can find some themes in the officiel site</code></a>.</li>
</ul>
<h2 id="final-words">
    <a class="heading-anchor" href="#final-words" aria-label="Link to this section">#</a>Final words
</h2>
<p>The screen&rsquo;s 3/2 aspect ratio is great, and everything works almost out of the box with FreeBSD. The machine is fast, quiet, and stays cool. The keyboard is high-quality, a nice change from the ultra-flat keys on a MacBook. I hope to achieve my goals with this setup. See you in a few weeks to talk more about it.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>