11/5/2023 0 Comments Amd linkeddiscreteWhat follows in the next line, it tells powershell to do something if the text the variable owo contains has any portion that has the text "XRSP", which, if we have our headset connected, then owo contains "Oculus Composite XRSP Interface", meaning it does contain XRSP. The output of this gets saved to the variable of "owo" The command then hands the output to "Out-String" which turns the PowerShell Object into a string, basically, human readable text. This is followed by "Select FriendlyName", which basically selects the from the output the name of the headset, we do this because we know if the headset is not connected, this will produce no output, and therefore will be empty. The first line queries your computer for any currently connected device with the name of "Oculus Composite XRSP Interface", of which, I believe applies to other Oculus headsets as well. Make sure to save the script before exiting PowerShell ISE. Disconnect your headset, and run the script again, this should enable your iGPU back again, and your screen should black out for a moment then return back to full resolution. If done correctly, this should disable your integrated GPU, noticeable by your screen going black for a moment, and reappearing as a lower resolution version of itself. Once finished, click on the run button to test the script. Once this is done, connect your VR Headset, and make sure to allow your PC to access the headset's content. Replace both "AMD Radeon" text fields in both the 3rd line and the 7th line of the code you copied to PowerShell ISE with your iGPU's name, do mind the caps to be exact as well. Remember how I told you to save onto that last bit we searched up for in PowerShell, your iGPU's name? Well, here is where it comes in handy! Look at the previous code we wrote, you will need to replace the following text with your iGPU's name. Look at the end for a line-by-line explanation of what this script does if you are concerned with security. Get-PnpDevice -FriendlyName "*AMD Radeon*" | Enable-PnpDevice -Confirm:$false Get-PnpDevice -FriendlyName "*AMD Radeon*" | Disable-PnpDevice -Confirm:$false $owo = Get-PnpDevice -PresentOnly -FriendlyName "Oculus Composite XRSP Interface" | Select FriendlyName | Out-String This will bring up a PowerShell ISE window, where you will need to open the file you previously made, the ps1 script. Now, open PowerShell ISE as administrator, a program pre-included in Windows. For example purposes, I named mine "uwu.ps1" To start, create a new file anywhere, and name it anything you want, but add the ps1 extension to it. Now, we need to actually make the script. We are done with the second set of pre-requisites. Should something akin to "AMD Radeon(TM) Graphics" or something containing Intel. In spite of all my efforts, the aforementioned problems still persist.This should list two GPUs, both your integrated GPU and the discrete one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |