Sc-controller: Automically stop/start driver based on Steam process running?

Created on 20 Sep 2016  路  8Comments  路  Source: kozec/sc-controller

The controller is detected fine when plugged in while Steam is running. Could this maybe lead to leaving the scc-daemon running and when Steam is launched just hand off control from the scc-daemon?

Idea came after seeing this thread. https://www.reddit.com/r/SteamController/comments/53nkau/support_wireless_lizard_mode_on_ubuntu/

Most helpful comment

So, with autoswitcher rule set like this...

steam-restart

... scc-daemon will restart itself when Steam is activated and then, after (or rather if) Steam releases controller device, it will grab it back again.

All 8 comments

That sounds like same problem as #62. I'm not 100% sure if detecting Steam is possible, but it may work as option to turn off emulation in autoswitcher.

I'm sure python has something built-in in for this but just an example

if pgrep "steam" > /dev/null; then
    sc-controller pause; 
else     
    sc-controller start; 
fi

Some kind of process check that maybe runs once every 5 seconds (Could be an option in settings if you want this feature at all)

There is already code that checks for active window (not process) to allow automatic profile switching.

From my understanding that wouldn't hand access of the Steam Controller over to Steam though. Doesn't the daemon claim exclusive access?

From my understanding that wouldn't hand access of the Steam Controller over to Steam though.

Nope, but that's not biggest problem. I can make option to turn daemon off, but I don't know how to start it back after Steam exits.

So, with autoswitcher rule set like this...

steam-restart

... scc-daemon will restart itself when Steam is activated and then, after (or rather if) Steam releases controller device, it will grab it back again.

:D sweet.

Thank you. Thank you. Thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uppps picture uppps  路  106Comments

ManuelMT21An picture ManuelMT21An  路  12Comments

AccountOneOff picture AccountOneOff  路  10Comments

sunweaver picture sunweaver  路  35Comments

C0rn3j picture C0rn3j  路  19Comments