LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-23-2012, 06:35 PM   #1
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
HP Officejet T45 Scanner on Ubuntu 10.04 Lucid Lynx LTS


Hey everyone,

I'm having trouble getting the scanner on my HP OfficeJet T45 to work in Ubuntu 10.04 Lucid Lynx LTS. The device is attached via a parallel port and is seen according to this dmesg output:


[ 24.487138] parport_pc 00:09: reported by Plug and Play ACPI
[ 24.487259] parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
[ 24.612857] parport0: Printer, Hewlett-Packard OfficeJet T Series
[ 24.613567] lp0: using parport0 (interrupt-driven).


I have printing setup via cups, noted in this printers.conf file entry:


<Printer Hewlett-Packard-OfficeJet-T-Series>
Info Hewlett-Packard OfficeJet T Series
Location infinite
MakeModel HP Officejet T Series hpijs, 3.10.2rc1.9
DeviceURI parallel:/dev/lp0
State Idle
StateTime 1353822635
Type 8425484
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 100 foomatic-rip-hplip
Filter application/vnd.cups-pdf 0 foomatic-rip-hplip
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>


However, when I run xsane, it does not detect any printers. Running hp-probe -bpar does not detect any printers. Of note, there is an error message from hp-probe that says: error: Unable to locate models.dat file , however the file exists at /usr/share/hplip/data/models/models.dat .

Not sure how to proceed - any advice? Thanks in advance!
 
Old 12-24-2012, 01:29 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,992

Rep: Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737
Have you added the scanner group to your userid? That might help.

Too, I believe that model is support in HPLIP -- have you tried setting it up with hp-setup (and add the scanner group)?
 
Old 12-24-2012, 02:35 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
The closest group in /etc/group is saned. Haven't messed with users/groups just yet. Instead did chmod 777 /dev/parport0 (owned by root.lp, permissions set to 777) and ran sudo sane-find-scanner -v -p only to get this output:

checking parport0... failed to open (Invalid argument)
checking parport0 (SCSI emulation)... failed to open (Device busy)

This is true even when cups is turned off.

hp-setup -bpar gives me this output:

error: No device selected/specified or that supports this functionality.


I'm pretty sure I've had this scanner working on an older Slackware (9.1?) install. I wouldn't be surprised if these newer distros have allowed parallel port functionality to break.
 
Old 12-24-2012, 05:00 PM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,992

Rep: Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737
Perhaps one of these might help (from hp-setup --help:
Code:
  Parallel:                  $ hp-setup -i /dev/parport0
  USB or parallel, using     $ hp-setup -i US12345678A
  serial number:
  USB, automatic:            $ hp-setup -i --auto 001:002
  Parallel, automatic, no    $ hp-setup -i -a -x /dev/parport0
  testpage:
  Parallel, choose device:   $ hp-setup -i -b par
I think I'd try the first example, $ hp-setup -i /dev/parport0 and, possibly, the fourth, $ hp-setup -i -a -x /dev/parport0 but I would also think about /dev/lp0 (that shows up in your first listing).

I have to admit it's been at least 20 years since I've dealt with anything parallel (and I've forgotten everything I never knew about parallel) but it seems to me that printer and the like get mapped to /dev/lp-something; the scanner may not, though, so perhaps that's why the /dev/parport0 is used above. You nay need to "walk" the port numbers, just in case; e.g., /dev/parport1 or /dev/lp1 and the like. I dunno but I remember having to do things like that.

Ubuntu may not include or even need a scanner group (Ubuntu is another one of those thing I know nothing about); in Slackware 14.0 (the newest stable release), the scanner group is 93 but that may not be relevant to your needs.

Anyway,best of luck with and best wishes for the season.

Hope this helps some.
 
Old 12-27-2012, 01:22 AM   #5
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
Thanks for your help. For whatever reason, it seems that Ubuntu 10.04 LTS has a broken version of HPLIP packaged, such that the commands above aren't recognized or in some way don't work.

So I built HPLIP using their tarball and excellent instructions for Ubuntu per their website http://hplipopensource.com/hplip-web...os/ubuntu.html , being sure to run the configure with --enable-pp-build , as per the instructions here http://hplipopensource.com/node/217 . These instructions also added my user to the lp group as you previously suggested.

Got hp-setup to finally work (and with a gui), which installed my HP Officejet T45 printer at the address hp:/par/OfficeJet_T_Series?device=/dev/parport0 (had to specify the correct driver in CUPS) and successfully prints apparently through /dev/parport0 .

hp-check demonstrates it does detect my scanner ...

device `hpaio:/par/OfficeJet_T_Series?device=/dev/parport0' is a Hewlett-Packard OfficeJet_T_Series all-in-one

... and shows no other errors (for dependencies, permissions, configuration settings).

However running xsane or hp-scan errors out with this:

Using device hpaio:/par/OfficeJet_T_Series?device=/dev/parport0
.
.
.
error: SANE: Device busy (code=3)

sudo sane-find-scanner -p -v shows (even with /dev/parport0 set to 777 permissions):

checking parport0... failed to open (Invalid argument)
checking parport0 (SCSI emulation)... failed to open (Device busy)


Not sure what to do from here. The parallel port is set to ECP mode in my BIOS. Printing through /dev/parport0 appears to work. Not sure why accessing the device from sane is causing issues.

I think the best thing LQ can do to help right now is if anyone with Ubuntu on a computer with a parallel port could run sudo sane-find-scanner -p -v and post the output relevant to the parallel port (along with Ubuntu version).

Thanks in adavnce!

Last edited by TheOneAndOnlySM; 12-27-2012 at 01:24 AM.
 
Old 12-27-2012, 01:49 AM   #6
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
attached is my hp-check.log
Attached Files
File Type: log hp-check.log (14.3 KB, 10 views)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Last Maintenance Release For Ubuntu 10.04 LTS Lucid Lynx Is Here LXer Syndicated Linux News 0 02-17-2012 10:20 AM
LXer: Ubuntu 10.04 LTS Lucid Lynx First Impressions LXer Syndicated Linux News 0 05-03-2010 02:50 PM
LXer: Ubuntu 10.04 LTS Lucid Lynx Release Candidate Is Out [See What's New] LXer Syndicated Linux News 0 04-22-2010 09:20 PM
LXer: How to upgrade to Ubuntu 10.04 LTS Lucid Lynx LXer Syndicated Linux News 0 04-06-2010 10:31 PM
LXer: Ubuntu Lucid Lynx (10.04 LTS) Alpha 3 is here LXer Syndicated Linux News 0 02-26-2010 01:00 PM


All times are GMT -5. The time now is 01:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration