home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 85,811 of 87,272   
   root to All   
   USB bind/unbind garbage in Slack 15.0   
   06 May 22 23:53:16   
   
   From: NoEMail@home.org   
      
   I recently had a problem connecting and reading a USB device (Garmin   
   Forerunner).   
      
   It took me about 8 hours to find and fix the problem, all because of some   
   insane change in the 15 kernel.   
      
   As far as I can tell, when you connect a usb device it is, essentially,   
   mount as unreadable. In /sys/bus/usb/drivers/usb-storage there are   
   two flags, bind/unbind. It seems that bind is the default option   
   which is unreadable. Under bind, I think, only device specific access   
   is available. In order to read your device as normal usb you have   
   to unlock (unbind) the device.   
      
   Here is how you do that:   
      
   tail dmesg and find where the device is mounted. It will be mounted   
   as ttyUSB#. That is the device specific mode. You will see a line   
   that looks like this:   
      
   garmin_gps 1-5:1.0: Garmin GPS usb/tty converter detected   
              ^^^^^^^^   
   You need to pull the string following the device name,   
   (marked by the ^^stuff) and put it into this command:   
      
   echo -n "1-5:1.0" > /sys/bus/usb/drivers/usb-storage/unbind   
            ^^^^^^^   
   After that you can read the device as whatever usb device it becomes.   
      
      
   It seems to me that when a system change is made, the default   
   should be that existing uses of the system should be grandfathered   
   in, and one should have to do something extra to access the new   
   feature.   
      
   I other words, the default should be the other way.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca