<?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=8267&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / RTL9210 quirks]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=8267</link>
		<description><![CDATA[The most recent posts in RTL9210 quirks.]]></description>
		<lastBuildDate>Tue, 27 Oct 2026 23:17:36 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[RTL9210 quirks]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=66278#p66278</link>
			<description><![CDATA[<p>hi there !</p><p>you know those little enclosures to have ssd or nvme storage attached via usb ?</p><p>some are great ... some fail ...</p><p>long story, short ending ...</p><p>most times it&#039;s the RTL9210 built in firmware doing AUTOSUSPEND ... wtf ...</p><p>so .. keep that thingee alive ... ;-)</p><p>my solution:</p><p># SysVinit<br /># --------</p><p>cat &lt;&lt; &#039;EOF&#039; &gt; /etc/init.d/rtl9210-fix<br />#!/bin/sh<br />### BEGIN INIT INFO<br /># Provides:&#160; &#160; &#160; &#160; &#160; rtl9210-fix<br /># Required-Start:&#160; &#160; $remote_fs $syslog<br /># Required-Stop:&#160; &#160; &#160;$remote_fs $syslog<br /># Default-Start:&#160; &#160; &#160;2 3 4 5<br /># Default-Stop:&#160; &#160; &#160; 0 1 6<br /># Short-Description: Prevent autosuspend for Realtek RTL9210 adapters<br /># Description:&#160; &#160; &#160; &#160;Read SMART every 10 seconds to prevent autosuspend<br />### END INIT INFO</p><p>DAEMON=/usr/local/sbin/rtl9210-fix.sh<br />INTERVAL=10</p><p>case &quot;$1&quot; in<br />&#160; start)<br />&#160; &#160; echo &quot;Starting RTL9210 Autosuspend Fix ...&quot;<br />&#160; &#160; # Background Loop<br />&#160; &#160; nohup /bin/bash -c \<br />&#160; &#160; &#160; &quot;while true; do $DAEMON; sleep $INTERVAL; done&quot; &gt;/dev/null 2&gt;&amp;1 &amp;<br />&#160; &#160; # remember PID<br />&#160; &#160; echo $! &gt; /var/run/rtl9210-fix.pid<br />&#160; &#160; PID=$(cat /var/run/rtl9210-fix.pid 2&gt;/dev/null)<br />&#160; &#160; echo &quot;Service rtl9210-fix active, PID: $PID&quot;<br />&#160; &#160; ;;<br />&#160; stop)<br />&#160; &#160; echo &quot;Stopping RTL9210 Autosuspend Fix ...&quot;<br />&#160; &#160; PID=$(cat /var/run/rtl9210-fix.pid 2&gt;/dev/null)<br />&#160; &#160; if [ -n &quot;$PID&quot; ]; then<br />&#160; &#160; &#160; echo &quot;Service rtl9210-fix PID: $PID stopping&quot;<br />&#160; &#160; &#160; kill $PID<br />&#160; &#160; &#160; rm -f /var/run/rtl9210-fix.pid<br />&#160; &#160; fi<br />&#160; &#160; ;;<br />&#160; status)<br />&#160; &#160; echo &quot;Status RTL9210 Autosuspend Fix ...&quot;<br />&#160; &#160; PID=$(cat /var/run/rtl9210-fix.pid 2&gt;/dev/null)<br />&#160; &#160; if [ -z &quot;$PID&quot; ]; then<br />&#160; &#160; &#160; echo &quot;Service rtl9210-fix not active, no PID found&quot;<br />&#160; &#160; else<br />&#160; &#160; &#160; echo &quot;Service rtl9210-fix active, PID: $PID &quot;<br />&#160; &#160; &#160; smartctl --scan 2&gt;/dev/null | grep -i realtek<br />&#160; &#160; fi<br />&#160; &#160; ;;<br />&#160; restart)<br />&#160; &#160; $0 stop<br />&#160; &#160; $0 start<br />&#160; &#160; ;;<br />&#160; *)<br />&#160; &#160; echo &quot;Usage: $0 {start|stop|restart}&quot;<br />&#160; &#160; exit 1<br />&#160; &#160; ;;<br />esac</p><p>exit 0</p><p># eof<br />EOF</p><p>chmod +x /etc/init.d/rtl9210-fix</p><p># DAEMON<br /># ------</p><p>cat &lt;&lt; &#039;EOF&#039; &gt; /usr/local/sbin/rtl9210-fix.sh<br />#!/bin/bash</p><p># get all Storage Devices with Realtek Controller</p><p>disks=$(sudo smartctl --scan 2&gt;/dev/null | grep -i realtek | sed &#039;s/ .*$//&#039;)</p><p>if [ -z &quot;$disks&quot; ]; then<br />&#160; &#160; exit 0<br />fi</p><p>for disk in $disks; do</p><p>&#160; &#160; # read SMART Data to keep Realtek Device(s) &quot;alive&quot;</p><p>&#160; &#160; smartctl -a $disk &gt;/dev/null 2&gt;&amp;1</p><p>done</p><p># eof<br />EOF</p><p>chmod +x /usr/local/sbin/rtl9210-fix.sh</p><p># activate Service for all Runlevels<br /># ----------------------------------</p><p>update-rc.d rtl9210-fix defaults</p><p>any reactions are welcome ... ;-)</p><p>greets</p>]]></description>
			<author><![CDATA[dummy@example.com (vi.joe)]]></author>
			<pubDate>Tue, 27 Oct 2026 23:17:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=66278#p66278</guid>
		</item>
	</channel>
</rss>
