View Single Post
Old 08-29-2012, 01:00 PM   #950
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,141
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by Peakcrew View Post
Does anyone have an easy way for Mac and Linux users to do this?
Could someone try this and see if it works

Save the following as list_usb.py
Code:
from calibre.devices.libusb import get_devices
ans = get_devices()
for device in ans:
 print device
 for ids in device:
  print " hex: %x" %ids
then, from command line and in the directory where the calibre executables are found
Code:
calibre-debug -e <path to list_usb.py>
When I try it I get the following with my Touch attached
Code:
C:\Program Files (x86)\Calibre2>calibre-debug.exe -e d:\source\list_usb.py
DEBUG:    0.0 KoboTouch:initialize
(8759, 16739, 806)
 hex: 2237
 hex: 4163
 hex: 326
PeterT is offline   Reply With Quote