Open ven3k opened 7 years ago
Thank you. Will do. VS2015. I am actually working on some leakiness in the way I do the open currently. I plan to document the needed projects and how they need to be related in dir structure. Currenlty I use: C:\source\razer-drivers\ (to place my pull of Terry's drivers with my defines - from https://github.com/rsandoz/razer-drivers) -and- C:\source\razer-drivers\razer-drivers-win32\ (to place my subproject files - from https://github.com/rsandoz/razer-drivers-win32) I tried to make sure there was no absolute c:\source within the dsw, etc. Everything should be relative pathed.
Also, winusb.sys needs to be on the device as one of the upper interfaces (example: RBPro uses: 1532:0210:00 (Razer uses this) 1532:0210:01 (Razer uses this) 1532:0210:02 1532:0210:03 (this is the one I used)
I used the zadig tool to do this (much easier than inf coding/hacking)
So I need to download razer-drivers
repo too and place -win32
inside of it?
Will then Python API from original razer-drivers
work on Windows?
Sorry for me being total noob, but I can't compile it or something :disappointed:
Actually I think the problem is on my end. For some reason Git had an older version of my subproject than what I have locally. I also can't seem to get my razer-drivers to recognize the subproject updates. How exactly are you getting a copy (git gui, download a zip,?) Anyway, I since updated the subproject, so if you first download razer-drivers the overlay the subdirectory in there with a download of razer-drivers-win32, it should compile. (open sln file and hit F5)
I only assume this is what you got because I just now tested and got 1st an error about missing razercommon.h (needed to fix include path in dsw - did this before, but didn't stick in Git for some reason), then next a main.cpp (where I removed some Legacy devices and will probably put them back in another pull request to Terry later on in time as I don't want to overwhelm the pull request as I believe he would have to add more stuff to his pyhon code).
I I finally got the git submodule to sync up correctly. Basically I was having the same problem as this guy: http://stackoverflow.com/questions/8191299/update-a-submodule-to-the-latest-commit Tried a bunch of stuff on that page, but some of the later responses seemed to work.
So, I should do "git clone" of your razer-drivers repo, open -win32 directory, compile by F5 in .sln file, then install WinUsb on Interface 2 of my keyboard?
Oh, btw, I forgot to ask... Every keyboard from Terry's driver work on your Windows port?
On 3/23/2017 10:49 AM, ven3k wrote:
So, I should do "git clone" of your razer-drivers repo, open -win32 directory, compile by F5 in .sln file, then install WinUsb on Interface 2 of my keyboard?
yes
Oh, btw, I forgot to ask... Every keyboard from Terry's driver work on your Windows port?
In theory, yes. As I only have the RBP2016. it is the only one I could test.
(I also have an old deathstalker kb with the mousepad and I was able to test that, but it wan't in Terry;s driver, so I added it and since removed it from the currently pull request. I will add it in a later pull request from Terry's driver that way I can be more thorough.)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rsandoz/razer-drivers-win32/issues/1#issuecomment-288763328, or mute the thread https://github.com/notifications/unsubscribe-auth/AKs-khGZJDW12Ie7pJrrhYxOo6DCZsDHks5ropRygaJpZM4Mlt-q.
Aaaaand... I'm stuck, again. After installing WinUsb onto Interface 2 and compiling DLL, examples don't work. Should I write my own code for other keyboard than yours?
Do you know your keyboards product ID? Check if it is already covered in the .h file. Initial open call should printf this if detected.
Yep, it's defined as "USB_DEVICE_ID_RAZER_BLACKWIDOW_ULTIMATE_2016", I think I didn't loaded DLL or something :confused:
There are two project, one with and one without the DLL.
Right-click and select startup project on which one you want to run (DLL or noDLL), then hit F5.
On 3/25/2017 5:40 AM, ven3k wrote:
Yep, it's defined as "USB_DEVICE_ID_RAZER_BLACKWIDOW_ULTIMATE_2016", I think I didn't loaded DLL or something 😕
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rsandoz/razer-drivers-win32/issues/1#issuecomment-289203685, or mute the thread https://github.com/notifications/unsubscribe-auth/AKs-koYpB1I3QwDkfcKNIc7sM4-9MSVQks5rpO84gaJpZM4Mlt-q.
Also, if you want to debug, openChromaDevice at the bottom of hid.h is a good place to start.
Program closes after "Press enter to load DLL..." in DLL project. Nothing happens in NoDLL project.
And NoDLL version complaints about some PDB files
Example: „ChromaExampleNoDLL.exe” (Win32): loaded „C:\Windows\System32\ntdll.dll”. Cannot locate or open PDB file.
EDIT: Nevermind, I've installed them in Debugging menu. But still no changes to keyboard lighting
Maybe your examples aren't compatible with non-RGB keyboards?
I'm leaning more toward a USB issue. I will see if I can reproduce circumstances on my end. I have only tested this on my equipment, so I am sure there is something we are just missing. I will probably try do do a fresh install on one of my non-tainted computers and temporarily put back my old death stalker keyboard. Might not be until next weekend though.
On 3/25/2017 8:55 AM, ven3k wrote:
Maybe your examples aren't compatible with non-RGB keyboards?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rsandoz/razer-drivers-win32/issues/1#issuecomment-289213120, or mute the thread https://github.com/notifications/unsubscribe-auth/AKs-kgxHDl-AKcztL9QnwblRRuva0j8Iks5rpRzPgaJpZM4Mlt-q.
Updated open method in hid.h
Well, it still does nothing to lighting on my Blackwidow.
Is there any other way to send you something, maybe detailed debugging log?
Sure. What is your email? I will send you an email and you can respond to it with a copy of the debug log and I will compare.
On 4/5/2017 7:43 AM, ven3k wrote:
Is there any other way to send you something, maybe detailed debugging log?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rsandoz/razer-drivers-win32/issues/1#issuecomment-291849534, or mute the thread https://github.com/notifications/unsubscribe-auth/AKs-knBRCWPQFEdUGChV3_7IdGYhonwTks5rs4xqgaJpZM4Mlt-q.
Uh, the problem is I can't find any debug log. Like everything is fine, but nothing is really done...
From the menu
\Debug\Windows\Output
On 4/6/2017 3:59 PM, ven3k wrote:
Uh, the problem is I can't find any debug log. Like everything is fine, but nothing is really done...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rsandoz/razer-drivers-win32/issues/1#issuecomment-292318132, or mute the thread https://github.com/notifications/unsubscribe-auth/AKs-kvTLbGQCEbTt_39I9KkQ1Xh2q425ks5rtVIVgaJpZM4Mlt-q.
Here is how it goes down on my side:
(I press F5 to start program execution and a debug session)
(This is from the output window) 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\source\razer-drivers\razer-drivers-win32\x64\Debug\ChromaExampleDLL.exe'. Symbols loaded. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file. The thread 0x2e44 has exited with code 0 (0x0). The thread 0x39ec has exited with code 0 (0x0). The thread 0x442c has exited with code 0 (0x0).
(I notice on the console window) Press enter to load DLL...
(I press enter) (This gets added to output window) 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\source\razer-drivers\razer-drivers-win32\ChromaDLL64.dll'. Symbols loaded. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\winusb.dll'. Cannot find or open the PDB file.
(I notice on the console window this gets added) Press enter to init usb and devices...
(I press enter) (This gets added to output window) The thread 0x3b5c has exited with code 0 (0x0). The thread 0x5500 has exited with code 0 (0x0). The thread 0x43dc has exited with code 0 (0x0). 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Cannot find or open the PDB file. 'ChromaExampleDLL.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Cannot find or open the PDB file.
(This gets added to console window) CM_Get_Device_ID (USB\VID_1532&PID_0C00&MI_02\6&7DE1CB9&0&0002) device 1532:0C00 opened! ll_start hid_connect usb_disable_autosuspend CM_Get_Device_ID (USB\VID_1532&PID_0210&MI_03\6&1080E35&0&0003) device 1532:0210 opened! ll_start hid_connect CM_Get_Device_ID (USB\VID_1532&PID_005C&MI_02\6&6D7EF0B&0&0002) device 1532:005C opened! ll_start hid_connect Press enter to start...
(I press enter and execute the test code in main)
On 4/6/2017 3:59 PM, ven3k wrote:
Uh, the problem is I can't find any debug log. Like everything is fine, but nothing is really done...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rsandoz/razer-drivers-win32/issues/1#issuecomment-292318132, or mute the thread https://github.com/notifications/unsubscribe-auth/AKs-kvTLbGQCEbTt_39I9KkQ1Xh2q425ks5rtVIVgaJpZM4Mlt-q.
„ChromaExampleNoDLL.exe” (Win32): Loaded „H:\razer-drivers\razer-drivers-win32\x64\Debug\ChromaExampleNoDLL.exe”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\ntdll.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\kernel32.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\KernelBase.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\advapi32.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\msvcrt.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\sechost.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\rpcrt4.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\setupapi.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\cfgmgr32.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\gdi32.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\user32.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\lpk.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\usp10.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\oleaut32.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\ole32.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\devobj.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\winusb.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\msvcp140d.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\vcruntime140d.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\ucrtbased.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\api-ms-win-core-timezone-l1-1-0.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\api-ms-win-core-file-l2-1-0.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\api-ms-win-core-localization-l1-2-0.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\api-ms-win-core-synch-l1-2-0.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\api-ms-win-core-processthreads-l1-1-1.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\api-ms-win-core-file-l1-2-0.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\imm32.dll”. Symbols loaded. „ChromaExampleNoDLL.exe” (Win32): Loaded „C:\Windows\System32\msctf.dll”. Symbols loaded.
And after that nothing appears when I press enter in main window
Hey, I've tried to download your version of driver, but I couldn't open it in Visual Studio. I think I downloaded wrong version of VS, can you add some more info to README.md or something?