standby 2 hour

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
marclangin

standby 2 hour

Post by marclangin »

Hello, i want to set the standby mode on 2 hours but in Cinnamon 17.2 just 5,10,15,30,45, 1 hour and never are possible. How can i change this ? Perhaps with gconf-editor or in a config file ? Thanks for your answers and sorry for my my bad english (french forum is out).
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
oba123

Re: standby 2 hour

Post by oba123 »

You should be able to add another entry to SLEEP_DELAY_OPTIONS in /usr/lib/cinnamon-settings/modules/cs_power.py

SLEEP_DELAY_OPTIONS = [
(300, _("5 minutes")),
(600, _("10 minutes")),
(900, _("15 minutes")),
(1800, _("30 minutes")),
(2700, _("45 minutes")),
(3600, _("1 hour")),
(7200, _("2 hours")),
(0, _("Never"))
]
marclangin

Re: standby 2 hour

Post by marclangin »

Thanks a lot Oba123 !
Locked

Return to “Cinnamon”