<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Koen Vervloesem - Technology Writer (Posts about autosuspend)</title><link>https://koen.vervloesem.eu/</link><description></description><atom:link href="https://koen.vervloesem.eu/tags/autosuspend.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Copyright © 2024 &lt;a href="mailto:koen@vervloesem.eu"&gt;Koen Vervloesem&lt;/a&gt; &lt;p xmlns:dct="http://purl.org/dc/terms/" xmlns:cc="http://creativecommons.org/ns#" class="license-text"&gt;This work by &lt;a rel="cc:attributionURL" href="mailto:koen@vervloesem.eu"&gt;&lt;span rel="cc:attributionName"&gt;Koen Vervloesem&lt;/span&gt;&lt;/a&gt; is licensed under &lt;a href="https://creativecommons.org/licenses/by-sa/4.0"&gt;CC BY-SA 4.0&lt;img style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="/cc.svg" /&gt;&lt;img  style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="/by.svg" /&gt;&lt;img  style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="/sa.svg" /&gt;&lt;/a&gt; | &lt;a href="/legal-notice/"&gt;Legal notice&lt;/a&gt; | &lt;a href="/privacy-policy/"&gt;Privacy policy&lt;/a&gt;&lt;/p&gt;</copyright><lastBuildDate>Sat, 07 Sep 2024 14:15:02 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Disable USB autosuspend for specific devices</title><link>https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/</link><dc:creator>Koen Vervloesem</dc:creator><description>&lt;p&gt;Recently I bought a new laptop. The first time I was attending a videoconference with this laptop, my network connection (using a USB Gigabit Ethernet adapter) was very flaky and my external microphone turned itself off all the time. It took me a while before I figured out that both issues had the same cause: USB autosuspend.&lt;/p&gt;
&lt;p&gt;Apparently both devices had USB autosuspend enabled, so they turned off after a while. I'm not sure why this is, because I used the same devices on my previous laptop with the same operating system (Ubuntu 20.04 LTS) and I never saw this behaviour. Luckily USB autosuspend can be easily disabled for specific devices.&lt;/p&gt;
&lt;p&gt;There are multiple ways to do this, for instance with udev rules. However, in my opinion the power management tool &lt;a class="reference external" href="https://linrunner.de/tlp/"&gt;tlp&lt;/a&gt; offers the easiest way. If you don't have it already, install it:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code console"&gt;&lt;a id="rest_code_bb5abc45354a458a9c84eb055e9e8a66-1" name="rest_code_bb5abc45354a458a9c84eb055e9e8a66-1" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_bb5abc45354a458a9c84eb055e9e8a66-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$ &lt;/span&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;apt&lt;span class="w"&gt; &lt;/span&gt;install&lt;span class="w"&gt; &lt;/span&gt;tlp
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then have a look at the vendor ID and product ID of the USB devices you don't want to autosuspend:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code console"&gt;&lt;a id="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-1" name="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-1" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_7702b8d9b0bf4655b4c9a7479b38183e-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$ &lt;/span&gt;lsusb
&lt;a id="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-2" name="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-2" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_7702b8d9b0bf4655b4c9a7479b38183e-2"&gt;&lt;/a&gt;&lt;span class="go"&gt;Bus 002 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter&lt;/span&gt;
&lt;a id="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-3" name="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-3" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_7702b8d9b0bf4655b4c9a7479b38183e-3"&gt;&lt;/a&gt;&lt;span class="go"&gt;Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub&lt;/span&gt;
&lt;a id="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-4" name="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-4" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_7702b8d9b0bf4655b4c9a7479b38183e-4"&gt;&lt;/a&gt;&lt;span class="go"&gt;Bus 001 Device 002: ID 04f2:b684 Chicony Electronics Co., Ltd Chicony USB2.0 Camera&lt;/span&gt;
&lt;a id="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-5" name="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-5" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_7702b8d9b0bf4655b4c9a7479b38183e-5"&gt;&lt;/a&gt;&lt;span class="go"&gt;Bus 001 Device 006: ID 0556:0001 Asahi Kasei Microsystems Co., Ltd AK5370 I/F A/D Converter&lt;/span&gt;
&lt;a id="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-6" name="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-6" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_7702b8d9b0bf4655b4c9a7479b38183e-6"&gt;&lt;/a&gt;&lt;span class="go"&gt;Bus 001 Device 003: ID 8087:0029 Intel Corp.&lt;/span&gt;
&lt;a id="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-7" name="rest_code_7702b8d9b0bf4655b4c9a7479b38183e-7" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_7702b8d9b0bf4655b4c9a7479b38183e-7"&gt;&lt;/a&gt;&lt;span class="go"&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Here you see the Gigabit Ethernet adapter (with ID &lt;code class="docutils literal"&gt;0bda:8153&lt;/code&gt;) on the first line, and the microphone (with ID &lt;code class="docutils literal"&gt;0556:0001&lt;/code&gt;) on the fourth line.&lt;/p&gt;
&lt;p&gt;Now create the file &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;/etc/tlp.d/50-usb-autosuspend-blacklist.conf&lt;/span&gt;&lt;/code&gt; and add both IDs to the &lt;code class="docutils literal"&gt;USB_BLACKLIST&lt;/code&gt; parameter:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_4617b85153d548eab94d781ca572a35d-1" name="rest_code_4617b85153d548eab94d781ca572a35d-1" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_4617b85153d548eab94d781ca572a35d-1"&gt;&lt;/a&gt;USB_BLACKLIST="0bda:8153 0556:0001"
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then restart the &lt;code class="docutils literal"&gt;tlp&lt;/code&gt; service:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code console"&gt;&lt;a id="rest_code_5f77ab8af0a34b34b5a74459c87d36cb-1" name="rest_code_5f77ab8af0a34b34b5a74459c87d36cb-1" href="https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/#rest_code_5f77ab8af0a34b34b5a74459c87d36cb-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$ &lt;/span&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;systemctl&lt;span class="w"&gt; &lt;/span&gt;restart&lt;span class="w"&gt; &lt;/span&gt;tlp
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;After reconnecting the USB devices, they won't autosuspend anymore and you can happily enjoy your videoconferences again without hardware-related interruptions.&lt;/p&gt;</description><category>autosuspend</category><category>linux</category><category>tlp</category><category>usb</category><guid>https://koen.vervloesem.eu/blog/disable-usb-autosuspend-for-specific-devices/</guid><pubDate>Thu, 15 Oct 2020 18:16:54 GMT</pubDate></item></channel></rss>