marco | 6 Jan 15:49 2006
Picon

Hp 5100c not recognized

Hello,

(first, sorry for my bad english)

I tried in this week to get my parallel port scanner (HP 5100c) working on my system.
I am working on a Pentium III PC with ubuntu Breezy 5.10 and a 2.6.12 kernel.
I've followed this post: 

http://lists.infradead.org/pipermail/linux-parport/2005-October/000355.html

and everything works properly:
i sucessfully installed the modules with modprobe (with insmod i've had many problems):

modprobe scsi_mod
modprobe sg
modprobe parport
modprobe parport_pc
modprobe ppscsi

with this result (see with dmesg):

[4294970.382000] SCSI subsystem initialized
[4294970.434000] ppSCSI 0.92 (0.92) installed

but when i try to loading the last modules the shell response is:

modprobe onscsi
FATAL: Error inserting onscsi (/lib/modules/2.6.12-10-686/kernel/drivers/parport/onscsi.ko): No
such device

(Continue reading)

J Fairbairn | 6 Jan 17:09 2006
X-Face

Re: Hp 5100c not recognized

On 2006-01-06 at 15:49+0100 marco wrote:
> Hello,
> 
> (first, sorry for my bad english)
> 
> I tried in this week to get my parallel port scanner (HP
> 5100c) working on my system.  I am working on a Pentium
> III PC with ubuntu Breezy 5.10 and a 2.6.12 kernel.  I've
> followed this post:
> 
> http://lists.infradead.org/pipermail/linux-parport/2005-October/000355.html
> [...]
> but when i try to loading the last modules the shell response is:
> 
> modprobe onscsi

modprobe epst 

is likely to work better.

Cheers,

  Jón

--

-- 
Jón Fairbairn                              Jon.Fairbairn at cl.cam.ac.uk
Marco Pagliari | 6 Jan 17:18 2006
Picon

Re: Hp 5100c not recognized



2006/1/6, J Fairbairn <jonf.parport <at> mailnull.com>:
On 2006-01-06 at 15:49+0100 marco wrote:
> Hello,
>
> (first, sorry for my bad english)
>
> I tried in this week to get my parallel port scanner (HP
> 5100c) working on my system.  I am working on a Pentium
> III PC with ubuntu Breezy 5.10 and a 2.6.12 kernel.  I've
> followed this post:
>
> http://lists.infradead.org/pipermail/linux-parport/2005-October/000355.html
> [...]
> but when i try to loading the last modules the shell response is:
>
> modprobe onscsi

modprobe epst

is likely to work better.

Cheers,

  Jón

--
Jón Fairbairn                              Jon.Fairbairn at cl.cam.ac.uk

Thanks Jòn

i tried with

modprobe epst

and the dmesg was:

epst.0: epst 0.92 (0.92), Shuttle EPST at 0x378 mode 5 (EPP-32) dly 1 nice 0 sg 16
scsi2 : epst

but whatever i think that the system don't recognized the scanner..

what can i do?

Thanks

Marco


_______________________________________________
Linux-parport mailing list
Linux-parport <at> lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-parport
J Fairbairn | 6 Jan 17:48 2006
X-Face

Re: Hp 5100c not recognized

On 2006-01-06 at 17:18+0100 Marco Pagliari wrote:
> 2006/1/6, J Fairbairn <jonf.parport <at> mailnull.com>:
> >
> > On 2006-01-06 at 15:49+0100 marco wrote:
> > > modprobe onscsi
> >
> > modprobe epst
> >
> > is likely to work better.

> i tried with
> 
> modprobe epst
> 
> and the dmesg was:
> 
> epst.0: epst 0.92 (0.92), Shuttle EPST at 0x378 mode 5 (EPP-32) dly 1 nice 0
> sg 16
> scsi2 : epst

Looks good, but I'd expect that to be followed by something
along the lines of:
  Vendor: HP        Model: C5190A            Rev: 3740
  Type:   Processor                          ANSI SCSI revision: 02
  Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 0,  type 3

Did anything appear in sysfs (/sys/bus/scsi/devices/* here)?

> but whatever i think that the system don't recognized the scanner..
> 
> what can i do?

If your distro uses udev, you need a file called something
like /etc/udev/rules.d/30-scanner.rules containing something
like:

   # udev rules for scanner

   BUS="scsi", SYSFS{vendor}="HP", SYSFS{model}="C5190A", NAME="scanner_hp_c5100C_%n",
GROUP="household", MODE="0660", symlink="scanner%n"

Though of course GROUP should be something meaningful on you
system.  But this isn't going to help if epst isn't
announcing the scanner to the system. Is sysfs mounted?

  Jón

--

-- 
Jón Fairbairn                              Jon.Fairbairn at cl.cam.ac.uk
Marco Pagliari | 6 Jan 20:47 2006
Picon

Re: Hp 5100c not recognized



2006/1/6, J Fairbairn <jonf.parport <at> mailnull.com>:
On 2006-01-06 at 17:18+0100 Marco Pagliari wrote:
> 2006/1/6, J Fairbairn <jonf.parport <at> mailnull.com >:
> >
> > On 2006-01-06 at 15:49+0100 marco wrote:
> > > modprobe onscsi
> >
> > modprobe epst
> >
> > is likely to work better.

> i tried with
>
> modprobe epst
>
> and the dmesg was:
>
> epst.0: epst 0.92 (0.92), Shuttle EPST at 0x378 mode 5 (EPP-32) dly 1 nice 0
> sg 16
> scsi2 : epst

Looks good, but I'd expect that to be followed by something
along the lines of:
  Vendor: HP        Model: C5190A            Rev: 3740
  Type:   Processor                          ANSI SCSI revision: 02
  Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 0,  type 3

Did anything appear in sysfs (/sys/bus/scsi/devices/* here)?

 the directory is empty

> but whatever i think that the system don't recognized the scanner..
>
> what can i do?

If your distro uses udev, you need a file called something
like /etc/udev/rules.d/30-scanner.rules containing something
like:

   # udev rules for scanner

   BUS="scsi", SYSFS{vendor}="HP", SYSFS{model}="C5190A", NAME="scanner_hp_c5100C_%n", GROUP="household", MODE="0660", symlink="scanner%n"

Though of course GROUP should be something meaningful on you
system.  But this isn't going to help if epst isn't
announcing the scanner to the system. Is sysfs mounted?

  Jón


--
Jón Fairbairn                              Jon.Fairbairn at cl.cam.ac.uk


I  created the  30-scanner.rules file and insert in the /etc/modules file the scsi_mod, sg, parport, parport_pc, ppscsi and epst modules but (also after a reboot) nothing has changed.

- The directory /sys/bus/scsi/devices/* is empty

- The sysfs is properly mounted:
    
         sysfs on /sys type sysfs (rw)

- This my dmesg log: (its too long and i posted to this link, but if you want i can post it in to the mail)

         http://www.nomorepasting.com/paste.php?pasteID=55512

i wish we could find where is the problem.

Thanks a lot

Marco

_______________________________________________
Linux-parport mailing list
Linux-parport <at> lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-parport
J Fairbairn | 6 Jan 22:57 2006
X-Face

Re: Hp 5100c not recognized

On 2006-01-06 at 20:47+0100 Marco Pagliari wrote:
> 2006/1/6, J Fairbairn <jonf.parport <at> mailnull.com>:
> > Did anything appear in sysfs (/sys/bus/scsi/devices/* here)?
> 
> 
>  the directory is empty

Hmmm. I'm getting a bit out of my depth here. How about

   ls /proc/scsi/

after loading epst I get: 

   device_info  epst/  scsi  sg/

and 

   cat /proc/scsi/scsi

gives 

   Host: scsi5 Channel: 00 Id: 00 Lun: 00
     Vendor: HP       Model: C5190A           Rev: 3740
     Type:   Processor                        ANSI SCSI revision: 02

also 

   cat /proc/scsi/epst/5 

(replace the 5 with the appropriate number) gives

   ident:           epst 0.92 (0.92), Shuttle EPST
   base port:       0x378
   mode:            2
   mode name:          PS/2
   delay:           1
   nice:            0
   verbose:         2
   quiet:           0
   tot_cmds:        24
   tot_bytes:       864
   tot_errs:        0
   parport device: parport0
   claimed:           0

(for some reason EPP mode doesn't work well on my hardware).

> I  created the  30-scanner.rules file and insert in the /etc/modules file
> the scsi_mod, sg, parport, parport_pc, ppscsi and epst modules but (also
> after a reboot) nothing has changed.

I wouldn't expect that to help until the other stuff is
working.

> - This my dmesg log: (its too long and i posted to this link, but if you
> want i can post it in to the mail)
> 
>          http://www.nomorepasting.com/paste.php?pasteID=55512
> 
> i wish we could find where is the problem.

It might help to use 

  modprobe epst verbose=1

and see what is logged then, but I'm not up to speed on this.

  Jón

--

-- 
Jón Fairbairn                              Jon.Fairbairn at cl.cam.ac.uk
marco | 8 Jan 20:52 2006
Picon

Re: Hp 5100c not recognized


On my system, if the BIOS is set to use EPP mode, it takes about an /hour/ for modprobe epst to finish. It may be worth trying turning on the scanner, modprobe epst, wait an hour and then check! It's also worth trying switching the mode in the BIOS setup screen and see if it makes any difference. Jón> Maybe could i have the same problem? How can i do to know?
I tried to switch the BIOS parport mode from EPP (that give me the correct compatibility for EPP with cat /proc/sys/dev/parport/parport0/modes) to ECP & EPP mode that give me the sequent result: ~$ cat /proc/sys/dev/parport/parport0/modes PCSPP,TRISTATE,COMPAT,ECP,DMA that seems wasn't compatible with EPP mode, but when i trie to load the esp module with ~$ modprobe esp i could see in the dmesg log this message: [4294719.954000] epst.0: epst 0.92 (0.92), Shuttle EPST at 0x378 mode 2 (PS/2) dly 1 nice 0 sg 16 [4294719.954000] scsi0 : epst [4294719.998000] Vendor: HP Model: C5190A Rev: 3740 [4294719.998000] Type: Processor ANSI SCSI revision: 02 [4294720.009000] Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 3 that talk to me that the scanner was succesfully detected!! After have changed the permission of the scanner i succesfully detected the scanner with sane-find-scanner!!! thanks a lot for the help!!! Marco
_______________________________________________
Linux-parport mailing list
Linux-parport <at> lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-parport

Gmane