Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-19 Thread nilssohn

Ooh, just came back to ask for a little more advice and come to know
such unedifying news. Gordon, I appreciate your great work. Thanks a
lot for your support. I really hope to read you again some day.

Kind regards

nilssohn


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-12 Thread nilssohn

gharris999;648030 Wrote: 
 
 # sudo touch '/var/log/squeezeboxserver/inhibit-check.log'
 # sudo chmod 777 '/var/log/squeezeboxserver/inhibit-check.log'
 
 check-inhibit.sh:
Thank you, Gordon. Finally I understood what the check-inhibit.sh does
and what the commands above are for. I will watch this for a while.

Is it okay that the inhibit state is logged -two times per second-?
Isn't this too detailed logging?

Sincerely

nilssohn


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-08 Thread nilssohn

gharris999;648030 Wrote: 
 
 check-inhibit.sh:
  
Code:

  
   #!/bin/bash
   LOGFILE='/var/log/squeezeboxserver/inhibit-check.log'
   
   for i in {0..1..1}
   do
   INHIBIT=`dbus-send --print-reply --dest=org.gnome.SessionManager 
/org/gnome/SessionManager org.gnome.SessionManager.IsInhibited uint32:-1`
   DATESTR=`date`
   if [[ $INHIBIT =~ true ]]
   then
   echo At $DATESTR: Inhibited.. $LOGFILE
   else
   echo At $DATESTR: Not inhibited.. $LOGFILE
   fi
   
   sleep 1
   done
   sleep 30
   

  
 
Where should I put this script?


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-07 Thread nilssohn

The command

Code:

sudo cat /etc/sudoers | grep gsession-inhibit


answered

Code:

squeezeboxserver ALL = (ALL) NOPASSWD: 
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ReallyPreventStandby/bin/unix/gsession-inhibit*
  squeezeboxserver ALL = (ALL) NOPASSWD: /usr/bin/killall -9 gsession-inhibit


as recently as the script

Code:

sudo 
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ReallyPreventStandby/bin/unix/debian-install.sh


had been installed: ;-)

Code:

Installing from 
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ReallyPreventStandby/bin/unix..
  Installing for squeezeboxserver..
  Not backing up /etc/sudoers. /etc/sudoers.bak already exists..
  Disabling /etc/sudoers requiretty option..
  Modifying /etc/sudoers to allow user squeezeboxserver to run 
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ReallyPreventStandby/bin/unix/gsession-inhibit*..
  Modifying /etc/sudoers to allow user squeezeboxserver to run /usr/bin/killall 
-9 gsession-inhibit..
  Done!  /etc/sudoers has been updated.


I am testing again now.


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-07 Thread nilssohn

The script is running now, please see the screenshot below when a
restart is requested using VNC. However, the server doesn't suspend
while it's idle.

Is it correct to put the same number of minutes (e.g. 30) to RPSS -and-
to the systems energy options?

What should I try next?

Regards

nilssohn

[image: http://www.doehrmanns.de/slimserver/gsession-inhibit.png]


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-07 Thread nilssohn

gharris999;647839 Wrote: 
 Undoubtedly, you could express yourself very precisely in Deutsch. 
 However, it would fall on completely ignorant ears at this end!
 
 So, when you say, The script is running now, which script?

The ReallyPreventStandby setup script to modify /etc/sudoers.

Thank you for your sympathy; I fear it's not only my bad English but
also my insufficient understanding of Linux and, to be honest, of your
Plugins that makes express myself imprecise. Thank you again for your
patience.

 How are you attempting the restart via VNC?  Through the menus?  Via #
 sudo shutdown -r now?
Through the menus, but I don't think this is important. I only wanted
to show that the ReallyPreventSystemStandby plugin is working now: This
message did never appear before I run the setup script.

 For the system power management settings, I would suggest using a lower
 number: 10 or 20 minutes.
The system is now told to fall asleep after 10 idle minutes.
ReallyPreventSystemStandby is told to allow system standby after 15
idle minutes.

Unfortunately, the system doesn't go to standby at all.


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-07 Thread nilssohn

nilssohn;647857 Wrote: 
 Unfortunately, the system doesn't go to standby at all.

Stand by, it went to standby right now ...


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-07 Thread nilssohn

nilssohn;647861 Wrote: 
 Stand by, it went to standby right now ...
I woke it up manually again. And again, about 70-80 minutes later the
server suspended. Maybe it just isn't idle, but there is no server
activity I know about.

I will watch this funny thing and keep on reporting. Any idea to
unravel this mystery is welcome. :-)


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-06 Thread nilssohn

This seems to work. Thank you very much!


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-06 Thread nilssohn

gharris999;647582 Wrote: 
 What sort of output do you get from:
 # ps ax | grep gsession-inhibit
 
 ??

13005 pts/0S+ 0:00 grep gsession-inhibit

 Edit, edit: also, when you say Ubuntu Energy options, which settings
 are you talking about, exactly?  On my Ubuntu 10.10 desktop machine,
 the settings are in System-Preferences-Power Management.  I've done
 some testing of ReallyPreventStandby with Ubuntu 11.04 running on my
 laptop.  It seems to work OK there too.
I am running the german version of Ubuntu 11.04. Systemeinstellungen
- Energieverwaltung seems to have the same meaning of what you wrote.
What I changed right now is that computer suspension after 30 Minutes is
set as a rule for all users. I'll report the result later in the
evening.


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-06 Thread nilssohn

gharris999;647598 Wrote: 
 Are you leaving a user logged into the machine even when it's just
 serving music?
Yes I do.

gharris999;647582 Wrote: 
 Can you up the logging levels in ReallyPreventStandby  SrvrPowerCtrl to
 DEBUG
How do I do this?


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-06 Thread nilssohn

gharris999;647605 Wrote: 
 SBS Settings-Advanced-Logging-(plugin.ReallyPreventStandby) - Really
 Prevent Standby: Debug.
 
 ..and..
 
 Settings-Advanced-Logging-(plugin.SrvrPowerCtrl) - Server Power
 Control: debug.
Done ... and still playing music and waiting for an unwanted suspend.


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-06 Thread nilssohn

nilssohn;647609 Wrote: 
 Done ... and still playing music, waiting for an unwanted suspend.
The server suspended in between.

The command

Code:

sudo cat /var/log/squeezeboxserver/server.log | grep 
srvrpowerctrl|reallypreventstandby


doesn't seem to have an effect. There is no output in the terminal.

Before I quote or attach the hopefully relevant part of the log I have
at last to answer your earlier question, maybe there is a simple
misunderstanding.

gharris999;647582 Wrote: 
 when you say Ubuntu Energy options, which settings are you talking
 about, exactly?
I was talking about that:

[image:
http://www.doehrmanns.de/slimserver/Einstellungen_der_Energieverwaltung.png]


Now I found there is another screensaver-like option where the session
can be put to an idle state (I think it was set to 1 Minute before I
changed it and took the screenshot):

[image:
http://www.doehrmanns.de/slimserver/Einstellungen_des_Bildschirmschoners.png]

Which is the important one?

Thanks for your patience.


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-06 Thread nilssohn

Please see the attached 500 last lines of the server log up to the last
manual wakeup. Guess you will find the solution in there.


+---+
|Filename: 500lines_Serverlog.txt   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=12213|
+---+

-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2011-08-03 Thread nilssohn

Thank you, Gordon, for the release of Really Prevent System Standby
which you announced a year ago or so in this thread when I asked you
for a possibility to prevent an undesired server suspension caused by
Server Power Control.

Now I have both Plugins running on my system, but wonder how to put
them together.

My wish is to suspend the server when all squeeze boxes are idle for
more than 30 minutes and the server system seems to be idle. Which
plugin configuration do you recommend?

Sorry if this or a similar question has been already answered. Although
I am still subscribed to your thread I didn't regard it for months.

Sincerely

nilssohn


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2010-11-08 Thread nilssohn

gharris999;587626 Wrote: 
 First, go to the SBS Settings-Plugins-Server Power Control page and
 make sure that Include menu options on Web Interface? at the bottom
 of the Basic Commands section is checked.
Was already checked.

 Then, from the SBS home page, click on the Extras link and then on
 Server Power Control.  You should see Block Shutdown/Suspend/etc.
 as the bottom menu item.
There is no Extras link, maybe caused by translation. Actually, I
couldn't find that item anywhere.


As proposed, I created two desktop launchers:

Code:


  # echo srvrpowerctrl setblock blip viacli | /bin/nc 127.0.0.1 9090
  



Code:


  # echo srvrpowerctrl clearblock blip viacli | /bin/nc 127.0.0.1 9090
  


The first Setblock Suspend seem to work one time. The second
Clearblock Suspend didn't seem to work at all.

Probably my fault, but not a real problem. I am only writing to give
you feedback for your help, thank you again. I don't need further
assistance at the Moment, but can wait until the ReallyPreventStandy
plugin is released. Where will I find it then?

Regards

nilssohn


-- 
nilssohn

Asus EeeBox - Ubuntu - SB Classic - SB Boom - SB Radio - iPhone - iPad -
iPeng :-)

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2010-11-06 Thread nilssohn

@Gordon: Thank you for your answer.

My Ubuntu machine is intended to be a pure music server, and most of
the time there is no need for any shutdown blocking feature. Anyhow,
besides periodic maintenance, there are times when I try to get more
into the Linux thing.

If there is no other way, I will have to remember to switch off the
idle player monitor item to prevent the server from getting suspended.
I am not really getting in trouble with this, regarding that
SrvrPowerCtrl in my case doesn't shut down the server. So I am able to
continue interrupted operations after reactivation.

gharris999;587344 Wrote: 
 In the mean time, though, there is a way to inhibit SrvrPowerCtrl's
 actions.  On the SrvrPowerCtrl web page (not the settings page, but
 rather the web page linked to on SBS's extras menu item) you can
 select the Block Shutdown/Suspend/etc. item and SrvrPowerCtrl will be
 inhibited from suspending the server.

I can't find this Web Page. Would you please explain again where I can
find it?


-- 
nilssohn

Asus EeeBox - Ubuntu - SB Classic - SB Boom - SB Radio - iPhone - iPad -
iPeng :-)

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2010-11-06 Thread nilssohn

@danco: Thank you for the idea. I posted this question in
ubuntuusers.de.

@Gordon: Thank you, I will try this.


-- 
nilssohn

Asus EeeBox - Ubuntu - SB Classic - SB Boom - SB Radio - iPhone - iPad -
iPeng :-)

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2010-11-05 Thread nilssohn

Hi,

I am using Server Power Control Plugin v20100115.005818 in Squeezebox
Server 7.5.1 under Ubuntu 10.10 (and before 09.04).

It works fine, doing what I ask it to do: After 60 minutes without
player activity it suspends the server. Therefore I'm using the feature
Monitor idle Players. All further settings are set to default.

Unfortunately the plugin suspends the server in any case, without
regarding other activities e.g. running a backup or copying data the
operating system is assigned to. Even a VNC connection is ignored.

Surely the plugin provides a possibility to solve this small problem.
Being no expert neither in english language nor in Linux computing, I
need a little help with it. Will the item Optional action to take
while not idle help? How?

Best regards

nilssohn


-- 
nilssohn

Asus EeeBox - Ubuntu - SB Classic - SB Boom - SB Radio - iPhone - iPad -
iPeng :-)

nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins