[Follow-up] Re: Thanks Ubuntu + XSane - HP Photosmart SCSI Scanner

NoOp glgxg at sbcglobal.net
Sat Sep 5 23:30:59 UTC 2009


On 07/23/2007 07:10 PM, NoOp wrote:
> Just wanted to pass along a thanks to Ubuntu & the XSane folks. Most
> often here we get reports that many scanners aren't working in Ubuntu;
> well I'd like to pass along a report on one that does :-)
> 
> I had an old HP Photosmart SCSI scanner in the junk closet that I'd used
> previously with Windose. However the SCSI card blew and of course I blew
> out Windose some time ago, so I'd forgotten about the scanner. It was a
> fine scanner in it's time; scans slides, negatives, 4x5's.
> 
> Recently (today) I was working on an old project from my Vietnam days &
> for one part of the project the only media that I could find were some
> old negatives that I'd saved. I didn't have much luck scanning the
> negatives at the quality that I wanted via a flatbed scanner, so I
> dusted off the HP Photosmart and plugged it into the SCSI (Initio 360P)
> on my old Presario 5670 running Feisty 7.04. Rebooted, brought up the
> XSane scanner driver & presto! XSane instantly recognized the scanner on
> the SCSI, the negatives scanned in perfectly, and I now have some super
> photos from 1971 & 1972 to contribute to the project.
> 
> I am indeed a *very* happy guy right now :-) My only complaint is; now
> that I've discovered that the scanner works w/Ubuntu & XSane (plus GIMP
> etc), I'll spend the next many days scanning in all of the negatives
> from days long past... but thats quite OK with me. :-)
> 
> Thanks Ubuntu developers and contributors & thanks XSane/Sane folks!

Some of you may remember my post regarding this scanner from 2007. Fast
forward to 2009 & Jaunty; I found that I could no longer use xsane with
the scanner unless I ran xsane as root ('gksu xsane). No such issue for
my Canon MP750 USB scanner.

Followed a thread over on alt.os.linux.ubuntu (Subject: Xsane only runs
as root) and discovered the Jaunty issue w/the scanner. One of the folks
(jellybean stonerfish) pointed to this link:
<http://www.linuxtoday.com/news_story.php3?ltsn=2009-08-17-001-35-OS-HW-HL>
Leads to:
<http://jhansonxi.blogspot.com/2009/08/writing-udev-rules-to-get-scsi-scanner.html>
And following the info in that last I managed to get xsane to use the
scanner without gksu.

Following is a copy of my post over on alt.linux.os.ubuntu for those of
you who run into a similar situation:

<quote>
> Same issue here:
>            *-scsi
>                 description: SCSI storage controller
>                 product: INI-950 SCSI Adapter
>                 vendor: Initio Corporation
>                 physical id: 5
>                 bus info: pci at 0000:02:05.0
>                 logical name: scsi0
>                 version: 01
>                 width: 32 bits
>                 clock: 33MHz
>                 capabilities: scsi bus_master
>                 configuration: driver=initio latency=32 module=initio
>               *-processor UNCLAIMED
>                    description: SCSI Processor
>                    product: C5100A
>                    vendor: HP
>                    physical id: 0.2.0
>                    bus info: scsi at 0:0.2.0
>                    version: R029
>                    configuration: ansiversion=2
> 
>>From lshal:
> udi =
> '/org/freedesktop/Hal/devices/pci_1101_9500_scsi_host_scsi_device_lun0'
>   info.parent = '/org/freedesktop/Hal/devices/pci_1101_9500_scsi_host'
> (string)
>   info.product = 'SCSI Device'  (string)
>   info.subsystem = 'scsi'  (string)
>   info.udi =
> '/org/freedesktop/Hal/devices/pci_1101_9500_scsi_host_scsi_device_lun0'
>  (string)
>   linux.hotplug_type = 2  (0x2)  (int)
>   linux.subsystem = 'scsi'  (string)
>   linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host4/target4:0:2/4:0:2:0'
>  (string)
>   scsi.bus = 0  (0x0)  (int)
>   scsi.host = 4  (0x4)  (int)
>   scsi.lun = 0  (0x0)  (int)
>   scsi.model = 'C5100A'  (string)
>   scsi.target = 2  (0x2)  (int)
>   scsi.type = 'processor'  (string)
>   scsi.vendor = 'HP'  (string)
> 
> $ sudo sane-find-scanner
> found SCSI processor "HP C5100A R029" at /dev/sg4
> 
> $ ls -l /dev/sg4
> crw-rw---- 1 root root 21, 4 2009-09-05 02:51 /dev/sg4
> 
> $ scanimage -L /dev/sg4
> 
> 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).
> 
> $ sudo scanimage -L /dev/sg4
> device `hp:/dev/sg4' is a Hewlett-Packard C5100A flatbed scanner
> 
> https://bugs.launchpad.net/ubuntu/+source/hal/+bug/121082
> [permission problems for sane devices]
> https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/217571
> [xsane only scans as root]
> 
> <https://bugs.launchpad.net/ubuntu/+source/hal?field.searchtext=xsane&orderby=-importance&search=Search&field.status%3Alist=FIXRELEASED&field.assignee=&field.bug_reporter=&field.omit_dupes=on&field.has_patch=&field.has_no_package=>
> 
> https://bugs.launchpad.net/ubuntu/+source/hal/+bug/205496
> 
> Using the info in the link provided by jellybean, I created:
> 
> /etc/udev/rules.d/45-scsi-scanner.rules
> 
> $ cat 45-scsi-scanner.rules
> # permissions for HP ScanJet C5100A SCSI scanner
> SUBSYSTEM=="scsi_generic",ATTRS{vendor}=="HP",ATTRS{model}=="C5100A",
> NAME="%k", SYMLINK="scanner%n", MODE="0660", GROUP="scanner"
> 
> and now the scanner works w/xsane (non-root). Booted twice to test.
> 
> Note: this scanner has always worked 'out-of-the-box' from feisty
> through hardy. Hadn't used it since jaunty & your post got me curious,
> so I tested & found I had the same issue as you. I reckon that I'll jump
> on one the launchpad bugs tomorrow as this is a regression from hardy.
> Now I just have to figure out which is the most appropriate bug to add to...
> 

However: works with the exception that it no longer ejects the slide,
negative, photo, following the scan (used to w/out issues). I now have
to manually eject the media from the scanner.

Kooka now recognizes the scanner as well w/o having to run as gksu/root.

Some progress eh?

HTH

Gary






More information about the ubuntu-users mailing list