allow to set restart/resume time in shutdown dialog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Shutdown Timer Extension for GNOME shell |
New
|
Undecided
|
Unassigned | ||
consolekit (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The desktop environments would help saving energy, if their shutdown dialogs could by default provide the option (button/checkbox) to schedule a restart.
Linux provides a simple way to schedule a restart event that is particularly usefull in conjuction with initiating or scheduling a shutdown or suspend.
rtcwake -m no -s <seconds-
Howerever, just as the shutdown command it requires root privileges. Thus the need for a similar consolekit support.
The particular command given in the example above avoids that rtcwake does any switching into another power state (no new mode "-m no").
This allows that all power state switching is still contolled by whatever power management (userspace) tools are installed, which may often be more stable than the pure kernel/rtcwake method, especially on resume.
To test it, just schedule a wake event like above as root, then do a regular shutdown/suspend. Wait, and watch how the real time clock triggers the scheduled power up event and the machine comes back up.
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- allow to set restart/resume time + allow to set restart/resume time in shutdown dialog |
description: | updated |
no longer affects: | gnome-session-shutdown |
no longer affects: | xfdesktop4 (Ubuntu) |
no longer affects: | qt-shutdown-p |
Hmm... So you would like to have an option or something like that for qshutdown?
The problem is that qshutdown usually is used by users without admin rights and rtcwake seems to need these rights...
So there are two solutions: add the user or group you want to the sudoers for rtcwake and enter the commands in the advanced settings (aviable from version 1.6.4 on. Upload to Debian and the Launchpads PPA on 29th April) for qshutdown, or make a little script that first executes your rtcwake command and then starts qshutdown. You'll either need to add the user to the sudoers, or start the script and let it first ask for the password with gksudo or something like that.
I hope to have shed a bit light to the problem. :)