Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use 'Longer Battery Life' option by default #110

Closed
legal90 opened this issue Apr 11, 2014 · 4 comments
Closed

Use 'Longer Battery Life' option by default #110

legal90 opened this issue Apr 11, 2014 · 4 comments
Assignees

Comments

@legal90
Copy link
Collaborator

legal90 commented Apr 11, 2014

Configuration option "Optimization -> Power" has a default value 'Better Performance'. It forces machine to use the discrete graphic card (on MacBook Pro computers).

We need to set this option to 'Longer Battery Life' on the pre-boot step.

Command is easy:

prlctl set <vm_uuid> --longer-battery-life on
@legal90 legal90 self-assigned this Apr 11, 2014
legal90 added a commit that referenced this issue Apr 22, 2014
Allows to switch between "Longer Battery Life" and "Better Performance".
@legal90
Copy link
Collaborator Author

legal90 commented Apr 22, 2014

Done. Now Power consumption method is "Longer Battery Life" by default.
You can override it using this customisation parameter:

config.vm.provider "parallels" do |v| 
  v.optimize_power_consumption = false
end

P.s. Read more about power consumption modes in Parallels Desktop: http://kb.parallels.com/en/9607

@legal90 legal90 closed this as completed Apr 22, 2014
@legal90
Copy link
Collaborator Author

legal90 commented Apr 23, 2014

Oops, it is failed on PD8

/vagrant-parallels/lib/vagrant-parallels/action/set_power_consumption.rb:14:in `fetch': key not found: "Longer battery life" (KeyError)

@legal90 legal90 reopened this Apr 23, 2014
legal90 added a commit that referenced this issue Apr 23, 2014
Feature is available only since Parallels Desktop 9
legal90 added a commit that referenced this issue Apr 23, 2014
  driver: removed unnecessary 'version' method.
  action/import: Regenerate 'SourceVmUuid' while template registration [GH-113]
  driver: added 'regen_src_uuid' argument to the 'register' method
  tests/unit: added tests for 'set_power_consumption_mode' driver method
  Added 'SetPowerConsumption' action. [GH-110]
  gemspec: added 'minitest' dependency as a aorkaround for rspec warning about 'minitest/autorun'
  driver/meta: Don't show unreleased PD 10 version in the error message.
  Convert Parallels Desktop version to semantic-like format (x.y.z)
  errors: 'vm_name_exists' error key added
legal90 added a commit that referenced this issue Apr 24, 2014
* master:
  driver: 'set_power_consumption_mode' method should be available only for PD >= 9
  Version bumped to 'v1.0.7'
  tests/unit: Added test for 'read_guest_tools_version' driver method
  Convert Parallels Tools version to semantic-like format (x.y.z)
  action/set_power_consumption: Added PD version constriction [GH-110]
  driver: removed unnecessary 'version' method.
  action/import: Regenerate 'SourceVmUuid' while template registration [GH-113]
  driver: added 'regen_src_uuid' argument to the 'register' method
  Require version file
  tests/unit: added tests for 'set_power_consumption_mode' driver method
  Added 'SetPowerConsumption' action. [GH-110]
  Workaround for rspec warning about 'minitest/autorun'
  driver/meta: Don't show unreleased PD 10 version in the error message.
  Convert Parallels Desktop version to semantic-like format (x.y.z)
  errors: 'vm_name_exists' error key added
@legal90
Copy link
Collaborator Author

legal90 commented Apr 24, 2014

Done. Included to v1.0.7

Important! This feature is working only for Parallels Desktop 9 and higher.
If you are using an older version of Parallels Desktop, Power Consumption management will be just skipped.

@legal90 legal90 closed this as completed Apr 24, 2014
@wizonesolutions
Copy link
Contributor

Woo! Thank you! I just discovered this with my new Mac and searching the Parallels forums. Nice to know Vagrant will do it for me in the future.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants