You are not logged in.

#1 2013-08-13 05:25:54

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

applications cannot automatically shut-down computer upon completion.

Greetings,
Though I'm a relatively intermediate user, I am new to Arch (just switched from Manjaro yesterday) one problem I have is that I've been unsuccessful in getting the "shutdown when completed" feature to work on software that offers the option (qbittorrent, handbrake, avidemux) I've searched the wiki, and haven't found an answer. Perhaps I'm not looking in the right place. Is this a configuration of the policy kit, or something else?

please help!!


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#2 2013-08-13 06:23:14

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: applications cannot automatically shut-down computer upon completion.

I tried to google your issue, and I though "Hey!  I found something relevant."  D'oh!

I think the question is, how do these programs expect to be able to shut down the machine?  Is the command configurable through settings or a config file?  Or is it hard coded into them?  I don't use any of these particular pieces of software, so I cannot answer this.

Offline

#3 2013-08-13 08:05:19

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

WonderWoofy wrote:

I tried to google your issue, and I though "Hey!  I found something relevant."  D'oh!

I think the question is, how do these programs expect to be able to shut down the machine?  Is the command configurable through settings or a config file?  Or is it hard coded into them?  I don't use any of these particular pieces of software, so I cannot answer this.

yea.... I thought the same thing. I couldn't find a config file anywhere. That would have been a quick fix because I could have just scripted something Arch would respond to. I was unsuccessful. I've posted the same question to the respective forums as well. A config file that I can edit would be the preferred method for me.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#4 2013-08-13 08:15:04

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

WonderWoofy wrote:

I tried to google your issue, and I though "Hey!  I found something relevant."  D'oh!

I think the question is, how do these programs expect to be able to shut down the machine?  Is the command configurable through settings or a config file?  Or is it hard coded into them?  I don't use any of these particular pieces of software, so I cannot answer this.

lol...and by the way....that was my post you found on the qbittorrent forum. I had the same problem on Manjaro. Apparently, nobody on there know's what I'm talking about.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#5 2013-08-13 08:49:01

rufus
Banned
From: san francisco
Registered: 2013-04-20
Posts: 153

Re: applications cannot automatically shut-down computer upon completion.

@wcHouser3 this isnt gonna be helpful but why not just let it run?
   computers like to be on....just shut off the screen and share your torrents.......I do


end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest  decision and effort
        evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'.         -me

Offline

#6 2013-08-13 12:11:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: applications cannot automatically shut-down computer upon completion.

*confused*

Are any of those programs supposed to be able to shut down the computer when they are done, or do they just shut down themselves when done?  I was under the impression that such options were the latter.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2013-08-13 12:15:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: applications cannot automatically shut-down computer upon completion.

Trilby wrote:

*confused*

Are any of those programs supposed to be able to shut down the computer when they are done, or do they just shut down themselves when done?  I was under the impression that such options were the latter.

+1
You can periodically check if if the program is still running and initiate system shutdown when it did close.

Offline

#8 2013-08-13 13:47:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: applications cannot automatically shut-down computer upon completion.

I was really curious about what Trilby was asking, so I installed handbrake, and indeed in the preferences, there is a "When encodes are complete" option with a drop down menu.  In that menu there is a "Shutdown computer".

Offline

#9 2013-08-13 13:51:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: applications cannot automatically shut-down computer upon completion.

Thanks WW, I stand corrected.  I was assuming based on what I have seen before, but haven't used any of those tools for a while.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2013-08-13 18:59:07

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

rufus wrote:

@wcHouser3 this isnt gonna be helpful but why not just let it run?
   computers like to be on....just shut off the screen and share your torrents.......I do

hmm....I'm not sure I agree with that. But lets say for argument sake that I like to conserve electricity and prolong the life-span of the hard disk.  But yea....I do share the torrents when it's running. I dual-boot this machine because I share it with my wife who has no interest in learning something new. (she uses windows, in case you didn't gather that on your own)  Also, it's a laptop, which means it needs to be off in the morning for a couple of other reasons.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#11 2013-08-13 19:00:28

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

karol wrote:
Trilby wrote:

*confused*

Are any of those programs supposed to be able to shut down the computer when they are done, or do they just shut down themselves when done?  I was under the impression that such options were the latter.

+1
You can periodically check if if the program is still running and initiate system shutdown when it did close.

I tend not to periodically check anything when I'm in bed at night, except perhaps the back of my eyelids.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#12 2013-08-13 19:04:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: applications cannot automatically shut-down computer upon completion.

I think Karol meant automating that checking.  An overly simplified version would be:

#!/bin/bash

while [[ -n $(pgrep $1) ]]; do sleep 30; done
systemctl shutdown

pass the name of the program in question as the first parameter.

Or launch the program with a wrapper script that will start the program then do the above lines.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2013-08-13 19:06:08

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

Well, it looks as though the system standby does work. I'm not sure if root privileges are needed to do that or not. The only thing I changed is that I installed gnome-keyring and gnome-keyring-sharp. I don't know how that would make a difference because I don't use it to save passwords permanently.  I'm satisfied with that, but I'm still curious at this point. The shut-down option always worked with the .deb based distros but not on Manjaro or Arch.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#14 2013-08-13 19:08:28

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

Trilby wrote:

I think Karol meant automating that checking.  An overly simplified version would be:

#!/bin/bash

while [[ -n $(pgrep $1) ]]; do sleep 30; done
systemctl shutdown

pass the name of the program in question as the first parameter.

Or launch the program with a wrapper script that will start the program then do the above lines.

I'll have to give that one a try when I get some time tomorrow. Thanks!


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#15 2013-08-13 19:12:19

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: applications cannot automatically shut-down computer upon completion.

This is not a "solution", but...

Since we now use systemd, things really shutdown rather quickly.  So what if you didn't teach your wife to use Linux, but rather just taught her to shut it down or reboot.  Unless you are one of those who experience the shutdown hangs, this really shouldn't vastly increase the time in which it takes for your wife to get back into windows.  Then you can just let the machine suspend on its own.

Of course, if you are comfortable with the command line, you could just do something like $ HandBrakeCLI <stuff to convert> && poweroff .
I don't know what options/features the other mentioned programs offer though.

Oh, if you want to use the graphical version, you could choose to have the program quit upon completion and launch it with /usr/bin/ghb && poweroff

Offline

#16 2013-08-13 19:15:15

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

WonderWoofy wrote:

This is not a "solution", but...

Since we now use systemd, things really shutdown rather quickly.  So what if you didn't teach your wife to use Linux, but rather just taught her to shut it down or reboot.  Unless you are one of those who experience the shutdown hangs, this really shouldn't vastly increase the time in which it takes for your wife to get back into windows.  Then you can just let the machine suspend on its own.

Of course, if you are comfortable with the command line, you could just do something like $ HandBrakeCLI <stuff to convert> && poweroff .
I don't know what options/features the other mentioned programs offer though.

Oh, if you want to use the graphical version, you could choose to have the program quit upon completion and launch it with /usr/bin/ghb && poweroff

That may be the most elegant solution, while still a work-around. I'll give it a try. Thanks Woofy!


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#17 2013-08-13 19:19:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: applications cannot automatically shut-down computer upon completion.

Certainly not elegant by any means.  But maybe it is something that can hold you over until you find a "real" fix for this.  Maybe it might be worth reporting these issues upstream.  Or at the very least, asking these various upstreams how they handle this particular feature, and if it is specific to a certain init system.

Maybe a feature request for the ability to configure the shutdown command might be worth while here.

Offline

#18 2013-08-13 19:34:52

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

WonderWoofy wrote:

Certainly not elegant by any means.  But maybe it is something that can hold you over until you find a "real" fix for this.  Maybe it might be worth reporting these issues upstream.  Or at the very least, asking these various upstreams how they handle this particular feature, and if it is specific to a certain init system.

Maybe a feature request for the ability to configure the shutdown command might be worth while here.

I guess what I meant was that I can create a launcher with the parameters you listed. But yea, I'll keep probing the upstream, and see what they say as well.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#19 2013-08-13 19:36:06

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: applications cannot automatically shut-down computer upon completion.

By what means are you "probing upstream"?  If you haven't already filed a bug report, I think you should.  I would call this a bug for sure.

Offline

#20 2013-08-13 19:42:54

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: applications cannot automatically shut-down computer upon completion.

WonderWoofy wrote:

By what means are you "probing upstream"?  If you haven't already filed a bug report, I think you should.  I would call this a bug for sure.

I was just hoping I would have at least gotten an answer from their forums. I guess I'm the only guy in the world that uses qbittorrent, handbrake, and avidemux on Arch...lol

Thanks for your help, Woofy! I'll definitely get the bugs reported.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

Board footer

Powered by FluxBB