Scanner not recognized

The fix is available in the latest Clear Linux release. Please let us know if you still have problems after updating :slight_smile:

A scanner seems to be recognized, but I am not able to start the scanning process. The simple scan connects to Noname Integrated_Webcam_HD. That does not sound like my scanner.
scanimage -L shows the following result…
device v4l:/dev/video2' is a Noname Integrated_Webcam_HD: Integrate virtual device devicev4l:/dev/video0’ is a Noname Integrated_Webcam_HD: Integrate virtual device

Correct, those are built-in webcams. Can you try again as root? There may be a permissions issue for your USB scanner.

True - after using sudo my Scanner is recognized
sudo scanimage -L
device v4l:/dev/video2' is a Noname Integrated_Webcam_HD: Integrate virtual device devicev4l:/dev/video0’ is a Noname Integrated_Webcam_HD: Integrate virtual device
device `genesys:libusb:003:003’ is a Canon LiDE 220 flatbed scanner
How can I make simple scan reach the scanner?

man sane-usb and see the LIBUSB section.

I am sorry - I am an interested user with certain skills in solving problems on linux - but these descriptions are still to complex for me to solve. Thanks for your help!

OK. The scanner device will probably be owned by the plugdev group when it’s connected. You can try adding yourself to that group:

$ ls -l /dev/bus/usb/003/003 # Check the ownership of the scanner device node
$ groups # See the groups you're currently a member of
$ sudo usermod -a -G plugdev ${USER} # Add yourself to the plugdev group
$ newgrp plugdev # This starts a new shell with that group
$ groups # verify that this new shell now reflects your new group membership
$ scanimage -L # No sudo necessary once you're in the group

You’ll have to log out from and back in to your GUI to make the group change take effect for all the programs you run.

1 Like

Thanks a lot for your help!
After the command: $ newgrp plugdev
there is the following error message popping up: newgrp: failed to crypt password with previous salt: the argument is invalid
I am stuck there - sorry…

If you already did the usermod successfully, then just log out and back in, and skip the newgrp command.

Thanks!
If I tipe groups - I am added as a user.
But the whole procedure does not change anything.
scanimage -L shows only the webcam. Sudo scanimage -L shows the scanner
Also after a restart of the gui - there is no positive result…

Can you help us by posting the output of the scanner device?

Let’s say that /dev/bus/usb/003/003 is the scanner device, then
please post the output of:

$ ls -l /dev/bus/usb/003/003 

And just to be absolutely clear, the numbers come from what scanimage -L reports:

device `genesys:libusb:AAA:BBB’ is a Canon LiDE 220 flatbed scanner

corresponds to /dev/bus/usb/AAA/BBB.

We’re trying to add your user to the group that owns that device node.

Hey - you guys are really great!

Here comes the output:

$ scanimage -L
device v4l:/dev/video2' is a Noname Integrated_Webcam_HD: Integrate virtual device devicev4l:/dev/video0’ is a Noname Integrated_Webcam_HD: Integrate virtual device

sudo scanimage -L

device v4l:/dev/video2' is a Noname Integrated_Webcam_HD: Integrate virtual device devicev4l:/dev/video0’ is a Noname Integrated_Webcam_HD: Integrate virtual device
device `genesys:libusb:003:003’ is a Canon LiDE 220 flatbed scanner

Sorry - I think that was what you asked for:

$ ls -l /dev/bus/usb/003/003
crw-rw-r-- 1 root root 189, 258 20. Jun 20:33 /dev/bus/usb/003/003

Thanks and what is the output from

ls -l /dev/video*

and the output from

lsusb

From here the scanner does not belong to any group, then a udev rule is missing here.

ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 20. Jun 20:33 /dev/video0
crw-rw----+ 1 root video 81, 1 20. Jun 20:33 /dev/video1
crw-rw----+ 1 root video 81, 2 20. Jun 20:33 /dev/video2
crw-rw----+ 1 root video 81, 3 20. Jun 20:33 /dev/video3

lsusb
Bus 004 Device 004: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 004 Device 003: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 004 Device 002: ID 0bda:0411 Realtek Semiconductor Corp.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 24f0:0105
Bus 003 Device 006: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 003 Device 004: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 003 Device 003: ID 04a9:190f Canon, Inc. CanoScan LiDE 220
Bus 003 Device 002: ID 0bda:5411 Realtek Semiconductor Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0489:e0a2 Foxconn / Hon Hai
Bus 001 Device 003: ID 0bda:58f4 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 1fc9:5002 NXP Semiconductors
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Create the directory:

sudo mkdir -p /etc/udev/rules.d/

and create a file with:

ATTRS{idVendor}==" 04a9", ATTRS{idProduct}==" 190f", MODE="0660", GROUP="plugdev", ENV{libsane_matched}="yes"

at /etc/udev/rules.d/myscanner.rules

you can use:

sudo nano /etc/udev/rules.d/myscanner.rules