LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2013, 08:22 AM   #16
lifeboy
LQ Newbie
 
Registered: Feb 2009
Location: Stellenbosch, South Africa
Distribution: Ubuntu, Lubuntu, Ubuntu-LTSP, FreeBSD, PC-BSD
Posts: 16

Rep: Reputation: 0
Question


Quote:
Originally Posted by mesiol View Post
i've read the man page, but net.conf does not contain any entry, but scanning works well. And that's the reason for my question, where is this information stored if not in net.conf

As mentioned, the scanner works and at the moment i find all this very funny. I try to contact hplip team to clear this.
Did you ever get an answer for this question?

I have a Lexmark Prospect 205 Scanner/Fax/Printer which works perfectly for network scanning from an Ubuntu 11.10 machine, but not from 12.10 and neither machine has any network scanner information stored in the sane-net config files or anywhere else that I can find.

Last edited by lifeboy; 02-07-2013 at 08:25 AM.
 
Old 02-07-2013, 08:34 AM   #17
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by lifeboy View Post
Did you ever get an answer for this question?

I have a Lexmark Prospect 205 Scanner/Fax/Printer which works perfectly for network scanning from an Ubuntu 11.10 machine, but not from 12.10 and neither machine has any network scanner information stored in the sane-net config files or anywhere else that I can find.
Well, you should provide more information, does printing work? Please check the groups, in a terminal (as the user who wants to use the scanner) execute the
Code:
groups
command. You should be at least member of lp or lpadmin and scanner. Did you use the
Code:
sudo scanimage -L
command? Did you compare the settings in Ubuntu 11.10 and 12.10?

Markus
 
Old 02-08-2013, 07:45 AM   #18
lifeboy
LQ Newbie
 
Registered: Feb 2009
Location: Stellenbosch, South Africa
Distribution: Ubuntu, Lubuntu, Ubuntu-LTSP, FreeBSD, PC-BSD
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by markush View Post
Well, you should provide more information
Hehe, I'm somewhat in the dark as too how the Lexmark network scanning works and the scanning documentation I have found was not helpful (my experience is very similar to mesiol's in that I cannot find any configuration information in the "standard" locations using tools like sane, sane-find-scanner, grep)


Quote:
Originally Posted by markush View Post
does printing work? Please check the groups, in a terminal (as the user who wants to use the scanner) execute the
Code:
groups
command. You should be at least member of lp or lpadmin and scanner.
Printing works.

Yes, I did check the groups.
Code:
$ groups
roland adm sudo lpadmin sambashare
There is no membership of the group "scanner" on any of the machines that can scan or that cannot scan.

Quote:
Originally Posted by markush View Post
Did you use the
Code:
sudo scanimage -L
command?
Code:
$ sudo scanimage -L
device `lexmarklegacy_1_0_0:libnet/00200075694B' is a Lexmark Pro200-S500 Series Scanner
Some more info:
Code:
$ sudo scanimage -h
Usage: scanimage [OPTION]...

<standard help lines cut>
scanimage: open of device lexmarklegacy_1_0_0:libnet/00200075694B failed: Error during device I/O
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    lexmarklegacy_2_0_0:libnet/00200075694B
    lexmarklegacy_1_0_0:libnet/00200075694B
There are two scanners defined and the very first time after installed the network scanner driver that I attempted a scan with xsane I was prompted to select a scanner, but not again. On the Ubuntu 11.10 machines though I am prompted to select a scanner each time before scanning.

Furthermore, testing the backend shows that the scanner I/O fails, but I have no idea why or where to look for the configuration option or settings.

Code:
$ sudo scanimage -T 
scanimage: open of device lexmarklegacy_1_0_0:libnet/00200075694B failed: Error during device I/O

Quote:
Originally Posted by markush View Post
Did you compare the settings in Ubuntu 11.10 and 12.10?
Technically, yes, since (as I mentioned in my post) I cannot find any settings on either machine, so there's nothing to compare.

I did a search in all my files for a config:

Code:
$ grep -r lexmarklegacy_1_0_0:libnet\/00200075694B /home/roland/
grep: /home/roland/.viminfo: Permission denied
Binary file /home/roland/.config/chromium/Default/History Index 2013-02 matches
Binary file /home/roland/.config/chromium/Default/History matches
Binary file /home/roland/.cache/chromium/Default/Cache/data_1 matches
Binary file /home/roland/.thunderbird/19r9wau9.default/Cache/_CACHE_003_ matches

$ sudo grep -r lexmarklegacy_1_0_0:libnet\/00200075694B /usr
(no results)

sudo grep -r lexmarklegacy_1_0_0:libnet\/00200075694B /var
/var/log/auth.log:Feb  8 11:45:41 Matt-HP sudo:   roland : TTY=pts/1 ; PWD=/home/roland ; USER=root ; COMMAND=/usr/bin/scanimage -d lexmarklegacy_1_0_0:libnet/00200075694B
/var/log/auth.log:Feb  8 12:00:48 Matt-HP sudo:   roland : TTY=pts/1 ; PWD=/home/roland ; USER=root ; COMMAND=/usr/bin/scanimage --help -d lexmarklegacy_1_0_0:libnet/00200075694B
/var/log/auth.log:Feb  8 13:18:56 Matt-HP sudo:   roland : TTY=pts/1 ; PWD=/home/roland ; USER=root ; COMMAND=/bin/grep -r lexmarklegacy_1_0_0:libnet/00200075694B /usr
/var/log/auth.log:Feb  8 14:46:31 Matt-HP sudo:   roland : TTY=pts/1 ; PWD=/home/roland ; USER=root ; COMMAND=/bin/grep -r lexmarklegacy_1_0_0:libnet/00200075694B /var
So the device only appears in the the command history??

What else can I do to troubleshoot this problem?
 
Old 02-08-2013, 08:05 AM   #19
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Well, the scanimage -L command shows that the scanner is recognized by the system. That's good.

I think that it is a permission problem. Read this thread http://www.linuxquestions.org/questi...em-4175439814/ carefully.

You should add your user to the scanner group.

As of two scanners detected: if you have a laptop with an USB-webcam, this will also be recognized by sane as a scanner.

And the sane-find-scanner command does only search for USB- and SCSI-devices, not Network-devices.

Markus
 
Old 02-10-2013, 02:18 PM   #20
lifeboy
LQ Newbie
 
Registered: Feb 2009
Location: Stellenbosch, South Africa
Distribution: Ubuntu, Lubuntu, Ubuntu-LTSP, FreeBSD, PC-BSD
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by markush View Post
Well, the scanimage -L command shows that the scanner is recognized by the system. That's good.

I think that it is a permission problem. Read this thread http://www.linuxquestions.org/questi...em-4175439814/ carefully.
I worked through that and some feedback on what was mentioned there:
  1. Whether I run the xsane or scanimage command as root or myself, I get the same result. The printer/scanner briefly respond as if it is about the start scanning, but then does nothing further. Immediately the message
  2. The udev rules are as follows:
    $ sudo cat /etc/udev/rules.d/99-lexmarklegacy-10.rules
    ACTION!="add", GOTO="lexmark_custom_rules_end"
    ATTRS{idVendor}=="043d", ATTRS{idProduct}=="0142", MODE="666"
    ATTRS{idVendor}=="043d", ATTRS{idProduct}=="0150", MODE="666"
    ATTRS{idVendor}=="043d", ATTRS{idProduct}=="013f", MODE="666"
    ATTRS{idVendor}=="043d", ATTRS{idProduct}=="0151", MODE="666"
    ATTRS{idVendor}=="043d", ATTRS{idProduct}=="0116", MODE="666"
    LABEL="lexmark_custom_rules_end"
    # Lexmark
    ATTRS{idVendor}=="043d", ENV{libsane_matched}="yes"
    (I added the last two lines myself)


Quote:
You should add your user to the scanner group.
I did. And to the lp group:
Code:
$ groups roland
roland : roland adm lp sudo scanner lpadmin sambashare
 
Old 02-20-2013, 02:56 AM   #21
lifeboy
LQ Newbie
 
Registered: Feb 2009
Location: Stellenbosch, South Africa
Distribution: Ubuntu, Lubuntu, Ubuntu-LTSP, FreeBSD, PC-BSD
Posts: 16

Rep: Reputation: 0
Angry

I still have no resolution for this. Lexmark tech support (after I downloaded the driver from their site!) persistently claims that they don't have a driver for this printer/scanner for Linux. It's infuriating to say the least!

Just installed the drivers on another Ubuntu 12.04 machine this morning and the scanner worked immediately scanning over the network via wifi.

On the machines that doesn't scan I have these udev rules (which are the same as on the machines to do scan):

Code:
$ sudo ls -la /etc/udev/rules.d/99-lexmark*
lrwxrwxrwx 1 root root 56 Feb  4 13:32 /etc/udev/rules.d/99-lexmarklegacy-10.rules -> /usr/local/lexmark/legacy3/etc/99-lexmarklegacy-10.rules
lrwxrwxrwx 1 root root 54 Feb  4 13:36 /etc/udev/rules.d/99-lexmark-print-v3-10.rules -> /usr/local/lexmark/v3/etc/99-lexmark-print-v3-10.rules
lrwxrwxrwx 1 root root 60 Feb  7 19:50 /etc/udev/rules.d/99-lexmark-putil.rules -> /usr/local/lexmark/printer_utility/etc/99-lexmark-util.rules
The files are the same on the working machines and the content matches.

The file /etc/sane.d/lexmarklegacy_1_0_0.conf contains the same info on both machines:
Code:
# KLM+/United  
usb 0x043d 0x01a4 /usr/local/lexmark/legacy3/etc/lxebscan.conf "Lexmark_Pro200-S500_Series"
Also identical are:
Code:
$ cat /usr/local/lexmark/legacy3/etc/lxebscan.conf
[INTEGERS]
BGRTORGB=1
COLORCORRECT=1
ADFSIDEFLIP=0
FLATBEDSIDEFLIP=0
ADFPREVIEW=0
COMPRESSION=0
COMPRESSIONLEVEL=90
COMMANDVERSION=402
ENABLE_NPA=1
DEFAULTDPI=300
CURRENTDPI=300
COLORDEPTH=3
PREVIEW=0
SCAN_SOURCE=1

[DOUBLES]
TOPLEFTX=0.0
TOPLEFTY=0.0
BOTTOMRIGHTX=215.9
BOTTOMRIGHTY=297.0
CURRENTTLX=0.0
CURRENTTLY=0.0
CURRENTBRX=215.9
CURRENTBRY=297.0

[STRINGS]
SCLIB=/usr/local/lexmark/legacy3/lib/libScanCorrect.so.2
SCFUNC=ScanCorrect
COLORLUT=/usr/local/lexmark/legacy3/etc/lxkns09SCc0.bin
GRAYLUT=/usr/local/lexmark/legacy3/etc/lxkns09SCg0.bin
Which other rights or setting should I look for? It all seems the same.

Last edited by lifeboy; 02-20-2013 at 02:57 AM.
 
Old 04-13-2013, 01:27 AM   #22
poorboy
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
Hi there,
I try to install the same driver on a ubuntu12.10 system.
Printing won't work - as mentioned above.

One thing I pointed out is that there is an Errormessage from the printer spooler.

it is somthing with security issue in /usr/local/lexmark/v3/bin/printfilter
I think it seems to be a Problem with apparmor.

You can see the message by opening the printers setting - at printer status.

In fact I'm not an linux guru so not sure if I can find a solution.
Maybe this is an new interesting fact for you.

poorboy

Last edited by poorboy; 04-13-2013 at 05:58 AM.
 
Old 11-26-2013, 02:45 PM   #23
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Rep: Reputation: 0
Has a solution been found?

I have a similar problem. After upgrading to Debian 7 (Wheezy), my Lexmark Prospect Pro 205 no longer works. I did a fresh install to clean everything up. I called Lexmark and they were not able to tell me very much besides, "Lexmark does not support anything after Debian 6 or Ubuntu 12.04" After a little trial and error, I was able to get the printer to work, but I am still having trouble with the scanner.

I get this error message:

Failed to open device 'lexmarklegacy_1_0_0:libnet/002000A28744'evice Busy.

steven@debpaq:~$ groups
steven cdrom floppy audio dip video plugdev scanner bluetooth netdev
steven@debpaq:~$


steven@debpaq:~$ scanimage -L
device `lexmarklegacy_1_0_0:libnet/002000A28744' is a Lexmark Pro200-S500 Series Scanner
steven@debpaq:~$

teven@debpaq:~$ scanimage -T
scanimage: open of device lexmarklegacy_1_0_0:libnet/002000A28744 failed: Device busy
steven@debpaq:~$


steven@debpaq:~$ su
Password:
root@debpaq:/home/steven# scanimage-T
bash: scanimage-T: command not found
root@debpaq:/home/steven# scanimage -T
scanimage: open of device lexmarklegacy_1_0_0:libnet/002000A28744 failed: Device busy
root@debpaq:/home/steven#


steven@debpaq:~$ scanimage --debug
scanimage: open of device lexmarklegacy_1_0_0:libnet/002000A28744 failed: Device busy
steven@debpaq:~$


Any help would be much appreciated.
 
Old 11-27-2013, 03:11 AM   #24
lifeboy
LQ Newbie
 
Registered: Feb 2009
Location: Stellenbosch, South Africa
Distribution: Ubuntu, Lubuntu, Ubuntu-LTSP, FreeBSD, PC-BSD
Posts: 16

Rep: Reputation: 0
Unhappy Relly Lexmark should stop being lazy about this.

I have unpacked the .deb package and can see where some of the problems are. Some rights are not set and apparmor setting are not done. Lexmark would be able to fix this is no time, but in my country they just play dumb when you call them.

Maybe someone in the US could have their query escalated to the highest level possible and get some response? Goodness, the printer does not work in Ubuntu 12.04 either, despite their claim to the contrary!
 
Old 11-27-2013, 09:54 AM   #25
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Rep: Reputation: 0
Gently Contact Lexmark

Quote:
Originally Posted by lifeboy View Post
Maybe someone in the US could have their query escalated to the highest level possible and get some response? Goodness, the printer does not work in Ubuntu 12.04 either, despite their claim to the contrary!
I have an email for the Linux division of tech support at Lexmark. Would it be appropriate to post it here? Maybe with enough demand they will see it fit to put a little more attention to keeping their Linux drivers up to date.
 
Old 11-28-2013, 05:52 AM   #26
lifeboy
LQ Newbie
 
Registered: Feb 2009
Location: Stellenbosch, South Africa
Distribution: Ubuntu, Lubuntu, Ubuntu-LTSP, FreeBSD, PC-BSD
Posts: 16

Rep: Reputation: 0
Smile Please post it, yes!

Quote:
Originally Posted by sasciame View Post
I have an email for the Linux division of tech support at Lexmark. Would it be appropriate to post it here? Maybe with enough demand they will see it fit to put a little more attention to keeping their Linux drivers up to date.
Please do, I think all efforts will help.

We'll all be civil in our contact with them, regardless of what we feel inside, ok? :-)
 
Old 01-12-2015, 12:54 PM   #27
carlz
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by mesiol View Post
hi,

OS: CentOS 5.6

yesterday i bought a new HP network printer/scanner (OfficeJet Pro 8500). It installed correctly using hplip drivers. I can print and scan without any problem, very nice and fast device.

I did some research where the information where the device port is stored in sane, but cannot find anything. I tried to remove my old network device port for my Brother scanner, but did not find the config file where this information is stored. Neither /etc/sane.d/* nor ~/.sane/xsane/* contains this information.

Can someone point me to the right direction.

Thanks.
This thread had lots of ideas on how to get things working, but not on how to remove the brother from the list of available scanners.
I was able to solve this by removing the BRSCAN package.
I still have no idea where the configuration file lived, but this solved my problem.
 
Old 12-05-2015, 11:09 PM   #28
paul-anderson
LQ Newbie
 
Registered: Dec 2015
Distribution: solydx, sabayon, debian, etc
Posts: 1

Rep: Reputation: Disabled
fixing the problem

Quote:
Originally Posted by carlz View Post
This thread had lots of ideas on how to get things working, but not on how to remove the brother from the list of available scanners.
I was able to solve this by removing the BRSCAN package.
I still have no idea where the configuration file lived, but this solved my problem.
I had the same problem until I read your answer and I guessed what is occurring:

I was installing a new Brother T700W on a SABAYON laptop and got the issue of an old dead HP scanner not responding.
I am using the Xsane frontend to run scanning

Differently (perhaps) from what previous posters noted, a dead scanner seems to kill the process
and it seemed unable to proceed past removing the previous printer, but where was this information kept ?

Just like everyone else, I could not see where the scanner entry lived,
but taking a cue from your post I uninstalled HPLIP software I used to manage the HP device and voila,
problem solved. (I still have the printer itself installed under CUPS, I only removed the HPLIP package)

Unfortunately,
now that it has been removed I have no way to verify exactly where this problem lived,
but most certainly it was something being kept by the printer management tool (HPLIP 3.15.9).


My perception is that:
the SANE system shuffles through various related installation packages to find anything resembling a scanner
and then latches onto such and does not seem to have an upfront facility to ignore missing devices.

The crux of the issue is that if you have a package which integrates or otherwise handles any kind
of scanning capability for a device, the SANE package may discover this and gag when the device is inoperable.


Just to try and help address this embarrassing litany of misunderstanding, this will probably be my only post here.


Those of us who came here looking for the answer have had a distinct problem
with SANE and how+where it gets its list of network equipment.
(I would scrounge the code, but I have too many other things I need to be doing...)

hope this helps... cheers
 
Old 02-15-2016, 05:22 AM   #29
eocanha
LQ Newbie
 
Registered: Feb 2016
Posts: 2

Rep: Reputation: Disabled
Lightbulb [solved]

I'm having a similar problem (a ghost scanner appears and no config file seems to refere to it) and I solved it by brute force with this script:

Code:
grep -i "pontevedra" $(
 for i in $(strace -f scanimage -L 2>&1 | grep 'open(' | sed 's/^[^"]*"//' | sed 's/"[^"]*$//')
 do
  if [ -f $i ]
  then
   echo $i
  fi
 done
)
And it outputs:

Code:
/etc/opt/brother/scanner/brscan4//brsanenetdevice4.cfg:DEVICE=PontevedraBrotherColor , "DCP-9020CDW" , 0x4f9:0x2d3 , IP-ADDRESS=192.168.20.81
Explanation:

scanimage -L shows my ghost scanner as "device `brother4:net1;dev0' is a Brother PontevedraBrotherColor DCP-9020CDW", so I tried to search it by name ("pontevedra"). The script runs "scanimage -L" with strace (a tool to trace all the system calls) and filters only those calls that open files. Then it filters only "regular files" (not device files in /dev). For each file selected, greps its contents looking for the "pontevedra" string. As a result, it ends up finding a forgotten config file in /etc/opt/brother/scanner/brscan4//brsanenetdevice4.cfg which is the one referencing the ghost scanner. It might be from some proprietary scanner driver that I installed some time ago and I forgot about.

I just edited the mentioned file, removed the scanner definition (leaving the file empty now), saved and the ghost scanner is gone.

I hope the trick to be useful for someone. :-)
 
Old 05-19-2016, 05:14 PM   #30
ransur0t
LQ Newbie
 
Registered: May 2016
Posts: 4

Rep: Reputation: Disabled
Hi eocanha,

I also have a ghost scanner issue, specific to an HP all in one device. I switched ISP's, which required network subnet reconfiguration. The scanner entry for the old subnet still shows in simple scan or xsane ... I've searched all over using terminator, but can't find the corresponding config file/entry ...

I tried modifying your script for the ghost scanner (scanimage -L returns the culprit "device `hpaio:/net/Deskjet_3050_J610_series?zc=hp-printer' is a Hewlett-Packard Deskjet_3050_J610_series all-in-one"), using the string <Deskjet_3050_J610>, but the terminal does not return anything after executing the script.

I saved it as .sh file, and chmod +x. Am I doing something wrong?

Kind Regards,
 
  


Reply

Tags
sane device scanner port



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
[SOLVED] HP CM 2320 fxi scanner and sane - sudden no device detected thecarpy Linux - Hardware 3 03-23-2011 01:46 PM
usb scanner premissions issue when running sane-find-scanner vlsd Linux - Hardware 4 08-20-2009 02:20 PM
sane /dev/scanner? jeru Linux - Hardware 3 10-22-2004 09:28 PM
sane over network - can't find scanner Smerk Linux - Networking 1 07-18-2004 03:56 AM
Help with SANE, parallel scanner sb73542 Linux - Software 0 07-31-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration