aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Screen saver speed control  (Read 3855 times)

Peterregister

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 12
Screen saver speed control
« on: September 28, 2007, 09:18:30 AM »

Occasionaly several people are using my computer at unpredictable times. If aMule is set for max. bandwidth use, then this slows the down the internet use for others.

I would like to set a option that restricts the bandwidth when the mouse or keyboard is used but returns the bandwidth to max. when the screen-saver starts.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Screen saver speed control
« Reply #1 on: September 28, 2007, 12:16:34 PM »

Hi Peterregister,

you can do this with amulecmd and a script. (Use something like amulecmd -c "set bwlimit up xx")

I don't know about your operating system, but there should be a way to start scripts when idle/not idle to set the upload speed accordingly.
Logged

lfroen

  • Guest
Re: Screen saver speed control
« Reply #2 on: September 28, 2007, 10:15:32 PM »

I don't think script will help. You must have special kind of screensaver written for this purpose.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Screen saver speed control
« Reply #3 on: September 30, 2007, 01:28:04 AM »

Maybe setting the screensaver in such way that starting the screensaver invokes an script, or something like that. I think xscreensaver (on GNU linux/UNIX) will do the trick.

Regards.
Logged

Peterregister

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 12
Re: Screen saver speed control
« Reply #4 on: October 08, 2007, 03:18:16 PM »

I use aMule and eMule with Os X Ubuntu Linux and Windows Xp. So my screensaver request would apply to all platforms. I suppose there would be two ways to implement this feature. One could write some code similar to the screensaver  routine to check for keyboard/mouse activity. Or, let aMule check the status of the screensaver incorporated in the OS to see if it has been activated. uTorrent(Windows bittorrent) also uses a clever and easy to use Scheduler to increase/decrease Up/Down speed. Ideally  I would like to see aMule intergate both Scheduler and Screensaver bandwidth control.

Example:
I set the Scheduler to DL at min speed from 17:00 to 24:00 (when people are using the computer most) at max speed from 00:00 to 16:59 (when people are away)
I set the Screensaver to max DL when their is no activity on the computer.
Now, when nobody is using the computer it will UL / DL at max speed regardless of the Scheduler settings until some one uses the mouse/keyboard, then the Screensaver stops and the Scheduler steps in at regulates the predetermined bandwidth.

This would be great. As it is now if some one finds the internet too slow they just reboot or shutdown aMule!
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Screen saver speed control
« Reply #5 on: October 09, 2007, 03:44:50 PM »

Nice idea. Implementation would be dirty.
Logged
concordia cum veritate