Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sane driving me INsane: /dev/ nodes for scanner [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Tue Feb 04, 2014 10:46 pm    Post subject: Sane driving me INsane: /dev/ nodes for scanner [solved] Reply with quote

Well, I have a problem that I assume exists between the keyboard and the chair. I have an hp Officejet printer/scanner. I can print fine after I change the group and mod of a node (specifically, /dev/bus/usb/002/*)

Now, the problem is that I need to scan a document, however the result of sane-find-scanner:

Code:
# sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.
<stuff>
found USB scanner (vendor=0x03f0 [HP], product=0x2d12 [Officejet 4500 G510g-m]) at libusb:002:005
<stuff>
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.


If I do that (run scanimage -L):

Code:
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).


I assume this is because the program is looking for a /dev/ node that udev would have created but does not. I would appreciate it if someone could point me in the direction of what this node should be and how to create it. Thanks.

EDIT: *Facepalem* these things tend to work better when you install the driver. For anyone who may be interested, it appears you can build hplip without udev using the nodeps option. Unsupported, obviously.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.


Last edited by The Doctor on Wed Feb 05, 2014 4:57 am; edited 1 time in total
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 1:59 am    Post subject: Reply with quote

I believe so. It basically includes everything, I haven't tried to streamline it.

Code:
SANE_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp -kvs40xx -mustek_usb2 -pnm"

_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7041
Location: Saint Amant, Acadiana

PostPosted: Wed Feb 05, 2014 2:24 am    Post subject: Reply with quote

Alright, (sorry for deleting my post), is correct driver enabled also in /etc/sane.d/dll.conf ?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 2:27 am    Post subject: Reply with quote

Looks like it is. All the hp entries are on, incliding support for the hplip driver, which is installed with scanner support.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7041
Location: Saint Amant, Acadiana

PostPosted: Wed Feb 05, 2014 2:31 am    Post subject: Reply with quote

Methinks everything does not mean your scanner is included, I had to get the driver from Brother and install it by hand (Gentoo wasn't supported).

http://hplipopensource.com/hplip-web/models/officejet/index.html
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 2:45 am    Post subject: Reply with quote

Looks like I have the driver. It has been included since hplip 3.10 and I have 2.12 installed.

Sorry for the lack of clarity in my original post, but the I should have said udev isn't creating a dev entry (or anything else) because it isn't installed. I'm using mdev, and trying to do it by hand.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7041
Location: Saint Amant, Acadiana

PostPosted: Wed Feb 05, 2014 2:54 am    Post subject: Reply with quote

You may be better off using it over ethernet, if feasible, creating devices by hand has always been a little bit mystery for me, how did you figure what minor to use?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 3:07 am    Post subject: Reply with quote

Quote:
You may be better off using it over ethernet, if feasible, creating devices by hand has always been a little bit mystery for me, how did you figure what minor to use?


Hence the insanity. Unfortunately, Ethernet isn't an option. The fall back option is to reboot into another OS (windows) which isn't ideal.

Thanks for the help anyway. I appreciate it.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7041
Location: Saint Amant, Acadiana

PostPosted: Wed Feb 05, 2014 3:10 am    Post subject: Reply with quote

I'm still curious. First, I must admit I never used a locally connected scanner, I'm big network fan. In case of printer/scanner, are they sharing same USB device node or there are two separate nodes? A good liveCD may give you good clues, BTW.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 3:17 am    Post subject: Reply with quote

Jaglover wrote:
I'm still curious. First, I must admit I never used a locally connected scanner, I'm big network fan. In case of printer/scanner, are they sharing same USB device node or there are two separate nodes? A good liveCD may give you good clues, BTW.


It looks to me like they are, but then again /dev is kind of like a magic box for me. About all I know how to do is fix a few permissions that are improperly set. Great idea about the live meda. I'm going to try that right now.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7041
Location: Saint Amant, Acadiana

PostPosted: Wed Feb 05, 2014 3:24 am    Post subject: Reply with quote

Oh, and you can stop quoting my posts, I will not delete them. I deleted my first reply because I realized it was useless and I didn't want your thread be removed from unanswered.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 3:53 am    Post subject: Reply with quote

Wierd. A trip through mint latter, sane-find-scanner fails but scanimage -L works. I can't seem to make the same settings work in gentoo, at least not yet. At least I know I have the right driver installed.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 4:15 am    Post subject: Reply with quote

More details. It seems that my printer does indeed need the hpaio backend and the challenge now seems to be that I have to configure it. easer said than done...
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 4:36 am    Post subject: Reply with quote

ahh, embarrassing moment. Apparently, hpiao isn't installed even if the scanner use flag is set unless -minimal is set for hplip so the driver seems to be missing.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2557

PostPosted: Wed Feb 05, 2014 5:00 am    Post subject: Reply with quote

I had to use some brute forced to install the driver. I had to use --nodeps to do it, but other than that a clean solution. Thanks for the help, I wouldn't have though to use Mint if you hadn't suggested it.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7041
Location: Saint Amant, Acadiana

PostPosted: Wed Feb 05, 2014 5:03 am    Post subject: Reply with quote

Hey, I'm glad you got it sorted!
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum