Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
Thread Tools Display Modes
Old August 28th, 2009   #41
messelink
Spilled the Beans
 
Join Date: Apr 2007
Beans: 13
Re: HP Scanjet 5100C / ppscsi in Hardy

Thanks a lot all for the good work!

Some small typos:
Quote:
Originally Posted by haydnc View Post
Download the updated patch file that iadegesso has put together. It is called ppscsi-patch-2_6_27up.tar.gz and can be found on iadegesso's webpage
[..]
tar zxvf ppscsi-patch-2_6_27up.tar.gz
[..]
sudo cp ppscsi.ko epst.ko /lib/modules/`uname -r`/kernel/drivers/parport
And you might need to change the group of the node in /dev to scanner. After you load the epst.ko you should do a "dmesg" to see to what node it is bound to. You should see something like [579138.038126] scsi 6:0:0:0: Attached scsi generic sg2 type 3, which means your scanner is at /dev/sg2. Then you do a sudo chown :scanner /dev/sg2 . I don't know if this is persistent after a reboot though...

Last edited by messelink; August 28th, 2009 at 12:41 PM..
messelink is offline   Reply With Quote
Old August 28th, 2009   #42
haydnc
A Carafe of Ubuntu
 
Join Date: Jun 2007
Location: Auckland, New Zealand
Beans: 98
Ubuntu 9.10 Karmic Koala
Re: HP Scanjet 5100C / ppscsi in Hardy

Thanks messelink. I was obviously having a worse typing day than I thought. I've edited my post (again) to fix the remaining errors.

I've not had a chance to try this out yet - my scanner is not set up at the moment. Has anyone actually given it a go with the updated instructions who can confirm that it works?
haydnc is offline   Reply With Quote
Old September 2nd, 2009   #43
iadegesso
First Cup of Ubuntu
 
Join Date: Jun 2009
Location: Italy - Milan
Beans: 5
Ubuntu 8.04 Hardy Heron
Re: HP Scanjet 5100C / ppscsi in Hardy

hi there, I've found a solution for scanner ownership.
Quote:
Originally Posted by messelink View Post
sudo chown :scanner /dev/sg2
is not a permanent solution because it is lost on reboot. Also, while rebooting, the device name may change, so this scripting command is unhelpful.

You must write an appropriate udev rule in the file /etc/udev/rules.d/45-libsane.rules:

SUBSYSTEM=="scsi_generic",ATTRS{type}=="3", NAME="%k", SYMLINK="scanner%n", MODE="0777", GROUP="scanner"

A more detailed description can be found on my website at http://www.iadegesso.netsons.org/pps...pscsisoluzione in note 2.

First of all, however, do not forget to execute commands
Quote:
Originally Posted by haydnc View Post
Code:
sudo addgroup scanner
sudo adduser <your username here> scanner
iadegesso is offline   Reply With Quote
Old September 29th, 2009   #44
haydnc
A Carafe of Ubuntu
 
Join Date: Jun 2007
Location: Auckland, New Zealand
Beans: 98
Ubuntu 9.10 Karmic Koala
Re: HP Scanjet 5100C / ppscsi in Hardy

For what it is worth I've verified that everything up to this point works in 9.04 except the last step provided by iadegesso, and that is only because I've not had to reboot my machine yet.

For those who love the step by step instructions or who have problems with anything so far let us know.. I'll keep on trying to help as long as I still have my scanner.
haydnc is offline   Reply With Quote
Old September 30th, 2009   #45
Corsu
First Cup of Ubuntu
 
Join Date: Jul 2009
Location: France
Beans: 3
Ubuntu 9.04 Jaunty Jackalope
Re: HP Scanjet 5100C / ppscsi in Hardy

Hi guys,

I'm running ubuntu 9.04 and the instructions from haydnc worked well.
But for sane to find & detect my Scanjet 5100c I had to do a chmod 777 /dev/sg4.
Did someone tried the udev rule method with success with jaunty ?

And finally Great thanks to all the contributors of this post !
Corsu is offline   Reply With Quote
Old September 30th, 2009   #46
haydnc
A Carafe of Ubuntu
 
Join Date: Jun 2007
Location: Auckland, New Zealand
Beans: 98
Ubuntu 9.10 Karmic Koala
Re: HP Scanjet 5100C / ppscsi in Hardy

I tested the solution provided by iadegesso successfully last night.

For those wanting the step by step:
Code:
gksudo gedit /etc/udev/rules.d/45-libsane.rules
Paste in the following:
Code:
SUBSYSTEM=="scsi_generic",ATTRS{type}=="3",NAME="%k",SYMLINK="scanner%n",MODE="0777",GROUP="scanner"
Save and exit the file.

Please note, as stated by iadegesso below this will only work if you've already followed the earlier instructions for adding a group called scanner then adding yourself to that group. There are instructions for doing this about 3 posts up.

The really interesting thing is that this could all change in a month when Karmic Koala is released. We know it works for Jaunty - if anyone is brave enough to install the beta when it lands later today and see if this still works we'd love to hear about it.

Otherwise things'll probably go back on hold until I've gotten 9.10 installed on my machine again.

Last edited by haydnc; September 30th, 2009 at 11:58 PM..
haydnc is offline   Reply With Quote
Old October 26th, 2009   #47
messelink
Spilled the Beans
 
Join Date: Apr 2007
Beans: 13
Re: HP Scanjet 5100C / ppscsi in Hardy

If you are getting an error saying device not found when doing modprobe epst, before you try anythig else, make sure your scanner is plugged in...

Ahem... =P

Thanks for the good work guys, keep it up!

(No, I haven't tried Karmic yet but I'd love to hear if someone has)
messelink is offline   Reply With Quote
Old October 26th, 2009   #48
haydnc
A Carafe of Ubuntu
 
Join Date: Jun 2007
Location: Auckland, New Zealand
Beans: 98
Ubuntu 9.10 Karmic Koala
Re: HP Scanjet 5100C / ppscsi in Hardy

Depending on how organised I am I might be able to provide an answer to how well this works under Karmic next week (after the official release). Can't promise anything though as I'm rarely in a hugh rush to go through the upgrade process.
haydnc is offline   Reply With Quote
Old November 6th, 2009   #49
Younio
First Cup of Ubuntu
 
Join Date: Nov 2009
Beans: 1
Re: HP Scanjet 5100C / ppscsi in Hardy

^^^

Hello everyone,
Thanks to this forum I have successfully got working my printer under Jounty, but there is a problem with Karmic release.
I haven't got time to wait for haydnc, so I tried it myself in Karmic.
Everything went well like in Jaunty, except this command:
Quote:
Originally Posted by haydnc View Post
Code:
sudo modprobe epst
When I type the command, it gets me empty line, like its processing something. When I try to close the terminal it says that there is a process running. Then after about 2 hours i get this message:
Code:
FATAL: Error inserting epst (/lib/modules/2.6.31-14-generic/kernel/drivers/parport/epst.ko): No such device
Any ideas what could be causing this?

Any help would be appreciated. : 7

Last edited by Younio; November 6th, 2009 at 11:38 AM..
Younio is offline   Reply With Quote
Old November 8th, 2009   #50
haydnc
A Carafe of Ubuntu
 
Join Date: Jun 2007
Location: Auckland, New Zealand
Beans: 98
Ubuntu 9.10 Karmic Koala
Re: HP Scanjet 5100C / ppscsi in Hardy

Well I can confirm that as Younio has said there is something not right with epst in karmic.

I've not been patient enough to leave the modprobe running so I don't know if I'm going to get the same error he has reported but I can confirm that I get the same blank line when running modprobe epst.

Running make definitely generates all the files that it should.

There is an 'error' during the build process (see code below) however once more I'm not enough of a programmer to work out if it's the cause of epst no longer working as it should.

Code:
make -C /lib/modules/`uname -r`/build M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic'
  CC [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/ppscsi.o
/home/haydnc/build/ppscsi/ppscsi-beta2/ppscsi.c: In function ‘ppsc_cleanup’:
/home/haydnc/build/ppscsi/ppscsi-beta2/ppscsi.c:849: warning: assignment from incompatible pointer type
/home/haydnc/build/ppscsi/ppscsi-beta2/ppscsi.c: In function ‘ppsc_detect’:
/home/haydnc/build/ppscsi/ppscsi-beta2/ppscsi.c:1192: warning: assignment from incompatible pointer type
  CC [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/t348.o
  CC [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/t358.o
  CC [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/onscsi.o
  CC [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/epsa2.o
  CC [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/epst.o
  CC [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/vpi0.o
  CC [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/sparcsi.o
  Building modules, stage 2.
  MODPOST 8 modules
  CC      /home/haydnc/build/ppscsi/ppscsi-beta2/epsa2.mod.o
  LD [M]  /home/haydnc/builde/ppscsi/ppscsi-beta2/epsa2.ko
  CC      /home/haydnc/build/ppscsi/ppscsi-beta2/epst.mod.o
  LD [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/epst.ko
  CC      /home/haydnc/build/ppscsi/ppscsi-beta2/onscsi.mod.o
  LD [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/onscsi.ko
  CC      /home/haydnc/build/ppscsi/ppscsi-beta2/ppscsi.mod.o
  LD [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/ppscsi.ko
  CC      /home/haydnc/build/ppscsi/ppscsi-beta2/sparcsi.mod.o
  LD [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/sparcsi.ko
  CC      /home/haydnc/build/ppscsi/ppscsi-beta2/t348.mod.o
  LD [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/t348.ko
  CC      /home/haydnc/build/ppscsi/ppscsi-beta2/t358.mod.o
  LD [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/t358.ko
  CC      /home/haydnc/build/ppscsi/ppscsi-beta2/vpi0.mod.o
  LD [M]  /home/haydnc/build/ppscsi/ppscsi-beta2/vpi0.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic
For those programmers out there, who've been keen/brave enough to upgrade to karmic, the two errors above are lines 849 of ppscsi.c (the line in red):
Code:
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,24)
cmd->sdb.table.nents = 0;
cmd->sdb.table.sgl = (char *) cmd->sense_buffer;
cmd->sdb.length = sizeof(cmd->sense_buffer);
and line 1192:
Code:
INIT_WORK(&pha->wq, ppsc_tq_int);
If anyone has any ideas on how to get this working again, please speak up.


Edit: Confirmed I get that same error message:
Code:
FATAL: Error inserting epst (/lib/modules/2.6.31-14-generic/kernel/drivers/parport/epst.ko): No such device
Anyone know why? Or anyone out there who found a work around?.

Last edited by haydnc; November 9th, 2009 at 12:11 AM..
haydnc is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:19 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry