{"id":20199581,"url":"https://github.com/max0x7ba/kdeconnect-powersave-keepalive","last_synced_at":"2026-03-04T23:02:29.647Z","repository":{"id":140636408,"uuid":"523145545","full_name":"max0x7ba/kdeconnect-powersave-keepalive","owner":"max0x7ba","description":"Increase TCP keepalive timeout for longer battery life.","archived":false,"fork":false,"pushed_at":"2022-08-10T02:14:44.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T00:48:57.722Z","etag":null,"topics":["kde","kde-desktop","kde-plasma","kdeconnect"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/max0x7ba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-10T00:12:45.000Z","updated_at":"2025-10-22T08:04:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"c03fe9bb-2b26-45d2-9c7e-976c2f0f1d32","html_url":"https://github.com/max0x7ba/kdeconnect-powersave-keepalive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/max0x7ba/kdeconnect-powersave-keepalive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max0x7ba%2Fkdeconnect-powersave-keepalive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max0x7ba%2Fkdeconnect-powersave-keepalive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max0x7ba%2Fkdeconnect-powersave-keepalive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max0x7ba%2Fkdeconnect-powersave-keepalive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max0x7ba","download_url":"https://codeload.github.com/max0x7ba/kdeconnect-powersave-keepalive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max0x7ba%2Fkdeconnect-powersave-keepalive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30098098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T22:49:54.894Z","status":"ssl_error","status_checked_at":"2026-03-04T22:49:48.883Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kde","kde-desktop","kde-plasma","kdeconnect"],"created_at":"2024-11-14T04:38:08.063Z","updated_at":"2026-03-04T23:02:29.632Z","avatar_url":"https://github.com/max0x7ba.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kdeconnect-powersave-keepalive\nIncrease TCP keepalive timeout for longer battery life.\n\nKDE Connect in Plasma desktop sends TCP keepalive messages every 5 seconds after connection has idled for 10 seconds, which drains paired phone battery at faster rate. https://bugs.kde.org/show_bug.cgi?id=441830\n\nThis workaround makes KDE Connect TCP keepalive timeout configurable. The default is set to 9 minutes.\n\nExample of KDE Connect TCP keepalive messages:\n\n```\n05:09:30.783016 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544842155 ecr 2754153561], length 0\n05:09:30.816512 IP OnePlus-7T-Pro.1716 \u003e workstation.32990: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2754153594 ecr 2544842156], length 0\n05:09:41.018310 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544852390 ecr 2754153594], length 0\n05:09:41.062820 IP OnePlus-7T-Pro.1716 \u003e workstation.32990: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2754163840 ecr 2544842156], length 0\n05:09:51.258606 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544862631 ecr 2754163840], length 0\n05:09:51.304018 IP OnePlus-7T-Pro.1716 \u003e workstation.32990: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2754174082 ecr 2544842156], length 0\n05:10:01.498581 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544872871 ecr 2754174082], length 0\n05:10:02.019323 IP OnePlus-7T-Pro.1716 \u003e workstation.32990: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2754182723 ecr 2544842156], length 0\n05:10:12.250315 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544883622 ecr 2754182723], length 0\n05:10:17.370580 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544888743 ecr 2754182723], length 0\n05:10:17.383432 IP OnePlus-7T-Pro.1716 \u003e workstation.32990: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2754184063 ecr 2544842156], length 0\n05:10:27.610478 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544898983 ecr 2754184063], length 0\n05:10:32.730605 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544904103 ecr 2754184063], length 0\n05:10:33.353527 IP OnePlus-7T-Pro.1716 \u003e workstation.32990: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2754185414 ecr 2544842156], length 0\n05:10:43.482308 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544914854 ecr 2754185414], length 0\n05:10:48.602579 IP workstation.32990 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2544919975 ecr 2754185414], length 0\n05:10:48.650261 IP OnePlus-7T-Pro.1716 \u003e workstation.32990: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2754190695 ecr 2544842156], length 0\n```\n\nExample of KDE Connect TCP keepalive messages with the workaround installed:\n```\n05:35:15.633953 IP OnePlus-7T-Pro.1716 \u003e workstation.33000: Flags [.], ack 1449, win 176, options [nop,nop,TS val 2755026524 ecr 2546387004], length 0\n05:35:15.634148 IP OnePlus-7T-Pro.1716 \u003e workstation.33000: Flags [.], ack 2062, win 181, options [nop,nop,TS val 2755026524 ecr 2546387004], length 0\n05:35:15.671758 IP workstation.33000 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 121, win 83, options [nop,nop,TS val 2546387044 ecr 2755026562], length 0\n05:35:15.695753 IP workstation.33000 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2546387068 ecr 2755026586], length 0\n05:35:15.731208 IP OnePlus-7T-Pro.1716 \u003e workstation.33000: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2755026621 ecr 2546387068], length 0\n05:44:34.586547 IP workstation.33000 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2546945959 ecr 2755026621], length 0\n05:44:34.733266 IP OnePlus-7T-Pro.1716 \u003e workstation.33000: Flags [.], ack 3480, win 187, options [nop,nop,TS val 2755514995 ecr 2546387068], length 0\n05:46:12.656676 IP OnePlus-7T-Pro.1716 \u003e workstation.33000: Flags [.], ack 4807, win 204, options [nop,nop,TS val 2755526826 ecr 2547043949], length 0\n05:55:13.562665 IP workstation.33000 \u003e OnePlus-7T-Pro.1716: Flags [.], ack 1285, win 83, options [nop,nop,TS val 2547584935 ecr 2755526826], length 0\n05:55:13.648939 IP OnePlus-7T-Pro.1716 \u003e workstation.33000: Flags [.], ack 4807, win 204, options [nop,nop,TS val 2755710185 ecr 2547043949], length 0\n\n```\n\n# Usage\nThe workaround patches `kdeconnectd` ELF object to make it load the shared library built from this code. Using `sudo` command may be necessary to install and uninstall.\n\n## Clone, build and test\n```\n$ git clone git@github.com:max0x7ba/kdeconnect-powersave-keepalive.git\n$ cd kdeconnect-powersave-keepalive\n$ make\n```\n\n## Install\n```\n$ sudo make install\n```\n\n## Status\n```\n$ make status\n```\n\n## Uninstall\n```\n$ sudo make uninstall\n```\n\n---\nCopyright (c) 2022 Maxim Egorushkin. MIT License. See the full licence in file LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax0x7ba%2Fkdeconnect-powersave-keepalive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax0x7ba%2Fkdeconnect-powersave-keepalive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax0x7ba%2Fkdeconnect-powersave-keepalive/lists"}