Setting up photo-card access
This file documents the procedure to set up access to the photo-card readers
on hpoj-supported models with this functionality, including the PhotoSmart
printers, PSC 950, and OfficeJet D series. See the hpoj
Supported devices page
for the most up-to-date information on models with this capability.
Currently, photo-card access is performed using the
mtools
command-line utilities and the
ptal-photod daemon provided as part
of the hpoj software.
In case of difficulty
If something goes wrong with these instructions, then refer to the separate
photo-card access details and
troubleshooting document for more information.
Initial setup
Be sure to follow the instructions to compile
and install the hpoj software and set up
basic device connectivity if you haven't already.
When "ptal-init setup" adds a new
device, it probes the device for photo-card reader support and arranges
for ptal-photod to be started
automatically.
Place the following lines in /etc/mtools.conf (for all users)
or ~/.mtoolsrc (for individual users):
mtools_skip_check=1
drive p: file=":0" remote
If you have more than one hpoj-managed device with photo-card readers,
then add as many additional lines as needed, incrementing the
"drive" letter and "file" number each time as follows:
drive q: file=":1" remote
drive r: file=":2" remote
drive s: file=":3" remote
The drive letters are how you refer to the device with the mtools
commands, and the numbers specified by the file=":0" keyword are
used to match the drive letter with a specific instance of
ptal-photod.
Important: Look through the rest of the file to make sure you aren't
re-using a drive letter that is already defined. If you are, then use
different drive letter(s), and/or comment out drive definitions that you
don't need. Also, try running mtoolstest to see if it detects
any configuration file problems.
Accessing photo cards
The following mtools commands are useful for manipulating files
and directories on the currently inserted photo card. For more information,
refer to the manual pages for each command and the general mtools
manual page.
- mdir -- lists directory contents (as in ls)
- mcopy, mren, mmove -- copies, renames, or moves
files or directories (as in cp or mv)
- mdel, mdeltree -- deletes individual files or entire
directory trees (as in rm or "rm -r")
- mmd, mrd -- creates or removes directories
- mcd -- sets the default drive letter and current working
directory (as in cd)
- mtype -- lists file contents to standard output (as in
cat)
- mdu -- lists disk space usage of directory trees and their files
(as in du)
Examples:
- mdir p:
Lists the directory of drive P.
- mcopy p:/hp500_01/\*.jpg .
Copies all *.jpg files from the /hp500_01 directory
on drive P into the Unix current working directory. Note the use of
forward slashes for path delimiters and a backslash before the asterisk
to prevent the shell from interpreting it.
- mcopy p:/hp500_01/\*.jpg q:/foodir
Copies all *.jpg files from the /hp500_01 directory
on drive P into the foodir directory on drive Q.
In case of difficulty
If something goes wrong with these instructions, then refer to the separate
photo-card access details and
troubleshooting document for more information.
Next steps
You may now set up printing and/or
scanning (depending on your model)
if you haven't already, or return to the index.