Not able to keep a particular process running

Started by eggbean, September 16, 2024, 05:19:45 PM

Previous topic - Next topic

eggbean

I use ThinkPad laptops and I have a ThinkPad desktop keyboard for my ThinkStation desktop computer.

The laptops and keyboard have TrackPoints, which are those red things in the middle of the keyboard which can be used like a mouse. The TrackPoints have three buttons, two for left and right click and a middle button.

The middle button can act like a middle button on a mouse, or it can be put into another mode which allows you to scroll webpages with the TrackPoint when it is pressed. In this much more useful mode you lose the middle button abilities that you normally have with a mouse. That is unless you use these little tools, which is what I am having some difficulty with.

On my laptops with Synaptics trackpoints, the software that I can use to have the middle button do both things is tpmiddle.exe. These are older laptops and I haven't actually used one of them since I started using Process Lasso, so I don't know if I will have a problem with that yet.

On my current main laptops that have Elan trackpoints, I use a tool called MarbleScroll.exe, which does the same thing. It's actually a tool meant originally for the Logitech Marble Mouse. Around three months ago there must have been some sort of Windows Update which started putting MarbleScroll.exe to into Efficiency Mode or a sleep mode, as it would periodically stop working, making the pointer move very slowly. I would have to stop the process in Task Manager and restart it.

This was very annoying, so I asked ChatGPT what I can do about it and it suggested I look at Process Lasso. It's great - I found that using the `eH` rules stops this from happening with MarbleScroll.exe. With the Governer running on startup I don't have to do anything and the problem is gone with no interaction.

For my ThinkPad Keyboard II desktop keyboard I have to use another tool. It was difficult for me to find something that works for it at first, but I finally found tpmiddle-rs. It has the same effect as the previous tools, but running it causes a terminal window to show, so I have to execute it through a vbscript so that the terminal windows is hidden.

```
    set FSO = CreateObject("Scripting.FileSystemObject")
    Set WshShell = CreateObject("WScript.Shell")
    WshShell.Run "tpmiddle-rs.exe --sensitivity 9 --fn-lock", 0, False
    Set WshShell = Nothing
```

When I search for tpmiddle-rs I get the process and the conhost.exe process it's running in.



I have not been able to successfully use Process Lasso. I don't know if it anything to do with Efficiency Mode or something, but what happens is that it stop working periodically - usually when I have been away from the computer for a while. It doesn't cause the pointer to slow down, probably because of a different way that it works, but the standard middle button ability goes away until I kill the process and restart it. This started happening at the same time that it started happening on my laptop (around three months ago), which makes me think it is due to a Windows 11 update, although I couldn't find anything that looked like it caused it in the recent updates at the time and the creator of the tool said that he isn't experiencing this problem at all.

Before the Process Lasso trial had expired I tried all sorts of rules, but nothing stopped this from happening. This was annoying, but not as bad as the problem I had on the laptop which I successfully fixed using Process Lasso and its `eH` rules.

Process Lasso has been useful on the desktop PC though, as right clicking the process and selecting Restart was the quickest way of dealing with it. However, with the last update from Process Lasso I cannot even do this any more, as selecting Restart just kills the process and I have to restart it manually.

I am willing to buy a multi-machine Lifetime licence if I have to in order for this to get fixed, but nothing I tried worked.

Jeremy Collake

It's great to hear that Process Lasso was able to solve the issue with tpmiddle.exe!

The tpmiddle-rs.exe issue on the desktop system is apparently caused by something different. From your description, the process is continuing to run, it just quits working. The reason for that needs to be elucidated. It could be that your system sleep is impacting the tool, but that's just one of many possibilities.

When you keep the console window visible, is there any useful output? Perhaps the author of the tool could add such if not.

One thing you could try is creating a Watchdog rule to restart the process every few minutes. See "Options / Control / Process Watchdog (advanced rules)". You can accomplish this by creating a rule with a virtual memory threshold of > 0 (so it hits whenever the process exists), a long timeout, then a restart action. You could also launch a script, a separate action type.
Software Engineer. Bitsum LLC.

eggbean

#2
Thanks. It seems that I will have to buy a licence before I can try using the Watchdog function, so I will do that in the next couple of days. I might as well get the multi-machine lifetime licence as I'm sure I can find other uses for it.

But at the end of my previous post I mention that the right-click Restart function no longer works with tpmiddle-rs, so I'm wondering if the Watchdog restart will even work. That only started happening a week or two ago when it was updated.

Also, it appears that I can no longer use Governer as a service if I use the Watchdog function. How will this change things? Cheers.

Jeremy Collake

#3
Oh, I missed the restart failure. Can you please select the tpmiddle-rs.exe process in the list and use CTRL+C to copy, then paste it here? We'll take a look at that. It's unlikely the Watchdog restart action is affected, but if it is, we'll make sure it can work if possible.

Running the Governor as a regular process instead of service will cause no notable change in functionality. The only big difference is that the Governor won't start until user login.

I've also sent you a monthly Pro license to enable you to experiment with the Watchdog.

Software Engineer. Bitsum LLC.

Jeremy Collake

#4
We made some adjustments to the restart action in Process Lasso v15.1.0.9 BETA that may resolve the failure to restart your process.

You can get the beta by checking "Updates / Include Betas". However, you will then be on the beta channel so will be bothered with frequent updates.
Software Engineer. Bitsum LLC.