calibre-debug -c "from calibre.devices.prs505.driver import PRS505; d=PRS505(); d.open(); print d.total_space()"