After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 308383 - Gnopernicus doesn't allow users to specify a serial port other than /dev/ttys[0-4], the conventional naming
Gnopernicus doesn't allow users to specify a serial port other than /dev/ttys...
Status: RESOLVED FIXED
Product: gnopernicus
Classification: Deprecated
Component: braille
unspecified
Other Linux
: Normal normal
: ---
Assigned To: remus draica
remus draica
AP2
Depends on:
Blocks:
 
 
Reported: 2005-06-20 12:04 UTC by Oana Serb
Modified: 2005-08-22 09:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (2.48 KB, patch)
2005-06-21 09:07 UTC, remus draica
none Details | Review
proposed patch (6.42 KB, patch)
2005-08-02 12:49 UTC, Dragan Sarbut
none Details | Review
the code behind the UI (26.95 KB, patch)
2005-08-16 12:52 UTC, remus draica
committed Details | Review

Description Oana Serb 2005-06-20 12:04:16 UTC
Gnopernicus should provide a way to specify a device other than /dev/ttys[0-4].
Comment 1 bill.haneman 2005-06-20 12:18:39 UTC
This is especially useful since on most Linux systems (not sure about other
OS'es), a serial-to-USB converter attached to a USB port appears as device
/dev/ttyUSB[0-...], for instance /dev/ttyUSB0.  The resulting device accepts
'standard' RS232 serial I/O, so all that is needed in order to support computers
with USB+converter is a change of device name from /dev/ttys0 to /dev/ttyUSB0
(in this example).
Comment 2 remus draica 2005-06-21 09:07:27 UTC
Created attachment 48078 [details] [review]
proposed patch
Comment 3 bill.haneman 2005-06-21 10:33:15 UTC
Remus, I don't understand this patch.  It seems to be a compile-time serial port
option, which isn't very useful for the problem stated.

I recommend making it possible for the end-user to specify a non-standard serial
port/device name at runtime, without requiring a command line argument.  There
are two approaches that come to mind:

1) checkbox in braille config dialog, for "via USB converter" - if checked, use
/dev/USB[0-3] or equivalent instead of /dev/ttys[0-3]

2) provide a combo-box for the serial device type, with entries such as 'ttys',
'ttyUSB', etc. and combine the result with the port number from the port
combo-box.  Provide a tooltip to help the user figure out that 'ttys' is
standard, 'ttyUSB' is suggested for most USB-to-serial converters.  There should
probably be an entry box provided as part of the combo, so that users can
specify some other device string to be concatenated with "/dev/" and the device
number.
Comment 4 Dragan Sarbut 2005-08-02 12:49:10 UTC
Created attachment 50129 [details] [review]
proposed patch

This is a early patch focused on the UI change. The functionality is missing
for now.
Comment 5 korn 2005-08-02 18:03:49 UTC
Makes sense, to get it in before the string freeze.  Looks good to me.  Still,
it is a (small) UI change, so I imagine checking with the UI team for their OK
is needed.
Comment 6 Dragan Sarbut 2005-08-05 13:02:31 UTC
The patch was approved and applied to CVS HEAD.
The code behind the UI will come soon.
Comment 7 remus draica 2005-08-16 12:52:34 UTC
Created attachment 50784 [details] [review]
the code behind the UI
Comment 8 remus draica 2005-08-22 09:38:50 UTC
Patch applied to cvs head.