{"id":34904018,"url":"https://github.com/protocol-8/dynamic-refresh","last_synced_at":"2026-04-27T09:01:55.222Z","repository":{"id":321228465,"uuid":"1085009909","full_name":"protocol-8/dynamic-refresh","owner":"protocol-8","description":"Automatically switches your display refresh rate when you plug or unplug your laptop charger.","archived":false,"fork":false,"pushed_at":"2025-12-14T07:18:40.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-19T21:30:19.837Z","etag":null,"topics":["automatic","automation","dynamic","human-intelligence","powershell","powershell-script","qol","refresh-rate","smart","vbscript","windows","windows-10","windows-11"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/protocol-8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-28T13:18:36.000Z","updated_at":"2025-12-14T07:18:43.000Z","dependencies_parsed_at":"2025-10-29T05:39:00.499Z","dependency_job_id":null,"html_url":"https://github.com/protocol-8/dynamic-refresh","commit_stats":null,"previous_names":["xinevitable/auto-refreshrate-switcher-on-battery","xinevitable/dynamic-refresh","protocol-8/dynamic-refresh"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/protocol-8/dynamic-refresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protocol-8%2Fdynamic-refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protocol-8%2Fdynamic-refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protocol-8%2Fdynamic-refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protocol-8%2Fdynamic-refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protocol-8","download_url":"https://codeload.github.com/protocol-8/dynamic-refresh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protocol-8%2Fdynamic-refresh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32329466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["automatic","automation","dynamic","human-intelligence","powershell","powershell-script","qol","refresh-rate","smart","vbscript","windows","windows-10","windows-11"],"created_at":"2025-12-26T09:38:55.389Z","updated_at":"2026-04-27T09:01:55.211Z","avatar_url":"https://github.com/protocol-8.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡ Auto Refresh Rate Switcher (Plug / Unplug)\n\nAutomatically switches your display refresh rate when you plug or unplug your laptop charger.  \nNo ugly PowerShell or CMD windows, no manual setup — just install once and forget about it.\n\n---\n\n## 📁 Included Files\nPath: `C:\\Program Files\\QRes\\`\n\n| File | Description |\n|------|--------------|\n| **QRes.exe** | The tool that changes display refresh rate. |\n| **qres.ps1** | Checks if your laptop is on AC or battery and triggers QRes. |\n| **qres.vbs** | Runs the PowerShell script silently (no window). |\n| **taskschd.xml** | Task Scheduler configuration file. |\n---\n\n## ⚙️ Installation (One-Command Setup)\n\nOpen **PowerShell as Administrator** and run:\n\n```powershell\nirm \"https://raw.githubusercontent.com/protocol-8/dynamic-refresh/main/setup.ps1\" | iex\n```\n\nThat’s it.  \nWhen you plug in your charger → refresh rate jumps to **120 Hz**  \nWhen you unplug → refresh rate drops to **60 Hz**  \n\n---\n\n## 🧠 How It Works\nWindows logs two power events:\n- **Event ID 105** → Plugged in  \n- **Event ID 104** → Unplugged  \n\nThe scheduled task listens for those and silently runs `qres.vbs`, which launches `qres.ps1`.  \nThat script checks power status and switches refresh rates using `QRes.exe`.\n\nDefault logic inside the script:\n```powershell\nif ((Get-CimInstance -ClassName Win32_Battery).BatteryStatus -eq 2) {\n    Start-Process \"C:\\Program Files\\QRes\\QRes.exe\" -ArgumentList \"/r:120\" -WindowStyle Hidden\n} else {\n    Start-Process \"C:\\Program Files\\QRes\\QRes.exe\" -ArgumentList \"/r:60\" -WindowStyle Hidden\n}\n```\n\n---\n\n## 🧩 Customizing\nEdit the two numbers in `qres.ps1` to your preferred refresh rates.  \nExamples:\n- `/r:120` → `/r:360`\n- `/r:60` → `/r:144`\n\nTo test manually, run:\n```powershell\nwscript.exe \"C:\\Program Files\\QRes\\qres.vbs\"\n```\nIf your display flickers, it worked.\n\n---\n\n## 🧹 Uninstall\nTo remove everything:\n```powershell\nUnregister-ScheduledTask -TaskName \"AutoRefreshRate\" -Confirm:$false\nRemove-Item \"C:\\Program Files\\QRes\" -Recurse -Force\n```\n\n---\n\n## ⚠️ Notes\n- Works on **Windows 10/11**.  \n- Needs **Administrator privileges** for install.  \n- Task runs fully silent once set up.\n\n---\n\n**Plug in = 120 Hz Unplug = 60 Hz**  \nSimple. Efficient. Quiet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotocol-8%2Fdynamic-refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotocol-8%2Fdynamic-refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotocol-8%2Fdynamic-refresh/lists"}