Resume after hibernate or suspend triggered by Actions button dialog in Xubuntu doesn't ask password

Bug #121737 reported by Jarno Suni
50
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Xfce4 Session
In Progress
Unknown
xfce4-session (Ubuntu)
Won't Fix
High
Unassigned
Declined for Hardy by Lionel Le Folgoc
Declined for Intrepid by Lionel Le Folgoc
Declined for Jaunty by Lionel Le Folgoc
xubuntu-default-settings (Ubuntu)
Fix Released
Undecided
Unassigned
Declined for Hardy by Lionel Le Folgoc
Declined for Intrepid by Lionel Le Folgoc
Declined for Jaunty by Lionel Le Folgoc

Bug Description

Xubuntu 8.04

I expect computer to resume screen locked. Luckily I can configure Xubuntu in Settings -> Power Management (or start the same dialog by command gnome-power-preferences in terminal) to resume that way when hibernate or suspend is triggered by power button, suspend button, closing laptop lid or by using the tray icon.

Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

I'm not convinced this is a xubuntu bug.

Lionel : what do you think of this ?

Changed in xubuntu-meta:
status: New → Incomplete
Revision history for this message
wolfger (wolfger) wrote :

No response in over 5 months. We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in xubuntu-meta:
status: Incomplete → Invalid
Jarno Suni (jarnos)
description: updated
Changed in xubuntu-meta:
status: Invalid → New
Revision history for this message
Strelock (udafa) wrote :

I have exactly the same. Installed XFCE on Ubuntu with GNOME. Gnome resumes screenlock, XFCE not.

Jarno Suni (jarnos)
description: updated
Revision history for this message
Jarno Suni (jarnos) wrote :

Same thing in Xubuntu 8.10 Alpha5.

Maybe some people prefer not to have password asked by their computer; supposedly same people who have enabled automatic login. IMO this should be configurable.

Revision history for this message
Michael Casadevall (mcasadevall) wrote :

I'm confirming this bug, I confirmed it on Xubuntu Intrepid, and on Hardy. I don't think we can fix this in time for Intrepid, so we should try and fix it in jaunty, then do an SRU for Intrepid and Hardy.

Changed in xubuntu-meta:
importance: Undecided → High
milestone: none → later
status: New → Confirmed
Changed in xfce4-session:
milestone: later → none
status: Confirmed → Triaged
Revision history for this message
Don Cristóbal (doncristobal) wrote :

Xubuntu Jaunty, up to date as of May 22th 2009: Still no locked screen after suspend.

Changed in xfce4-session:
status: Unknown → In Progress
Revision history for this message
Erwin Olario (gowin) wrote :

I have the same issue. I'm using the XFCE desktop installed over Ubuntu 9.04.

This a major security issue for many of us who prefer to put their computers on hibernate instead of shutting down. Anyone can access the contents of the computer after resuming from hibernate or suspend.

Jarno Suni (jarnos)
description: updated
Revision history for this message
Don Cristóbal (doncristobal) wrote :

The developer in the Xfce Bugzilla (http://bugzilla.xfce.org/show_bug.cgi?id=4805) says that this should not be dealt with as a problem in xfce-session. He suggests it's rather a problem of either the power manager or the panel / the panel applets.

Power Manager:
I have discovered that my Xubuntu Jaunty shipped with the gnome-power-manager instead of the xfce4-power-manager. Now I've installed the latter and uninstalled the former, which produces the following weird behaviour:
a) If I suspend or hibernate from the Xfce menu or from the panel applet "action buttons", the systems resumes /without/ any password prompt.
b) If I suspend or hibernate from the context menu of the xfce4-power-manager, I get a locked screen after resuming.

Desirable/correct behaviour:
On a system where automatic login has not been activate (which is my case), b) is clearly the correct (i.e. safe) behaviour. However, people who have activated automatic login will want a).
Of course the user can also be given the choice to change this, but it should definitely be the default behaviour.

Conclusions (questions):
* Should the choice to ship Xubuntu with the gnome-power-manager be reconsidered?
* Should this bug be reassigned one or more other packages? (xfce4-power-manager? xubuntu? gnome-power-manager? xfce4-panel?)

Revision history for this message
Vincent (vinnl) wrote :

As for your first question, xfce4-power-managed is already being considered, see the xubuntu-devel mailinglist: https://lists.ubuntu.com/archives/xubuntu-devel/2009-August/007016.html

Revision history for this message
Don Cristóbal (doncristobal) wrote :

Karmic Beta: Still the same behaviour as described in my Post #8 (updated on October 10th, 2009).

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Xubuntu already ships xfce4-power-manager by default in karmic.

Revision history for this message
Jarno Suni (jarnos) wrote :

Yes, and you can set whether or not it asks password on resume from suspend and hibernate in the xfce4-power-manager's preferences. But in Karmic, the log out dialog does not use a power manager to suspend and hibernate. In principle, a log out dialog is not the right place for suspend/hibernate, as those actions do not log out from the current session. (There are other ways to suspend and hibernate, such as using a power manager's tray applet.) If I remember right, an earlier release of Xubuntu had a patch by which a user was able to remove suspend and/or hibernate buttons from the dialog in settings. That said, I think it is good, if you can sometimes suspend/hibernate without locking: In some cases it saves time and reduces the risk of someone getting your password when you know you won't leave your computer.

See also http://bugzilla.xfce.org/show_bug.cgi?id=5853

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Lucid Lynx. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/ .

The xfce bug has been signed off as won't fix. It would certainly help to know if this is still an issue in Lucid Lynx.

Thanks again and we appreciate your help.

Changed in xfce4-session (Ubuntu):
status: Triaged → Incomplete
Changed in xfce4-session (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Until we know if this is still an issue in Lucid Lynx, it is at a standstill. Please don't change the status to confirmed without testing in the development release and commenting as to the bug being fixed or not.

Changed in xfce4-session (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Don Cristóbal (doncristobal) wrote :

I confirm this on Lucid beta3 live and therefore mark it confirmed.

Sorry, Charlie, I did not realise my comment was lost. I typed it this morning, after doing the test. Perhaps I did not hit the "post" button, or the data was lost somewhere else.

Changed in xfce4-session (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Thanks for confirming this. I have to ask this, after reading the Xfce bugzilla, do you have Applications -> Settings -> Xfce4 Power Manager, Extended, check mark on "Lock screen when going for suspend/hibernate" ? Xfce developers have made it clear that this lock is not goin g to be enabled any other way.

Revision history for this message
Don Cristóbal (doncristobal) wrote :

Yes, I confirm Applications > Settings > Xfce4 Power Manger > Extended > "Lock screen when going for suspend/hibernate" is activated. Suspending from the Action Buttons still does not lock the screen. Suspending from the Xfce Power Manager applet still does lock the screen.

Thus, nothing new in Lucid Beta 3 (installed from the live cd and updated on March 13th, 2010)

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

And nothing will change in lucid, people are still expected to use the power manager instead of the logout dialog for that (we can probably hide these buttons though).

Revision history for this message
Jarno Suni (jarnos) wrote :

I think hiding the suspend and hibernate buttons in the "log out" dialog is a good idea, since they do not log out. Enabling the power manager tray icon by default would be a way to provide access to suspending and hibernating.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Let's do that (Won't Fix like upstream since we don't want to diverge on that).

Changed in xfce4-session (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xubuntu-default-settings - 10.10.0

---------------
xubuntu-default-settings (10.10.0) maverick; urgency=low

  * Refreshed translations.
  * etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml:
    - do not save the session on logout by default
    - hide "hibernate" and "suspend" buttons. lp: #121737
  * Switch to dpkg-source 3.0 (native) format.
  * Bump Standards-Version to 3.8.4, no change required.

xubuntu-default-settings (10.04.8) lucid-proposed; urgency=low

  * usr/share/xubuntu/session.sh:
    - Do not forcefully set $XDG_CONFIG_DIRS, it creates issue with non-Xfce
      applications, and 60xdg_path-on-session from gdm already takes care of
      that. lp: #571133
    - Ensure that /usr/local/share is present in $XDG_DATA_DIRS. lp: #574264
 -- Lionel Le Folgoc <email address hidden> Thu, 13 May 2010 13:19:57 +0200

Changed in xubuntu-default-settings (Ubuntu):
status: New → Fix Released
Revision history for this message
linuxar (linuxar) wrote :

Just a little comment for somebody that might happen to experience the same bug with XFCE 4.0 package installed from the https://launchpad.net/~xubuntu-dev/+archive/xfce-4.10 (official ppa) on XUbuntu 12.04.

The solution is to go: Settings->Session and Startup->Advanced. Then, under "Shut down", enable the checkbox "Lock screen before sleep".

Revision history for this message
Ford Dent (ford-dent) wrote :

The 'Fix' was worst of all worlds for me. Before I found that using the Log-Out dialog and removing Suspend/Hibernate from the Action Button to stop me using them there worked although not ideal.

Selecting Hibernate from Log-Out Dialog at least Locked the Screen which was the whole rationale behind logging the bug in the first place!

Removing Hibernate from the log-out dialog? Supposedly all the other suggested settings are supposed to make Hibernate work with the Action buttons but they do not for me at any rate. (xubuntu 12.04.2 precise)

So I forget exactly how but I found a sysfile edit that enables the Hibernate in Log-out dialog. Action Buttons Hibernate/Suspend don't lock screen whatever settings applied in Power Manager. Unfixing the' fix' so to speak, so as to get a workaround messy fix...

Lots of error messages but at least screen is locked on resume.

* Have looked in Settings/Settings Editor/xfce4-session and there are no entries for Hibernate or Resume
I would suppose that there should be as I think the Action Buttons look there for settings. There are none. Maybe the easiest thing would be to advise users on adding/configuring xfce4-session to include Hibernate and Suspend properties

Revision history for this message
Ford Dent (ford-dent) wrote :

Installed hibernate script and uswsusp

Hibernating via logout dialog works even better than before with no errors. snapshotting>>s2disk

Using Action button on xfce panel however results in a hang at the snapshotting stage which never completes.

For some reason choosing the Hibernate option via the panel Action button must be doing something differently to the logout dialog which works. Both now call the same new s2disk program.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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