113 Commits

Author SHA1 Message Date
Berthold Höllmann
c33c05ae67 Add support for setting power LED via systemctl (#60)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
* Add support for setting power LED via systemctl

* Add documentation for rudimentary ugreen-power-led.service

* Add "Type=oneshot" and "RemainAfterExit=true" as suggested
2025-06-12 10:14:48 +08:00
Thomas
dc04db484c Don't mark drives in standby as failed (#59)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
The standby return code of smartctl is updated to 0 to avoid detecting it as a failure.
2025-06-07 11:31:44 +08:00
Thomas
276ae34cd1 Update ugreen-diskiomon to ignore smartctl non-critical return codes (#57)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
Smartctl will also return non-zero if it detected past errors even when currently no other errors are observed. It will set up to 8 bits to indicate the differen types of observed results, where bit 5 does not indicate a _current_ error: `SMART status check returned "DISK OK" but some attributes have been at or below threshold in the past.`

The change ignores bit 5 (= 32) when checking the exit code.

Future improvements could detect other bits to color the leds differently depending on the type of error (f.e. bit 4 might indicate a future problem and could turn the led orange instead of red)
2025-06-04 17:33:44 +08:00
Yuhao Zhou
af2b3c327a add license (#54)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
2025-04-12 22:49:48 +08:00
Yuhao Zhou
ab0db369fa update the debian build scripts
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
v0.3
2025-03-20 15:05:05 +08:00
Yuhao Zhou
730f395251 Update README.md
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
2025-01-19 17:51:59 +08:00
Yuhao Zhou
e8e5a28c3f Update README.md (#13)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
Add a link to an install script for TrueNAS.
2025-01-13 11:24:53 +08:00
docgalaxyblock
15dbae0f8f fix systemd services (#51)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
* move systemd scripts to their own subfolder

* move probe-leds to its own oneshot service

* README improvements
2025-01-11 21:50:36 +08:00
tooomm
b789a67793 Readme: small tweaks (#46)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
* small tweaks

* Clarify chassis LED ID
2025-01-03 13:04:18 +08:00
a4d9e2e73e Add verbose mode in the kernel driver (#47)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
- Error messages are displayed only when verbose mode is enabled
2024-12-15 23:17:14 +08:00
tooomm
39511eb639 Readme: Add DXP4800 to list of supported devices (#44)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
2024-12-01 20:01:53 +08:00
Yuhao Zhou
e0bbe9ee50 Improve the disk standby check (#40)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
v0.2
2024-11-01 21:36:19 +08:00
gulikoza
d0c36a5f4a Add ugreen-blink-disk to spec (#39)
Some checks are pending
Build kernel module for TrueNAS / build-and-run (push) Waiting to run
Co-authored-by: gulikoza <gulikoza@users.noreply.github.com>
2024-10-31 21:12:55 +08:00
Yuhao Zhou
b49da0d890 Add an optional compiled disk activities monitor to reduce the CPU usage (#38)
Some checks are pending
Build kernel module for TrueNAS / build-and-run (push) Waiting to run
2024-10-31 18:24:48 +08:00
gulikoza
af8680ce95 Add support for disk standby. (#37)
Co-authored-by: gulikoza <gulikoza@users.noreply.github.com>
2024-10-31 16:08:09 +08:00
gulikoza
7dd43ccc8d Add SPECS for RHEL8/9 (#33)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
* Fix grep: lsmod changes '-' to underscores.

* Add SPECS for RHEL8/9

Prepare SOURCES:
    download source archive and copy to ~/rpmbuild/SOURCES
    copy SPECS/kmod-led-ugreen.spec to ~/rpmbuild/SPECS

Build with:
    rpmbuild -ba kmod-led-ugreen.spec --define 'kmod_kernel_version (your_kernel_version)'

---------

Co-authored-by: gulikoza <gulikoza@users.noreply.github.com>
2024-10-27 23:25:56 +08:00
tooomm
241ff6bfa2 README: Update & Small improvements (#32)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
* repo rename

* layout and wording

* wording
2024-10-22 01:11:45 +08:00
Varun Madiath
c1386fc251 Make build more flexible and complete. (#30)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
* Allow specifying kernel directory when building

* Add install target to Makefile
2024-10-16 00:07:27 +08:00
tooomm
3ed3393681 fix a link in README.md (#29) 2024-10-15 23:58:33 +08:00
xerootg
403b6e44c5 Support DKMS specified kernel version (#26)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
* Allow DKMS to specify the kernel version to be built

* Default when not using DKMS KERNELRELEASE to current kernel
2024-10-12 12:23:23 +08:00
Yuhao Zhou
8587b51e76 fix the duplicated calls of ugreen-probe-leds (#25)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
2024-10-03 01:59:58 +08:00
Yuhao Zhou
92b33134a5 fix the segfault when setting blink / breath using ugreen_leds_cli (#24)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
2024-09-28 04:23:31 +08:00
Yuhao Zhou
da4ce000bf update the github workflow
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
2024-09-19 13:14:29 +08:00
Yuhao Zhou
d915a52a17 update the build script 2024-09-19 13:11:19 +08:00
KrzysztofHajdamowicz
0facdf2a6f Adjust systemd units to wait for kernel modules to be loaded (#23)
* Run ugreen-diskiomon.service after kernel modules are loaded

* Run ugreen-netdevmon@.service after kernel module is loaded
2024-09-19 02:30:24 +08:00
Yuhao Zhou
db8e771d0c Merge branch 'gh-actions' 2024-08-23 12:31:09 +08:00
Yuhao Zhou
e83004f1e2 Merge branch 'gh-actions' of github.com:miskcoo/ugreen_dx4600_leds_controller into gh-actions 2024-08-23 12:26:56 +08:00
Yuhao Zhou
1417d0d4a8 update github workflow 2024-08-23 12:26:33 +08:00
Yuhao Zhou
c36d62f217 Update README.md 2024-08-22 23:49:09 +08:00
Yuhao Zhou
6efa12e962 Update README.md 2024-08-22 20:41:50 +08:00
Yuhao Zhou
02f12711eb Update README.md
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
2024-08-22 20:41:12 +08:00
Yuhao Zhou
20e9c5d507 Merge branch 'gh-actions' of github.com:miskcoo/ugreen_dx4600_leds_controller into gh-actions 2024-08-22 20:36:10 +08:00
Yuhao Zhou
10f51d883b add cron build 2024-08-22 20:35:50 +08:00
miskcoo
d2bcb57375 Add compiled modules 2024-08-22 12:33:15 +00:00
Yuhao Zhou
eb3f97924e grant the write permission 2024-08-22 20:31:51 +08:00
Yuhao Zhou
10657117f8 remove led-ugreen.ko in .gitignore 2024-08-22 20:29:08 +08:00
Yuhao Zhou
f38e400294 update gh-actions script 2024-08-22 20:26:50 +08:00
Yuhao Zhou
e946ab3c1a update gh-actions script 2024-08-22 20:21:28 +08:00
Yuhao Zhou
2eb7530562 update gh-actions script 2024-08-22 20:13:35 +08:00
Yuhao Zhou
02edae467a auto push 2024-08-22 20:12:38 +08:00
Yuhao Zhou
bc7ce1eebb add details in scripts 2024-08-22 12:56:52 +08:00
Yuhao Zhou
d911363922 add build-all.sh 2024-08-22 12:52:51 +08:00
Yuhao Zhou
7fe60116de add github actions for building TrueNAS driver 2024-08-22 12:52:02 +08:00
tooomm
05acef7f2c README: Add DX4700 (#22)
Saw 3646dd1fd7, but the device is not mentioned in the compatible section in the readme yet.

What I found, the device name is `DX4700+`
2024-07-14 10:55:13 +08:00
Yuhao Zhou
1228d276c3 move the unRAID script to ich777's repo 2024-06-30 20:45:21 +08:00
Yuhao Zhou
e5d191d905 Update README.md 2024-06-30 00:50:55 +08:00
Yuhao Zhou
3646dd1fd7 add DX4700 support 2024-06-28 23:57:33 +08:00
Yuhao Zhou
10d62c1594 add DXP2800 series (#19) 2024-06-28 03:02:35 +08:00
9282e52e25 bug fixes for the unRAID script (#20)
* Bugfixes

- add missing led_map thanks @miskcoo
- implement functions for modprobe from drivers
- minor changes for logger messages
- add DXP480T and function to set static white LED

* Bugfix for DXP6800

* fix: turn off the light when no disk in a slot (#16)

* Update ugreen-leds

---------

Co-authored-by: Yuhao Zhou <miskcoo@gmail.com>
2024-06-28 01:57:05 +08:00
fb712f3a93 add custom ugreen-leds script for unRAID (#18)
Customize script specifically for unRAID plugin
- remove predefined variables
- send messages to syslog
- determine first available Interface automatically
2024-06-26 01:51:31 +08:00