I understand you're experiencing issues with your Matrox KVM system, particularly with keyboard functionality on the Ubuntu computer and gamepad input not working properly. This is a common challenge with KVM switches, as they involve sharing USB devices (like keyboards and gamepads) between different operating systems, and compatibility can vary. Below, I'll outline potential causes for these problems and provide a step-by-step troubleshooting guide. Since Matrox KVMs are reliable but can have quirks with Linux-based systems like Ubuntu, we'll focus on that.
Potential Causes
-
USB Emulation and Compatibility Issues:
- KVM systems emulate USB devices (e.g., keyboards and gamepads) to switch between computers. Windows often handles this emulation seamlessly because it's more standardized in enterprise environments. Ubuntu (Linux) might not always recognize the emulated devices properly due to differences in USB drivers, protocols, or kernel configurations. For example, the KVM might be using a USB HID (Human Interface Device) profile that's not fully compatible with Linux.
-
Intermittent Keyboard Problems:
- This could be due to timing issues during screen switching, where the KVM doesn't fully hand off the keyboard signal to the Ubuntu computer. Factors like USB signal interference, power management, or the KVM's firmware could contribute.
-
Gamepad Input Issues:
- Gamepads require real-time data transfer (e.g., for button presses or joystick movements), which might not be passed through correctly by the KVM. This could stem from:
- The KVM not supporting the gamepad's USB polling rate or device class.
- Linux-specific drivers not being triggered properly when the device is connected via the KVM.
- The gamepad being recognized at the hardware level (e.g., via
lsusb on Ubuntu) but not at the software level, indicating a data passthrough problem.
-
General KVM Factors:
- Firmware version: Older firmware might not handle Linux devices well.
- Cable quality or connections: Poor cables can cause signal loss.
- System Configuration: Differences in how Windows vs. Ubuntu handle USB devices could exacerbate the issue.
Troubleshooting Steps
Let's troubleshoot this systematically. Start with the basics and move to more advanced steps. You'll need administrative access to both computers and possibly the KVM's configuration interface.
1. Verify Basic Hardware and Connections
- Check Cables and Power: Ensure all USB, video, and power cables are securely connected and not damaged. Try swapping cables between the Windows and Ubuntu transmitters to rule out a faulty cable.
- Test Direct Connections: Disconnect the KVM temporarily and connect the keyboard and gamepad directly to the Ubuntu computer.
- If the keyboard works flawlessly, the issue is with the KVM.
- If the gamepad works (e.g., test with a game or tool like
jstest or evtest on Ubuntu), then the KVM is likely interfering with data transmission.
- Power Cycle Everything: Turn off the KVM, both computers, and the receiver. Wait 30 seconds, then power them back on in this order: computers first, then KVM, then receiver. This can resolve temporary glitches.
2. Test and Isolate the Problem
-
Keyboard Testing:
- On the Ubuntu computer (via KVM), open a text editor or terminal and type to check if the keyboard responds. If it works intermittently, note if it's tied to switching screens (e.g., does it fail right after switching?).
- Try different USB ports on the KVM receiver for the keyboard.
- On Ubuntu, run
lsusb in a terminal to see if the keyboard is detected. If it's not listed, the KVM might not be passing the device through properly.
-
Gamepad Testing:
- Connect the gamepad to the KVM and check if it's detected on Ubuntu:
- Run
lsusb in a terminal to list USB devices. Look for your gamepad (e.g., it might show as "Vendor XYZ Gamepad").
- If it's listed, test for input: Install and run
evtest (install via sudo apt install evtest on Ubuntu). Select your gamepad device and press buttons or move joysticks to see if events are registered.
- If no events are detected, the KVM is likely blocking or altering the data stream.
- Test the gamepad on the Windows computer via KVM. If it works there, it's a Linux-specific compatibility issue.
3. Update and Configure the KVM
- Check Firmware: Visit the Matrox website (likely under support or downloads) and look for your KVM model (e.g., Matrox DS or Extio series). Download and install the latest firmware. Follow the instructions carefully, as updating might require connecting the KVM directly to a computer.
- After updating, test the keyboard and gamepad again.
- KVM Settings: Access the KVM's configuration menu (often via a web interface, hotkeys, or onboard buttons). Look for:
- USB emulation modes (e.g., switch from "Generic HID" to "Transparent" if available).
- Device profiles for keyboards or gamepads.
- Any options for Linux compatibility or USB 2.0/3.0 settings.
- If your KVM supports it, enable "USB passthrough" mode to minimize emulation.
4. Ubuntu-Specific Configurations
-
Update Ubuntu and Drivers:
- Ensure Ubuntu is up to date: Run
sudo apt update && sudo apt upgrade in a terminal.
- For USB devices, make sure the kernel modules are loaded. For gamepads, you might need to install additional packages:
sudo apt install joystick (for basic joystick support).
- If your gamepad requires specific drivers (e.g., for Xbox controllers, install
xboxdrv), do so and test.
- Reboot Ubuntu after updates.
-
Check Kernel and USB Logs:
- Run
dmesg | grep usb in a terminal to check for USB-related errors when you connect the devices via KVM.
- For keyboard issues, check if X11 or Wayland (Ubuntu's display server) is interfering. Test by switching to a virtual console (e.g., press Ctrl+Alt+F3, log in, and type) to see if the keyboard works outside the graphical environment.
-
Permissions and Udev Rules:
- Sometimes, Linux requires specific permissions for USB devices. For gamepads, ensure your user is in the "input" group:
sudo usermod -aG input $USER and log out/in.
- If needed, create a udev rule for your gamepad. For example, edit
/etc/udev/rules.d/99-gamepad.rules with something like SUBSYSTEM=="input", ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", MODE="0666", then reload with sudo udevadm control --reload-rules and test.
5. Advanced Troubleshooting
- Test with Another Device: Try a different keyboard or gamepad to see if the issue is device-specific. For example, use a basic USB keyboard or a standard gamepad like an Xbox controller.
- Monitor KVM Logs: If your Matrox KVM has logging or diagnostic tools, check for errors related to USB switching.
- Network or IP KVM Issues: If this is an IP-based KVM (e.g., over Ethernet), ensure there are no network latency issues affecting USB data. Test with a direct wired connection if possible.
- Contact Matrox Support: If the above steps don't help, provide them with:
- Your KVM model and firmware version.
- Details on the Ubuntu version and hardware (e.g., kernel version from
uname -r).
- A description of the issues, including any error logs.
- They might have specific workarounds or beta firmware for Linux compatibility.
Final Recommendations
- Start with the basic checks (connections and direct testing) as they often resolve issues quickly.
- If the problem persists, it's likely a compatibility limitation with the KVM's USB emulation on Linux. In that case, you might consider alternative solutions like a USB switch (not a full KVM) for the gamepad, or a KVM model that's better optimized for mixed OS environments.
- Keep notes on what you've tried, as this will help when escalating to support.
If you provide more details (e.g., your Matrox model, Ubuntu version, or specific error messages), I can offer more tailored advice!