Acer Aspire one Ubuntu16.04下USB端口异常及USBview启动报错求助
Hey there, let's tackle this problem step by step—first we'll get USBView working properly, then use it (and other tools) to diagnose your wonky USB ports.
1. Resolve the "Invalid desktop entry file" error for USBView
This error almost always means the .desktop shortcut file for USBView is corrupted or missing critical required fields. Here's how to fix it:
First, let's inspect the problematic file to confirm the issue:
cat /usr/share/applications/usbview.desktopLook for missing key lines like
Exec=usbview,Icon=usbview, orCategories=System;HardwareSettings;. If the file is empty, garbled, or missing these entries, a clean reinstall will fix it.Purge and reinstall USBView to replace the damaged desktop file:
sudo apt-get purge usbview sudo apt-get update sudo apt-get install usbviewAfter running these commands, try launching USBView again—it should start without the desktop entry error.
2. Diagnose USB Port Abnormalities
Now that USBView is up and running, use it to visualize detected USB devices and spot any obvious errors. For deeper troubleshooting, use these command-line tools:
List all recognized USB devices:
lsusbCompare the output when you plug/unplug a USB device—if a device doesn't appear here, it's not being detected at the hardware level.
Check system logs for USB-related errors:
dmesg | grep -i usbLook for lines with
error,failed, ordisconnectwhen you interact with the USB ports. This can point to issues like faulty controllers or driver conflicts.Reset USB controllers (a common fix for intermittent issues):
# For USB 3.0 controllers sudo modprobe -r xhci_hcd && sudo modprobe xhci_hcd # For USB 2.0 controllers sudo modprobe -r ehci_hcd && sudo modprobe ehci_hcdRun these commands and test your USB ports again to see if connectivity improves.
Disable USB auto-suspend (power management can cause unexpected drops):
Edit the TLP power configuration file:sudo nano /etc/default/tlpFind the line
USB_AUTOSUSPEND=1and change it toUSB_AUTOSUSPEND=0. Save the file (Ctrl+O, press Enter) and exit (Ctrl+X), then restart TLP:sudo systemctl restart tlp
3. Hardware Checks (If Software Fixes Fail)
If none of the above resolves the issue, it might be a hardware problem:
- Try different USB cables or peripherals to rule out faulty devices.
- Inspect the USB ports for physical damage (loose connections, debris inside).
- On some Acer Aspire One models, a BIOS update can resolve USB controller bugs—verify your specific model's support page for updates (proceed carefully with BIOS updates!).
内容的提问来源于stack exchange,提问作者Ken Hill

