Skip to content

Instantly share code, notes, and snippets.

@bmurithi
Last active April 7, 2021 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmurithi/845714621cdbe8612ad72c7d791f2d85 to your computer and use it in GitHub Desktop.
Save bmurithi/845714621cdbe8612ad72c7d791f2d85 to your computer and use it in GitHub Desktop.
Canon Pixma G2411 - Scanning on Debian 10

Scanning does not work out of the box with this multifunctional printer. Works fine on Ubuntu 20.04 LTS with no workaround required.

Attempts to get this working with Canon's proprietary drivers failed as well.

Since it worked with sane on Ubuntu, upgrading libsane on Debian resolves scanning failure.

Install simple-scan / Hold libsane

We hold libsane so we can override it with a build of sane-backends. This may not be required when building simple-scan from source.

sudo apt-get install simple-scan
sudo apt-mark hold libsane

Install build dependencies

sudo apt-get install build-essential autoconf-archive autopoint libtool libusb-dev libjpeg-dev autogen m4 pkg-config

Build sane-backends from sources

export VERSION="1.0.32"
git clone -b $VERSION https://gitlab.com/sane-project/backends.git
cd backends
./autogen.sh
./configure
make -j$(nproc)
sudo make install
sudo ldconfig

# Add user to lp group (Scanner is accessible to the lp group) 
sudo usermod -a -G lp $USER

At this point the scanner should show up:

$ scanimage -L
device `pixma:<DEVICE-ID>' is a CANON Canon PIXMA G2010 Series multi-function peripheral

# Test Scan
scanimage --format=jpeg -o scantest.jpg

Build simple-scan (if required)

Other frontends (xsane/gimp) or simple-scan with libsane held should suffice.

Install build dependencies as described here.

https://gitlab.gnome.org/GNOME/simple-scan.git

git clone https://gitlab.gnome.org/GNOME/simple-scan.git
cd simple-scan
meson --prefix /usr _build
meson --reconfigure --prefix /usr _build
ninja -C _build all install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment