rc2 dropping generic HID devices?

This is where you report any issues if you are running a beta version of EventGhost
Forum rules
To submit a possible bug report please follow this template

Version: 0.5 beta 2 (the version you are running)
Traceback: Traceback (most recent call last):
File "<SOME_EVENTGHOST_FILE.py>", line 10, in <module>
SOME_FUNCTION()
File "<SOME_EVENTGHOST_FILE.py>", line 4, in SOME_EVENTGHOST_MODULE
SOME_FUNCTION()

copy and past any traceback information from the log if there is no traceback put NONE

Event:
Main.test.0.1.2.3.4.5.6.7.8
1
2

in the Event field you will want to put the event that was triggered just prior to the traceback occurring, if there is personal data put PERSONAL DATA if there was no traceback or no event triggered right before the traceback put NO EVENT

Description: if you have the ability to replicate the issue then put in here a description of what you are doing to create the problem.

Screen Shots: screen shots of the error and any events/macros/acrions that were run before the issue or screen shots of the problem

Files: any files that may be used to isolate where the issue is. something like the log.txt file would go here

if you provide the above information before hand it will greatly speed up the diagnostic process. we will not have to ask for the bits and pieces. And also having a well formatted Bug Report filled out will get answered sooner then the ones that aren't
Post Reply
jachin99
Experienced User
Posts: 440
Joined: Sat Feb 13, 2016 8:39 pm

rc2 dropping generic HID devices?

Post by jachin99 » Sun Apr 30, 2017 5:39 pm

I use the generic HID plugin to read events from my gyration remote. Frequently, something goes wrong, and my button presses on the gyration remote quit showing in the log, and events that are triggered by those button presses not longer occur. I have the gyration hooked to the PC via an unpowered USB hub because I only have 2 usb ports on my machine. I'm not sure if this is a bug, or something related to the usb hub but I thought I would share. How can I look into fixing this. BTW, the HID plugin still shows in auto start, it just doesn't work.

User avatar
kgschlosser
Site Admin
Posts: 3706
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: rc2 dropping generic HID devices?

Post by kgschlosser » Sun Apr 30, 2017 10:36 pm

ok here goes with a bunch of questions...


Does the computer go to sleep??
If the above is yes. does the problem occur after the computer wakes up?

Do you have windows set to control the power to the USB ports? (There are 2 places this is set check both. one is the actual USB root hub in device manager. and the second is in the power settings in control panel you have to go into advanced plan settings. if you are using one of the built-in options then yes windows is controlling the power)


if either of the above is true. Disable them. and see if the problem occurs.

Also go and look back in your logs and see if there is a device removed event. before this happens it should be the last device removed events to occur in your log. copy and paste those events here if you have them
If you like the work I have been doing then feel free to Image

jachin99
Experienced User
Posts: 440
Joined: Sat Feb 13, 2016 8:39 pm

Re: rc2 dropping generic HID devices?

Post by jachin99 » Mon May 01, 2017 7:41 pm

I'm thinking it happened after the computer was put to sleep, and left unattended. I revoked Windows's permissions to control power for the USB port in the device manager under USB Root, and in the power plan settings. I had some other problems that were probably related to having too many HID devices hooked up to the machine, so I did some work to fix those also. I tested the machine with my new configuration last night but putting it to sleep a few times, and restarting it. Everything seemed to work ok so I'll check it again when I get home tonight.

jachin99
Experienced User
Posts: 440
Joined: Sat Feb 13, 2016 8:39 pm

Re: rc2 dropping generic HID devices?

Post by jachin99 » Tue May 02, 2017 12:32 pm

So far, it works so for the time being, I'll call it fixed. Thanks

User avatar
kgschlosser
Site Admin
Posts: 3706
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: rc2 dropping generic HID devices?

Post by kgschlosser » Tue May 02, 2017 2:32 pm

No worries.. I am surprised you don't want to know why this fixed it.. You are usually pretty into knowing the cause of a problem.
If you like the work I have been doing then feel free to Image

jachin99
Experienced User
Posts: 440
Joined: Sat Feb 13, 2016 8:39 pm

Re: rc2 dropping generic HID devices?

Post by jachin99 » Tue May 02, 2017 3:26 pm

I had two or three problems all come up at once and most of them went away. I cleaned up some wires, mounted a keyboard reciever outside of a AV cabinet, removed a mouse, uninstalled a bunch of USB devices in USBDeview, uninstalled some kinect software, and changed the usb power policies all at once. I'll try to guess one though. I'm thinking the computer is closing the com port for all of the artificial USB devices when it turns off the USB power, and the old connections are preventing new com port connections. Is that right? :D

User avatar
kgschlosser
Site Admin
Posts: 3706
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: rc2 dropping generic HID devices?

Post by kgschlosser » Wed May 03, 2017 4:21 am

well I am almost 100% sure it was the power policies and the device manager settings..

I have dealt with this problem before. what happens is that when windows goes to sleep it notifies the software that it's going to sleep. now if the software doesn't respond fast enough and idle down windows will then cut the power to the USB ports. this causes the device to be removed.. and then the software sees it getting removed and then idles down.. and when windows fires back up it turns on the USB's which causes the devices to get reinstalled and then the programs get notified to wake back up.. now the software never saw the devices get reinstalled. so it think they are still removed.. this doesn't happen all that often but occasionally the timing of things happen in such a way where it does.

kind of an odd glitch. I have been thinking about how to fix it. but I haven't come up with a solution as of yet.
If you like the work I have been doing then feel free to Image

jachin99
Experienced User
Posts: 440
Joined: Sat Feb 13, 2016 8:39 pm

Re: rc2 dropping generic HID devices?

Post by jachin99 » Wed May 03, 2017 12:37 pm

That just seems like something someone would have already written software for. I wonder if the power policies are just stored in the registry, and you can change a key somewhere to keep everything awake. From what I have seen other programs do, you could probably run a portable program that just changes the reg keys, so you don't even have to install something on the system.

User avatar
kgschlosser
Site Admin
Posts: 3706
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: rc2 dropping generic HID devices?

Post by kgschlosser » Wed May 03, 2017 6:11 pm

jachin99 wrote:That just seems like something someone would have already written software for. I wonder if the power policies are just stored in the registry, and you can change a key somewhere to keep everything awake. From what I have seen other programs do, you could probably run a portable program that just changes the reg keys, so you don't even have to install something on the system.

the issue actually lies in EG not somewhere else. the thing is I need to find a way to have EG rescan all the devices but because the plugins use devices in different ways the trick would be to make windows send out a notification that a device has been added even tho it is already there. but that in it's self could cause other issues with other programs. this is the hang up.
If you like the work I have been doing then feel free to Image

Post Reply