No DTR With Linux 2.6.25.1
R.L. Horn
lists at eastcheap.org
Tue May 6 12:05:51 UTC 2008
I recently installed the abovementioned version of the kernel and found
that minicom is no longer raising DTR. I'm not certain if this is a
kernel bug or feature (or just misconfiguration), but the attached patch
to sysdep1.c (version 2.3, but it applies to CVS with a bit of fuzz) seems
to fix things for me.
-------------- next part --------------
--- sysdep1.c.old 2007-10-10 15:18:20.000000000 -0500
+++ sysdep1.c 2008-05-06 06:29:15.000000000 -0500
@@ -115,7 +115,13 @@
sleep(sec);
ioctl(fd, TIOCSDTR, 0);
}
-
+#elif defined (TIOCMBIS) && defined (TIOCMBIC) && defined (TIOCM_DTR)
+ int modembits = TIOCM_DTR;
+ ioctl (fd, TIOCMBIC, &modembits);
+ if (sec>0) {
+ sleep (sec);
+ ioctl (fd, TIOCMBIS, &modembits);
+ }
#else /* TIOCSDTR */
# if defined (POSIX_TERMIOS) && !defined(_HPUX_SOURCE)
More information about the minicom-devel
mailing list