m. allan noah wrote: > On Wed, 2 Aug 2006, Immanuel CRC Office wrote: > >> I removed the printer. Now it says it does not find anything. This is >> what I get from the below command: >> >> [plustek_pp] attach (parport0, 0x7fffff9e58c0, (nil)) >> [plustek_pp] Device configuration: >> [plustek_pp] device name : >parport0< >> [plustek_pp] direct I/O : yes >> [plustek_pp] warmup : -1s >> [plustek_pp] lampOff : -1 >> [plustek_pp] lampOffOnEnd : yes >> [plustek_pp] model override: 0 >> [plustek_pp] --------------------- >> [plustek_pp] drvopen() >> [plustek_pp] open: PtDrvInit failed: 11 >> [plustek_pp] open failed: -1 >> [plustek_pp] sane_get_devices (0x7fffff9e79c0, 0) >> >> for ecp, ecp+epp, epp and spp settings in the bios. >> >> Crystle > > 1. what does your plustek_pp.conf look like? > 2. you are doing this as root? > 3. what is the io port and irq set to in the bios? > > allan > Okay. I'm stupid. I wasn't doing it as root.
When I am root and I do "SANE_DEBUG_PLUSTEK_PP=255 scanimage -L" I get this: [plustek_pp] *** DETECTION DONE, result: 0 *** [plustek_pp] ioctl(_PTDRV_ADJUST) [plustek_pp] Adjusting device 0 [plustek_pp] warmup: -1 [plustek_pp] lampOff: -1 [plustek_pp] lampOffOnEnd: -1 [plustek_pp] ioctl(_PTDRV_GET_CAPABILITES) [plustek_pp] ioctl(_PTDRV_GET_LENSINFO) [plustek_pp] Scanner information: [plustek_pp] Vendor : Plustek [plustek_pp] Model : 9636P+/Turbo [plustek_pp] Asic : 0x81 [plustek_pp] Flags : 0x00020200 [plustek_pp] drvclose() [plustek_pp] ioctl(_PTDRV_STOP_SCAN) [plustek_pp] Waiting for Sensor to be back in position [plustek_pp] - done ! [plustek_pp] ioctl(_PTDRV_CLOSE_DEVICE) [plustek_pp] *** cleanup buffers *** [plustek_pp] Putting Scanner (ASIC 98001) into Idle-Mode [plustek_pp] CCD-Stop [plustek_pp] *[0x41] = 0xff [plustek_pp] *[0x42] = 0xff [plustek_pp] *[0x4b] = 0xff [plustek_pp] *[0x4c] = 0xff [plustek_pp] *[0x4d] = 0xff [plustek_pp] *[0x4e] = 0xff [plustek_pp] *[0x2a] = 0x01 [plustek_pp] *[0x2b] = 0x00 [plustek_pp] *[0x2d] = 0x00 [plustek_pp] *[0x1b] = 0x19 [plustek_pp] *[0x14] = 0xff [plustek_pp] *[0x15] = 0x00 [plustek_pp] Lamp-Timer started! [plustek_pp] ptdrvClose() [plustek_pp] MiscRestorePort() [plustek_pp] Releasing parport [plustek_pp] attach: model = >9636P+/Turbo< [plustek_pp] sane_get_devices (0x7fffff8c6520, 0) device `plustek_pp:parport0' is a Plustek 9636P+/Turbo parallel port flatbed scanner [plustek_pp] sane_exit [plustek_pp] ptdrvShutdown() [plustek_pp] cleanup device 0 [plustek_pp] Lamp-Timer stopped! [plustek_pp] Try to claim the parport [plustek_pp] Putting Scanner (ASIC 98001) into Idle-Mode [plustek_pp] CCD-Stop [plustek_pp] *[0x41] = 0xff [plustek_pp] *[0x42] = 0xff [plustek_pp] *[0x4b] = 0xff [plustek_pp] *[0x4c] = 0xff [plustek_pp] *[0x4d] = 0xff [plustek_pp] *[0x4e] = 0xff [plustek_pp] *[0x2a] = 0x01 [plustek_pp] *[0x2b] = 0x00 [plustek_pp] *[0x2d] = 0x00 [plustek_pp] *[0x1b] = 0x19 [plustek_pp] *[0x14] = 0xff [plustek_pp] *[0x15] = 0x00 [plustek_pp] Releasing parport So - that is good right? Now, how do I access the scanner not as root? When I run Xsane as me, it says no devices found. If I do gksudo xsane, I get something, but also a warning for running as root. I followed this how to: http://www.linuxprinting.org/download/digitalimage/Scanning-as-Normal-User-on-Wierd-Scanner-Mini-HOWTO.txt but it is still saying 'no devices found' unless I run it as root. Could you point me in the direction I should go next? Thanks! Crystle >> >> m. allan noah wrote: >>> ok, i remember some of this from before. try this- >>> >>> ditch the printer temporarily, and reboot the machine. go into the >>> bios settings, and try each of the ecp/epp/bidirectional etc, port >>> options, one at a time. after changing one option, boot the machine >>> into linux and run >>> >>> SANE_DEBUG_PLUSTEK_PP=255 scanimage -L >>> >>> from the command line. >>> >>> check: >>> >>> man plustek_pp >>> >>> for more info. >>> >>> allan >>> >>> On Wed, 2 Aug 2006, Immanuel CRC Office wrote: >>> >>>> No... I'm just trying to get my Plustek scanner to work, and it >>>> doesn't show up in scanimage -L, that just shows the HP printer that >>>> is connected through the scanner to my parallel port. >>>> >>>> Crystle >>>> >>>> m. allan noah wrote: >>>>> Crystle: are you writing a sane backend driver? the DBG macro is >>>>> part of the source used to build SANE, every existing backend uses >>>>> to print warning messages, so there are lots of examples... >>>>> >>>>> allan >>>>> >>>>> On Wed, 2 Aug 2006, Immanuel CRC Office wrote: >>>>> >>>>>> Could you explain how to use the DBG macro? >>>>>> >>>>>> Crystle >>>>>> >>>>>> m. allan noah wrote: >>>>>>> >>>>>>> try using the DBG macro in your backend to print some messages >>>>>>> from within sane_init() and sane_get_devices(). >>>>>>> >>>>>>> then call: >>>>>>> >>>>>>> SANE_DEBUG_BACKENDNAME=255 scanimage -L >>>>>>> >>>>>>> Replace BACKENDNAME with name of your backend in all caps. >>>>>>> >>>>>>> if you dont see your messages, then the dll backend may not be >>>>>>> loading your backend. try using `strace scanimage -L` to be sure. >>>>>>> >>>>>>> allan >>>>>>> >>>>>>> On Wed, 26 Jul 2006, Rupesh Tarpara wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I have hand held image scanner which is a USB-ACM device and >>>>>>>> uses standard >>>>>>>> ACM driver (serial communication protocol over USB interface). >>>>>>>> The device >>>>>>>> file created by driver is /dev/input/ttyACM0 (virtual serial >>>>>>>> device). >>>>>>>> >>>>>>>> Following is the build procedure I have followed. >>>>>>>> >>>>>>>> I have downloaded "sane-backends 1.0.18" source and made the >>>>>>>> following >>>>>>>> changes to incorporate my device: >>>>>>>> 1. I have created a new backend source file for this device. >>>>>>>> 2. I have modified "sane-backends-1.0.18/configure.in" and >>>>>>>> "sane-backends-1.0.18/backend/Makefile.in" files to include my >>>>>>>> backend. >>>>>>>> 3. executed autoconf, ./configure, make and make install >>>>>>>> 4. all libraries were installed at "/usr/local/lib/sane" >>>>>>>> >>>>>>>> I modified the "/usr/local/etc/sane.d/dll.conf" file to include >>>>>>>> my backend >>>>>>>> name. >>>>>>>> >>>>>>>> I am using Xsane as frontend. When I run Xsane, it gives error >>>>>>>> message as >>>>>>>> "no devices available" >>>>>>>> >>>>>>>> >>>>>>>> ----------------------------------------------------------------------- >>>>>>>> >>>>>>>> My queries, >>>>>>>> >>>>>>>> 1) are there any backend configuration steps which I might have >>>>>>>> skipped? >>>>>>>> 2) What is the procedure frontend follows when it is executed? >>>>>>>> 3) How does the communication happens (or initiates) between >>>>>>>> Frontend<----> >>>>>>>> backend <------> device? >>>>>>>> 4) What are the steps to be followed for new backend installation? >>>>>>>> >>>>>>>> ------------------------------------- >>>>>>>> >>>>>>>> Additional information about OS and sane version I am using. >>>>>>>> >>>>>>>> I am using RedHat AS3 OS, following is the output of uname -a >>>>>>>> [root@mypc root]# uname -a >>>>>>>> Linux mypc.home.com 2.4.21-40.EL #1 Thu Feb 2 22:32:00 EST 2006 >>>>>>>> i686 i686 >>>>>>>> i386 GNU/Linux >>>>>>>> >>>>>>>> [root@mypc root]# scanimage --version >>>>>>>> scanimage (sane-backends) 1.0.18; backend version 1.0.18 >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> Rupesh >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> http://www.patni.com >>>>>>>> World-Wide Partnerships. World-Class Solutions. >>>>>>>> _____________________________________________________________________ >>>>>>>> >>>>>>>> >>>>>>>> This e-mail message may contain proprietary, confidential or >>>>>>>> legally >>>>>>>> privileged information for the sole use of the person or entity to >>>>>>>> whom this message was originally addressed. Any review, >>>>>>>> e-transmission >>>>>>>> dissemination or other use of or taking of any action in >>>>>>>> reliance upon >>>>>>>> this information by persons or entities other than the intended >>>>>>>> recipient is prohibited. If you have received this e-mail in error >>>>>>>> kindly delete this e-mail from your records. If it appears that >>>>>>>> this >>>>>>>> mail has been forwarded to you without proper authority, please >>>>>>>> notify >>>>>>>> us immediately at [email protected] and delete this mail. >>>>>>>> _____________________________________________________________________ >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>> >> >> > -- Crystle Numan Administrative Secretary, Immanuel CRC 61 Mohawk Rd. W. Hamilton ON L9C 1V9 905-385-0662 [email protected] http://immanuelministries.ca
