Page 1 of 2

Button(on/auto/off) is available in fvdw firmware

PostPosted: Mon Jul 02, 2018 9:56 am
by Basajaun
Good morning,

the Lacie back button (on/auto/off) is available ? Works ?

Thanks in advance !

Best regards,

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Mon Jul 02, 2018 7:14 pm
by fvdw
I need to check as it was awhile ago that we compiled kernels for this device. But Icthink only on/off is doing something. Probably when on on the system can be rebooted and shutdown using webinterface. But I will check kernel setup later this evening

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Mon Jul 02, 2018 7:39 pm
by Basajaun
Hi fvdw,

thanks in advance !

Regards

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Mon Jul 02, 2018 9:06 pm
by fvdw
well these buttons are defined in kernel setup

Code: Select all
static struct gpio_keys_button net5big_buttons[] = {
   {
      .type      = EV_SW,
      .code      = NET5BIG_SWITCH_POWER_OFF,
      .gpio      = NET5BIG_GPIO_POWER_SWITCH_OFF,
      .desc      = "Power rocker switch (auto|off)",
      .active_low   = 0,
   },
   {
      .type      = EV_SW,
      .code      = NET5BIG_SWITCH_POWER_ON,
      .gpio      = NET5BIG_GPIO_POWER_SWITCH_ON,
      .desc      = "Power rocker switch (on|auto)",
      .active_low   = 0,
   },
   {
      .type      = EV_KEY,
      .code      = KEY_POWER,
      .gpio      = NET5BIG_GPIO_PUSH_BUTTON,
      .desc      = "Front Push Button",
      .active_low   = 0,
   },
};

So as well front push button as backside button

However the buttons daemon we use only reacts on the front push button (the big blue light). GPIO pin 8 and 9 could be used to determine position of button on backside but it is not implemented in our firmware
Code: Select all
   MPP8_GPIO,   /* input Rear power switch (on(01b)|auto(oob) off(10b) */
   MPP9_GPIO,   /* Input Rear power switch (auto|off) */

Reason no use, we control the nas via software via web interafce

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Tue Jul 03, 2018 4:06 am
by Basajaun
Good morning fvdw,

please, could you implement these buttons in your firmware, back buttons to shutdown and startup nas ?

Thanks in advance!

Best regards,

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Tue Jul 03, 2018 2:10 pm
by fvdw
What would be the use? You can use webinterface to shut itdown or reboot?
In other words functionality of that button should be defined. What is described in the 5big1 manual as function if this back side switch

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Wed Jul 04, 2018 11:16 am
by Basajaun
Hi fvdw,

firts, sorry for my bad english. Thanks for your time and help.

The operation mode of the button (on / auto / off) in the original version was as follows:

- on - Startup unit.
- auto - While the button was in auto mode, the unit could be turned off from the web interface. Also Wake on Lan is allowed.
- off- Unit was turned off.

Thank you very much.

Regards,

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Tue Jul 17, 2018 1:41 pm
by Basajaun
Hi fvdw,

any news ?

Thanks in advance !

Best regards,

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Tue Jul 17, 2018 6:13 pm
by fvdw
Hi, not really it is on the to do list but with low priority as it has not so much use and I need to figure out which gpio to program. It will require a specific buttons daemon for 5big1
Also in summer I spend more time outside then with programming.Sorry to keep you waiting

Re: Button(on/auto/off) is available in fvdw firmware

PostPosted: Tue Jul 17, 2018 6:29 pm
by Basajaun
Hi fvdw,

thanks for your time and help !

Best regards,