[jammy]backport #1453 from upstream

Bug #2037503 reported by Erkin Alp Güney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center
Fix Released
Unknown
gnome-control-center (Debian)
New
Undecided
Unassigned
gnome-control-center (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

In some cases, it was possible for a profile to be set (directly, or
through a hold) even though it wasn't supported. Don't assert in those
cases.

The bug in question makes the gnome-control-center crash if an unsupported
power profile is set using, say, powerprofilesctl.
Should be trivial to cherry-pick without breaking other components.
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1453

I had to wait for this long because I expected a 42.x backport in the backports repository of .1 release, but no one bothered to do such a backport.

Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
description: updated
no longer affects: gnome-control-center
description: updated
Revision history for this message
Erkin Alp Güney (erkinalp9035) wrote :
tags: added: jammy
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Could you provide some details on how you set a profile which isn't available?

I'm a bit unclear also that it's a fix important enough to justify a backport upload by itself, that's not an issue that users hit in normal conditions.

The fact that we didn't see reports about it until now is also an indication that it's not a common problem

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Erkin Alp Güney (erkinalp9035) wrote :

> Could you provide some details on how you set a profile which isn't available?

I invoked powerprofilectl and "fixed" the performance profile using that. And then gnome-control-center would throw a fatal assertion failure (UI cannot open, basically total non-function of the app), and stop working. If the profile setting is rolled back using the same powerprofilectl, it can be opened again. The patch from upstream converts this error into a logged non-fatal warning.

Revision history for this message
Erkin Alp Güney (erkinalp9035) wrote :

> The fact that we didn't see reports about it until now is also an indication that it's not a common problem

Hard to encounter by a casual office user, but power users, overclockers and high performance gamers are very likely to encounter this bug ("performance" profile is conditionally hidden by the gnome-control-center but the test hiding it does not always work correctly, sometimes it is hidden even when it is actually available by the hardware, such as I encountered in my Zen 3 processor).

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you give a more specific example? Do you mean that gamer are likely to want another profile than 'performance' which isn't available/known by the GNOME settings?

Revision history for this message
Erkin Alp Güney (erkinalp9035) wrote :

The selector defaults to balance, but an inexperienced gamer or a desparate power user may force the performance profile via the command line, despite the fact gnome-control-center thinks it is not available.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Why would they go to the command line rather than switching to performance from the top panel indicator or the settings?

Revision history for this message
Erkin Alp Güney (erkinalp9035) wrote :

Failure to understand why that option is hidden, or in some cases, that the profile is actually available but the gnome-control-center hides it anyway.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the details, I'm closing for the current serie since it's fixed there, we can open 22.04 specific target if we decide to cherrypick a fix there but the lack of reports so far suggest it's not hitting enough users to justify a stable update

Changed in gnome-control-center (Ubuntu):
status: Incomplete → Fix Released
Changed in gnome-control-center:
status: Unknown → Fix Released
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.