summaryrefslogtreecommitdiffstats
path: root/src/shared/sleep-config.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* hibernate-util,logind: also differentiate the case of misconfigured resumeMike Yuan2024-05-081-0/+4
* hibernate-util,logind: emit a clear error if the specified resume dev is missingMike Yuan2024-05-081-5/+13
* use FOREACH_ELEMENTMatteo Croce2024-04-181-1/+1
* sleep: rename SleepMemMode= to MemorySleepMode=Mike Yuan2024-04-051-1/+1
* sleep: add SleepMemMode= setting for configuring /sys/power/mem_sleepMike Yuan2024-03-281-0/+14
* sleep-config: make sleep_mode_supported take a pathMike Yuan2024-03-281-11/+14
* sleep-config: fix potential memory leakMike Yuan2024-03-281-2/+2
* sleep-config: make sleep_operation_is_hibernation uppercaseMike Yuan2024-03-281-1/+1
* various: use new config loader instead of config_parse_config_file()Zbigniew Jędrzejewski-Szmek2024-03-071-3/+6
* shared/conf-parser: collapse pkgdir and conf_file args into oneZbigniew Jędrzejewski-Szmek2024-03-071-1/+1
* sleep-config: allow setting empty HibernateMode= (use kernel default)Mike Yuan2023-10-301-1/+34
* sleep: introduce sleep_operation_is_hibernationMike Yuan2023-10-271-1/+1
* sleep-config: make hybrid sleep always use 'suspend' disk modeMike Yuan2023-10-241-17/+13
* sleep-config: check sleep mode only when hibernationMike Yuan2023-10-231-9/+10
* sleep-config: remove HibernateState= & HybridSleepState=, restrictMike Yuan2023-10-231-30/+69
* hibernate-util: introduce hibernation_is_safeMike Yuan2023-10-201-3/+12
* sleep-config: introduce sleep_supported_full that returns a reasonMike Yuan2023-10-201-21/+72
* sleep-config: minor cleanup for can_sleep_{state,disk}Mike Yuan2023-10-201-47/+48
* sleep-config: several cleanupsMike Yuan2023-09-271-27/+28
* sleep-util: split into sleep-config and hibernate-utilMike Yuan2023-09-271-0/+259
* sleep: rename sleep-config.[ch] → sleep-util.[ch]Lennart Poettering2023-06-201-1119/+0
* sleep-config: reduce scope of DMI object path a bitLennart Poettering2023-06-201-10/+9
* sleep-config: rename .device field to .pathLennart Poettering2023-06-201-24/+24
* sleep-config: don't use 'device_id' moniker for a dev_t entityLennart Poettering2023-06-201-5/+5
* sleep-config: pin swap device while operating via O_PATHLennart Poettering2023-06-201-4/+7
* sleep-config: replace SwapEntry's .type field with a proper enumLennart Poettering2023-06-201-12/+25
* sleep-config: check if we operate on regular file in swap_device_to_device_id...Lennart Poettering2023-06-201-0/+4
* sleep-config: replace useless fstat() by useful fd_verify_regular()Lennart Poettering2023-06-201-3/+3
* sleep-config: rename can_sleep_state() parameterLennart Poettering2023-06-201-4/+4
* sleep-config: add comment about securityChristoph Anton Mitterer2023-06-141-0/+8
* battery-util: move battery_is_discharging_and_low() to battery-util.[ch]Lennart Poettering2023-06-051-80/+1
* battery-util: split out code that checks AC power state into its own .c/.h pairLennart Poettering2023-06-051-2/+2
* tree-wide: use _cleanup_set_free_ and friendsYu Watanabe2023-05-311-1/+1
* conf: replace config_parse_many_nulstr() with config_parse_config_file()Franck Bui2023-03-131-8/+3
* sleep: check if we're on AC power before checking battery capacityMike Yuan2023-02-211-2/+9
* sleep: enumerate only existing and non-device batteriesYu Watanabe2023-01-271-3/+14
* sleep: fix indentationYu Watanabe2023-01-271-5/+5
* sleep: introduce siphash24_compress_id128()Yu Watanabe2023-01-271-34/+28
* sleep: simplify code a bitYu Watanabe2023-01-271-15/+5
* sleep: introduce SuspendEstimationSec=Yu Watanabe2023-01-271-3/+8
* sleep: rename hibernate_delay_sec -> _usecYu Watanabe2023-01-261-3/+3
* sleep: reduce double logging and improve messages and comments a bitZbigniew Jędrzejewski-Szmek2023-01-231-16/+14
* test-sleep: add a very simple test that prints battery suspend estimatesZbigniew Jędrzejewski-Szmek2023-01-231-1/+1
* sleep: do not abort if we try to query capacity of missing batteryZbigniew Jędrzejewski-Szmek2023-01-231-1/+1
* tree-wide: use -EBADF for fd initializationZbigniew Jędrzejewski-Szmek2022-12-191-1/+1
* Rename def.h to constants.hZbigniew Jędrzejewski-Szmek2022-11-081-1/+1
* sleep: support acpi_btp and suspend system if enabled, skipping custom timerSonali Srivastava2022-08-231-0/+63
* sleep: support multiple battery instead of only BAT0Sonali Srivastava2022-08-091-74/+329
* sleep: store battery discharge rate/hour with hashSonali Srivastava2022-07-201-0/+131
* sleep: use current charge level to decide suspensionSonali Srivastava2022-07-201-0/+38