Automator App for Logitech G Hub's "Not Connected" Issue
I noticed lots of people have same issue with LGHUB connection problem after mac goes to sleep and restart the app is not a solution sometimes. I've a workaround for you.
Firstly, restarting is not a solution because there are 6 process behind the app called
- lghub
- lghub_agent
- three lghub Helper (I don't know why there is 3 of them)
- (and lastly) lghub_updater
This one is not killable. It is a service running by root and if you can kill it, it's running again. So you should kill all the other ones and remove updater from services and reload again and start the app. Luckily Automator comes to help at this moment.
- Open the Automator from Spotlight
- Select "New Document" and "Application"
- Search from the upper left "Run Shell Script" and double click or drag and drop it to the right section
- copy and paste the code below
killall "lghub" &> /dev/null
pkill -f "lghub" &> /dev/null
launchctl remove com.logi.ghub.updater
launchctl load -w /Library/LaunchDaemons/com.logi.ghub.updater.plist
- Search from the upper left "Launch Application" and double click or drag and drop it to the right section under the Shell Script block
- Click to the dropdown menu and select "Other..." from the bottom
- Find and select "Logitech G Hub"
- Press ⌘+S or File->Save from menubar
- Give it a name and save it to your Application directory Now you can put it in your Dock and with one click you can restart Ghub and make it reconnect your devices.
Hope it works well.