Lightpack
Lightpack copied to clipboard
Prismatik not working after PC sleeps
So im on windows 10 and managed to set up my adalight unit all fine with prismatic. Then I tried sleeping the PC to see if it will come back on after and it didnt. Now I cant get the lights to work again. Any ideas as to why this happened? I can see the unit in device manager, and Prismatik is running with the same settings as before. Thanks
Okay after fiddling with the program it will work again if I quit prismatik and restart it. Is there a way where I wont need to do this everytime after I put my pc to sleep?
with what board?
Its a off the shelf product. Bought it from banggood, not sure what board it uses. https://www.banggood.com/Ambilight-DC5V-2M3M4M5M-WS2812B-5050-RGB-Dream-Color-USB-APP-LED-Strip-Light-for-Desktop-PC-Screen-p-1497308.html?rmmds=myorder&ID=45764554513&cur_warehouse=CN
Yeah and now even quiting the program and reopening doesnt work anymore either.
You can open the box to see But looks like you have CH340 serial chip (did you install the driver?) which has all kinds of issues You can try this
Yeah it is a CH340 displayed in device manager. I downloaded the driver and it worked! As for the usb setting, should I set it to keep power on the USB constantly even when pc is turned off?
If it works without touching USB power settings, maybe keep it as is for now. Otherwise, no, keeping power even when everything is off won't help
SO after updating windows, it worked as it should for a day. But now I'm back to the same problem. Doesnt work after pc wakes from sleep.. any ideas?
After fiddling around with it more, I got it working again by changing the baud rate from 128000 to 115200 in device manager. I was trying to have this higer to make it sync with my 100Hz monitor. Is this never going to be possible?
It depends on how hard you want it, see here
Still having issues with this. Only sometimes work when I wake pc from sleep. Then to get it working again I need to shutdown the pc and restart it a few minutes later. Even that method doesnt work all the time. Now im back to not being able to get it working even after a PC shutdown/restart. :/
Having the same issue. Happens pretty much ~75% of the time when resuming from sleep. Usually to fix it I just toggle the light off and on, but sometimes this doesn't work either and I have to restart the app.
After fiddling around with it more, I got it working again by changing the baud rate from 128000 to 115200 in device manager. I was trying to have this higer to make it sync with my 100Hz monitor. Is this never going to be possible?
I have bought that same exact box myself. If you open it up you'll find that there's a simple Arduino UNO R3 inside of that. You can flash Adalight on it again (I however don't remember exactly which pins it uses for the LED signal but you should be able to trace it back by following the wire that is soldered to the LED connector) with your desired BaudRate if you want it to run faster.
I hava a 120hz monitor so I tried a few seetings too, to have the best direct visual effect. So here are my settings that work very nicely for me. boudrate: 500000 (change in code for arduino and in prismatik as well, otherwise it will not work, also changing the boudrate on the settingsmenu in devicemanager has no effect). Then set the grabinterval at 1ms. This gives for me the best effect.
Hi. I am very grateful to you for the work you have done. I am using on windows 10 Prismatik (unofficial fork) software 5.11.2.27 + esp flashed with WLED + Wled_wifi plugin. Everything works great, but stops after resume from sleep state. Restart application helps but after sleeping all repeats. Is there any solution?
why do you need a plugin? try without (any UDP device option in the config wizard)
Yes, now i can see that plugin is not running) This infornation in logs after resume from sleep state:
11:00:04:104 Debug: void __cdecl GrabManager::start(bool) true 11:00:04:104 Debug: void __cdecl GrabberBase::startGrabbing(void) DDuplGrabber 11:00:04:104 Debug: void __cdecl MoodLampManager::start(bool) false 11:00:04:104 Debug: void __cdecl LiquidColorGenerator::stop(void) 11:00:04:104 Debug: void __cdecl WindowsSoundManager::start(bool) false 11:00:04:104 Debug: void __cdecl SettingsWindow::startBacklight(void) m_backlightStatus = 1 m_deviceLockStatus = 0 11:00:04:104 Debug: void __cdecl SettingsWindow::startBacklight(void) check session key 11:00:04:104 Debug: void __cdecl LedDeviceManager::switchOnLeds(void) 11:00:04:104 Warning: bool __cdecl AbstractLedDeviceUdp::writeBuffer(const class QByteArray &) bytesWritten != buff.count(): 0 902 "Unknown error" 11:00:04:146 Debug: void __cdecl SettingsWindow::ledDeviceCallSuccess(bool) Backlight::StatusDeviceError 11:00:04:146 Debug: void __cdecl GrabManager::ledDeviceCallSuccess(bool) stopping grabbing while device is not available 11:00:04:146 Debug: void __cdecl GrabManager::start(bool) false 11:00:04:146 Debug: void __cdecl GrabberBase::stopGrabbing(void) DDuplGrabber
After restart program every thing works fine. Restarting wled device is not helping.
P.S. I am trying to make script for auto restart prismatik after logon windows))
There is a mechanism to re-create the device on device error. It looks like this was only active for Lightpack devices.
Could you please try this version to see if that fixes it?
@dmutpuul @mattzzz100 when you have a chance, please try the version linked above. Thanks!
There is a mechanism to re-create the device on device error. It looks like this was only active for Lightpack devices.
Could you please try this version to see if that fixes it?
I had the same problem with this version 5.11.2.28. Sometimes it automatically crashes, needs to be restarted and it's back to normal.
Does it crash or keep running but stop updating colors? Could you provide a log file please?
@psieg Since my last comment (11 apr) i had no crashes except after resume from sleep state. I made a script to restart prismatik after logon windows and connect to network, after that no crashes. (sorry for my english) P.S. i have not try this version)) ->
Could you please try this version to see if that fixes it?
but if you want i will. And maybe in my case there was some crashes because my pc connected by wifi, and connection sometimes take a lot of time.
here is log file , version 5.11.2.28 from your commet. Still error with connection device. So i will enable my script))
Hello, since the last update (5.11.2.29) my LEDs do not turn back on after resuming from sleep. I can get them to start updating again by double clicking the system tray icon. They also stay responsive if I checkmark Keep lights ON after display sleep/lock/system suspend. I tried rolling back to 5.11.2.28 but the problem persists, even using the version linked above. Linked is my log file and my OS is Windows 10. https://pastebin.com/7yy1610Q
I have exactly the same with the same operating system, but it goes with waves. For me this has been the case already since 3 or 4 updates ago. After every update the issue seems fixed but then after a while it comes back again. And then also sometimes it works again. So there does not seem to be a clear cause.
From: jechin1 @.> Sent: Monday, August 9, 2021 9:58:38 AM To: psieg/Lightpack @.> Cc: Kas152 @.>; Comment @.> Subject: Re: [psieg/Lightpack] Prismatik not working after PC sleeps (#331)
Hello, since the last update (5.11.2.29) my LEDs do not turn back on after resuming from sleep. I can get them to start updating again by double clicking the system tray icon. They also stay responsive if I checkmark Keep lights ON after display sleep/lock/system suspend. I tried rolling back to 5.11.2.28 but the problem persists, even using the version linked above. Linked is my log file and my OS is Windows 10. https://pastebin.com/7yy1610Q
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/psieg/Lightpack/issues/331#issuecomment-895024213, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMNQAE6OPG2K5GLYBASD6DLT36DC5ANCNFSM4MXREHAQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.
Sorry for the delay, I was able to reproduce this and fix for non-UDP devices. For UDP I'm not sure because I can't test, but I tried something that should help.
Could everyone please try this version and let me know. If it doesn't please provide another log with at least level 2. Thanks!
Unfortunately this did not fix the issue for me. I am using UDP (address 10.1.1.4 as you can see in the log)
Thanks for trying though, and keep up the awesome work! Looking forward to this being resolved
This new version solved my issue. The lights have resumed every time from sleep.
@H3mul Thanks! Hm, your log is different. The device is recreated and seems to talk to the device again successfully, but grabbing remains stopped. Can you make a log with this version please? I added some logs to help understand why it doesn't resume