Logitech G Hub stuck on loading

This seems to be a problem from the updater.

When GHub starts up, it checks for any recent updates and gives you that menu where you have to click “Got it”

That menu is what gets this stuck. The updater or one of the other components bugs out.

From Task Manager go to details, click on any process and type on your keyboard “lg” to quickly go to ghub processes. Kill them all

Go to C:\Program Files\LGHUB, open in this order, as an administrator:

  • lghub_software_manager.exe
  • lghub_agent.exe
  • lghub_updater.exe
  • wait a bit for the others to start up
  • lghub.exe

You can also try it out and see what exact ones are needed to start up. I did it this way, and it worked for me after countless tries doing anything else.

Here’s a little powershell script to automatically fix this. You can run this with a keyboard shortcut or something. Maybe a voice command if you use Home Assistant

# Stop  all Logitech G Hub processes
$processes = @(
    "lghub.exe",
    "lghub_agent.exe",
    "lghub_software_manager.exe",
    "lghub_sso_handler.exe",
    "lghub_updater.exe"
)

foreach ($proc in $processes) {
    Stop-Process -Name ($proc -replace ".exe","") -Force -ErrorAction SilentlyContinue
}

# Wait a moment to ensure processes are closed, had an issue where they weren't all closed yet
Start-Sleep -Seconds 2

# Define install path
$lgHubPath = "C:\Program Files\LGHUB"

# Run updater first
Start-Process -FilePath "$lgHubPath\lghub_updater.exe"
# Agent needs started before lghub
Start-Process -FilePath "$lgHubPath\lghub_agent.exe"
# Need to sleep for the agent to start, it's quite slow. Without the agent lghub just crashes
Start-Sleep -Seconds 5
# Then run the system tray exe as the lghub.exe has issues running from pshell, this is what runs in the start menu so it works fine
Start-Process "C:\Program Files\LGHUB\system_tray\lghub_system_tray.exe"

When this happens, I would test removing some of the processes from the kill list to see which ones actually need stopped. I have a feeling the agent might be able to be left on, which would make this much faster and we wouldn’t need to sleep


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA ImageChange Image