[Bug 206398] New: serial printer test fails errenously
https://bugzilla.novell.com/show_bug.cgi?id=206398 Summary: serial printer test fails errenously Product: SUSE Linux 10.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: plasmahh@gmx.net QAContact: jsrain@novell.com Hi, during testing a EPSON TM-T88II printer (sadly its not supported) I discovered that when installing a serial printer (maybe its also with a lpt, but I could not test) there is the string "Hell World" send to the printer. But at least my printer, and I believe lots of others only react when a CRLF sequence is sent to the printer. So the printer does not react, which looks like it failed, but when you "echo -en \r\n > /dev/ttyS0" you get the text yast tried to send. So I suggest that yast does not only send hello world to test, but also appends CRLF. greets Dennis -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |jsmeix@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mzugec@novell.com Status|NEW |NEEDINFO Info Provider| |plasmahh@gmx.net ------- Comment #1 from jsmeix@novell.com 2006-09-21 00:30 MST ------- To clarify: Please report for each of the following tests which one does not print and which one does print: echo -en 'Hello' >/dev/ttyS0 echo -en '\rHello\r\f' >/dev/ttyS0 echo -en '\r\nHello\r\n' >/dev/ttyS0 echo -en '\r\nHello\r\n\f' >/dev/ttyS0 By the way: If your printer can print plain ASCII text and if it is sufficient for you to print only plain ASCII text, have a look at http://en.opensuse.org/SDB:Using_Your_Own_Filters_to_Print_with_CUPS -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 ------- Comment #2 from jsmeix@novell.com 2006-09-21 00:48 MST ------- Michal, I detected that /usr/lib/YaST2/bin/test_device kills all processes which may currently use the device. This may be annoying if currently a (large) print job is printed via this device. I suggest to be more polite and exit with a matching exit code if the device is currently in use e.g.: ------------------------------------------------------------------------- cat /dev/null >$2 || exit 3 ------------------------------------------------------------------------- and in case of this exit code show an appropriate message to the user, e.g. something like "the device is currently in use, wait a bit and retry later" By the way: I don't understand when /usr/lib/YaST2/bin/test_device exits with exit code 2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 ------- Comment #3 from plasmahh@gmx.net 2006-09-21 06:24 MST ------- Before sending each cmd, I have reset the printer, so as if it was freshly started... echo -en 'Hello' >/dev/ttyS0 does nothing echo -en '\rHello\r\f' >/dev/ttyS0 does nothing echo -en '\r\nHello\r\n' >/dev/ttyS0 feeds one line, prints Hello, then feeds again echo -en '\r\nHello\r\n\f' >/dev/ttyS0 feeds one line, prints Hello, then feeds again PS: Plain ascii isn't sufficient. I am currently trying to write a program to control the printer, since a printer driver isn't available. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 plasmahh@gmx.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|plasmahh@gmx.net | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 ------- Comment #4 from jsmeix@novell.com 2006-09-21 06:42 MST ------- Created an attachment (id=99322) --> (https://bugzilla.novell.com/attachment.cgi?id=99322&action=view) suggested patch for Printerlib.ycp.diff Michal, please change YaST so that it does echo -en '\r\nHello\r\n\f' >... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsmeix@novell.com |mzugec@novell.com Status|ASSIGNED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |plasmahh@gmx.net ------- Comment #5 from jsmeix@novell.com 2006-09-21 06:54 MST ------- Regarding comment #3: Does echo -en '\r\nHello\r\n\f' >/dev/ttyS0 not do a formfeed? Does echo -en '\r\nHello\r\n\f\n' >/dev/ttyS0 do a formfeed? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=206398 mzugec@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|plasmahh@gmx.net | Resolution| |FIXED ------- Comment #6 from mzugec@novell.com 2006-10-17 02:29 MST ------- patch submitted, thanks Johannes: I will implement warning without force killing in comment #2 later -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com