ALSA Jack Midi bridge off selection not surviving a reboot

Bug #1826413 reported by Ross Gammon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Studio Controls (development moved)
Fix Released
Medium
Unassigned
ubuntustudio-controls (Ubuntu)
Fix Released
Medium
Unassigned
Disco
Fix Released
Medium
Unassigned
Eoan
Fix Released
Medium
Unassigned

Bug Description

[Impact]

 * As the status of the jack-midi and pulseaudio-jack bridges are not updated correctly from the config file, users have to open ubuntustudio-controls to set the required status every time they login/logout/reboot.

 * The bug is very annoying for users that need to adjust their jack settings to cater for different audio software and hardware.

 * The statuses read from the config file are a string. When converting from string to boolean to set the check button status in the gui, python will always evaluate the boolean as "True" for any string except "None". Now the strings are parsed with some if/elif statments to set the correct boolean status for the check button.

[Test Case]

 * Run ubuntustudio-controls

 * The first time ubuntustudio-controls is run, the 4 tick boxes in the gui (e.g. "Auto Start Jack at Session Start") should be set to the recommended defaults for Ubuntu Studio. Change the tick boxes to something else (e.g. all off).

 * Click Apply Audio Settings (saves the settings to a configuration file).

 * Close Ubuntu Studio Controls.

 * Restart Ubuntu Studio Controls. The previous settings should be remembered. Previously to the fix, the recommended defaults were set (ignoring the settings saved in the configuration file).

[Regression Potential]

 * The changes are limited to the ubuntustudio-controls app, and this package is only ever installed for Ubuntu Studio users, or users that want to add the Ubuntu Studio settings to their favourite flavour. The only reverse dependency is the Ubuntu Studio meta-package.

 * The changes have been tested in my ppa (https://launchpad.net/~rosco2/+archive/ubuntu/testing) for Disco with no apparent regressions.

[Other Info]

 * The same changes (uploaded to Eoan) have been backported in our Ubuntu Studio Backports PPA (https://launchpad.net/~ubuntustudio-ppa/+archive/ubuntu/backports) and is therefore already in the hands of many users.

[Original Description]

Several users on the Ubuntu Studio list have reported that they only want the ALSA Jack Midi bridge to be active sometimes.

When switched off in ubuntustudio-controls it always restarts with it enabled again which is very inconvenient.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Confirmed due to multiple reports on ubuntu-studio-users mailing list.

Changed in ubuntustudio-controls:
status: New → Confirmed
Changed in ubuntustudio-controls (Ubuntu):
status: New → Confirmed
Changed in ubuntustudio-controls:
assignee: nobody → Len Ovens (len-ovenwerks)
importance: Undecided → High
Changed in ubuntustudio-controls (Ubuntu):
assignee: nobody → Ubuntu Studio Development (ubuntustudio-dev)
Revision history for this message
Ross Gammon (rosco2) wrote :

OK - I have worked it out. The a2j status read from the config file is a string. When converting from string to boolean to set the check button status, python will always evaluate the boolean as "True" for any text. We need to parse the string with some if/elif statments to set the correct boolean status for the check button.

I have some time today to fix and upload a new version. Or is Len already on the case?

Ross Gammon (rosco2)
Changed in ubuntustudio-controls:
assignee: Len Ovens (len-ovenwerks) → Ross Gammon (rosco2)
Changed in ubuntustudio-controls (Ubuntu):
assignee: Ubuntu Studio Development (ubuntustudio-dev) → Ross Gammon (rosco2)
Changed in ubuntustudio-controls:
status: Confirmed → Fix Committed
assignee: Ross Gammon (rosco2) → nobody
Ross Gammon (rosco2)
Changed in ubuntustudio-controls (Ubuntu):
status: Confirmed → Fix Committed
assignee: Ross Gammon (rosco2) → nobody
Ross Gammon (rosco2)
tags: added: disco
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntustudio-controls - 1.8

---------------
ubuntustudio-controls (1.8) eoan; urgency=medium

  [ Len Ovens ]
  * Add to ROADMAP next steps

  [ Ross Gammon ]
  * Set check box status correctly from config file (LP: #1826413)

 -- Ross Gammon <email address hidden> Fri, 26 Apr 2019 15:34:52 +0200

Changed in ubuntustudio-controls (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Ross Gammon (rosco2) wrote :

The importance of this bug should probably be "Medium", and I would like to target it as an SRU for Disco, as the bug can make the package annoying to use for people that need to disable the checkbox options occasionally and have them remembered.

Revision history for this message
Len Ovens (len-ovenwerks) wrote : Re: [Bug 1826413] Re: ALSA Jack Midi bridge off selection not surviving a reboot

On Fri, 26 Apr 2019, Ross Gammon wrote:

> OK - I have worked it out. The a2j status read from the config file is a
> string. When converting from string to boolean to set the check button
> status, python will always evaluate the boolean as "True" for any text.
> We need to parse the string with some if/elif statments to set the
> correct boolean status for the check button.

Thank you. I completely missed that in my quick look over the code.

> I have some time today to fix and upload a new version. Or is Len
> already on the case?

If it needs to released quickly (will bug fix into 19.04) then you may
want to do that. If it is a fix for 19.10, I will get to that and go
through all the rest of my file read to value bits as well.

I have already started some major rewriting and it would be some work to
only change/fix this one thing. Though I guess it will be done in a branch
if released for 19.04.

--
Len Ovens
www.ovenwerks.net

Changed in ubuntustudio-controls:
importance: High → Medium
Revision history for this message
Ross Gammon (rosco2) wrote :

I need Bug Control to add a task to target the Disco release for this SRU before I can upload to Disco.

description: updated
description: updated
C de-Avillez (hggdh2)
Changed in ubuntustudio-controls (Ubuntu):
milestone: none → disco-updates
milestone: disco-updates → none
Revision history for this message
C de-Avillez (hggdh2) wrote :

for whatever reason I cannot add a task to Disco.

Also, I cannot see anywhere stated it has been fixed in Eoan (which is required for a SRU).

C de-Avillez (hggdh2)
Changed in ubuntustudio-controls (Ubuntu):
status: Fix Released → Fix Committed
no longer affects: ubuntustudio-controls (Ubuntu)
Changed in ubuntustudio-controls (Ubuntu):
status: New → Fix Committed
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote : Re: [Ubuntu-bugcontrol] [Bug 1826413] Re: ALSA Jack Midi bridge off selection not surviving a reboot

On 2019-04-26 19:29, Ross Gammon wrote:
> I need Bug Control to add a task to target the Disco release for
> this SRU before I can upload to Disco.

Done.

--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj

Changed in ubuntustudio-controls (Ubuntu Eoan):
importance: Undecided → Medium
Changed in ubuntustudio-controls (Ubuntu Disco):
importance: Undecided → Medium
Changed in ubuntustudio-controls (Ubuntu Eoan):
status: Fix Committed → Fix Released
Ross Gammon (rosco2)
Changed in ubuntustudio-controls (Ubuntu Disco):
status: New → In Progress
Revision history for this message
Steve Langasek (vorlon) wrote :

- self.usb_plug_check.set_active(self.usb)
+ if self.usb == "True":
+ self.usb_plug_check.set_active(True)
+ elif self.usb == "False":
+ self.usb_plug_check.set_active(False)

I think this could be instead written as

    self.usb_plug_check.set_active(self.usb == "True")

to cast from a string to a boolean (unless you expect there to be other possible values besides "True" and "False")

would you want to make this change in devel and reupload to the queue?

Revision history for this message
Ross Gammon (rosco2) wrote :

Much simpler. Thanks Steve. Will make the change and reupload.

Revision history for this message
Brian Murray (brian-murray) wrote : Proposed package upload rejected

An upload of ubuntustudio-controls to disco-proposed has been rejected from the upload queue for the following reason: "Uploader says they will reupload.".

Revision history for this message
Ross Gammon (rosco2) wrote :

Sorry about the delay. I have just reuploaded a new version with a tidier cast to boolean.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Ross, or anyone else affected,

Accepted ubuntustudio-controls into disco-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntustudio-controls/1.7.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-disco to verification-done-disco. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-disco. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubuntustudio-controls (Ubuntu Disco):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-disco
Revision history for this message
Ross Gammon (rosco2) wrote :

Tested v1.7 again to be sure. Saved settings are not remembered.
Installed v1.7.1 from disco-proposed. Now the audio settings are remembered.

I can confirm that the bug is fixed in the disco-proposed version of ubuntustudio-controls.

tags: added: verification-done-disco
removed: verification-needed-disco
Ross Gammon (rosco2)
Changed in ubuntustudio-controls:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntustudio-controls - 1.7.1

---------------
ubuntustudio-controls (1.7.1) disco; urgency=medium

  * Set check box status correctly from config file (LP: #1826413)

 -- Ross Gammon <email address hidden> Sun, 19 May 2019 20:13:09 +0200

Changed in ubuntustudio-controls (Ubuntu Disco):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for ubuntustudio-controls has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.