DataX
Member
- Joined
- Mar 26, 2018
- Messages
- 23
- Likes
- 12
I've been reading through the comments about the sleep issue and confirmed I was also able to reproduce. I typically never let my system sleep/hibernate so I hadn't ran into it and not sure if this happened prior to the firmware update.
I started poking around and found that if you simply disable and enable the D10 in Windows Device Manager, this will cause it to reset and restore normal functionality. I believe you may need the Topping USB driver as the 'Topping USB Audio Devices' will only appear once this has been installed.
Further, I figured it would be pretty easy to script this in PowerShell, so that's what I did. I've attached a PowerShell script which will simply look for this device, then disable and re-enable. I'm running Windows 1803, so there's a chance this *might* not work with older versions of Windows 10 or Windows 8 as it requires the "Disable-PnpDevice" cmdlet.
To use, extract the script, right click and select "Run with PowerShell". It will prompt for admin rights and return a status message if able to complete.
You could also potentially create a scheduled task to automatically run this whenever your system comes back from sleep.
I started poking around and found that if you simply disable and enable the D10 in Windows Device Manager, this will cause it to reset and restore normal functionality. I believe you may need the Topping USB driver as the 'Topping USB Audio Devices' will only appear once this has been installed.
Further, I figured it would be pretty easy to script this in PowerShell, so that's what I did. I've attached a PowerShell script which will simply look for this device, then disable and re-enable. I'm running Windows 1803, so there's a chance this *might* not work with older versions of Windows 10 or Windows 8 as it requires the "Disable-PnpDevice" cmdlet.
Code:
# Prompt for Administrator rights if not running as admin already.
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Host "Need elevated rights, will prompt now..." -ForegroundColor Red; Sleep 2; Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
$toppingdevice = Get-PnpDevice -Class ToppingUsbAudio_sc -Status OK | Select -Property InstanceId
Write-Host "Resetting Topping USB Device..." -ForegroundColor Green
Try {
Disable-PnpDevice -InstanceId $toppingdevice.InstanceId -Confirm:$false; Sleep 2
Enable-PnpDevice -InstanceId $toppingdevice.InstanceId -Confirm:$false
Write-Host "Done!" -ForegroundColor Green; Sleep 2
} Catch { Write-Host "Failed to Disable/Enable Topping USB Device." -ForegroundColor Red; Sleep 5 ; Break }
To use, extract the script, right click and select "Run with PowerShell". It will prompt for admin rights and return a status message if able to complete.
You could also potentially create a scheduled task to automatically run this whenever your system comes back from sleep.