Hibernate trouble on Mac

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
dynadrate
Newbie
Newbie
Posts: 5
Joined: September 30th, 2010, 7:09 pm

Hibernate trouble on Mac

Post 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!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Hibernate trouble on Mac

Post 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
dynadrate
Newbie
Newbie
Posts: 5
Joined: September 30th, 2010, 7:09 pm

Re: Hibernate trouble on Mac

Post 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+)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Hibernate trouble on Mac

Post 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'
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

Re: Hibernate trouble on Mac

Post 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.
dynadrate
Newbie
Newbie
Posts: 5
Joined: September 30th, 2010, 7:09 pm

Re: Hibernate trouble on Mac

Post 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.
dynadrate
Newbie
Newbie
Posts: 5
Joined: September 30th, 2010, 7:09 pm

Re: Hibernate trouble on Mac

Post 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?
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

Re: Hibernate trouble on Mac

Post by rAf »

I never use this, I'll try this on my mac and report.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Hibernate trouble on Mac

Post 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.
dynadrate
Newbie
Newbie
Posts: 5
Joined: September 30th, 2010, 7:09 pm

Re: Hibernate trouble on Mac

Post 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!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Hibernate trouble on Mac

Post by shypike »

Nor did we, that why this bug was undetected before.
It's very hard to test all possible combinations.
Post Reply