Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • KWeather KWeather
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Plasma Mobile
  • KWeatherKWeather
  • Merge requests
  • !22

WIP: Energy saving

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Han Young requested to merge daemonPowerSaving into master Aug 26, 2020
  • Overview 0
  • Commits 3
  • Pipelines 6
  • Changes 1

Don't load qml, register model if launch in daemon mode. I didn't test the cpu usage difference, but the memory usage is significantly reduced in daemon mode. (67 MiB -> 5.4 MiB)

This would be useful when kweather plasmoid is added to desktop and user doesn't open kweather window.

The more aggressive power saving method would be destroying QQmlApplicationEngine instance when last window closed and re-construct it when DBus calls to activate KWeather GUI. However, there is overhead in destroy and re-creation GUI and the trade off will need to be discussed.

This is somewhat related to general power management in Plasma Mobile, any input from Plasma team is well appreciated.

Edited Sep 07, 2020 by Han Young
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: daemonPowerSaving