LX-300+ parallel port

Forum rules
Before you post please read this

LX-300+ parallel port

Postby average_user on Mon Nov 12, 2012 9:02 am

Hello,
I have problems with printer EPSON LX-300+ connected to parallel port. I do not know what's wrong. My English is basic, so I apologize for the brevity.

I'm running:

Kernel : Linux 3.2.0-23-generic (i686)
Compiled : #36-Ubuntu SMP Tue Apr 10 20:41:14 UTC 2012
C Library : Unknown
Default C Compiler : GNU C Compiler version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
Distribution : Linux Mint 13 Maya
Desktop Environment : Cinnamon

I have found this "DebuggingPrintingProblems" page: https://wiki.ubuntu.com/DebuggingPrintingProblems#Parallel_port_printer

Parallel port printer
1. Make sure that the printer is connected to your system and powered on.
2. Open a terminal/console and check if the lp, ppdev, and parport_pc kernel modules are loaded:
$ lsmod | grep lp
$ lsmod | grep ppdev
$ lsmod | grep parport_pc
3. Check if the kernel detected the parallel port during bootup:
$ dmesg | grep par 
4. Check if the device files of the parallel port(s) are created and have the correct permissions and ownerships:
$ ls -l /dev/lp* /dev/parport* 
5. Check if the printer auto-detection result appears in the kernel's virtual file system:
$ ls -l /proc/sys/dev/parport/parport*/autoprobe* 
$ sudo cat /proc/sys/dev/parport/parport*/autoprobe* 
6. Find out if your printer gets detected by CUPS:
$ lpinfo -v
7. Run the parallel port CUPS backend separately, once with standard user privileges and once as root:
$ /usr/lib/cups/backend/parallel 
$ sudo /usr/lib/cups/backend/parallel 
8. Attach the output of the above commands to the bug report.


That is what came out:

Code: Select all
$ lsmod | grep lp
drm_kms_helper         45466  1 radeon
drm                   197692  5 radeon,ttm,drm_kms_helper
lp                     17455  0
parport                40930  3 ppdev,parport_pc,lp
$ lsmod | grep ppdev
ppdev                  12849  0
parport                40930  3 ppdev,parport_pc,lp
$ lsmod | grep parport_pc
parport_pc             32114  1
parport                40930  3 ppdev,parport_pc,lp
$ dmesg | grep par
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] vt handoff: transparent VT on vt#7
[    0.245531] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[   16.474889] parport_pc 00:09: reported by Plug and Play ACPI
[   16.474961] parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
[   17.144966] ppdev: user-space parallel port driver
[   17.265931] parport0: Printer, EPSON LX-300+
[   17.268528] lp0: using parport0 (interrupt-driven).
$ ls -l /dev/lp* /dev/parport*
crw-rw---- 1 root lp  6, 0 lis 12 13:10 /dev/lp0
crw-rw---- 1 root lp 99, 0 lis 12 13:10 /dev/parport0
$ ls -l /proc/sys/dev/parport/parport*/autoprobe*
-r--r--r-- 1 root root 0 lis 12 13:13 /proc/sys/dev/parport/parport0/autoprobe
-r--r--r-- 1 root root 0 lis 12 13:13 /proc/sys/dev/parport/parport0/autoprobe0
-r--r--r-- 1 root root 0 lis 12 13:13 /proc/sys/dev/parport/parport0/autoprobe1
-r--r--r-- 1 root root 0 lis 12 13:13 /proc/sys/dev/parport/parport0/autoprobe2
-r--r--r-- 1 root root 0 lis 12 13:13 /proc/sys/dev/parport/parport0/autoprobe3
$ sudo cat /proc/sys/dev/parport/parport*/autoprobe*
CLASS:PRINTER;
MODEL:LX-300+;
MANUFACTURER:EPSON;
DESCRIPTION:EPSON LX-300+;
COMMAND SET:ESCP9,PRPII9,BDC,D4;
$ lpinfo -v
network ipp
network ipps
network http
network beh
network ipp14
network https
network lpd
network socket
$ /usr/lib/cups/backend/parallel 
$ sudo /usr/lib/cups/backend/parallel
direct parallel:/dev/lp0 "EPSON LX-300+" "EPSON LX-300+ LPT #1" "MFG:EPSON;CMD:ESCP9,PRPII9,BDC,D4;MDL:LX-300+;CLS:PRINTER;DES:EPSON LX-300+;" ""
$


I'm not very experienced and I do not know what's wrong. Thank you in advance for your help.
User avatar
average_user
Level 1
Level 1
 
Posts: 6
Joined: Sat Jun 30, 2012 4:01 am

Linux Mint is funded by ads and donations.
 

Re: LX-300+ parallel port

Postby cwsnyder on Mon Nov 12, 2012 10:09 am

It looks like you need to issue this command to fix your problem:
Code: Select all
chmod 0700 /usr/lib/cups/backend/parallel
Reference this thread on the Slitaz forum: http://vanilla.slitaz.org/index.php?p=/ ... in-cups/p1
LMDE Mate 64-bit, LM16 Mate 64-bit
Debian Xfce 64-bit, Xubuntu 13.10 64-bit, Xubuntu Trusty Tahr 64-bit, Antergos Xfce 64-bit, PCLinuxOS LXDE 64-bit
cwsnyder
Level 6
Level 6
 
Posts: 1039
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: LX-300+ parallel port

Postby average_user on Mon Nov 12, 2012 12:04 pm

Thank you for the quick response. Only when I run nautilus via the console with the command sudo I could change the permissions for writing and reading. Unfortunately it did not work. I followed the link and I still can not get "direct parallel :/ dev/lp0". extract command "lpinfo -v" looks like this:

Code: Select all
$  lpinfo -v
network http
network ipps
network ipp14
network https
network smb
network ipp
network lpd
network beh
network socket
direct hp
direct hpfax
User avatar
average_user
Level 1
Level 1
 
Posts: 6
Joined: Sat Jun 30, 2012 4:01 am

Re: LX-300+ parallel port

Postby cwsnyder on Mon Nov 12, 2012 1:45 pm

average_user wrote:Thank you for the quick response. Only when I run nautilus via the console with the command sudo I could change the permissions for writing and reading. Unfortunately it did not work. I followed the link and I still can not get "direct parallel :/ dev/lp0".
Okay, why are you looking to get the exact /dev/lp0 instead of a device which will connect through cups and a print spool?
LMDE Mate 64-bit, LM16 Mate 64-bit
Debian Xfce 64-bit, Xubuntu 13.10 64-bit, Xubuntu Trusty Tahr 64-bit, Antergos Xfce 64-bit, PCLinuxOS LXDE 64-bit
cwsnyder
Level 6
Level 6
 
Posts: 1039
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: LX-300+ parallel port

Postby average_user on Mon Nov 12, 2012 1:56 pm

Probably I'm wrong. I'm really a novice. I thought that lp0 must be in the list of cups that can communicate with a parallel port. By that I mean a list of command "lpinfo -v"
User avatar
average_user
Level 1
Level 1
 
Posts: 6
Joined: Sat Jun 30, 2012 4:01 am

Re: LX-300+ parallel port

Postby cwsnyder on Mon Nov 12, 2012 2:33 pm

The main problem I spotted when I went through your trouble-shooting list was that your ordinary user could not access the printer by /usr/lib/cups/backend/parallel , which was what I was attempting to fix. The command should probably be
Code: Select all
sudo chmod 0777 /usr/lib/cups/backend/parallel
to shotgun it, because you still don't seem to have the correct permissions set. After doing the above, would you please enter the following after a reboot, to see if I at least got that right?
Code: Select all
$ /usr/lib/cups/backend/parallel
Then see what you get with the lpinfo -v output?
LMDE Mate 64-bit, LM16 Mate 64-bit
Debian Xfce 64-bit, Xubuntu 13.10 64-bit, Xubuntu Trusty Tahr 64-bit, Antergos Xfce 64-bit, PCLinuxOS LXDE 64-bit
cwsnyder
Level 6
Level 6
 
Posts: 1039
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: LX-300+ parallel port

Postby average_user on Mon Nov 12, 2012 4:36 pm

Code: Select all
$ sudo chmod 0777 /usr/lib/cups/backend/parallel
[sudo] password for ****:
 $


reboot

Code: Select all
 /usr/lib/cups/backend $ ls -l
celkem 676
-rwxr-xr-x 1 root root   7250 čec  6 14:16 beh
-rwxr-xr-x 1 root root 128900 bře 21  2012 bluetooth
-rwxr--r-- 3 root root  18056 srp 20 16:07 dnssd
-rwxr-xr-x 1 root root  17976 čec 10 10:39 hp
-rwxr-xr-x 1 root root   9042 čec 10 10:37 hpfax
-rwxr--r-- 5 root root  63484 srp 20 16:07 http
-rwxr--r-- 5 root root  63484 srp 20 16:07 https
-rwxr--r-- 5 root root  63484 srp 20 16:07 ipp
-rwxr--r-- 5 root root  63484 srp 20 16:07 ipps
-rwxr--r-- 2 root root  46968 srp 20 16:07 ipp14
-rwxr--r-- 2 root root  38704 srp 20 16:07 lpd
-rwxr--r-- 3 root root  18056 srp 20 16:07 mdns
-rwxrwxrwx 1 root root  17960 kvě 18 10:03 parallel
-rwxr-xr-x 1 root root  13832 kvě 18 10:03 serial
lrwxrwxrwx 1 root root     21 čen  9 00:52 smb -> ../../../bin/smbspool
-r-xr-xr-x 2 root root  22216 srp 20 16:07 snmp
-r-xr-xr-x 2 root root  30448 srp 20 16:07 socket
-r-xr--r-- 2 root root  30416 srp 20 16:07 usb



Code: Select all
$  lpinfo -v
network ipps
network http
network https
network socket
network ipp14
network ipp
network lpd
network beh
network dnssd://EPSON%20Epson%20Stylus%20Office%20BX610FW%20%40%20MacBook%20(alina%20humel)._ipp._tcp.local/cups
network dnssd://HP%20LaserJet%206L%20%40%20MacBook%20(alina%20humel)._ipp._tcp.local/cups
network smb
direct hp
direct hpfax


Thank you for your patience.
User avatar
average_user
Level 1
Level 1
 
Posts: 6
Joined: Sat Jun 30, 2012 4:01 am

Re: LX-300+ parallel port

Postby AlbertP on Tue Nov 13, 2012 4:16 am

Please install system-config-printer-gnome from the repository and run system-config-printer: there you can click Add, and probably see your parallel port or printer at the left.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6519
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: LX-300+ parallel port

Postby average_user on Tue Nov 13, 2012 6:33 am

Please install system-config-printer-gnome from the repository and run system-config-printer: there you can click Add, and probably see your parallel port or printer at the left.


"system-config-printer-gnome" I already had installed. I have not seen parallel port or printer. Thank you for your willingness.
User avatar
average_user
Level 1
Level 1
 
Posts: 6
Joined: Sat Jun 30, 2012 4:01 am

Linux Mint is funded by ads and donations.
 

Return to Printers & Scanners

Who is online

Users browsing this forum: Google [Bot] and 1 guest