{"id":29884558,"url":"https://github.com/aranbarri/linux-fan-check","last_synced_at":"2026-04-16T05:32:04.660Z","repository":{"id":306105852,"uuid":"1025027891","full_name":"aranbarri/linux-fan-check","owner":"aranbarri","description":"A Linux GUI-based script that checks for fan presence on startup and prompts the user to shut down the system if no fan is detected. Compatible with any Linux desktop environment.","archived":false,"fork":false,"pushed_at":"2025-07-24T08:28:36.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T17:02:25.138Z","etag":null,"topics":["arduino","fan","fan-control","gnome","hardware-monitoring","linux","linux-desktop","raspberry-pi","thermal-protection","ubuntu-desktop"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/aranbarri.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}},"created_at":"2025-07-23T15:54:31.000Z","updated_at":"2025-07-24T08:28:39.000Z","dependencies_parsed_at":"2025-07-23T18:22:46.800Z","dependency_job_id":"294fa1eb-5d69-4b24-b4a5-c40b1e4d1c68","html_url":"https://github.com/aranbarri/linux-fan-check","commit_stats":null,"previous_names":["aranbarri/linux-fan-check"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aranbarri/linux-fan-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aranbarri%2Flinux-fan-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aranbarri%2Flinux-fan-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aranbarri%2Flinux-fan-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aranbarri%2Flinux-fan-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aranbarri","download_url":"https://codeload.github.com/aranbarri/linux-fan-check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aranbarri%2Flinux-fan-check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31872618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["arduino","fan","fan-control","gnome","hardware-monitoring","linux","linux-desktop","raspberry-pi","thermal-protection","ubuntu-desktop"],"created_at":"2025-07-31T15:02:07.623Z","updated_at":"2026-04-16T05:32:04.642Z","avatar_url":"https://github.com/aranbarri.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Startup Fan Checker for Linux\n\nThis script runs at system startup/login and checks if a cooling fan is present on a Linux system.\n\nIf no fan is detected during startup, it shows a graphical prompt asking the user whether to shut down the system.\n\n\u003cimg width=\"500\" height=\"500\" alt=\"ChatGPT Image 23 jul 2025, 18_08_36\" src=\"https://github.com/user-attachments/assets/2e40397f-e0a7-4b54-b3af-22d99b1d099f\" /\u003e\n\n\n## Features\n\n- Detects fan presence via:\n  - hwmon sensors\n  - `/boot/firmware/config.txt` overlay (`dtoverlay=gpio-fan`)\n  - `dmesg` logs\n  - manually labeled GPIO pins\n- If no fan is detected, shows a GUI confirmation dialog (via Zenity)\n- Logs to `/var/log/fan_check.log`\n\n## Requirements\n\n- Any Linux distribution with a graphical environment (X11 or Wayland)\n- `zenity` installed (for the GUI window)\n- `shutdown` command available\n\n## Installation\n\n1. Install Zenity:\n   ```bash\n   sudo apt install zenity\n   ```\n\n2. Copy the script to a permanent location:\n   ```bash\n   sudo cp check_fan.sh /usr/local/bin/\n   sudo chmod +x /usr/local/bin/check_fan.sh\n   ```\n\n3. To run on login (autostart), copy the desktop entry:\n   ```bash\n   mkdir -p ~/.config/autostart\n   cp fan-check.desktop ~/.config/autostart/\n   ```\n\n## Manual Execution\n\nYou can run the script manually at any time:\n```bash\n/usr/local/bin/check_fan.sh\n```\nCheck the logs after executing.\n\n## Logging\n\nAll events and decisions are logged to:\n```\n/var/log/fan_check.log\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faranbarri%2Flinux-fan-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faranbarri%2Flinux-fan-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faranbarri%2Flinux-fan-check/lists"}