From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id 5AE0D1F0506; Sun, 23 Apr 2017 23:49:05 -0400 (EDT) Received: from vserver.gregn.net (vserver.gregn.net [IPv6:2607:f2f8:a260::2]) by befuddled.reisers.ca (Postfix) with ESMTPS id DB6B81F0500 for ; Sun, 23 Apr 2017 23:49:02 -0400 (EDT) Received: from vbox.gregn.net (unknown [IPv6:2001:470:d:6c5:942f:70de:80b6:7308]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by vserver.gregn.net (Postfix) with ESMTPSA id E718220FB for ; Sun, 23 Apr 2017 20:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gregn.net; s=default; t=1493005739; bh=FIBCe8WeoCXxSlFYp/7jov9bTjjMiyZ6m69lyAFbi9I=; h=Date:From:To:Subject:References:In-Reply-To:From; b=tLTtk2YL17QymnKgYE6/XHaxVXqQwdq1kPkRuUWzE3h07p0wIQyVedJfOKKlckpHl UyzoVnCi3kVl4T+NbBjCr5bTqoVQL2YFbiMvdDrAfy+YfLdfDFRFeuDKM7AFw/4LBC 9sCMC05og6jQxrdSMwtQXPdnxVKBRFETAsqQ4KvPym5SR/Vr2WoSx49HJwJOH6ouHa HJexZjB52mV5AwmFqlYfmUoI1zECM3ZXbR+9jKDqTMeUXdqZaVF3uJL/U66Jil0fvn d9JCxMS8qjbBMxmjAOJX4nRfmjQpTKrZ80M6Ke7RAbmK72ARKrcnepAriaeFpqRDZs 1LuPaNBeJUdfg== Received: from greg by vbox.gregn.net with local (Exim 4.80) (envelope-from ) id 1d2Uzh-0003g7-9n for speakup@linux-speakup.org; Sun, 23 Apr 2017 20:48:57 -0700 Date: Sun, 23 Apr 2017 20:48:57 -0700 From: Gregory Nowak To: "Speakup is a screen review system for Linux." Subject: Re: DecTalk External (decext) testers wanted! Message-ID: <20170424034857.GA12972@gregn.net> References: <20170421193421.GA9243@gregn.net> <20170422073828.GB1023@sanghar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170422073828.GB1023@sanghar> X-PGP-Key: http://www.gregn.net/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.99.2 at vserver X-Virus-Status: Clean X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2017 03:49:05 -0000 Hi Okash and list, I again have good news, and bad news. The good news is that after making the changes Okash described in spk_ttyio.c and recompiling the speakup modules, the bns driver works over ttyUSB0! Very awesome! I remember wanting this when I got my first machine without an on board serial port in 2000. I also used the driver a lot more extensively over ttyS0 and over ttyUSB0, and still didn't notice issues. Now, for the bad news. The speakup_bns driver isn't releasing the serial port. This is true for both ttyS0 and ttyUSB0. When I unload speakup_bns, and attempt to use minicom over either port, I see this in dmesg: "[ 109.515946] ttyS ttyS0: tty_open: tty->count(2) != #fd's(1) [ 110.517304] ttyS ttyS0: tty_release: tty->count(2) != #fd's(1) [ 110.517400] ttyS ttyS0: tty_open: tty->count(2) != #fd's(1) [ 111.518555] ttyS ttyS0: tty_release: tty->count(2) != #fd's(1) [ 111.518663] ttyS ttyS0: tty_open: tty->count(2) != #fd's(1) [ 113.436335] ttyS ttyS0: tty_release: tty->count(2) != #fd's(1)" "[ 807.947758] ttyUSB ttyUSB0: tty_open: tty->count(3) != #fd's(1) [ 808.152816] ttyUSB ttyUSB0: tty_release: tty->count(3) != #fd's(1) [ 808.155764] ttyUSB ttyUSB0: tty_open: tty->count(3) != #fd's(1) [ 808.520824] ttyUSB ttyUSB0: tty_release: tty->count(3) != #fd's(1) [ 808.523768] ttyUSB ttyUSB0: tty_open: tty->count(3) != #fd's(1) [ 810.947111] ttyUSB ttyUSB0: tty_release: tty->count(3) != #fd's(1)" If I modprobe speakup_bns again, I can use it just fine, unload, and reload again without problems. I also found that after using speakup_bns over the usb to serial converter and unloading the speakup_bns module, I then can't unload the belkin_sa module, even though I see no other modules using it from lsmod. I assume the same holds true for the standard port modules, but didn't try unloading them as well. When I unplug the usb to serial converter after using it with speakup_bns, and unloading speakup_bns, and plug it back in, it gets assigned /dev/ttyUSB1 instead of being assigned /dev/ttyUSB0 as normally happens. Thanks again for your work. Greg On Sat, Apr 22, 2017 at 08:38:28AM +0100, Okash Khawaja wrote: > Hi Greg, > > Thanks for the tests, very helpful. Okay so it doesn't look too bad. > -- web site: http://www.gregn.net gpg public key: http://www.gregn.net/pubkey.asc skype: gregn1 (authorization required, add me to your contacts list first) If we haven't been in touch before, e-mail me before adding me to your contacts. -- Free domains: http://www.eu.org/ or mail dns-manager@EU.org