Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.8.21 System sleep crash #55

Closed
bell07 opened this issue Oct 27, 2024 · 2 comments
Closed

4.8.21 System sleep crash #55

bell07 opened this issue Oct 27, 2024 · 2 comments

Comments

@bell07
Copy link

bell07 commented Oct 27, 2024

If I try to set my SteamDeck into sleep (or hibernate) after resume the sc-controller crashes

player@game-deck ~/Downloads $ ./sc-controller-v0.4.8.21-bookworm-x86_64.AppImage daemon debug
D SCCDaemon     Starting SCCDaemon...
D SCCDaemon     Initializing drivers...
W SCCDaemon     Skipping disabled driver 'ds4drv'
W SCCDaemon     Skipping disabled driver 'ds5drv'
W SCCDaemon     Skipping disabled driver 'fake'
W SCCDaemon     Skipping disabled driver 'remotepad'
D USB           Registered USB driver for 28de:1102
D USB           Registered USB driver for 28de:1142
D USB           Registered USB driver for 28de:1205
D Mapper        Creating virtual devices
D Mapper        Keyboard: <scc.uinput.Keyboard object at 0x7f8bcd5a9610>
D Mapper        Mouse:    <scc.uinput.Mouse object at 0x7f8bcd5a9f90>
D Mapper        Gamepad:  <scc.uinput.UInput object at 0x7f8bcd5b5450>
D SCCDaemon     Created control socket /home/player/.config/scc/daemon.socket
D SCCDaemon     Connected to XServer :0.0
D asyncio       Using selector: EpollSelector
D deck          Got SteamDeck with serial 3:3
D USB           USB device added: 28de:1205
D AS  Mapper        Creating virtual devices
D AS  Mapper        Keyboard: <scc.uinput.Dummy object at 0x7f09f7771dd0>
D AS  Mapper        Mouse:    <scc.uinput.Dummy object at 0x7f09f740ecd0>
D AS  Mapper        Gamepad:  <scc.uinput.Dummy object at 0x7f09f740ed50>
D AS  AutoSwitcher  Parsed 30 autoswitcher conditions
D AS  AutoSwitcher  AutoSwitcher started
D AS  AutoSwitcher  Connected to daemon, version 0.4.8.21
I SCCDaemon     Registered scc-autoswitch-daemon
D AS  AutoSwitcher  Enabled: False
D AS  AutoSwitcher  Daemon reported profile change: /home/player/.config/scc/profiles/Desktop.sccprofile
D SCCDaemon     Assigned default_mapper to <Deck deck3:3>
D SCCDaemon     Turning gyrosensor ON
D SCCDaemon     Controller added: <Deck deck3:3>
D AS  AutoSwitcher  Enabled: True
D AS  AutoSwitcher  Daemon reported profile change: /home/player/.config/scc/profiles/Desktop.sccprofile
I CemuHook      Created CemuHookUDP Motion Provider
D AS  AutoSwitcher  Window switched: 56623107
W AS  Actions       Action ChangeProfileAction can't handle button press event
D OSD DaemonCtrl    Connected to daemon, version 0.4.8.21
D OSD DaemonCtrl    Daemon reported profile change for deck3:3: /home/player/.config/scc/profiles/Desktop.sccprofile
D OSD DaemonCtrl    Daemon is ready.
I SCCDaemon     Registered scc-osd-daemon
I OSD osd.daemon    Sucessfully registered as scc-osd-daemon
[..... system goes sleeping and wake up .... ]
Exception ignored on calling ctypes callback function: <bound method USBTransfer.__callbackWrapper of <scc.lib.usb1.USBTransfer object at 0x7f8bcd5bbf90>>
Traceback (most recent call last):
  File "/tmp/.mount_sc-conBfqwtA/usr/lib/python/scc/lib/usb1.py", line 321, in __callbackWrapper
    callback(self)
  File "/tmp/.mount_sc-conBfqwtA/usr/lib/python/scc/drivers/usb.py", line 47, in callback_wrapper
    transfer.submit()
  File "/tmp/.mount_sc-conBfqwtA/usr/lib/python/scc/lib/usb1.py", line 721, in submit
    raiseUSBError(result)
  File "/tmp/.mount_sc-conBfqwtA/usr/lib/python/scc/lib/usb1.py", line 117, in raiseUSBError
    raise STATUS_TO_EXCEPTION_DICT.get(value, USBError)(value)
scc.lib.usb1.USBErrorIO: LIBUSB_ERROR_IO [-1]
@C0rn3j
Copy link
Owner

C0rn3j commented Oct 28, 2024

Reopen(with a new trace) if you can reproduce it on the 0.4.9+ branch.

0.4.8 has a hacked-in libUSB (scc/lib/usb1.py) which is some random ancient version of libUSB.

0.4.9 uses libUSB from the env/system.

@C0rn3j C0rn3j closed this as completed Oct 28, 2024
@bell07
Copy link
Author

bell07 commented Oct 28, 2024

Reopened as #57

@bell07 bell07 changed the title 0.4.8.21 System sleep crash System sleep crash Oct 28, 2024
@bell07 bell07 changed the title System sleep crash 4.8.21 System sleep crash Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants