<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[InkCodes]]></title><description><![CDATA[读书，学习，睡觉]]></description><link>https://inkcodes.com</link><image><url>https://api.inkcodes.com/api/v3/objects/icon/59zpxqzsj1z35utmrz.ico</url><title>InkCodes</title><link>https://inkcodes.com</link></image><generator>Yohaku (https://github.com/Innei/Yohaku)</generator><lastBuildDate>Sat, 17 Oct 2026 21:44:12 GMT</lastBuildDate><atom:link href="https://inkcodes.com/feed" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Oct 2026 21:44:12 GMT</pubDate><language><![CDATA[zh-CN]]></language><item><title><![CDATA[oh-my-efb，给 EFB 转发过的聊天记录做一个可搜索的网页]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/posts/tech/oh-my-efb-chatlog">https://inkcodes.com/posts/tech/oh-my-efb-chatlog</a></p>]]></description><link>https://inkcodes.com/posts/tech/oh-my-efb-chatlog</link><guid isPermaLink="true">https://inkcodes.com/posts/tech/oh-my-efb-chatlog</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Sat, 17 Oct 2026 17:07:19 GMT</pubDate></item><item><title><![CDATA[比较]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/notes/14">https://inkcodes.com/notes/14</a></p>]]></description><link>https://inkcodes.com/notes/14</link><guid isPermaLink="true">https://inkcodes.com/notes/14</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Wed, 14 Oct 2026 08:49:44 GMT</pubDate></item><item><title><![CDATA[oh-my-efb，在Ehforwardbot中用AI总结聊天]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/posts/tech/oh-my-efb-ai-summary">https://inkcodes.com/posts/tech/oh-my-efb-ai-summary</a></p>]]></description><link>https://inkcodes.com/posts/tech/oh-my-efb-ai-summary</link><guid isPermaLink="true">https://inkcodes.com/posts/tech/oh-my-efb-ai-summary</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Mon, 12 Oct 2026 16:42:32 GMT</pubDate></item><item><title><![CDATA[牛马随想]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/notes/13">https://inkcodes.com/notes/13</a></p>]]></description><link>https://inkcodes.com/notes/13</link><guid isPermaLink="true">https://inkcodes.com/notes/13</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Sat, 26 Sep 2026 06:20:04 GMT</pubDate></item><item><title><![CDATA[优化Afilmory相册嵌进Yohaku主题的显示效果和逻辑]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/posts/tech/optimize-afilmory-in-yohaku">https://inkcodes.com/posts/tech/optimize-afilmory-in-yohaku</a></p>]]></description><link>https://inkcodes.com/posts/tech/optimize-afilmory-in-yohaku</link><guid isPermaLink="true">https://inkcodes.com/posts/tech/optimize-afilmory-in-yohaku</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Fri, 25 Sep 2026 15:05:22 GMT</pubDate></item><item><title><![CDATA[《你好，小朋友》为什么动人 | 不忍心欺哄的勇气]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/notes/12">https://inkcodes.com/notes/12</a></p>]]></description><link>https://inkcodes.com/notes/12</link><guid isPermaLink="true">https://inkcodes.com/notes/12</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Wed, 23 Sep 2026 19:16:30 GMT</pubDate></item><item><title><![CDATA[甘南旅途我拍到了什么]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/notes/11">https://inkcodes.com/notes/11</a></p>]]></description><link>https://inkcodes.com/notes/11</link><guid isPermaLink="true">https://inkcodes.com/notes/11</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Thu, 17 Sep 2026 19:23:19 GMT</pubDate></item><item><title><![CDATA[Afilmory-用阿里云OSS搭建原图私有化的静态画廊网站]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/posts/tech/afilmory-aliyun-private-oss">https://inkcodes.com/posts/tech/afilmory-aliyun-private-oss</a></p>]]></description><link>https://inkcodes.com/posts/tech/afilmory-aliyun-private-oss</link><guid isPermaLink="true">https://inkcodes.com/posts/tech/afilmory-aliyun-private-oss</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Wed, 16 Sep 2026 19:11:54 GMT</pubDate></item><item><title><![CDATA[对话框里的“领导”]]></title><description><![CDATA[<p>往原址览之：<a href="https://inkcodes.com/notes/10">https://inkcodes.com/notes/10</a></p>]]></description><link>https://inkcodes.com/notes/10</link><guid isPermaLink="true">https://inkcodes.com/notes/10</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Sun, 13 Sep 2026 19:10:00 GMT</pubDate></item><item><title><![CDATA[archlinux机械革命15x音频修复2]]></title><description><![CDATA[<div><blockquote>此渲染由 Yohaku API 生成，或存排版之虞，最佳体验请往：<a href="https://inkcodes.com/posts/tech/archlinux15x2">https://inkcodes.com/posts/tech/archlinux15x2</a></blockquote><div><p>之前的解决方案：
<iframe src="https://inkcodes.com/2025/09/14/%E6%9C%BA%E6%A2%B0%E9%9D%A9%E5%91%BD%2015x%E7%9A%84%20linux%20%E9%9F%B3%E9%A2%91%E7%88%86%E9%9F%B3%20codec%E6%A3%80%E6%B5%8B%E4%B8%8D%E5%88%B0%E4%BF%AE%E5%A4%8D%E2%80%94%E2%80%94model%E5%8F%82%E6%95%B0/" width="100%" height="500" name="topFrame" scrolling="yes" noresize="noresize" frameBorder="0" id="topFrame"></iframe></p>
<h2 id="">目前解决方案</h2><p>经过3个月左右测试，机械革命15X的音频问题，目前采用的是：</p><ol start="1"><li><strong>延迟加载驱动</strong></li><li><strong>HDA驱动参数</strong></li><li><strong>禁用SOF驱动</strong></li><li><strong>WirePlumber配置</strong></li></ol><h3 id="">方案变化</h3><h4 id="">问题定位</h4><p>15X的音频问题主要源于：</p><ul><li><strong>冷启动初始化不稳定</strong>：Conexant SN6140 codec探测超时</li><li><strong>引脚配置</strong>：BIOS没适配引脚</li><li><strong>电源管理冲突</strong>：DMA位置报告错误，输出垃圾数据导致扬声器爆鸣</li></ul><h4 id="">解决思路</h4><p>通过<strong>延迟驱动加载</strong>绕过 BIOS 初始化的不稳定期</p><hr/><h3 id="">完整配置</h3><h4 id="1-hda-">1. HDA 驱动参数</h4><p><strong>文件路径</strong>：<code>/etc/modprobe.d/alsa-hda.conf</code></p><pre class="language-conf lang-conf"><code class="language-conf lang-conf">options snd_hda_intel single_cmd=1 power_save=0 power_save_controller=N model=,laptop-amic probe_mask=1 position_fix=1
</code></pre>
<p><strong>说明</strong>：</p><ul><li><code>single_cmd=1</code>：使用单命令模式</li><li><code>power_save=0</code>：禁用 codec 空闲省电，保持始终工作状态</li><li><code>power_save_controller=N</code>：禁止 HDA 控制器进入节能状态</li><li><code>model=,laptop-amic</code>：第一个逗号跳过 HDMI codec，第二个参数为 SN6140 指定笔记本模拟麦克风配置</li><li><code>probe_mask=1</code>：只探测第一个 codec，避免 HDMI 与内置声卡竞争</li><li><code>position_fix=1</code>：使用 LPIB 寄存器读取 DMA 位置，缓解爆音问题</li></ul><hr/><h4 id="2-sof">2. 禁用SOF驱动</h4><p><strong>文件路径</strong>：<code>/etc/modprobe.d/blacklist-sof.conf</code></p><pre class="language-conf lang-conf"><code class="language-conf lang-conf">blacklist snd_sof_pci
blacklist snd_sof_amd_acp
blacklist snd_sof_amd_renoir
blacklist snd_sof_amd_rembrandt
blacklist snd_sof_amd_vangogh
blacklist snd_sof_amd_acp63
blacklist snd_sof_amd_acp70
</code></pre>
<p><strong>说明</strong>：SOF (Sound Open Firmware) 驱动对 Conexant SN6140 支持不完善，强制使用传统 HDA 驱动。</p><hr/><h4 id="3--hda-">3. 延迟加载 HDA 驱动</h4><p>这是解决冷启动 &quot;no codecs found&quot; 问题的。</p><h5 id="-1">步骤 1：黑名单早期加载</h5><p><strong>文件路径</strong>：<code>/etc/modprobe.d/blacklist-hda-early.conf</code></p><pre class="language-conf lang-conf"><code class="language-conf lang-conf">blacklist snd_hda_intel
</code></pre>
<p><strong>作用</strong>：阻止 initramfs 阶段自动加载 snd<em>hda</em>intel，为延迟加载腾出空间。</p><h5 id="-2-systemd-">步骤 2：创建 systemd 延迟加载服务</h5><p><strong>文件路径</strong>：<code>/etc/systemd/system/audio-delayed-load.service</code></p><pre class="language-ini lang-ini"><code class="language-ini lang-ini">[Unit]
Description=Delayed HDA audio driver loading
After=multi-user.target
Before=sound.target

[Service]
Type=oneshot
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/modprobe snd_hda_intel
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
</code></pre>
<p><strong>原理</strong>：</p><pre class=""><code class="">系统启动 → BIOS 初始化（不稳定） → 等待 5 秒 → 硬件状态稳定 → 加载音频驱动
</code></pre>
<h5 id="-3-initramfs">步骤 3：启用服务并重建 initramfs</h5><pre class="language-bash lang-bash"><code class="language-bash lang-bash"># 启用服务
sudo systemctl enable audio-delayed-load.service

# 重建
sudo mkinitcpio -P

# 重启系统
sudo reboot
</code></pre>
<hr/><h4 id="4-wireplumber-">4. WirePlumber 配置（可选，防止暂停导致爆音）</h4><p><strong>文件路径</strong>：<code>~/.config/wireplumber/wireplumber.conf.d/disable-suspension.conf</code></p><pre class="language-conf lang-conf"><code class="language-conf lang-conf">monitor.alsa.rules = [
  {
    matches = [
      {
        # Matches all sources
        node.name = &quot;~alsa_input.*&quot;
      },
      {
        # Matches all sinks
        node.name = &quot;~alsa_output.*&quot;
      }
    ]
    actions = {
      update-props = {
        session.suspend-timeout-seconds = 0
      }
    }
  }
]
</code></pre>
<p><strong>应用配置</strong>：</p><pre class="language-bash lang-bash"><code class="language-bash lang-bash">systemctl --user restart wireplumber pipewire pipewire-pulse
</code></pre>
<p><strong>验证</strong>：使用 <code>pw-top</code> 观察，停止播放后节点应保持 <code>Idle (I)</code> 状态，而非 <code>Suspended (S)</code>。</p><hr/><h3 id="">验证配置</h3><pre class="language-bash lang-bash"><code class="language-bash lang-bash"># 1. 检查延迟加载
systemctl status audio-delayed-load.service

# 2. 验证 model 参数
cat /sys/module/snd_hda_intel/parameters/model
# 应输出：laptop-amic,(null),(null),...

# 3. 检查音频设备
aplay -l
# 应能看到 SN6140 Analog

# 4. 查看 codec 信息
cat /proc/asound/card*/codec* | grep &quot;Codec:&quot;
# 应输出：
# Codec: ATI R6xx HDMI
# Codec: Conexant SN6140

# 5. 查看内核日志（不应有 &quot;no codecs found&quot; 错误）
sudo dmesg | grep -i &quot;hda\|codec&quot; | grep -i &quot;error\|fail&quot;
</code></pre>
<hr/><h3 id="">最近内核更新的情况</h3><p>Linux 6.19.6-zen1（2026年3月），内核包含了以下针对Conexant SN6140的修复：</p><ul><li>耳机自动检测修复（OMTP/CTIA 识别）</li><li>轮询模式检测改进</li></ul><p><strong>但没有针对WUJIE15XA冷启动初始化修复</strong>
所以目前就这样先用着，近几个月没有出过问题，目前看延迟加载还是有用的，如果有其他的问题继续更新~</p><hr/><p><strong>最后更新</strong>：2026-03-14
<strong>环境</strong>：Arch Linux, Kernel 6.19.6-zen1-1, MECHREVO WUJIE15XA</p></div><p style="text-align:right"><a href="https://inkcodes.com/posts/tech/archlinux15x2#comments">览毕，何不一言？</a></p></div>]]></description><link>https://inkcodes.com/posts/tech/archlinux15x2</link><guid isPermaLink="true">https://inkcodes.com/posts/tech/archlinux15x2</guid><dc:creator><![CDATA[specialhua]]></dc:creator><pubDate>Sat, 14 Mar 2026 01:43:56 GMT</pubDate></item></channel></rss>