nilssohn;647881 Wrote: 
> 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. :-)Well, I think the only way you'll be able 
> to get to the bottom of this
is by closely studying your system's logs.  Take a look at this:
https://wiki.ubuntu.com/DebuggingGNOMEPowerManager  for tips about
logging power management events in Ubuntu.  Also, check the SBS server
log to make sure that ReallyPreventStandby stops firing off the
once-per-minute gsession-inhibit instances when you expect it to. 
Also, modify the inhibit checking script that I posted above so that it
logs the inhibit state & the date and time:

# sudo touch '/var/log/squeezeboxserver/inhibit-check.log'
# sudo chmod 777 '/var/log/squeezeboxserver/inhibit-check.log'

check-inhibit.sh:

Code:
--------------------
    
  #!/bin/bash
  LOGFILE='/var/log/squeezeboxserver/inhibit-check.log'
  
  for i in {0..10000..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
  
--------------------


Finally, Google coughed up this tidbit, from
http://live.gnome.org/GnomePowerManager/FAQ:
> 
> -*I've set the computer inactive timeout to one minute and it still
> takes longer than that to suspend.*-
> 
> gnome-screensaver is a session daemon that monitors user input, and if
> the mouse has not been moved, or the keyboard been pressed then it
> starts a timeout. When the value of this timeout reaches the value set
> in gnome-screensaver-preferences, then the login is marked as 'session
> idle'. This is when GNOME Power Manager performs all the session idle
> actions such as enabling low-power mode and lowering the laptop panel
> brightness.
> 
> As soon as the session is marked at idle, GNOME Power Manager starts
> it's own 'system' timer. When the timeout set in
> gnome-power-preferences is reached, and the CPU load is idle, then the
> idle action is performed, which is usually to turn off the screen, or
> to suspend or hibernate.
> 
> The sliders in gnome-power-preferences are set to start at the value of
> the session-timout + 1 minute, as we cannot logically trigger before the
> session is marked as idle. If you adjust the value of the 'session idle'
> timeout in gnome-screensaver-preferences then the start of the sliders
> in gnome-power-preferences will change accordingly. This makes it more
> obvious for new users.
>


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

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to