title: How to disable a specific usb port permanently in linux?
body: <p><strong>Is it possible to permanently disable a <code>usb</code> port in <code>linux</code>?</strong> </p>
  
  <p>I have already figured out how to disable it:</p>
  
  <pre><code>echo -n "0000:00:12.0" &gt; /sys/bus/pci/drivers/ohci_hcd/unbind
  </code></pre>
  
  <p><strong>BUT after restart it is enabled.</strong> </p>
  
  <p>I have placed this script :</p>
  
  <pre><code>#!/bin/sh
  case "$1" in
      resume|thaw)
              echo -n "0000:00:12.0" &gt; /sys/bus/pci/drivers/ohci_hcd/unbind
              ;;
  esac
  </code></pre>
  
  <p>in <code>/etc/pm/sleep.d/0_disable_usb2</code></p>
  
  <p>But again without success. I also thought that i could disable it through <code>bios</code> but as i could see i can disable the whole <code>pci</code>.</p>
  
  <p><strong>Is there any way of doing this?</strong></p>
  
  <p>.. My Operating system is <code>Debian 7.7 64bit</code>. The reason i want to do this is I am trying to configure my system for <code>realtime</code> capabilities and my <code>usb soundcard</code> sharing the same <code>IRQ</code> with this port. </p>