Printer works, but scanner does not

To make a long story short, I have a Canon MG2522 printer/scanner combo which I have been using with Kubuntu and Windows 10 for a while.

Additionally, I recently installed FreeBSD 14.1 on my desktop (see specs down below) and I'm generally pleased with the results thus far. However, I have one minor problem which I cannot seem to solve on my own. I'm able to get the printer portion of my Canon MG2522 to work perfectly, but I cannot seem to get the Skanlite imaging program to detect the scanner portion of my MG2522 combo unit. I should also add that I have the SANE utility installed, and when I type usbconfig list, I get the following result.

Code:
ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <Webcam C270 Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen0.3: <G203 Gaming Mouse Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (300mA)
ugen0.4: <Keyboard K120 Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (90mA)
ugen0.5: <PIXMA MG2500 Series Canon, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

Also, when I go to the Sane homepage and look at the list of supported devices, I find the below information.

ModelInterfaceUSB idStatusCommentBackend
Manpage
PIXMA MG2500 Series​
USB
0x04a9/0x176dComplete
All resolutions supported (up to 600DPI).
pixma
(0.28.6)​
sane-pixma

So, I guess my first question is, since the output of usbconfig list seems to list my printer/scanner unit as a PIXMA MG2500, and the information listed within the SANE homepage seems to indicate that PIXMA MG2500 Series is supported, does that mean that there is a chance that I may be able to get my scanner to work within FreeBSD? I'm guessing that I need to install the backend "pixma (0.28.6)" but I have no idea what I'm doing. When I tried pkg search pixma, I didn't seem to get a match for that particular number. I'm just wondering if anyone else has managed to get this particular scanner to work within FreeBSD, and how they did it? Please see below info regarding my desktop system.

Code:
Simon@Simon_System_FreeBSD:~ $  sysctl hw.model hw.machine hw.ncpu
hw.model: Intel(R) Pentium(R) Gold G5400 CPU @ 3.70GHz
hw.machine: amd64
hw.ncpu: 4

Simon@Simon_System_FreeBSD:~ $ dmesg | grep memory
real memory  = 8589934592 (8192 MB)
avail memory = 8171360256 (7792 MB)
pci0: <memory, RAM> at device 20.2 (no driver attached)

Simon@Simon_System_FreeBSD:~ $ freebsd-version
14.1-RELEASE-p5

Any info greatly appreciated. Sorry, I don't know what happened to my above table. Hopefully it isn't too difficult to follow.
 
Based on 9.6.2. SANE Configuration, what output do you get from scanimage -L

Setting Up a Scanner on Freebsd may be useful as well.
Hmmm....My scanner is definetly turned on and plugged into my desktop, but for some reason the below is what I get.

Code:
Simon@Simon_System_FreeBSD:~ $ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
Simon@Simon_System_FreeBSD:~ $
 
It seems to be usable with a network, any chance of using it on the LAN and using airscan?

EDIT: Taking another look, I I think I'm wrong about networking, might only be a USB printer.
 
It seems to be usable with a network, any chance of using it on the LAN and using airscan?

EDIT: Taking another look, I I think I'm wrong about networking, might only be a USB printer.
No networking capability with this particular printer, only USB.
 
I think there are two steps to a working usb connection:
1. Identify the device on a particular usb port
2. Attach the driver (scanner, printer, mouse, camera, etc).
The device ID is hard coded into the devices chips and usbconfig is reading it. In general, FreeBSD assigns the appropriate USB driver if the hard coded USB ID is matched by a printer or scanner driver. The problem is there is not a driver for both the printer and scanner in FreeBSD.
HP has written their own drivers in the print/hplip package and Canon has also done so:
Canon MG2522 in linux
I do not believe that Canon's drivers have been ported to FreeBSD. They appear to be proprietary, third party drivers without source code.
 
I had a similar issue with my Multi-Function Epson Printer, maybe you can go checkout on that route:

 
Well, unfortunately I had a minor mishap which now makes my problems with my scanner an entirely moot point.

I had FreeBSD installed onto hard drive ada1, and Kubuntu installed onto ada0. I thought that it would be a good idea to have FreeBSD listed in my Grub boot menu, but no matter what I did, Grub couldn't seem to find it. So, with all of my playing around I somehow overwrote the partition table on ada1, and entirely lost my FreeBSD installation. Lesson learned. I should have simply used the bios boot menu which appears after pressing F8 during the boot process. So, at this point it is back to the drawing board for a third time.

Also, I had one other issue with FreeBSD which makes me wonder if I will be able to use it as a daily operating sytem. A part from the scanner not working, I also could not get my PC to wake up from sleep while it was running FreeBSD. I'm not sure if this particular problem might be more of a KDE issue than a FreeBSD issue, but no matter what I did, I could not get the video to come back up after the machine had been asleep for a while.

For me, not being able to come out of sleep mode is actually a bigger issue than the scanner, because I can always buy a scanner that will work, but I cannot leave this machine running unattended while I'm away, and completely shutting it down doesn't seem practical.

Anyway, I may try again in a few more weeks.
 
Too many problems here...

  1. I have a dual boot with Linux with this one as backup something is not going right with FreeBSD, luckily it happened few times, to dual boot I use rEFInd so I don't need to do anything with grub
  2. Issue with waking-up are related with your GPU and its driver, check if you need special options for you X.org configuration; also on my laptop I have to close the lid before to wake up the session otherwise I get a black screen.
 
Well, now I'm kicking myself for not having made some sort of backup of FreeBSD installation, before I started playing around with Grub.

So now I'm wondering, could I have used the dd command to create images of my ufs partitioins onto a usb drive, and would the eternal hard drive become bootable again if I were to restore boot partion and all of the other system partitions back into their original locations?
 
Too many problems here...

  1. I have a dual boot with Linux with this one as backup something is not going right with FreeBSD, luckily it happened few times, to dual boot I use rEFInd so I don't need to do anything with grub
  2. Issue with waking-up are related with your GPU and its driver, check if you need special options for you X.org configuration; also on my laptop I have to close the lid before to wake up the session otherwise I get a black screen.
Thanks for the info, I will definetly look at rEFInd before I give this another try.
 
Back
Top