Skip Logitech webcams (PID 0x0800 to 0x09FF) to prevent them from locking up during hidpp checks #3145

This commit is contained in:
Din Tort 2026-02-28 16:07:01 +01:00
parent d919bcbb30
commit f431a41702
1 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,8 @@ from typing import Callable
from hidapi.common import DeviceInfo
from logitech_receiver.common import LOGITECH_VENDOR_ID
if typing.TYPE_CHECKING:
import gi
@ -251,6 +253,11 @@ def _match(
logger.info(f"Skipping unlikely device {device['path']} ({bus_id}/{vid:04X}/{pid:04X})")
return None
# Skip Logitech webcams to prevent them from locking up during hidpp checks (product IDs range for webcams from docs/usb.ids.txt)
if vid == LOGITECH_VENDOR_ID and 0x0800 <= pid <= 0x09ff:
logger.info(f"Skipping Logitech webcam {device['path']} ({bus_id}/{vid:04X}/{pid:04X})")
return None
# Check for hidpp support
device["hidpp_short"] = False
device["hidpp_long"] = False