Help - Search - Members - Calendar
Full Version: I write a Vista driver for Intel Mac IR device
InsanelyMac Forum > Apple World > OS X > Boot Camp
Pages: 1, 2, 3
xxxin
I'll post the source code to http://winmacirdriver.sourceforge.net/ soon this weekend.
xxxin
I have uploaded the initial source code to http://sourceforge.net/projects/winmacirdriver.

Any feedback is welcome.
xxxin
The source code is in the download section, not in the CVS yet.
bloodmyst
Could we have a binary release? It's difficult for me to download the SDK and everything right now, but I'd really like to test this out!
xxxin
Maybe... But I need to review the license of the SDKs and tools I use. I don't want to upload any binaries which have copyright issues...
xxxin
I have uploaded the binary to http://sourceforge.net/projects/winmacirdriver.

If it works, enjoy...

If it doesn't work, please email to me. I collected 3 kinds of IR code in the current release, maybe the IR code of your remote control is not among them...
lotech
It does manage to setup a IR driver although I can't seem to get the app to do anything or allow the buttons on my remote to seem to do anything.
Good job so far - only one more driver -performance counters and the need to kickstart Bluetooth with hid2hci and all the drivers are done (MBPro CDuo 17")!

xxxin
Maybe your remote control uses another set of IR code... I'll write a IR code dump tool this week. If you know some C++ programming knowledge, you can even dump it yourself by compiling and debugging the MacIR.exe.
lotech
Sorry my coding skills are non exsistant, but I can offer my feedback.
Thanks so far.
vfx
When click on MACIR.exe, i got message saying it is not a valid win32 application. I tried to manually install the driver, it doesn't work. I got MacBook with core duo 2ghz with Win XP. Thanks for your hard work.
xxxin
QUOTE(vfx @ Jan 24 2007, 06:07 AM) *
When click on MACIR.exe, i got message saying it is not a valid win32 application. I tried to manually install the driver, it doesn't work. I got MacBook with core duo 2ghz with Win XP. Thanks for your hard work.



XP is not a supported platform yet. Please try it under Vista. rolleyes.gif
DWDH
I downloaded the IR file and tried to download it, did not work...any suggestions?

Anyone working on a real bluetooth option?
xxxin
QUOTE(DWDH @ Jan 25 2007, 11:15 AM) *
I downloaded the IR file and tried to download it, did not work...any suggestions?

Anyone working on a real bluetooth option?



Is it a Mac Mini or other type? What I have is a Mac Mini, the driver works for me. I also collect some other types of IR code. But I think there are still other types of remote controls this driver doesn't cover. I'll write a IR code dump tool this weekend to help you diagnose the problem... Thanks for your feedback! rolleyes.gif
Beechus
It does not work for me.

I have a 20¨ iMac Core Duo. Running Windows Vista 32-bit.

The image above shows the installed IR device running on Port 2 Hub 3 (Port_#0002.Hub_#0003)- however, on my iMac the not working human interface device is on Port 2 Hub 4 (Port_#0002.Hub_#0004)

When i attempt to install the driver i get:

¨The folder you specified doesn't contain a compatible software driver for your device. If the folder contains a drive, make sure it is deisgned to work with Windows for 32-bit systems¨

Running MacIR.exe does nothing.

Hope my feedback is helpful! I lookforward to a fix smile.gif - I'll post results from my MacBook Pro 15¨ tomorrow when i'm at work
xxxin
Could you check the hardware ID of the device you tried to install the Mac IR driver on, in the Vista device manager?

It is "USB\VID_05AC&PID_8240&REV_0110" for my Mac Mini. If it's another value for your Mac, you might try to update MacIR.inf file and then give another try.

QUOTE(Beechus @ Jan 26 2007, 07:20 AM) *
It does not work for me.

I have a 20¨ iMac Core Duo. Running Windows Vista 32-bit.

The image above shows the installed IR device running on Port 2 Hub 3 (Port_#0002.Hub_#0003)- however, on my iMac the not working human interface device is on Port 2 Hub 4 (Port_#0002.Hub_#0004)

When i attempt to install the driver i get:

¨The folder you specified doesn't contain a compatible software driver for your device. If the folder contains a drive, make sure it is deisgned to work with Windows for 32-bit systems¨

Running MacIR.exe does nothing.

Hope my feedback is helpful! I lookforward to a fix smile.gif - I'll post results from my MacBook Pro 15¨ tomorrow when i'm at work
vfx
QUOTE(xxxin @ Jan 24 2007, 01:29 AM) *
XP is not a supported platform yet. Please try it under Vista. rolleyes.gif


Can you write quick port to XP? or Does it require a lot of codes change?
xxxin
Not sure. This is the first time I write a driver. XP does support user mode driver framework. It might be easy to port the driver to XP.

But I don't want to install XP again on my Mac Mini since Vista is so lovely... rolleyes.gif

QUOTE(vfx @ Jan 26 2007, 04:59 PM) *
Can you write quick port to XP? or Does it require a lot of codes change?
Beechus
the device id is 109 not 110 for my laptop. just change it in the inf file smile.gif

I will upload a working iMac 20¨code when i get home smile.gif
Beechus
I have the driver installed. I ran the IR app, however nothing happens. How can i test that this driver works?

Another note, i am using the apple remote
xxxin
I just made a 1.0.0.3 release. Please try that release.

Currently if you want to know whether the driver is working, you should install Visual Studio 2005 and attach MacIR.exe to the debugger. You might see the IR code in the output window of the debugger when you press the buttons in the remote control.
lotech
The sourceforge site is down.....
xxxin
A little bit slow for me, but not down... Please try again later. Thanks!

QUOTE(lotech @ Jan 29 2007, 01:21 PM) *
The sourceforge site is down.....
lotech
Sorry the site is indeed not 'down' as such, but your root folder is empty and as a result reports an empty directory listing.
xxxin
Did you use the right link? It's no problem for me... unsure.gif

http://sourceforge.net/projects/winmacirdriver
http://sourceforge.net/project/showfiles.php?group_id=187329


QUOTE(lotech @ Jan 30 2007, 05:26 AM) *
Sorry the site is indeed not 'down' as such, but your root folder is empty and as a result reports an empty directory listing.
reserves
Vista Ultimate
Mac Book Pro 17" C2D


I have the same hardware ID and it's on the same port.

However running "MacIR.exe" does *nothing*.

Thanks for trying!
xxxin
Is it version 1.0.0.3? Did you install the driver by MacIR.inf? Did the driver installation succeed?

QUOTE(reserves @ Jan 30 2007, 03:09 PM) *
Vista Ultimate
Mac Book Pro 17" C2D


I have the same hardware ID and it's on the same port.

However running "MacIR.exe" does *nothing*.

Thanks for trying!
xxxin
I wrote a diagnostic tool and made a 1.0.0.4 release.

The diagnostic tool will output the IR code to a console window. However, I suspect non Mac Mini machines use a different logic for the IR device...

http://sourceforge.net/projects/winmacirdriver
reserves
OK, I managed to install the 1.0.0.4 Driver (had to install in manually).

The debugger run ok, here's my output:

Macbook Pro 17" C2D

IR Code: 0x25 0x87 0xEE 0xFC 0x0B (Up)
IR Code: 0x25 0x87 0xEE 0xFC 0x0D (Down)
IR Code: 0x25 0x87 0xEE 0xFC 0x08 (Left)
IR Code: 0x25 0x87 0xEE 0xFC 0x07 (Right)
IR Code: 0x25 0x87 0xEE 0xFC 0x04 (Play/Pause)
IR Code: 0x25 0x87 0xEE 0xFC 0x02 (Menu)


I noticed that there is a different result when you any of the buttons down.

I'm happy to help with debugging/development. I have Visual Studio 2005 etc.
reserves
Works very well in Media center smile.gif

iTunes only works if it's focus and the pause doesn't work.

Good work!
xxxin
Really happy to hear it's working for you! Thanks for your testing! thumbsup_anim.gif

QUOTE(reserves @ Jan 31 2007, 01:05 AM) *
Works very well in Media center smile.gif

iTunes only works if it's focus and the pause doesn't work.

Good work!
bloodmyst
Sorry for the delay.

I was having trouble at first installing the driver through the Add Hardware Devices panel in the Control Panel, but after I tried to install it directly through the Device Manager by right-clicking on the device in the list, and updating the driver software, it worked fine.

It works very well in Windows Media Center, as well as in Quicktime Player! In iTunes, it seems the left button and pause button are switched, and there are some other weird problems regarding this program. I'm sure you can see it for yourself if you install it on your machine.

I'm very impressed and grateful for your work on this driver! Thank you! Something that could be nice for a future release could be the ability to open Windows Media Center directly with the menu button on the Apple Remote similar to the way Front Row works in Mac OS X.

Again, Thank you for your work!
kkrull
A feature request...

It looks like your driver is flagged as a removable device, so that it shows up in the 'safely remove hardware' taskbar. Any chance you would change that state? I would rather not have to hide that annoying taskbar icon.

Ken
xxxin
Good suggestion. I'll consider it in the next release. Hopefully, a little change in the INF file might fix the problem...

QUOTE(kkrull @ Jan 31 2007, 09:01 PM) *
A feature request...

It looks like your driver is flagged as a removable device, so that it shows up in the 'safely remove hardware' taskbar. Any chance you would change that state? I would rather not have to hide that annoying taskbar icon.

Ken
xxxin
Yes, I'm considering a per app setting for the key mapping.

QUOTE(bloodmyst @ Jan 31 2007, 02:14 PM) *
Sorry for the delay.

I was having trouble at first installing the driver through the Add Hardware Devices panel in the Control Panel, but after I tried to install it directly through the Device Manager by right-clicking on the device in the list, and updating the driver software, it worked fine.

It works very well in Windows Media Center, as well as in Quicktime Player! In iTunes, it seems the left button and pause button are switched, and there are some other weird problems regarding this program. I'm sure you can see it for yourself if you install it on your machine.

I'm very impressed and grateful for your work on this driver! Thank you! Something that could be nice for a future release could be the ability to open Windows Media Center directly with the menu button on the Apple Remote similar to the way Front Row works in Mac OS X.

Again, Thank you for your work!
KesunJi
I have just brought a MACbook, and find there is a IR remote driver for windows is ready. What a good job!

But in Media Center of Vista when I play a movie, It seems can not contral the sound voluem any more, I don't whether this function can be added on next version because too less button on remoter, but If thers is any posiibilite we can use another more button remoter to control Media Center? It may led a lot of work, but may be a lot of people will be crazy about this function.

I found this forum when I google "Performance Counter Vista driver Macbook", but it looks like lotech have the same warning of performance counter in device manager too. Will this warning lead any problem?

And this driver looks can not work on Windows XP, or there have been any driver for XP but I have not noticed?

I am a new man of Mac, Thanks for your guys!
Straffaren
Hi,

I'm having trouble installing the driver. This is how I do it:
* There's a non-working USB HID device in my device manager.
* Choose "update driver", click myself to "have disk".
* Point it to the unzipped directory.
* "Mac IR Device" shows up. I select it.
* Vista warns me that the driver is not signed, I choose to continue anyway.
* Vista begins installing the driver, but after a second or so I get this:

Windows found driver software for your hardware but encountered an error while trying to install it.

Mac IR Device

The system cannot find the file specified.


I'm on a Mac Mini, Vista Ultimate, I checked my hardware id and it's the same as the one in the .inf file. Can you help? Is there a way to check which file is missing?
xxxin
Could you help to list all the file names in your driver directory?

QUOTE(Straffaren @ Feb 2 2007, 04:36 PM) *
Hi,

I'm having trouble installing the driver. This is how I do it:
* There's a non-working USB HID device in my device manager.
* Choose "update driver", click myself to "have disk".
* Point it to the unzipped directory.
* "Mac IR Device" shows up. I select it.
* Vista warns me that the driver is not signed, I choose to continue anyway.
* Vista begins installing the driver, but after a second or so I get this:

Windows found driver software for your hardware but encountered an error while trying to install it.

Mac IR Device

The system cannot find the file specified.


I'm on a Mac Mini, Vista Ultimate, I checked my hardware id and it's the same as the one in the .inf file. Can you help? Is there a way to check which file is missing?
Straffaren
Installation.txt
MacIR.dll
MacIR.exe
MacIR.inf
MacIRDiag.exe
Troubles.txt
WdfCoInstaller01005.dll
WUDFUpdate_01005.dll

The files are all in the same directory. Maybe it's case-sensitive or something?
xxxin
I think those are all files you needed.

Did you ever install the previous release of this driver?

Maybe you could try to extract the driver files to a folder in the desktop and try again...

QUOTE(Straffaren @ Feb 2 2007, 08:46 PM) *
Installation.txt
MacIR.dll
MacIR.exe
MacIR.inf
MacIRDiag.exe
Troubles.txt
WdfCoInstaller01005.dll
WUDFUpdate_01005.dll

The files are all in the same directory. Maybe it's case-sensitive or something?
huntergreenoz
Hi there,

I'm trying to follow the instructions various people have used in this post to get the apple remote working on my new install of Vista home premium on my brand spanking new MBP 17" C2D.... But I'm hitting a brick wall.

I'm using the files from sound forge 1.0.0.4 ... and I'm installing them manually as described in previous posts.... the device is showing up as Mac IR Device but still has the exclamation mark against it :-(


Also when running the MacIRDiag program in console it spits back "Failed to open device. Error 3"



Can anyone shed some light as to what I might be doing wrong?

Thanks
xxxin
Did you ever install the previous release of the driver?

Can you open the property page of the Mac IR device and tell me the error code in Vista device manager?

Are you using Vista RTM or a beta build?

unsure.gif
huntergreenoz
QUOTE(xxxin @ Feb 3 2007, 02:16 PM) *
Did you ever install the previous release of the driver?

Can you open the property page of the Mac IR device and tell me the error code in Vista device manager?

Are you using Vista RTM or a beta build?

unsure.gif


I did not install any of the previous versions.... only 1.0.0.4

I'm using RTM Vista Home Premium.

The error code in Device manager is : "The device cannot start. (Code 10)"

The location for the device is also coming up as unknown.


Not sure if this is related, but I have am also getting another USB Human Inferface Device showing up with an exclamation mark. This one has Microsoft drivers installed, and come up with the same error as MacIR in device status ie (Code 10). It reports a location of "Port_#0002.Hub_30003"

Hope this helps.

Cheers
joeworld
I have Exactly the same problem

MacMini 1.63 Core Duo
Vista Ultimate SB Edition 32 Bit

Exclamation Mark against driver in device manager sad.gif

Both MacIR and MacIRDiag will not launch either. MacIRDiag will VERY briefly launch a console window but immediately close again.

MacIR does nothing

How can I help?
xxxin
Please help to put the screenshot of your device manager here.

And please also check the hardware IDs of all the non-working USB devices and list them.
huntergreenoz
Here's a screenshot of the 2 devices on me machine.

Click to view attachment
Straffaren
Hi,

I tried the driver on a powerbook (also running Vista Ultimate) and it's the same thing there: the system cannot find the file specified. It doesn't say anymore than that.

My log file on the mac mini shows that it returns with "InstallStatus 2", but that's all the info I can find, it doesn't say which file is missing. I looked in the inf file and found references to a wudf.cat which I can't find anywhere on the system, maybe that's nothing, I'm just poking around. However, I know Vista has copied at least one file because in c:\windows\system32\drivers\UMDF there's a MacIR.dll. Do you know if there's a log file that shows exactly what files are missing?
bloodmyst
QUOTE(huntergreenoz @ Feb 2 2007, 10:53 PM) *
Here's a screenshot of the 2 devices on me machine.

Click to view attachment


Are you installing this thing the right way? It makes a difference as to whether you're using the Install Hardware wizard in Control Panel versus the Device Manager, etc. Check out my previous post detailing what I needed to do to install the driver correctly.

I was having this same problem before I installed it a certain way.
baltar27
hello, i really at a loss at how to install the drivers for mac ir untder vista ultimate final. I ran the exe and nothing happened.. i tried installing from the device manager under the "human interface" but mac doesnt show up in device manager . I also tried insalling through the add hardware wizard and it started and then just said that it couldnt install it. I followed all of the instructions for intallation.

I attached a screenshot of my device manager. Hopefully someone help me.

I have a Black MacBook 2.0 with 2 intel core duo 2 2 gigs of ram and 200 gigs of space. running OS X 10.8 and vista ultimate final.
xxxin
Hmm, I post my screen shot here.

1. The hardware ID might be different across different Intel Mac models.
2. Before installing the driver, Mac IR device should be shown as "USB human interface device" with a exclamation mark in Vista device manager.
3. If you have multiple exclamation marks in "Human interface devices" section of the device manager. Change the hardware ID in MacIR.inf and try to install the driver on all the devices with the exclamation mark.

My environment.
1. Intel Mac Mini Core Duo 1.66G(T2300).
2. Vista Ultimate 32bit.
3. I didn't install any drivers from Bootcamp CD except the audio driver from Sigmatel.

Click to view attachment
baltar27
QUOTE(xxxin @ Feb 4 2007, 02:26 AM) *
Hmm, I post my screen shot here.

1. The hardware ID might be different across different Intel Mac models.
2. Before installing the driver, Mac IR device should be shown as "USB human interface device" with a exclamation mark in Vista device manager.
3. If you have multiple exclamation marks in "Human interface devices" section of the device manager. Change the hardware ID in MacIR.inf and try to install the driver on all the devices with the exclamation mark.

My environment.
1. Intel Mac Mini Core Duo 1.66G(T2300).
2. Vista Ultimate 32bit.
3. I didn't install any drivers from Bootcamp CD except the audio driver from Sigmatel.

Click to view attachment



I checked the MacIR.inf file and it matches the first value but the second one is missing... it is under the human interface w/ exclamation mark. What can i do to correct it meaning does it need the second value? Should i uninstall the other drivers from the bootcamp CD? i installed them all using microsoft intallation tool.

the exe wont run still...
here are screenshots of both the MacIR.nf and the value of the hardware id
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.