SG_BIG_BUFF setting in Problems incorrect

From: Bill Wohler (wohler@newt.com)
Date: Thu Feb 03 2000 - 14:39:07 PST

  • Next message: Oliver Rauch: "xsane-0.54 available"

      I just installed DEVEL_1_9 from the CVS repository and couldn't get
      to my scanner (HP Photosmart SCSI, running under a Linux 2.2.1
      kernel).

      Thanks to the debugging output, the problem was clear:
      
        [wohler@gbr:587]% SANE_DEBUG_SANEI_SCSI=128 SANE_DEBUG_HP=128 scanimage
        ...
        [sanei_scsi] sanei_scsi_open: could not allocate SG buffer memory wanted: 131072 got: 32768

      The sane-scsi manpage suggested bumping SG_BIG_BUFF in
      /usr/src/linux/include/scsi/sg.h to 128*1024-512=130560 bytes, but
      this doesn't work. After bumping SG_BIG_BUFF to 128*1024=131072
      bytes, recompiling the kernel, rebooting, and recompiling sane, all
      was well (phew!). I would suggest updating the sane-scsi man page
      with the correct value to save others from an extra kernel compiling
      step.

      Also, the Problems document mentions that newer kernels (>=2.2) can
      get the value from /proc/sys/kernel/sg-big-buff. I have 2.2.1 and
      this file is not present.

      Note that the 1.0.1 snapshot was working previously although I had
      not updated the value of SG_BIG_BUFF.

    --
    Bill Wohler <wohler@newt.com>
    Say it with MIME.  Maintainer of comp.mail.mh and news.software.nn FAQs.
    If you're passed on the right, you're in the wrong lane.
    

    -- 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 : Thu Feb 03 2000 - 14:33:06 PST