Skip to content

Not functional after laptop resumes from sleep #464

Closed

Description

@badnetmask

Describe the bug
After resuming my laptop from sleep, StreamController is still open, but there is an internal error which prevents the Stream Deck itself from working. I have to close the app and open again.

To Reproduce
Steps to reproduce the behavior:

  1. Sleep the laptop.
  2. Resume.
  3. Stream Deck is empty/blank.
  4. Close app.
  5. Open app, it works.

Expected behavior
Should work after resume.

Screenshots
N/A

Additional context

  • Distribution: Bazzite (Fedora 42)
  • Desktop: Gnome
  • Version: 1.5.0-beta.11 (Flatpak)
2025-07-31 21:23:40.736 | ERROR    | src.backend.DeckManagement.DeckManager:on_resumed:252 - An error has been caught in function 'on_resumed', process 'MainProcess' (3), thread 'DetectResumeThread' (140220339054272):
Traceback (most recent call last):

  File "/usr/lib/python3.12/threading.py", line 1032, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x7f8819426660>
    └ <DetectResumeThread(DetectResumeThread, started 140220339054272)>
  File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
    │    └ <function DetectResumeThread.run at 0x7f87d6b31b20>
    └ <DetectResumeThread(DetectResumeThread, started 140220339054272)>

  File "/app/bin/StreamController/src/backend/DeckManagement/DeckManager.py", line 299, in run
    self.deck_manager.on_resumed()
    │    │            └ <function DeckManager.on_resumed at 0x7f87d6b31800>
    │    └ <src.backend.DeckManagement.DeckManager.DeckManager object at 0x7f87d4406a20>
    └ <DetectResumeThread(DetectResumeThread, started 140220339054272)>

> File "/app/bin/StreamController/src/backend/DeckManagement/DeckManager.py", line 252, in on_resumed
    deck_controller.update_all_inputs()
    │               └ <function DeckController.update_all_inputs at 0x7f87d7d1a020>
    └ <src.backend.DeckManagement.DeckController.DeckController object at 0x7f8804f49010>

  File "/app/bin/StreamController/src/backend/DeckManagement/DeckController.py", line 433, in update_all_inputs
    i.update()
    │ └ <function ControllerKey.update at 0x7f87d74c0b80>
    └ <src.backend.DeckManagement.DeckController.ControllerKey object at 0x7f8804f6ffe0>

  File "/app/bin/StreamController/src/backend/DeckManagement/DeckController.py", line 1903, in update
    rgb_image = image.convert("RGB").rotate(self.deck_controller.deck.get_rotation())
                │     │                     │    │               └ <StreamDeck.Devices.StreamDeckOriginalV2.StreamDeckOriginalV2 object at 0x7f8804f54d10>
                │     │                     │    └ <src.backend.DeckManagement.DeckController.DeckController object at 0x7f8804f49010>
                │     │                     └ <src.backend.DeckManagement.DeckController.ControllerKey object at 0x7f8804f6ffe0>
                │     └ <function Image.convert at 0x7f880c16f240>
                └ <PIL.Image.Image image mode=RGBA size=72x72 at 0x7F8804D61C10>

AttributeError: 'StreamDeckOriginalV2' object has no attribute 'get_rotation'
2025-07-31 21:23:40.766 | INFO     | src.backend.DeckManagement.DeckManager:on_resumed:244 - Resume from suspend detected, reloading decks...
2025-07-31 21:23:42.768 | INFO     | src.backend.DeckManagement.DeckManager:on_resumed:262 - Removing deck
2025-07-31 21:25:27.408 | INFO     | src.backend.LockScreenManager.LockScreenManager:lock:63 - Locking screen: False

Activity

  1. ImDevinC commented on Aug 2, 2025

    @ImDevinC
    Contributor

    A few things:

    1. Does this happen every time?
    2. Do you have a background image set on your StreamDeck? If so, can you try disabling it and seeing if the issue persists?
    3. Whether or not step 2 works, can you provide the full log please?
  2. badnetmask commented on Aug 4, 2025

    @badnetmask
    Author
    1. Yes, every time I suspend/resume.
    2. No background image.
    3. Sending logs attached (I added some notes just to make sure).

    Strangely enough this time I did not get the python backtrace, but it did not work anyway. I can try again later to see if the backtrace is intermittent.

    logs.log

  3. badnetmask commented on Aug 6, 2025

    @badnetmask
    Author

    It appears like in some weird situations I end up with multiple processes, and the Stream Deck works in these cases. Not sure where to go from here...

    $ ps ax | grep -i stream
     247768 ?        Sl     0:37 StreamController
     247815 ?        Sl     0:13 python3 /home/netmask/.var/app/com.core447.StreamController/data/plugins/com_core447_OBSPlugin/backend/backend.py --port=45331
     247941 ?        Sl     0:31 StreamController
     511390 ?        Sl     2:11 StreamController
     511456 ?        Sl     0:04 python3 /home/netmask/.var/app/com.core447.StreamController/data/plugins/com_core447_OBSPlugin/backend/backend.py --port=33515
     642223 pts/0    S+     0:00 grep --color=auto -i stream
    
    $ ls -1 ~/.var/app/com.core447.StreamController/data/logs/
    logs.2025-07-23_20-53-13_086220.log
    logs.2025-07-27_12-33-00_123635.log
    logs.2025-07-30_15-12-12_757092.log
    logs.2025-08-03_21-14-43_225941.log
    logs.2025-08-03_21-14-43_226421.log
    logs.2025-08-03_21-14-50_066406.2.log
    logs.2025-08-03_21-14-50_066406.log
    logs.log
    plugins.log
    
  4. ncareau commented on Nov 28, 2025

    @ncareau

    I have the same issue, on Fedora 43.

  5. Core447 commented on Dec 30, 2025

    @Core447
    Member

    Not at my computer right now, but somewhere in the settings there should be an option called something like "Beta-resume mode". Can you try if it works when you change this setting? Please restart the app after changing this setting

  6. getjump commented on Jan 7, 2026

    @getjump
    Contributor

    Feel free to check if the issue persists on my PR #526

    Also make sure you have applied udev.rules - not sure if it is actually is required or fix from my PR is enough.

  7. added a commit that references this issue on Mar 3, 2026
    6a5f6e3
  8. added a commit that references this issue on Mar 5, 2026
    6327094
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions