<?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>Mint on Liam Asman&#39;s Blog</title>
    <link>https://liamasman.com/blog/tags/mint/</link>
    <description>Recent content in Mint on Liam Asman&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-GB</language>
    <copyright>Copyright © 2025, Liam Asman.</copyright>
    <lastBuildDate>Tue, 18 Nov 2025 18:00:00 +0000</lastBuildDate>
    <atom:link href="https://liamasman.com/blog/tags/mint/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to stop Shokz headphones triggering standby mode in Linux</title>
      <link>https://liamasman.com/blog/posts/2025/11/how-to-stop-shokz-headphones-triggering-standby-mode-in-linux/</link>
      <pubDate>Tue, 18 Nov 2025 18:00:00 +0000</pubDate>
      <guid>https://liamasman.com/blog/posts/2025/11/how-to-stop-shokz-headphones-triggering-standby-mode-in-linux/</guid>
      <description>&lt;p&gt;I was having a problem with my Shokz OpenComm2 headphones that when turning them on, Linux Mint would immediately prompt for shutdown/suspend.&lt;/p&gt;&#xA;&lt;p&gt;Here is how I fixed it. I am using Shokz OpenComm2 with the Loop 120 USB A adapter.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Get the Vendor ID and Product ID.&lt;/strong&gt;&lt;!-- raw HTML omitted --&gt;&#xA;With the device turned on, run &lt;code&gt;lsusb&lt;/code&gt;. Look for the following:&lt;!-- raw HTML omitted --&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Bus 003 Device 007: ID 3511:2ef2 Shokz Loop120 by Shokz&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Create a file at &lt;code&gt;/etc/udev/rules.d/10-shokz-fix.rules&lt;/code&gt;&lt;/strong&gt; with the following contents. You will need to use &lt;code&gt;sudo&lt;/code&gt; to create this file.&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Rule to prevent Shokz headphones from triggering standby/sleep&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SUBSYSTEM==&amp;#34;usb&amp;#34;, ATTRS{idVendor}==&amp;#34;3511&amp;#34;, ATTRS{idProduct}==&amp;#34;2ef2&amp;#34;, DRIVER==&amp;#34;usbhid&amp;#34;, ATTR{authorized}=&amp;#34;0&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;Replace the idVendor and idProduct with the corresponding values from &lt;code&gt;lsusb&lt;/code&gt; if necessary&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Reload the udev rules&lt;/strong&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo udevadm control --reload-rules&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Unplug and plug-in the adapter to reapply the rules to the active device.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I was having a problem with my Shokz OpenComm2 headphones that when turning them on, Linux Mint would immediately prompt for shutdown/suspend.</p>
<p>Here is how I fixed it. I am using Shokz OpenComm2 with the Loop 120 USB A adapter.</p>
<ul>
<li><strong>Get the Vendor ID and Product ID.</strong><!-- raw HTML omitted -->
With the device turned on, run <code>lsusb</code>. Look for the following:<!-- raw HTML omitted -->





<pre tabindex="0"><code>Bus 003 Device 007: ID 3511:2ef2 Shokz Loop120 by Shokz</code></pre></li>
<li><strong>Create a file at <code>/etc/udev/rules.d/10-shokz-fix.rules</code></strong> with the following contents. You will need to use <code>sudo</code> to create this file.





<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-text" data-lang="text"><span style="display:flex;"><span># Rule to prevent Shokz headphones from triggering standby/sleep
</span></span><span style="display:flex;"><span>SUBSYSTEM==&#34;usb&#34;, ATTRS{idVendor}==&#34;3511&#34;, ATTRS{idProduct}==&#34;2ef2&#34;, DRIVER==&#34;usbhid&#34;, ATTR{authorized}=&#34;0&#34;</span></span></code></pre></div>Replace the idVendor and idProduct with the corresponding values from <code>lsusb</code> if necessary</li>
<li><strong>Reload the udev rules</strong>





<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>sudo udevadm control --reload-rules</span></span></code></pre></div></li>
</ul>
<p>Unplug and plug-in the adapter to reapply the rules to the active device.</p>
]]></content:encoded>
    </item>
    <item>
      <title>How to type Em-Dashes in Linux Mint</title>
      <link>https://liamasman.com/blog/posts/2025/05/how-to-type-em-dashes-in-linux-mint/</link>
      <pubDate>Sat, 10 May 2025 17:00:00 +0100</pubDate>
      <guid>https://liamasman.com/blog/posts/2025/05/how-to-type-em-dashes-in-linux-mint/</guid>
      <description>&lt;p&gt;The em-dash &amp;ldquo;—&amp;rdquo; is a trusty steed for writers, used structure to a sentence where a comma might not suffice.&lt;/p&gt;&#xA;&lt;p&gt;It has been said to be a sign of plagiarism using generative AI, because most computer keyboards do not have the&#xA;em-dash, and so most people wouldn&amp;rsquo;t type with them naturally. That said, if a text has been written using an editor&#xA;like Microsoft Word then the em-dash might have been autocorrected into place over a hyphen.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>The em-dash &ldquo;—&rdquo; is a trusty steed for writers, used structure to a sentence where a comma might not suffice.</p>
<p>It has been said to be a sign of plagiarism using generative AI, because most computer keyboards do not have the
em-dash, and so most people wouldn&rsquo;t type with them naturally. That said, if a text has been written using an editor
like Microsoft Word then the em-dash might have been autocorrected into place over a hyphen.</p>
<p>Personally, I quite like the dash. While I was once oblivious to the difference between a hyphen &ldquo;-&rdquo; and an em-dash &ldquo;—&rdquo;,
the recent discussion around AI writing has made me realise that I should be using the em-dash (if we&rsquo;re approaching
syntax prescriptively). The hyphen is for compound words, like <em>em-dash</em>. The em-dash, on the other hand, is used to
separate clauses.</p>
<p>Here&rsquo;s how to type the em-dash (and other special characters) in Linux Mint — specifically version 22.1 Cinnamon —
which is the OS I am currently using.</p>
<h2 id="instructions">Instructions</h2>
<p><strong>1. Open:</strong>
<em>System Settings → Keyboard → Layouts → Options</em></p>
<p><strong>2. Expand:</strong>
<em>&ldquo;Position of Compose Key&rdquo;</em></p>
<p><strong>3. Select a compose key.</strong></p>
<p>I chose <em>&lsquo;Right Ctrl&rsquo;</em>.
Close the window when done.</p>
<p><strong>4. Type an em-dash:</strong></p>
<p>Press <code>&lt;compose key&gt; - - -</code></p>
<p>(That is, press the compose key, then press the hyphen key three times.)</p>
<p>You do not need to hold the compose key down while typing the hyphens.</p>
<p>To type an en-dash, use: <code>&lt;compose key&gt; - - .</code></p>
<h2 id="some-other-useful-compose-sequences">Some other useful compose sequences:</h2>
<p>The full list of compose sequences can be found at
<code>/usr/share/X11/locale/en_US.UTF-8/Compose</code></p>
<table>
  <thead>
      <tr>
          <th>Character</th>
          <th>Compose Sequence</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>—</td>
          <td><code>- - -</code></td>
      </tr>
      <tr>
          <td>–</td>
          <td><code>- - .</code></td>
      </tr>
      <tr>
          <td>Ä</td>
          <td><code>A &quot;</code></td>
      </tr>
      <tr>
          <td>ä</td>
          <td><code>a &quot;</code></td>
      </tr>
      <tr>
          <td>±</td>
          <td><code>+ -</code></td>
      </tr>
      <tr>
          <td>¢</td>
          <td><code>| c</code></td>
      </tr>
      <tr>
          <td>¥</td>
          <td><code>Y =</code></td>
      </tr>
      <tr>
          <td>€</td>
          <td><code>c =</code></td>
      </tr>
      <tr>
          <td>§</td>
          <td><code>s o</code></td>
      </tr>
      <tr>
          <td>©</td>
          <td><code>o c</code></td>
      </tr>
      <tr>
          <td>®</td>
          <td><code>o r</code></td>
      </tr>
      <tr>
          <td>™</td>
          <td><code>t m</code></td>
      </tr>
      <tr>
          <td>‹</td>
          <td><code>. &lt;</code></td>
      </tr>
      <tr>
          <td>›</td>
          <td><code>. &gt;</code></td>
      </tr>
      <tr>
          <td>«</td>
          <td><code>&lt; &lt;</code></td>
      </tr>
      <tr>
          <td>»</td>
          <td><code>&gt; &gt;</code></td>
      </tr>
      <tr>
          <td>°</td>
          <td><code>o o</code></td>
      </tr>
      <tr>
          <td>²</td>
          <td><code>^ 2</code></td>
      </tr>
      <tr>
          <td>³</td>
          <td><code>^ 3</code></td>
      </tr>
      <tr>
          <td>µ</td>
          <td><code>m u</code></td>
      </tr>
      <tr>
          <td>…</td>
          <td><code>. .</code></td>
      </tr>
      <tr>
          <td>₀</td>
          <td><code>_ 0</code></td>
      </tr>
      <tr>
          <td>₁</td>
          <td><code>_ 1</code></td>
      </tr>
      <tr>
          <td>‽</td>
          <td><code>? !</code></td>
      </tr>
      <tr>
          <td>†</td>
          <td><code>| -</code></td>
      </tr>
      <tr>
          <td>‡</td>
          <td><code>| =</code></td>
      </tr>
      <tr>
          <td>♥</td>
          <td><code>&lt; 3</code></td>
      </tr>
      <tr>
          <td>💩</td>
          <td><code>p o o</code></td>
      </tr>
      <tr>
          <td>ℕ</td>
          <td><code>N N</code></td>
      </tr>
      <tr>
          <td>ℚ</td>
          <td><code>Q Q</code></td>
      </tr>
      <tr>
          <td>ℝ</td>
          <td><code>R R</code></td>
      </tr>
      <tr>
          <td>ℤ</td>
          <td><code>Z Z</code></td>
      </tr>
      <tr>
          <td>←</td>
          <td><code>&lt; -</code></td>
      </tr>
      <tr>
          <td>↑</td>
          <td><code>| ^</code></td>
      </tr>
      <tr>
          <td>→</td>
          <td><code>- &gt;</code></td>
      </tr>
      <tr>
          <td>↓</td>
          <td><code>| v</code></td>
      </tr>
      <tr>
          <td>≤</td>
          <td><code>&lt; =</code></td>
      </tr>
      <tr>
          <td>≥</td>
          <td><code>&gt; =</code></td>
      </tr>
  </tbody>
</table>
]]></content:encoded>
    </item>
  </channel>
</rss>
