Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Please make the assumption that VMs don't need power saving user-configurable

Open
#474 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
desktop

Research direction

Start by locating the VM-detection logic and the power-management settings handling in cinnamon-settings-daemon. Trace how configured display sleep and suspend values are treated for virtual machines; done means those user settings are honored while any VM-specific defaults remain appropriately configurable.

Written by the indexing model from the issue text.

Description

I discovered shortly after posting about my issue with display sleep not working (https://forums.linuxmint.com/viewtopic.php?p=2829603#p2829603) that cinnamon-settings-daemon appears to ignore multiple power management related settings if it detects that the system is a VM.

This represents a fairly large assumption about what a VM is and how it is used. VM displays may or may not also be virtual; they can still very easily be physical displays if the VM uses a physical graphics card. The user may still want display sleep to work, even if they don't want full system suspend. It is also fairly confusing for users since the settings appear in settings panels and appear configurable and like they should work, and then simply are ignored by the daemon that implements them.

It does perhaps seem reasonable for power management settings to default to different values for a VM, and those defaults could be "Never" sleep the display or suspend, but completely ignoring a user's configured settings seems like behavior that's difficult to justify as reasonable. It's unclear to me right now whether a GNOME setting's default can actually be made conditional on a runtime determination like "is VM", but alternatives that achieve this in practice - like doing a one time override of the settings' value at daemon runtime (and then setting a flag to not repeat the override) - seem unequivocally preferable to ignoring the setting completely and would be a good way to roll out a change like this.

Can this please be changed to enable users to make and configure their own decisions about how power management should behave? Thank you!

Edit: I'm also open to submitting a patch for this if it's indicated that one might be accepted.

Dominant language
C
Stars
70
Forks
78
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/cinnamon-settings-daemon

All issues in linuxmint/cinnamon-settings-daemon

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.