Page 2 of 2

Re: Cloudshell on Odroid XU4 feature request

Posted: Thu Jun 23, 2016 7:11 pm
by Fourdee
johnvick wrote:Just tried this out buy using this link I found in the Github thread - I'm still on v119.

wget https://raw.githubusercontent.com/Fourd ... cloudshell -O /DietPi/dietpi/dietpi-cloudshell

This gives dietpi-cloudshell v6.

It gives a message:

Screen will be powered down in under 1 minute.

setterm: terminal xterm does not support --blank

setterm cannot (un)set powersave mode: input output error.

Maybe it relies on something else that is to be in v120?
Hi John,

I think you may also require this updated script:

Code: Select all

wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/login -O /DietPi/dietpi/login
The new powersaving feature will only work when DietPi-Cloudshell has been launched during boot. This is because we can only change the powersaving display features on the screen we originate from. Basically means we cant turn on/off the display if the program was launched over SSH. I pretty much exhausted all available options to try and prevent this: https://github.com/Fourdee/DietPi/issue ... -225637243

Workaround:
Lets set autostart for dietpi-cloudshell, run the following command and then select dietpi-cloudshell from the list:

Code: Select all

dietpi-autostart
Reboot system. If you start or stop DietPi-Cloudshell at any point via the control panel, it will not be able to control the display. So after you have changed and applied any settings, please ensure you reboot.

I know, not an ideal solution, but its the only method that works at the moment.

Re: Cloudshell on Odroid XU4 feature request

Posted: Thu Jun 23, 2016 9:08 pm
by johnvick
Hi Fourdee,

I've installed that script, set Cloudshell to autoboot (was before anyhow) and switch off in an hour (just missed 7 am) and I'll post here what the result is. In the meantime I have found another possible bug - I have a few NFS shares on a QNAP that are mounted on the XU4. The QNAP powers of at 11:30 pm. From then on the Cloudshell screen sticks with a message about shares not being available. When the QNAP comes on in the morning the Cloudshell screen starts to rotate again.

Thanks for you work on this, John

Re: Cloudshell on Odroid XU4 feature request

Posted: Thu Jun 23, 2016 9:44 pm
by Fourdee
johnvick wrote:The QNAP powers of at 11:30 pm. From then on the Cloudshell screen sticks with a message about shares not being available
Hi John,

Where are the mount points for your QNAP shares? (eg: /mnt/samba).

Its also worth noting, when in powersaving mode, DietPi-Cloudshell will not update the scenes, to save wasteful processing :)
I've installed that script, set Cloudshell to autoboot (was before anyhow) and switch off in an hour (just missed 7 am) and I'll post here what the result is.
If you want to test:
You can set the hour to the current hour, save changes. Once rebooted, DietPi-Cloudshell will then match the current hour and power screen off straight away.

I have my XU4 set to 10pm off and 8am on. Really handy to have and saves us a few pence on electric :D

Let me know how you get on with your test. If theres any issues, we'll sort it :)

Re: Cloudshell on Odroid XU4 feature request

Posted: Thu Jun 23, 2016 10:01 pm
by johnvick
The NFS shares are for example in /mnt/Multimedia and several similar ones.

Just gone 8 am and the screen didn't go off - I have to go to work, I'll test it later today.

Re: Cloudshell on Odroid XU4 feature request

Posted: Fri Jun 24, 2016 8:36 am
by johnvick
Hi Fourdee,

Working nicely thanks for adding this feature.

John

Re: Cloudshell on Odroid XU4 feature request

Posted: Fri Jun 24, 2016 5:38 pm
by Fourdee
johnvick wrote:Hi Fourdee,

Working nicely thanks for adding this feature.

John
Excellent, thanks for letting me know :)

Re: Cloudshell on Odroid XU4 feature request

Posted: Fri Jun 24, 2016 5:45 pm
by Fourdee
John,

I forgot to mention.
As DietPi v120 is now released, if you run dietpi-update, it will overwrite your dietpi-cloudshell start/stop times as it doesn't expect those values to exist yet.

You can either:
- Open DietPi-Cloudshell and renable the powersaving option, then set your times up again.

Or:
- copy and paste into terminal (Start powersaving at 10pm, stop at 8am):
7s = line number
/22/ = desired value (22:00 hours)

Code: Select all

sed -i '7s/.*/1/' /DietPi/dietpi/.dietpi-cloudshell #Enabled?
sed -i '8s/.*/22/' /DietPi/dietpi/.dietpi-cloudshell #Start time (hour)
sed -i '9s/.*/8/' /DietPi/dietpi/.dietpi-cloudshell #End time (hour)
Make sure to reboot the system after doing the above, to ensure the powersaving feature can function.

Re: Cloudshell on Odroid XU4 feature request

Posted: Sun Jun 26, 2016 11:50 pm
by johnvick
Hi Fourdee,

One observation I have made this morning is that the Cloudshell screen still sticks on a screen with an error message if the the NFS shares are not available - still happening. Not a huge problem, the QNAP holding the shares powers down at about the same time as the Cloudshell screen and powers up again a bit after the Cloudshell screen in the morning, which is how I caught this today. Once the QNAP is fully booted the Cloudshell screen starts to rotate again.

John

Re: Cloudshell on Odroid XU4 feature request

Posted: Mon Jun 27, 2016 5:40 pm
by Fourdee
johnvick wrote:Hi Fourdee,

One observation I have made this morning is that the Cloudshell screen still sticks on a screen with an error message if the the NFS shares are not available - still happening. Not a huge problem, the QNAP holding the shares powers down at about the same time as the Cloudshell screen and powers up again a bit after the Cloudshell screen in the morning, which is how I caught this today. Once the QNAP is fully booted the Cloudshell screen starts to rotate again.

John
Hi John,

I've created a Git ticket for this issue. You can track the progress here: https://github.com/Fourdee/DietPi/issues/395. I'll try and take a look tomorrow.