Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70592 - mpg123 0.59s-r6 makes tty malfunction, requiring a reset
Summary: mpg123 0.59s-r6 makes tty malfunction, requiring a reset
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 94494 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-09 09:52 UTC by Matthew Lane
Modified: 2005-08-13 05:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to avoid terminal line settings be set more than once (mpg123-pre0.59sbalrog.patch.gz,508 bytes, patch)
2005-06-10 07:11 UTC, Andrzej Zaborowski
Details | Diff
Plain-text of the above patch (mpg123-pre0.59sbalrog.patch,767 bytes, patch)
2005-08-07 19:02 UTC, Andrzej Zaborowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Lane 2004-11-09 09:52:25 UTC
When starting mpg123 like this:

mpg123 --list playlist.m3u --shuffle --random --control

Upon exiting mpg123, the terminal does not echo back typed text or command history.  The only remedy that I know of is to type 'reset'.  

This behaviour only seems to become apparent when run with the --control option.  If q is pressed while playing the first song, then it exits to the terminal normailly, but if you first press f (or even ctrl-c) to skip to the next song, then press q the terminal malfunctions.  It also malfunctions if its allowed to progress to the next song normally and then exit by pressing q.
Comment 1 Matthew Lane 2005-01-29 15:34:56 UTC
Well, after no replys, this bug either cannot be fixed, or cannot be verified.

I only discovered it because my monitor failed and my only recorse was to access my box via a remote terminal.  It was an older machine, but I still wanted to be able to hear my music while I was forced to use the other one.  I have since purchased a new monitor, and this is of little priority to me.  I did notice that there is a new version of this package, and I have decided to test it.  Below are my results:

media-sound/mpg123-0.59s-r9

Same problems, reset must be executed to return to normal operation.

I can remove most of the headaches if i add && reset at the end of the command line.
Comment 2 Kero 2005-05-30 11:58:41 UTC
*** Bug 94494 has been marked as a duplicate of this bug. ***
Comment 3 Andrzej Zaborowski 2005-06-10 07:11:41 UTC
Created attachment 60986 [details, diff]
Patch to avoid terminal line settings be set more than once

(In reply to comment #0)

This is because in -C mode term_init() is called everytime a new songs starts
playing, so the first run of term_init() saves the original terminal line
properties in a variable but when playing a second song the value gets
overwritten. It also results in registering term_restore() with atexit() as
many times as songs were played, but term_restore() has a check that avoids
executing it more than once.
I attached a patch that fixes it by adding the same check to term_init().
Comment 4 Andrzej Zaborowski 2005-08-07 19:02:44 UTC
Created attachment 65376 [details, diff]
Plain-text of the above patch

I realized it shouldn't be gzipped so i'm posting the plain-text version of the
patch.
It would be good if someone added it to the ebuild cause the bug can be really
annoying and it's easy to verify, although not many people use the -C option.
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2005-08-13 05:42:26 UTC
This is in portage; Andrzej, thanks for your work.