FS#20396 - [cups] doesn't show serial ports

Attached to Project: Arch Linux
Opened by Maxwell Draven (Ravenman) - Friday, 06 August 2010, 23:13 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 14 August 2010, 10:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I'm trying to install one serial printer, but CUPS doesn't show the serial port, but I can see the serial port with the command "ls /dev/ttyS*"

I tried with one Knoppix live CD in the same machine, and I can see the serial port through CUPS.

Additional info:
* package version(s)

cups 1.4.4-1

* config and/or log files etc.


Steps to reproduce:

Try to install one serial printer through CUPS.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 14 August 2010, 10:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  fix applied in 1.4.4-3
Comment by Andreas Radke (AndyRTR) - Saturday, 07 August 2010, 14:09 GMT
increase cups logfile verbosity and tell us what's in there.
Comment by Leonid Isaev (lisaev) - Saturday, 07 August 2010, 22:08 GMT
What does "lsmod | grep lp" show?
Comment by Maxwell Draven (Ravenman) - Monday, 09 August 2010, 14:01 GMT
@Andreas: I'm attaching the /var/log/cups/error_log file.
   error_log (44.3 KiB)
Comment by Maxwell Draven (Ravenman) - Monday, 09 August 2010, 14:04 GMT
@Leonid: This is the outcome from the command:

drm_kms_helper 21512 1 i915
drm 131562 3 i915,drm_kms_helper
lp 6684 0
parport 25403 3 ppdev,parport_pc,lp
i2c_core 15144 5 i915,drm_kms_helper,drm,i2c_algo_bit,i2c_i801
Comment by Leonid Isaev (lisaev) - Monday, 09 August 2010, 22:38 GMT
OK, so you have the module loaded. Also, your logs show no relevant errors.
What are the permissions on your /dev/ttyS{0-3}? Are you in the group uucp?
Perhaps this will help: http://ubuntuforums.org/showthread.php?t=116289...
Comment by Maxwell Draven (Ravenman) - Wednesday, 11 August 2010, 23:59 GMT
@Leonid:This is the outcome from the command ls -l /dev/ttyS* (before changes):

crw-rw---- 1 root uucp 4, 64 Aug 11 18:07 /dev/ttyS0
crw-rw---- 1 root uucp 4, 65 Aug 11 18:07 /dev/ttyS1
crw-rw---- 1 root uucp 4, 66 Aug 11 18:07 /dev/ttyS2
crw-rw---- 1 root uucp 4, 67 Aug 11 18:07 /dev/ttyS3

This is the outcome from the command ls -l /usr/lib/cups/backend/serial (before changes):

-r-xr-xr-x 1 root root 26800 Aug 9 13:58 /usr/lib/cups/backend/serial

Yes, I have added my user to the uucp group.

I followed the instructions from the link and I can see the serial port through CUPS right now. Thanks, Leonid.

@Andreas: Can you add the changes mentioned in the link to the default Arch Linux structure, please?
Comment by Andreas Radke (AndyRTR) - Thursday, 12 August 2010, 07:23 GMT
We don't have the /usr/lib/cups/backend-available symlinks. that must be Debian/Ubuntu specific. It's not part of upstream vanilla builds.
Comment by Leonid Isaev (lisaev) - Thursday, 12 August 2010, 14:54 GMT
I agree, /usr/lib/cups/backend-available symlinks are a Debian thing.
However, isn't it an issue with 555 permissions on /usr/lib/backend/serial? For instance, on a redhat machine it is 700 root:root. See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516945
Comment by Andreas Radke (AndyRTR) - Thursday, 12 August 2010, 15:50 GMT
Maxwell, can you please confirm, if chmod 700 /usr/lib/cups/backend/serial if the fix for us? It's in Fedoras spc file but not in Debians ChangeLog(though they use a slightly different doubled backend for usblp and libusb).
Comment by Maxwell Draven (Ravenman) - Thursday, 12 August 2010, 18:47 GMT
@Andreas: Yes, the fix can be chmod 700 /usr/lib/cups/backend/serial. I applied the chmod and my system shows this right now:

[root@researchlinux ~]# lpinfo -v
network ipp
network http
network lpd
direct scsi
network smb
network socket
network beh
serial serial:/dev/ttyS0?baud=115200
direct parallel:/dev/lp0

A lot of thanks to all for your collaboration and interest.

Loading...