Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: Pause download package when video is playing.
5th Oct, 2013, 09:14 PM
Post: #39
Trinket Offline
Registered
Posts: 40
Joined: Jan 2013
Reputation: 9
RE: Pause download package when video is playing.
(5th Oct, 2013 08:35 PM)cjvanzwol Wrote:  This would be very usefull for me, but I can not seem to make ik work. I think I followed all the steps correctly.

Added the addon
Chown to root with chmod 755
Could not change the chmod +x, but this seemed to be standard by checking with command file.
Changed transmission init.d
Downloaded init.d for sickbeard from this forum
Changed settings
Both processes run in group download.
Added lines to visudo and changed "xbian" to "pi" because i run Raspbmc (might that be a problem?)

If I check ps -g download it still says transmission-da and sickbeard (the only two processes I have for now) even if screensaver (dim) is off.

I used the init.d from this forum for sickbeard and just changed the standard init.d for transmission. So I would guess the sickbead python should stop.
(I scheduled transmission to download only at night)

Is there any way there could be a XBMC notification to check if the script ran successfully?

If you need a more detailed destruction of my situation, I can take the time to write this. For now I hope you can help.

The processes doesn't dissapear from the process list, because they only get paused.
To see if a process is paused just check it's status. You can see it like this with ps | grep transmission
Terminal
xbian 1429 11.9 2.2 51972 8624 ? TNl Oct03 304:31 /usr/local /bin/transmission-daemon -f -g /etc/transmission/
That process is paused because it has a T in the status section.
Terminal
xbian 1429 11.8 2.1 51972 8396 ? SNl Oct03 304:33 /usr/local/bin/transmission-daemon -f -g /etc/transmission/
You can see there that the T has changed to an S, that means it isn't paused.

To check if you have done the visudo part correctly, try to do something with privileges to the file (with the sudo command) and check if it asks for your password.
Terminal
xbian@xbian ~ $ sudo -K
xbian@xbian ~ $ sudo nano /home/xbian/.xbmc/addons/service.procmanager/resources/startall.py
The sudo -K command is to reset the sudo password cache, so that it asks for it even if you've just used it
If you've done it right, it shouldn't ask for a password.

I should say that I'm now using just the priority to manage the background processes, I don't stop them when playing stuff, I just make their priority really low and the xbmc one high, so that it always gives cpu preference to xbmc.
I have been testing it for a little while because that's the way that xbian download package works and wanted to try it out.
Sometimes you can have a bit of stuttering, but just in the beginning, when it's starting to redistribute the cpu.
Try it out! It's a lot easier and maybe it does the job for you!
I have written a guide on managing process priorities if you don't know how to implement it
http://forum.xbian.org/thread-892.html
I'm now using priority 6 (low) for the downloads and -6 for xbmc.
Nevertheless, if you still want to completely pause the downloads I can help you.

PD: You should try xbian, it works great and it has an already configurated package that automatically installs couchpotato,sickbeard,transmission,headphones,nzbget. (You can easily disable each of them if you want to)
Here is the thread http://forum.xbian.org/thread-1018.html
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Pause download package when video is playing. - Trinket - 31st Jan, 2013, 10:46 PM
RE: Pause download package when video is playing. - belese - 1st Feb, 2013, 06:31 PM
RE: Pause download package when video is playing. - Trinket - 2nd Feb, 2013, 01:12 AM
RE: Pause download package when video is playing. - belese - 2nd Feb, 2013, 02:07 AM
RE: Pause download package when video is playing. - Trinket - 2nd Feb, 2013, 11:47 AM
RE: Pause download package when video is playing. - Trinket - 3rd Feb, 2013, 10:40 AM
RE: Pause download package when video is playing. - belese - 3rd Feb, 2013, 07:44 PM
RE: Pause download package when video is playing. - BartOtten - 4th Feb, 2013, 04:31 AM
RE: Pause download package when video is playing. - Trinket - 4th Feb, 2013, 04:40 AM
RE: Pause download package when video is playing. - belese - 4th Feb, 2013, 06:31 AM
RE: Pause download package when video is playing. - Trinket - 4th Feb, 2013, 09:19 AM
RE: Pause download package when video is playing. - belese - 4th Feb, 2013, 09:46 PM
RE: Pause download package when video is playing. - BartOtten - 5th Feb, 2013, 11:28 AM
RE: Pause download package when video is playing. - belese - 5th Feb, 2013, 09:24 PM
RE: Pause download package when video is playing. - Trinket - 6th Feb, 2013, 05:48 AM
RE: Pause download package when video is playing. - SolGarlic - 3rd Mar, 2013, 12:52 AM
RE: Pause download package when video is playing. - adepssimius - 8th Feb, 2013, 02:26 AM
RE: Pause download package when video is playing. - Trinket - 3rd Mar, 2013, 06:26 AM
RE: Pause download package when video is playing. - SolGarlic - 3rd Mar, 2013, 07:23 AM
RE: Pause download package when video is playing. - CurlyMo - 3rd Mar, 2013, 07:29 AM
RE: Pause download package when video is playing. - Trinket - 3rd Mar, 2013, 08:12 PM
RE: Pause download package when video is playing. - SolGarlic - 3rd Mar, 2013, 08:23 PM
RE: Pause download package when video is playing. - Trinket - 4th Mar, 2013, 04:43 AM
RE: Pause download package when video is playing. - SolGarlic - 4th Mar, 2013, 07:32 AM
RE: Pause download package when video is playing. - Trinket - 4th Mar, 2013, 07:51 AM
RE: Pause download package when video is playing. - SolGarlic - 4th Mar, 2013, 10:14 AM
RE: Pause download package when video is playing. - Trinket - 4th Mar, 2013, 10:23 AM
Re: Pause download package when video is playing. - min - 19th Mar, 2013, 04:09 AM
RE: Pause download package when video is playing. - Trinket - 20th Mar, 2013, 06:11 AM
Re: Pause download package when video is playing. - min - 21st Mar, 2013, 02:03 AM
RE: Pause download package when video is playing. - Trinket - 21st Mar, 2013, 08:59 AM
RE: Pause download package when video is playing. - gizag - 25th Mar, 2013, 07:58 PM
RE: Pause download package when video is playing. - CurlyMo - 25th Mar, 2013, 08:19 PM
RE: Pause download package when video is playing. - Trinket - 25th Mar, 2013, 10:22 PM
RE: Pause download package when video is playing. - gizag - 25th Mar, 2013, 10:43 PM
RE: Pause download package when video is playing. - zilexa - 26th Mar, 2013, 08:01 AM
RE: Pause download package when video is playing. - CurlyMo - 26th Mar, 2013, 08:10 AM
RE: Pause download package when video is playing. - cjvanzwol - 5th Oct, 2013, 08:35 PM
RE: Pause download package when video is playing. - Trinket - 5th Oct, 2013 09:14 PM
RE: Pause download package when video is playing. - cjvanzwol - 6th Oct, 2013, 01:49 AM
RE: Pause download package when video is playing. - adepssimius - 6th Oct, 2013, 04:55 AM
RE: Pause download package when video is playing. - cjvanzwol - 7th Oct, 2013, 07:46 AM
RE: Pause download package when video is playing. - Trinket - 8th Oct, 2013, 09:27 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 24th May, 2025, 05:37 PM Powered By MyBB, © 2002-2025 MyBB Group.