Merge lp://qastaging/~darkxst/ubuntu-release-upgrader/gnome-session-inhibit into lp://qastaging/ubuntu-release-upgrader

Proposed by Tim Lunn
Status: Merged
Merged at revision: 2976
Proposed branch: lp://qastaging/~darkxst/ubuntu-release-upgrader/gnome-session-inhibit
Merge into: lp://qastaging/ubuntu-release-upgrader
Diff against target: 88 lines (+47/-1)
2 files modified
DistUpgrade/DistUpgradeQuirks.py (+39/-0)
debian/changelog (+8/-1)
To merge this branch: bzr merge lp://qastaging/~darkxst/ubuntu-release-upgrader/gnome-session-inhibit
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Needs Fixing
Review via email: mp+290792@code.qastaging.launchpad.net

Description of the change

This branch should fix the disabling of the screensaver on Ubuntu GNOME (and any other gnome-session based DE). Although I couldnt test it properly, not sure how the quirks get pulled in. Update-manager doesnt use the locally installed quirks?

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

The release upgrade process downloads a tarball of the release-upgrader from the archive for the target release e.g. http://archive.ubuntu.com/ubuntu/dists/xenial/main/dist-upgrader-all/current/xeinal.tar.gz then extracts it to a directory in /tmp/ and then runs xenial in that temporary directory. You could test it by either starting an upgrade, choosing to quit, and then make changes in /tmp/$tmpdir/DistUpgradeQuirks.py or build the package and manually extract dist-upgrader_$vernum.tar.gz.

Revision history for this message
Tim Lunn (darkxst) :
Revision history for this message
Tim Lunn (darkxst) wrote :

ok, managed to test it.

It didnt work though since the quirks are run under sudo, there is no access to the user dbus session.

Revision history for this message
Tim Lunn (darkxst) wrote :

This is fixed now, it kind of feels like jumping through hoops, but I am not sure there is a better way. This is not possible with logind inhibitors and we need the gnome-session-inhibit binary launched with the users (not root) environment and uid.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Since Brian uploaded a change with a sleep inhibitor using logind, I'm thinking this might be better handled by inhibiting "idle" as well in logind? This would fix the screensaver coming on for Kubuntu as well as the gnome-session-based flavors.

review: Needs Fixing
Revision history for this message
Tim Lunn (darkxst) wrote :

That was my patch and I would have included an inhibitor on idle if it worked like that.

Atleast on GNOME (although its likely the same on KDE), the logind "idle" inhibitors do not inhibit the idle monitors within the compositor. logind only deals with system level events/actions like shutdown/sleep, power buttons and lid switch, it has no concept of what his happening within the users session. Its the compositor that is monitoring user input (keyboard/mouse etc) and deciding when to activate the screensaver and screenblanking.

So we still need to install an "idle" inhibitor into the users session.

Revision history for this message
Brian Murray (brian-murray) wrote :

I'm testing this a bit and will upload / merge it today.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches