Missing line/alias in pixma_imageclass.c for imageRUNNER 1133
Hello everyone. I've tried using pixma backend to do a scan over network using Canon imageRUNNER 1133 MFP.
First attempt resulted in this output:
$ scanimage -L
[16:17:46.919598] [bjnp] add_scanner: Scanner imageRUNNER1133 series is not supported, model is unknown! Please report upstream
After checking pixma_imageclass.c#L958, I noticed that model name for that MFP is listed as "iR1133", not "imageRUNNER1133":
// vvvvvv
DEV ("Canon imageRUNNER 1133", "iR1133", IR1133_PID, 600, 0, 637, 877, PIXMA_CAP_ADFDUP),
// ^^^^^^
So I added one more line and rebuilt libsane-pixma.so
git apply <<EOF
diff --git a/backend/pixma/pixma_imageclass.c b/backend/pixma/pixma_imageclass.c
index ae061807f..45a490da0 100644
--- a/backend/pixma/pixma_imageclass.c
+++ b/backend/pixma/pixma_imageclass.c
@@ -956,2 +956,3 @@ const pixma_config_t pixma_iclass_devices[] = {
DEV ("Canon imageRUNNER 1133", "iR1133", IR1133_PID, 600, 0, 637, 877, PIXMA_CAP_ADFDUP), /* max. w = 216mm */
+ DEV ("Canon imageRUNNER 1133", "imageRUNNER1133", IR1133_PID, 600, 0, 637, 877, PIXMA_CAP_ADFDUP), /* max. w = 216mm */
DEV ("Canon i-SENSYS MF5900 Series", "MF5900", MF5900_PID, 600, 0, 640, 1050, PIXMA_CAP_ADFDUP),
EOF
make
After that, imageRUNNER1133 device was correctly identified and I was able to scan an image over network connection.
Is it better to keep both lines? Remove the previous (iR1133) line? Does anyone know if it's possible to combine them in a single DEV
statement?