[sane-devel] Umax 2200 (SCSI) Scanner Buttons
roger
roger at eskimo.com
Sat May 26 09:01:17 UTC 2007
I see a bit of code which is supposedly specific to some umax
scanners.
How can I get scsi logging to dump everything? (I already have debug
for sg compiled into the kernel, but echo "blah" > /proc/scsi/scsi
fails... and I'm not seeing any recent docs concerning scsi logging
since 2002.
(I'd like to see if I can't get the external buttons working also for
the Umax Astra 2200 via scsi.)
---Begin Snip of umax.c---
switch(sensekey)
...
case
0x09: /* vendor specific */
if (asc == 0x00)
{
DBG(DBG_sense, "-> button protocoll\n");
if (ascq & 1)
{
dev->button0_pressed = 1;
DBG(DBG_sense, "-> button 0 pressed\n");
}
if (ascq & 2)
{
dev->button1_pressed = 1;
DBG(DBG_sense, "-> button 1 pressed\n");
}
if (ascq & 4)
{
dev->button2_pressed = 1;
DBG(DBG_sense, "-> button 2 pressed\n");
}
return SANE_STATUS_GOOD;
---End Snip of umax.c---
--
Roger
http://www.eskimo.com/~roger/index.html
Key fingerprint = 8977 A252 2623 F567 70CD 1261 640F C963 1005 1D61
Sat May 26 02:01:12 PDT 2007
More information about the sane-devel
mailing list