https://github.com/boredsquirrel/fwupd-gui
A simple systemd service using Zenity and notify-send to notify users about firmware updates.
https://github.com/boredsquirrel/fwupd-gui
Last synced: over 1 year ago
JSON representation
A simple systemd service using Zenity and notify-send to notify users about firmware updates.
- Host: GitHub
- URL: https://github.com/boredsquirrel/fwupd-gui
- Owner: boredsquirrel
- License: gpl-3.0
- Created: 2023-05-13T22:07:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-13T23:16:42.000Z (about 3 years ago)
- Last Synced: 2025-01-26T20:23:09.389Z (over 1 year ago)
- Language: Shell
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fwupd GUI
A simple systemd service using Zenity and notify-send to notify users about firmware updates.
Goal of this project: Remove dependency from bloated software stores for an easy GUI firmware update integration. It should be essential for everyone to apply them as fast as possible. As it is a rather invasive process, it needs user interaction.

Try it:
```
sudo wget https://github.com/trytomakeyouprivate/fwupd-GUI/raw/main/99-charged.rules -P /etc/udev/rules.d &&\
sudo wget https://github.com/trytomakeyouprivate/fwupd-GUI/raw/main/firmwareupdate -P /etc/ &&\
sudo wget https://github.com/trytomakeyouprivate/fwupd-GUI/raw/main/charged.service -P /etc/systemd/system &&\
sudo wget https://github.com/trytomakeyouprivate/fwupd-GUI/raw/main/firmwareupdate.service -P /etc/systemd/system &&\
sudo wget https://github.com/trytomakeyouprivate/fwupd-GUI/raw/main/firmwareupdate.timer -P /etc/systemd/system &&\
sudo systemctl enable firmwareupdate.service && echo "Firmware updater installed"
```
Idea:
- a udev rule checks if A: the user is attached to AC or B: the user has over 70% battery life (this should cover Desktop and laptop users)
- the udev rule activates a systemd unit that indicates a secure state to execute updates
- the timer will then start and run the service
- the service runs a bash script stored as /etc/firmwareupdate
- the bash script checks if there are available updates, reformats the output and shows available devices in a zenity dialog. The user has the opportunity to update via the GUI or to skip the update. A message informs how to update manually
- When skipped the service runs the next day again.
- If there are no updates the memory load will be minimal and the service will be silent all the time
ToDo:
- testing, troubleshooting
- fixing systemctl enabling
- testing fwupdmgr output reformatting
- testing no-action scenarios
- fixing buttons in zenity
- writing a noninvasive log about successful update checks with none available
Contributions welcome!