Unified LSMONITOR for Debian System in LinkStation LS421DE

You have done replacing Buffalo stock firmware with Debian, the last part is to adjust the hardware behavior to match the new operating system.

This work initially done by Sergej Wildemann for LinkStation Live V2 with my modification for LinkStation LS421DE for both Buffalo kernel and vanilla one.

What’s LSMONITOR jobs:

  • Controlling LED according to the current state (booting, power off, etc).
  • Monitor the temperature of HDDs and adjust the fan speed according.
  • Monitor power off switch and initiate shutdown when power switch position is off.


Do the following commands on your LinkStation LS421DE. If you have installed previous lsmonitor init script just remove it first:

$ update-rc.d lsmonitor stop
$ update-rc.d lsmonitor remove

Get init script and extract:

$ wget https://github.com/tohenk/linkstation-mod/raw/master/lsmonitor/lsmonitor-unified.tar.gz
$ tar -xvf lsmonitor-unified.tar.gz -C /

Install required packages:

$ apt-get install smartmontools hdparm evtest

Enable init script:

$ update-rc.d lsboot defaults
$ update-rc.d lsmonitor defaults

Restart LinkStation LS421DE to take effect.


, , ,

  1. #1 by Gouga on September 2, 2017 - 2:19 pm

    After install (via serial console)

    82: /etc/init.d/lsmonitor: fan_speed: not found
    82: /etc/init.d/lsmonitor: fan_speed: not found
    82: /etc/init.d/lsmonitor: fan_speed: not found
    82: /etc/init.d/lsmonitor: fan_speed: not found
    82: /etc/init.d/lsmonitor: fan_speed: not found

    and more…. more

  2. #2 by Gouga on September 2, 2017 - 2:21 pm

  3. #3 by Gouga on September 6, 2017 - 1:13 pm

    LS421 uses Nidec U60R12MHAB-5* fan with max 3800 rpm

  4. #4 by Gouga on September 6, 2017 - 5:00 pm

    in my installed U60R [U60R12MLAB-5*] 2400 rpm http://www.nidec.com/en-NA/product/fan/category/F010/G050/P2000144/

  5. #5 by Gouga on September 19, 2017 - 8:10 pm

    echo 3250 > /sys/devices/platform/gpio-fan/hwmon/hwmon0/fan1_target
    its SLOW speed
    echo 1500 > /sys/devices/platform/gpio-fan/hwmon/hwmon0/fan1_target
    its MIDDLE speed
    echo 5000 > /sys/devices/platform/gpio-fan/hwmon/hwmon0/fan1_target
    Full speed
    echo 0 > /sys/devices/platform/gpio-fan/hwmon/hwmon0/fan1_target
    Stop fan
    kernel 4.9.47 Linaro GCC 7.1-2017.08

  6. #6 by Gouga on September 20, 2017 - 1:45 am

    in scripts ls-functions and ls-functions-vanilla error

    and ls-functions-vanilla

    SPEED_HIGH=3250 <<HIGH

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: