Re: No scanners identified

From: Jochen Eisinger (jochen.eisinger@gmx.de)
Date: Wed Mar 07 2001 - 02:28:22 PST

  • Next message: John Pitney: "HP PhotoSmart problem"

    Hi!

    [Eddy De Greef]
    > > It appears to me that the problem is connected to wrong access rights.
    > > However, it's not the parallel port, since I can both read and write to
    > > it, for instance with "echo Hello > /dev/lp0".
    > > The string will then appear on the printer also connected to the port.
    >
    > The backend doesn't access the port in that way, I believe. All
    > communication with the parallel is performed at the IO-port level
    > (ie., IO-ports at addresses 0x380 etc).
    > The permissions on /dev/lp0 therefore don't affect the backend.
    > A process trying to access the IO-ports must have super-user
    > access rights. The proper way to achieve this is to run the sane
    > daemon as root (see man saned on how to set it up).

    Yes, this is right. To see debug info you can start scanimage this way

    # SANE_DEBUG_SANEI_PA4S2=6 scanimage -L 2>&1 | less

    >
    > >
    > > Running scanimage as root will cause an error in loading libraries
    > > (undefined symbol: outb), which indicates that the program progresses
    > > beyond the point described in my problem.
    >
    > No idea what is causing this. David Gesswein could be right about
    > the optimization issue. Do you have an x86 platform ? I believe
    > the low-level assembly routines accessing the io-ports are only
    > implemented for x86 hardware.
    >
    The outb is a macro which is only expanded, if the sanei_pa4s2 file is compiled
    with -O2. Make sure, the CFLAGS in the Makefile include -O2

    regards
    -- jochen

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 02:10:21 PST