Re: [gentoo-user] Dolphin, CPU usage and process ID to which window.

2020-09-28 Thread Dale
Neil Bothwick wrote:
> On Tue, 8 Sep 2020 04:55:50 -0500, Dale wrote:
>
>> I have a lot of desktops here.  If I run that command in a Konsole, can
>> I still click to switch to the desktop that Dolphin is running on?  I
>> have to click to switch since the usual offender is on desktop 12, 13 or
>> 14.  I can't switch there with the F keys.  It seems something else uses
>> those shortcuts. 
> Open a separate console on the desktop running Dolphin, or install
> kde-apps/yakuake to have a console wherever and whenever you want it.
>
>
> -- Neil Bothwick Power outage at a department store yesterday, Twenty
> people were trapped on the escalators.

Figured out something, the one where I'm downloading files to is most
often the culprit on this.  I close it and reopen and I'm back to
normal, for a little while anyway.  It seems updating file size, time
stamps and such is what makes it go weird.  May even be a bug that needs
fixing or just a feature that works that way.  lol 

Read David's reply a few times.  As most likely know, my scripting
skills are minimal, if they exist at all.  I'm not quite sure what all
that does.  :/  I'm sure it is nifty tho.  :-D

Dale

:-)  :-) 


Re: [gentoo-user] Dolphin, CPU usage and process ID to which window.

2020-09-08 Thread David Haller
Hello,

On Mon, 07 Sep 2020, Dale wrote:
>Another question.  I use top to see what is using the CPU so much.  When
>it is Dolphin, I can't tell which window it is.  I sometimes have a few
[..]
>Is there a way to figure
>out which process goes with which window or running instance of
>Dolphin?  In top, it shows a ID number like this.
>
>16577 dale  20   0  986256 160680  79288 S   2.8   0.5  25:56.63
>/usr/bin/dolphin -session
>10c8caded100015521120210315890017_1597693134_23929
>
>Is there a way to know what window that ID belongs too? 

 switch_to_pid_win.sh 
#!/bin/sh
pid="$1"
window_id=$(wmctrl -p -l -x | awk -vPID="$pid" '$3 == PID { printf("%s", $1); 
}')
wmctrl -i -a "$window_id"


$ switch_to_pid_win.sh PID_OF_OFFENDING_PROCESS

e.g.

$ switch_to_pid_win.sh 16577

HTH,
-dnh

-- 
panic("esp_handle: current_SC == penguin within interrupt!");
linux-2.2.16/drivers/scsi/esp.c



Re: [gentoo-user] Dolphin, CPU usage and process ID to which window.

2020-09-08 Thread Franz Fellner
On Tue Sep  8 13:40:03 2020, Neil Bothwick  wrote:
> On Tue, 8 Sep 2020 04:55:50 -0500, Dale wrote:
> 
> > I have a lot of desktops here.  If I run that command in a Konsole, can
> > I still click to switch to the desktop that Dolphin is running on?  I
> > have to click to switch since the usual offender is on desktop 12, 13 or
> > 14.  I can't switch there with the F keys.  It seems something else uses
> > those shortcuts. 
> 
> Open a separate console on the desktop running Dolphin, or install
> kde-apps/yakuake to have a console wherever and whenever you want it.

Or scroll the mouse wheel on the pager/desktop switcher to switch
between desktops.
But Yakuake is probably the easiest solution.
You can also toggle "view on all desktops" for the console via the
context menu.



Re: [gentoo-user] Dolphin, CPU usage and process ID to which window.

2020-09-08 Thread Neil Bothwick
On Tue, 8 Sep 2020 04:55:50 -0500, Dale wrote:

> I have a lot of desktops here.  If I run that command in a Konsole, can
> I still click to switch to the desktop that Dolphin is running on?  I
> have to click to switch since the usual offender is on desktop 12, 13 or
> 14.  I can't switch there with the F keys.  It seems something else uses
> those shortcuts. 

Open a separate console on the desktop running Dolphin, or install
kde-apps/yakuake to have a console wherever and whenever you want it.


-- 
Neil Bothwick

Power outage at a department store yesterday, Twenty people were
trapped on the escalators.


pgproS_DBUrZ6.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Dolphin, CPU usage and process ID to which window.

2020-09-08 Thread Dale
Franz Fellner wrote:
> On Mon Sep  7 22:05:36 2020, Dale  wrote:
>> Another question.  I use top to see what is using the CPU so much.  When
>> it is Dolphin, I can't tell which window it is.  I sometimes have a few
>> instances of Dolphin open at the same time.  Sometimes I have my spot
>> marked by highlighting a file or files.  If I kill it, I don't get to
>> write down where I was.  Thing is, I can't tell from top which window it
>> is that is using the CPU more than it should.  Is there a way to figure
>> out which process goes with which window or running instance of
>> Dolphin?  In top, it shows a ID number like this.
> In a console run:
>
> xprop _NET_WM_PID
>
> Your cursor will turn into a crosshair.
> now click on the first dolphin window.
> In the console you now get something like
>
> _NET_WM_PID(CARDINAL) = 576073
>
> Compare the number with the PID in top from the dolphin instance
> with high CPU usage.
> If it is the same you have your instance.
> If not repeat with the next dolphin window.
>
>


I have a lot of desktops here.  If I run that command in a Konsole, can
I still click to switch to the desktop that Dolphin is running on?  I
have to click to switch since the usual offender is on desktop 12, 13 or
14.  I can't switch there with the F keys.  It seems something else uses
those shortcuts. 

Now to read up a little on that command.  Never heard of it before. 

Dale

:-)  :-) 


Re: [gentoo-user] Dolphin, CPU usage and process ID to which window.

2020-09-07 Thread Franz Fellner
On Mon Sep  7 22:05:36 2020, Dale  wrote:
> Another question.  I use top to see what is using the CPU so much.  When
> it is Dolphin, I can't tell which window it is.  I sometimes have a few
> instances of Dolphin open at the same time.  Sometimes I have my spot
> marked by highlighting a file or files.  If I kill it, I don't get to
> write down where I was.  Thing is, I can't tell from top which window it
> is that is using the CPU more than it should.  Is there a way to figure
> out which process goes with which window or running instance of
> Dolphin?  In top, it shows a ID number like this.

In a console run:

xprop _NET_WM_PID

Your cursor will turn into a crosshair.
now click on the first dolphin window.
In the console you now get something like

_NET_WM_PID(CARDINAL) = 576073

Compare the number with the PID in top from the dolphin instance
with high CPU usage.
If it is the same you have your instance.
If not repeat with the next dolphin window.



[gentoo-user] Dolphin, CPU usage and process ID to which window.

2020-09-07 Thread Dale
Howdy,

Has anyone else noticed that Dolphin is using more CPU than it used to? 
It used to sit around 1% or even less.  For the past month or so, mine
has increased to 2, 3, 4 and 5% with occasional brief instances of even
higher usage.  I notice this in top.  Memory usage is normal tho.  Mine
is usually a few hundred MBs or so.  Closing and restarting Dolphin
seems to help for a little while. 

Another question.  I use top to see what is using the CPU so much.  When
it is Dolphin, I can't tell which window it is.  I sometimes have a few
instances of Dolphin open at the same time.  Sometimes I have my spot
marked by highlighting a file or files.  If I kill it, I don't get to
write down where I was.  Thing is, I can't tell from top which window it
is that is using the CPU more than it should.  Is there a way to figure
out which process goes with which window or running instance of
Dolphin?  In top, it shows a ID number like this.


16577 dale  20   0  986256 160680  79288 S   2.8   0.5  25:56.63
/usr/bin/dolphin -session
10c8caded100015521120210315890017_1597693134_23929  
   

16565 dale  20   0  719940 107576  75616 S   1.9   0.3  77:19.07
/usr/bin/dolphin -session
10c8caded100015521118380315890011_1597693134_23758


Is there a way to know what window that ID belongs too? 

I was hoping the upgrade today would help.  It doesn't seem so. 

Thanks. 

Dale

:-)  :-)