asustor-platform-driver icon indicating copy to clipboard operation
asustor-platform-driver copied to clipboard

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

Open OH1KK opened this issue 2 years ago • 6 comments

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

  • sudo dmesg
  • sudo dmidecode -s system-manufacturer
  • sudo dmidecode -s system-product-name
  • sudo dmidecode -s bios-vendor
  • sudo dmidecode -s bios-version
  • sudo dmidecode -s bios-release-date
  • sudo dmidecode -s bios-revision
  • sudo gpioinfo

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:

  • Stop front green led blinking
  • Dim down front led brightness
  • Detect if front buttons are pressed (up, esc, down, enter)
  • Change front panel LCD text "STARTING SYSTEM PLEASE WAIT..." to something else
  • Generate beep sound

asustor-AS5104T.txt

OH1KK avatar Apr 07 '23 13:04 OH1KK

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 avatar Apr 07 '23 15:04 OH1KK

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

OH1KK avatar Apr 07 '23 15:04 OH1KK

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.

Smart123s avatar Apr 09 '23 18:04 Smart123s

pwm3 works for AS5104T too. Thank you.

OH1KK avatar Apr 09 '23 18:04 OH1KK

@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.

mafredri avatar Dec 17 '23 22:12 mafredri