timothycrosley / streamdeck-ui

A Linux compatible UI for the Elgato Stream Deck.
https://timothycrosley.github.io/streamdeck-ui/
MIT License
1.13k stars 241 forks source link

Dimming issues #265

Closed My1 closed 1 year ago

My1 commented 1 year ago

Describe the bug Basically it always dims to fully Black regardless of the dim setting and comes back to full brightness

To Reproduce Steps to reproduce the behavior:

  1. set a Dimming brightness that is not zero
  2. wait till it's dark
  3. Press a button to wake it up
  4. See error

Expected behavior 1) the dimming brightness should be according to the setting 2) it should return to the main brightness

Operating system (please complete the following information)

Stream Deck Version MK2

Side note: the dimming brightness in the dialog also gets lowered everytime you click okay and re-open the dialog, not sure if related.

dodgyrabbit commented 1 year ago

Please try version 2.0.6 to see if it resolves your problem.

pip install streamdeck_ui --upgrade
My1 commented 1 year ago

seems a bit better, the dim bar doesnt go down on every OK, but it seems to dim lower than the same brightness set normally.

image

on this it still goes fully dark but if i set the upper bar to the same value there's still suff visible.

also the brightness seems to restore properly

dodgyrabbit commented 1 year ago

I think you have a misunderstanding of how it is supposed to work.

The second slider dims to a percentage of the first (not an absolute value). I.e. if you want it to go down by half, then you should have the second slider half way.

Because your primary brightness is quite low, a small percentage value of that would be near 0. So raise the second slider a bit.

I think it may make sense to actually preview the "effective" brightness to make this a bit less confusing.

My1 commented 1 year ago

oh I thought percent referred to percent of total brightness.

also a "trigger dim" button might be nice.

My1 commented 1 year ago

trying out a bit more it seems to dim twice. once to the level I set it, and later to full darkness. and to restore operation, I need to push a button twice before being able to actually press a button

dodgyrabbit commented 1 year ago

This behaviour is also "by design". If it dim low enough (below 20) then you need two presses. The first to "wake up" the display, the second to trigger the action.

The reason for this is that below 20 brightness you basically can't see which icon you are pressing. We don't want to trigger an action unless the display is "on" or at least sufficiently bright that you're not pressing a key by mistake.

So try making the dim setting a bit higher and it will only take one press.

This behaviour is not well explained in the user interface, so I can understand why this may seem confusing.

My1 commented 1 year ago

I know that already from stream deck sleep mode on windows. but that's not what I mean. I have currently set it to 10 seconds to go dim. which it does, but several minutes later, it goes fully black.

and after that you need to press twice (1st to get to dim level, 2nd to full brightness) and THEN you can do an action on the third press

dodgyrabbit commented 1 year ago

This software (streamdeck ui) only has one dim level and dims the screen when the configured timeout happens.

If it turns off completely a few minutes after the dimming happened, this behaviour is outside the control and design of this software. Is your computer going into sleep mode, or are you saying that the computer does not suspend/sleep - yet the stream deck turned off? Does it respond to keypresses on the stream deck itself when in this state? This does not make sense if the computer was suspended, as it shuts off power to USB devices and therefore it won't respond to keypresses.

The only other explanation I can think of: maybe something new in the MK2 firmware (i.e. the streamdeck itself will sleep), which happens independently of the software. I don't have the MK2 (original 15 key), so thats one difference.

My1 commented 1 year ago

the computer stays on normally. and the steam deck goes on. maybe this could because of the settings I had in windows prior to going into linux, not sure tbh.

but yeah the stream deck will respond to a key to wake it up again

My1 commented 1 year ago

if you connect your streamdeck to a windows do you get this kinda "sleep after" option? image

dodgyrabbit commented 1 year ago

I can confirm the behaviour you describe.

If you set your Stream Deck to have a 5 minute sleep mode timeout in the original software on Windows, this timeout is programmed into the device and will still have an effect when running it under Linux machine. Note that it seems to clear this behaviour if you physically unplug and plug it back in. We can deduce it is storing this configuration on the device, in volatile memory (as opposed to flash memory or something).

Can you confirm how you moved between Linux and Windows? Are you using VMs or perhaps a powered hub? Normally I would expect if you unplugged it from a Windows machine and plugged it into a Linux machine you will not have this problem since power would have been lost.

BTW This Linux Stream Deck UI software cannot detect or control this configuration. It may need to be reverse engineered by https://github.com/abcminiuser/python-elgato-streamdeck to add support for that.

I'm closing this case as there is no specific further actions to take here and the original bug reported was fixed.

My1 commented 1 year ago

Yeah i have the stream deck on my monitor so that pretty likely acts as a powered hub when rebooting between windows and linux. Regarding the thing being volatile, cool to know, can be something i can test.

Maybe worth a doc note or whatever, but - good to know nothing's actually broken

Danie10 commented 1 year ago

This was a really useful explanation above (yes, probably needs to be in the readme docs too) regarding the dimming being a percentage of the standard brightness. I also have a Mk2 and had setup the screensaver mode under a Windows VM (was testing to see what all the Windows side had). I noticed when I plugged it in under Linux that same Windows screensaver image popped up. So some settings do definitely get saved with the Mk2. I'm going to also try disabling the Windows screensaver side to see if it works better with Linux as I mostly use Linux. The wakening below 20% dim also makes sense, now that I understand it.