User:Gordon/Optical Drive Testing Script/scratchpad
< User:Gordon | Optical Drive Testing Script
Jump to navigation
Jump to search
Revision as of 12:25, 9 January 2010 by Gordon (talk | contribs) (→Optical drive examination procedure)
- http://club.myce.com/f34/dvd-rw-multisession-questions-306321/
- http://club.myce.com/f33/best-media-optical-drive-testing-306320/
- http://club.myce.com/f52/uniquely-iding-optical-discs-306323/
- http://fy.chalmers.se/~appro/linux/DVD+RW/
- http://club.myce.com/f52/determine-dvd-r-write-capability-ubuntu-306981/ not much luck yet
- http://ubuntuforums.org/showthread.php?t=1240043 -- maybe use 'hal' to determine dvd+r info?
Dependencies
Ubuntu
- python-setuptools (?)
- python-virtualenv
- python-pip
- mercurial (won't be needed for a dpkg dependency, most likely)
- cdrkit (probably)
- dvd+rw-tools (probably)
Python
(Hopefully) see pip-requirements.txt once the project is closer to completion, and automatically install all these with pip.
Development installation
- Install all Ubuntu dependencies
- cd to the dir where you want the virtualenv containing the code to live.
virtualenv --no-site-packages lazers
cd lazers
. bin/activate
pip install -E . yolk
(optional, but useful)pip install -E . cmdln
pip install -E . nose
(if you want to run the tests)mkdir src
cd src
hg clone http://bitbucket.org/gmfreegeek/lazers/
Optical drive examination procedure
wodim dev=/dev/sr0 -prcap
- Makes sure a drive is there
- Gets a list of most capabilities
- Does NOT distinguish DVD-R from DVD+R capability
or alternatively...
hal-find-by-capability --capability storage.cdrom
to get a udilshal -u [udi]
reveals the drive's capabilities one by one, including plusr, dvdram, etc. Dunno about lightscribe.