mafredri / asustor-platform-driver

Linux kernel platform driver for ASUSTOR NAS hardware (leds, buttons)
GNU General Public License v3.0
62 stars 9 forks source link

Support for: Asustor AS5104T. Also requesting usage examples for testing #4

Open OH1KK opened 1 year ago

OH1KK commented 1 year ago

asustor_as5104t_front I have Asustor AS5104T. I have already installed Debian bullseye into it.

as attachment. I also installed asustor platform module

git clone --branch it87 https://github.com/mafredri/asustor-platform-driver.git

Module compiled and loaded without warnings. I am unsure does it work as it should, I don't know how to test it. I would see instructions for, how to:

asustor-AS5104T.txt

OH1KK commented 1 year ago

Buttons & LCD. There is project for LCD and buttons

https://github.com/mafredri/lcm

It works with AS5104T. Notes for installing on Debian bullseye. Debian default version for go is 1.15. It is too old for lcm. You need to install golang-go-1.17. You can find it from bullseye-backports repository.

OH1KK commented 1 year ago

To see current fan value

cat /sys/class/hwmon/hwmon4/pwm1

To change fan speed

Full speed

echo 255 > /sys/class/hwmon/hwmon4/pwm1

Default speed

echo 51 > /sys/class/hwmon/hwmon4/pwm1

Low speed (quiet)

echo 13 > /sys/class/hwmon/hwmon4/pwm1

Smart123s commented 1 year ago

On my AS6602T I can change the LED brightness with the same command as the fan speed, just replace pwm1 with pwm3. 255 is off and 0 is max brightness.

OH1KK commented 1 year ago

pwm3 works for AS5104T too. Thank you.

mafredri commented 10 months ago

@OH1KK I opened a new PR, #8, for testing AS51XXT support, would you like to try it out?

I enabled it with the same pin configuration as AS67XXT (recently added by @DanielGibson), but I'm just making a guess here. Everything LED might not work, but most should. Disks in particular may not work.

hpnt commented 1 month ago

Good day! I have this 5104t Asustor, can you help me I need a Bios dump, it froze when I turned it on and won't turn on anymore. Please make a copy of the Bios if possible, I'll be grateful. IMG_20240823_094138