aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: Stop entering sleep mode while downloading  (Read 17744 times)

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Stop entering sleep mode while downloading
« Reply #15 on: July 02, 2010, 01:39:05 PM »

Most power managers offer a dbus interface to interact with. So if wx provides dbus connections, ~90% of all case could be covered at once.
Logged
Homefucking is killing prostitution

Morse

  • Full Member
  • ***
  • Karma: 6
  • Offline Offline
  • Posts: 105
Re: Stop entering sleep mode while downloading
« Reply #16 on: July 02, 2010, 04:13:55 PM »

Quote from wx site
Quote
Yes, definitely, we don't want to integrate DBUS as is even though we may want to provide some high level API which could be implemented on top of DBUS in wxGTK (e.g. I'd really like to be able to catch power events such as suspend or resume in wxGTK and this should be done using DBUS).

so there rather will be API for disabling the sleep mode then for some DBUS requests
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Stop entering sleep mode while downloading
« Reply #17 on: October 24, 2010, 10:13:55 AM »

I implemented it for Mac and Win32 in the current SVN. However, to protect the network's health, when enabled it will only allow to go into sleep mode if you uploaded at least as much data as you downloaded.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Stop entering sleep mode while downloading
« Reply #18 on: October 24, 2010, 02:12:11 PM »

What's the point? I thought the idea was to prevent sleep mode unconditionally. If this is what the user wants, the feature is useless for him.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Stop entering sleep mode while downloading
« Reply #19 on: October 24, 2010, 07:46:06 PM »

It prevents sleep mode while downloading. That's not a problem. However, if it's set to allow sleeping after the downloads are done, it will only do so if your session ratio is at least 1. This is to discourage leeching. Or do you want to stop uploading when downloads are done? We have rejected every single implementation related to this (close when downloads finish, shutdown computer when downloads finish, etc) for network health reasons before.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Stop entering sleep mode while downloading
« Reply #20 on: October 24, 2010, 11:22:23 PM »

The other way round. If someone wants to share only, and can't do it because his computer goes into standby (and he can't find the energy settings), then this feature won't help him. That's my point.
... I think I'm finally getting it. Something like the "turn off computer after burning" option some of the CD recording progs have? Well...
Should be easy to write a cron script that checks the temp dir every 5min and shuts down the computer when it's empty.
Wait until the first user complains "I was uploading and suddenly my computer shut down".

Do the OS functions you call prevent standby, or encourage/force standby?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Stop entering sleep mode while downloading
« Reply #21 on: October 24, 2010, 11:40:06 PM »

Prevent
Logged
Pages: 1 [2]