This is the old SliTaz forum - Please use the main forum.slitaz.org

Wiki for Scanner
  • pre_historic94pre_historic94 December 2009
    Can someone make a wiki for parallel and usb scanner.
  • slicelslicel January 2010
    Install xsane tazpkg with depends (edit- and usb utils for usb scanner).
    Add users to /etc/group if desired (do next steps as authorized user).
    Plug scanner into computer.
    Open Menu/Office/Xsane.

    It worked for me with usb scanner.
  • GokhlayehGokhlayeh January 2010
    Hi,
    It don't works for me (i've added tux in scanner group) :
    tux@slitaz:~$ xsane
    libusb couldn't open USB device /proc/bus/usb/004/002:
    Permission denied.
    libusb requires write access to USB device nodes.

    For fix this we must give write access to the device :
    root@slitaz:/home/tux$ exit
    tux@slitaz:~$ su
    Password:
    root@slitaz:/home/tux$ chmod a=rw /proc/bus/usb/004/002

    How can we fix this and make the scanners works out of the box ?
  • mojomojo January 2010
    HP5300C Scanjet USB on slitaz-2.0 full install
    Xsane from stable segfaults when I scan so lets try cooking
    tazpkg set-release cooking
    tazpkg get-install xsane --forced
    tazpkg get-install sane-backends --forced
    Yes to 3 dependencys
    Scanning as root works with no segfault.
    This configuration allows any user who is a member of the scanner group to scan:
    lsusb returns
    Bus 002 Device 007: ID 03f0:0701 Hewlett-Packard ScanJet 5300c/5370c
    Open text editor and copy this code on one line:
    SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="0701", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

    But replace my idVendor and idProduct values with those returned from your scanner in response to lsusb.
    Save the text file as 91-local.rules in /etc/udev/rules.d folder
    Reboot or udevadm trigger
  • GokhlayehGokhlayeh January 2010
    Hi,
    and thanks you have put me on a very good way.
    There's a files named 55-sane.rules in /etc/udev/rules.d. This file contain all the scanners descriptions include in libsane, and there's your and mine. I've found why this don't work, there's theses line before the sanes description :

    # For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y
    # If the following rule does not exist on your system yet, uncomment it
    # ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0664", OWNER="root", GROUP="root"

    Just de-comment the third and execute :
    udevadm trigger

    lol...

    I guess some hardware problem can be solved with a better configuration of udev, but I just discover this software

    Hope that will be ready for 3.0 so we will have a good hardware support :)
  • slicelslicel January 2010
    Gokhlayeh, thank you, that fixed the cooking snow scanner.

    Udev often resolves sound problems too.
  • mojomojo January 2010
    Hi Gokhlayeh,

    The bulb in my scanner can't be turned off and on by linux software, I unplug scanner power to preserve the bulb,then power it on to scan.

    When I do that with your configuration scanner group can't access the scanner unless I run udevadmin trigger or reboot the computer.

    With the 91-local.rules configuration in my tutorial I can turn the scanner off and on,scanner group still has permissions,xsane scans for devices and connects to scanner with no additional steps from user.









  • GokhlayehGokhlayeh January 2010
    I'm not sure to correctly understand your post. With my Slitaz on HDD, I've make the correction above then I can plug and unplug my scanner and everything works without additional step.

    I just see that there's no scanner group on my /etc/group, maybe there's a link.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social