Ticket #6980 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Add -p option to shut down when update is complete

Reported by: ffm Owned by: cscott
Priority: normal Milestone:
Component: upgrade utility Version:
Keywords: sugar-love Cc:
Action Needed: Verified: no
Deployments affected: Blocked By:
Blocking:

Description

This is a feature request. (if I have time I may later make a patch)

Add a -p (--poweroff) option to olpc-update to power off the XO when the update is complete.

Use Case:

Alice wants to update her XO, but is busy with other things. She sets it up with "olpc-update -p" and her XO turns off once it has the latest software version, as opposed to rebooting (which, if the machine is left unattended...)

Attachments

0001-Add-p-option-to-shut-down-when-update-is-complete.patch Download (3.3 KB) - added by jpritikin 6 years ago.
untested patch, sorry I don't have an XO with me
0001-Add-p-option-to-shut-down-when-update-is-complete.2.patch Download (3.3 KB) - added by ffm 6 years ago.
fix syntax error in prior patch
Add-p-option.3.patch Download (3.4 KB) - added by cscott 6 years ago.
Revised patch, please test.

Change History

  Changed 6 years ago by ffm

  • keywords sugar-love added

Changed 6 years ago by jpritikin

untested patch, sorry I don't have an XO with me

  Changed 6 years ago by jpritikin

I attached a patch for this. Do I need to make a comment to get this bug to show up in the timeline?

Changed 6 years ago by ffm

fix syntax error in prior patch

  Changed 6 years ago by cscott

This seems to inadvertently extend  http://wiki.laptop.org/go/Theft_Deterrence_Protocol to add 'poweroff' and 'reboot' priorities. I'm not convinced that this is actually the right way to implement this feature. Probably better would be to pass in an option to the bitfrost.update package to say 'urgent means shutdown', not to change the semantics of the 'priority' field.

Changed 6 years ago by cscott

Revised patch, please test.

follow-up: ↓ 5   Changed 6 years ago by cscott

See also trac #6014, #4877, #4878, which are related.

The current plan is to use the gnome-session infrastructure, see  http://blogs.gnome.org/lucasr/2008/03/25/session-management-in-224/ (and talk to tomeu and marco).

in reply to: ↑ 4   Changed 6 years ago by ffm

  • blockedby 4877 added

Replying to cscott:

See also trac #6014, #4877, #4878, which are related. The current plan is to use the gnome-session infrastructure, see  http://blogs.gnome.org/lucasr/2008/03/25/session-management-in-224/ (and talk to tomeu and marco).

  Changed 6 years ago by cscott

  • blockedby 4877 removed

Tested & fixed in olpc-update 2.6 (joyride-2000).

  Changed 6 years ago by cscott

  • status changed from new to closed
  • resolution set to fixed

  Changed 6 years ago by gregorio

  • milestone Never Assigned deleted

Milestone Never Assigned deleted

Note: See TracTickets for help on using tickets.