Page 1 of 1

Hibernate trouble on Mac

Posted: September 30th, 2010, 7:15 pm
by dynadrate
Hi there,

Version: 0.5.4
OS: OSX Leopard
Install-type: OSx .app
Skin (if applicable): Plush
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes

The on-complete Action does not get stored. I already found that that there is a parameter to check: queue_complete_pers. It's set to 1, as in the default.
Another error is that if I set the action to "Hibnernate", the Mac reboots! If I set it to "Standby", it goes into standby once but after it's woken up again the setting is removed.

Any ideas?

Thanks a lot, this piece of software ist GREAT!

Re: Hibernate trouble on Mac

Posted: October 1st, 2010, 3:20 am
by shypike
Only and end-of-queue script is stored.
People don't agree on whether Standby/Hibernate should be stored.
It can easily lead to unexpected behaviour.
You can set your own preference with a special setting.
See: http://wiki.sabnzbd.org/configure-special

Re: Hibernate trouble on Mac

Posted: October 1st, 2010, 9:01 am
by dynadrate
Yeah, I'm sorry, the end-of-queue setting was what i meant.
I checked the parameter queue_complete_pers. It's set to 1 and it's not persistent.

Have I missunderstood something?

Set this to 0 if you don't want end-of-queue actions Shutdown/Standby/Hibernate to be persistent (remembered) after restarts (only in 0.5.4+)

Re: Hibernate trouble on Mac

Posted: October 1st, 2010, 10:07 am
by shypike
It is persistent when I test it...

You are right about "Hibernate". Due to a typo the "shutdown" command is sent to OSX.
Strange though that it reboots, one would expect a shutdown.
This is what is sent to OSX:
osascript -e 'tell app "System Events" to shut down'

Re: Hibernate trouble on Mac

Posted: October 1st, 2010, 10:58 am
by rAf
@dynadrate : Are you using a hackintosh or a true mac ? power management are common issues with hackintosh...

You can open a terminal and test the command :

Code: Select all

osascript -e 'tell app "System Events" to shut down'
My mac shuts down fine.

Re: Hibernate trouble on Mac

Posted: October 4th, 2010, 4:41 pm
by dynadrate
hi,

@rAf: I'm running sabnzbd on a real Mac Mini!

i just double checked my settings. Here are the results

"Bildschirmfoto 2010-10-04 um 23.12.48" is s screenshot of the ini-file
"Bildschirmfoto 2010-10-04 um 23.10.44" is a screenshot of the setting before the queue finished.

After the queue completed, the system hibernated as you would expect it to.
"Bildschirmfoto 2010-10-04 um 23.21.19" is the setting after it woke up again.

This is not just a display error. The system won't go into hibernation until i re-enable the power setting accordingly.

If I can give any further information, logs, screenshots or anything please say so.

Re: Hibernate trouble on Mac

Posted: October 5th, 2010, 7:05 pm
by dynadrate
Hi,

since there seems to be no one who's had this problem, i suggest I create a new thread in the Bug-Report section?
Or won't this do any good?

Re: Hibernate trouble on Mac

Posted: October 6th, 2010, 7:55 am
by rAf
I never use this, I'll try this on my mac and report.

Re: Hibernate trouble on Mac

Posted: October 6th, 2010, 2:58 pm
by shypike
There is indeed a problem, but it has nothing to do with OSX.
The Plush skin use the API and the API has an error in that it sets up the
right end-of-queue action but doesn't write it to the sabnzbd.ini file.
Conclusion: persistence only works when you use the Classic or smpl skin.

I'll fix that for the next release.
Congratulations: you helped us solve two issues.

Re: Hibernate trouble on Mac

Posted: October 6th, 2010, 5:05 pm
by dynadrate
I can confirm that when having the classic skin enabled, the setting is persistent. Not only it persists after hibernation, but also if sabnzbd is restartet. Great!
I never would have come up with the idea that this is skin-related, though.
Thanks so much! Keep up the great work!

Re: Hibernate trouble on Mac

Posted: October 7th, 2010, 2:56 am
by shypike
Nor did we, that why this bug was undetected before.
It's very hard to test all possible combinations.