summaryrefslogtreecommitdiffstats
path: root/src/shared/sleep-config.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* 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
* basic: split out dev_t related calls into new devno-util.[ch]Lennart Poettering2022-04-131-2/+2
* sleep: don't skip resume device with low priority/available spaceEgor2021-10-041-9/+11
* basic: drop one btrfs-related function and move anotherZbigniew Jędrzejewski-Szmek2021-06-241-5/+7
* sleep: don't check for EADVLennart Poettering2021-05-221-1/+1
* sleep: can_sleep_state() + can_sleep_disk() don#t return plain booleansLennart Poettering2021-05-221-2/+2
* sleep: use SleepOperation enum everywhere and drop sleep_settings()Lennart Poettering2021-05-221-89/+58
* sleep: introduce high-level SleepOperation enumLennart Poettering2021-05-221-0/+10
* alloc-util: simplify GREEDY_REALLOC() logic by relying on malloc_usable_size()Lennart Poettering2021-05-191-4/+2