On Sat, Aug 28, 2010 at 10:35:06AM +0100, Richard Ash wrote: > On Thu, 2010-08-26 at 18:01 -0400, Bill Pemberton wrote: > > Alan Stern writes: > > > > > > There must be _some_ difference. Have you tried running the script > > > under strace? > > > Aha! I found the culprit. I went comparing every ting on the 2 > > machines and they are identical except for one thing: the failing > > machine is running NetworkManager instead of plain old > > network.... Apparently NetworkManager is messing with the tty > > settings. Yet another reason to turn it off. > > Doesn't that indicate that the serial loopback script needs to call stty > to configure the tty settings correctly before it starts? Otherwise, > anything that changes the tty state (e.g. calls to setserial at boot > time) could stop it working. No, it should have set it up properly itself before sending/receiving data, and for some reason, I thought it did, but now that I look at it, I was wrong. Anyone care to send me a patch? The original script is below. thanks, greg k-h
Attachment:
serial_loopback.pl
Description: Perl program