Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
HID Enhancements
Re: HID Enhancements
I played around with my Desktop MX and i found it.
- Attachments
-
- __init__.py
- (27.53 KiB) Downloaded 341 times
Re: HID Enhancements
Works beautifully! Thanks for such a quick response to an esoteric problem. Now I can prototype my eventghost configuration on one machine and copy it to the other 3 without having to tweak it manually.
Basically I've got a few XP machines that are used for business during the day and gaming at night. They're within viewing distance of a Vista Media Center PC hooked to a projector and full surround sound system. I have it so that if you hold down the menu button on the logitech keyboard for 3 seconds, it toggles control over to the MCE machine so that you don't have to get up to switch channels or change tracks. With my Harman Kardon plugin I wrote, I can also control power, inputs, and volume on the receiver and projector.
I've struggled for more than a year trying to get girder to do half of this _reliably_. It took less than 2 weeks with Eventghost to surpass the level of control I had before. I'm working on tying in my motorized blinds and X10 lighting and then I'll truly have a fully automated place.
Again, thanks so much for this awesome software.
-K
Basically I've got a few XP machines that are used for business during the day and gaming at night. They're within viewing distance of a Vista Media Center PC hooked to a projector and full surround sound system. I have it so that if you hold down the menu button on the logitech keyboard for 3 seconds, it toggles control over to the MCE machine so that you don't have to get up to switch channels or change tracks. With my Harman Kardon plugin I wrote, I can also control power, inputs, and volume on the receiver and projector.
I've struggled for more than a year trying to get girder to do half of this _reliably_. It took less than 2 weeks with Eventghost to surpass the level of control I had before. I'm working on tying in my motorized blinds and X10 lighting and then I'll truly have a fully automated place.
Again, thanks so much for this awesome software.
-K
Re: HID Enhancements
I have just added hot plug support to the HID plug-in.
Some testing would be appreciated.
Some testing would be appreciated.
- Attachments
-
- __init__.py
- (30.05 KiB) Downloaded 364 times
Re: HID Enhancements
I just tested it with my DiNovo set and it seems to work great.
The way I have my machines set up, they have a Logitech Bluetooth stick connected to a USB port on the monitor. When I switch the monitor off with the power button, it kills the Bluetooth stick as well. This works nicely for me because I can keep a small mouse bump from waking up my monitor/hard drive, and it also makes sure that my bluetooth Motorola SLVR doesn't see my PC as a headset when I'm not going to be using the PC for a while.
The downside was when I powered the monitor back on, EG had a hard time finding the HID keys on my keyboard.
Before you created this fix, I was using this macro that watched for a HID device to be enabled and then I would disable/enable the plugin. It never worked quite right, so hotplug support is a beautiful thing for me. =)
Will this be added to the next beta release?
-K
The way I have my machines set up, they have a Logitech Bluetooth stick connected to a USB port on the monitor. When I switch the monitor off with the power button, it kills the Bluetooth stick as well. This works nicely for me because I can keep a small mouse bump from waking up my monitor/hard drive, and it also makes sure that my bluetooth Motorola SLVR doesn't see my PC as a headset when I'm not going to be using the PC for a while.
The downside was when I powered the monitor back on, EG had a hard time finding the HID keys on my keyboard.
Before you created this fix, I was using this macro that watched for a HID device to be enabled and then I would disable/enable the plugin. It never worked quite right, so hotplug support is a beautiful thing for me. =)
Will this be added to the next beta release?
-K
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: HID Enhancements
As long as Bartman commits its changes into the SVN trunk (and he has), they will automatically be included in the next beta.kingtd wrote:Will this be added to the next beta release?
-K
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Re: HID Enhancements
I was just wondering what kind of devices will trigger such events when connected/disconnected?Bitmonster wrote:I think I will add the events System.DeviceRemoved and System.DeviceArrived for HID devices. Then you can use eg.Bind("System.DeviceAttached", self.MyCallback) in your __start__ method to get informed and eg.UnBind("System.DeviceAttached", self.MyCallback) in your __stop__ method.
HID and Storage devices work fine but my USB-UIRT can be unplugged unnoticed.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: HID Enhancements
Yes, only disk devices and HID devices are registered for event generation. You can experiment with more device types in plugins/System/DeviceChangeNotifier.py. For example another call to RegisterDeviceNotification with {a5dcbf10-6530-11d2-901f-00c04fb951ed} should enable USB raw devices.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!