曾经有一次(昨天),我可以毫无问题地加载此设备(由 soft db 制造的扫描探针显微镜控制器)。然后 Ubuntu 崩溃了。现在我再也无法加载该设备了。所谓加载设备,我的意思是 udev 应该在 /dev 中创建一个名为 sranger_mk2_1 的文件。以前每次插入它时它都会这样做,但现在却不会了。
当它正常运行并且我运行 udevadm monitor -e 时,它给出:
KERNEL[2544.078497] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1 (usb)
ACTION=add
BUSNUM=003
DEVNAME=/dev/bus/usb/003/010
DEVNUM=010
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1
DEVTYPE=usb_device
MAJOR=189
MINOR=265
PRODUCT=1612/103/150
SEQNUM=2712
SUBSYSTEM=usb
TYPE=0/0/0
KERNEL[2544.078761] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0
DEVTYPE=usb_interface
INTERFACE=255/0/0
MODALIAS=usb:v1612p0103d0150dc00dsc00dp00icFFisc00ip00in00
PRODUCT=1612/103/150
SEQNUM=2713
SUBSYSTEM=usb
TYPE=0/0/0
KERNEL[2544.078931] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0/usbmisc/sranger_mk2_1 (usbmisc)
ACTION=add
DEVNAME=/dev/sranger_mk2_1
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0/usbmisc/sranger_mk2_1
MAJOR=180
MINOR=1
SEQNUM=2714
SUBSYSTEM=usbmisc
UDEV [2544.088140] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1 (usb)
ACTION=add
BUSNUM=003
DEVNAME=/dev/bus/usb/003/010
DEVNUM=010
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1
DEVTYPE=usb_device
DRIVER=usb
ID_BUS=usb
ID_MODEL=Signal_Ranger_mk3
ID_MODEL_ENC=Signal\x20Ranger\x20mk3
ID_MODEL_ID=0103
ID_REVISION=0150
ID_SERIAL=Soft-dB_Signal_Ranger_mk3
ID_USB_INTERFACES=:ff0000:
ID_VENDOR=Soft-dB
ID_VENDOR_ENC=Soft-dB
ID_VENDOR_ID=1612
MAJOR=189
MINOR=265
PRODUCT=1612/103/150
SEQNUM=2712
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=2544086838
UDEV [2545.097132] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0 (usb)
.MM_USBIFNUM=00
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0
DEVTYPE=usb_interface
DRIVER=sranger_mk2
INTERFACE=255/0/0
MODALIAS=usb:v1612p0103d0150dc00dsc00dp00icFFisc00ip00in00
PRODUCT=1612/103/150
SEQNUM=2713
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=2544088934
UDEV [2545.098944] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0/usbmisc/sranger_mk2_1 (usbmisc)
.MM_USBIFNUM=00
ACTION=add
DEVNAME=/dev/sranger_mk2_1
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0/usbmisc/sranger_mk2_1
MAJOR=180
MINOR=1
SEQNUM=2714
SUBSYSTEM=usbmisc
USEC_INITIALIZED=2545098477
我不完全理解为什么它运行三个独立的东西,但我认为重要的是子系统=usbmisc,因为那是它停止工作时缺少的东西。
当它表现不正常时(即当 udev 没有向 /dev 写入任何内容时),它只会给出以下内容:
KERNEL[3837.850624] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1 (usb)
ACTION=add
BUSNUM=003
DEVNAME=/dev/bus/usb/003/026
DEVNUM=026
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1
DEVTYPE=usb_device
MAJOR=189
MINOR=281
PRODUCT=1612/103/150
SEQNUM=2683
SUBSYSTEM=usb
TYPE=0/0/0
KERNEL[3837.851281] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0
DEVTYPE=usb_interface
INTERFACE=255/0/0
MODALIAS=usb:v1612p0103d0150dc00dsc00dp00icFFisc00ip00in00
PRODUCT=1612/103/150
SEQNUM=2684
SUBSYSTEM=usb
TYPE=0/0/0
UDEV [3837.856450] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1 (usb)
ACTION=add
BUSNUM=003
DEVNAME=/dev/bus/usb/003/026
DEVNUM=026
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1
DEVTYPE=usb_device
DRIVER=usb
ID_BUS=usb
ID_MODEL=Signal_Ranger_mk3
ID_MODEL_ENC=Signal\x20Ranger\x20mk3
ID_MODEL_ID=0103
ID_REVISION=0150
ID_SERIAL=Soft-dB_Signal_Ranger_mk3
ID_USB_INTERFACES=:ff0000:
ID_VENDOR=Soft-dB
ID_VENDOR_ENC=Soft-dB
ID_VENDOR_ID=1612
MAJOR=189
MINOR=281
PRODUCT=1612/103/150
SEQNUM=2683
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=3837855936
UDEV [3838.867971] add /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0 (usb)
.MM_USBIFNUM=00
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0
DEVTYPE=usb_interface
INTERFACE=255/0/0
MODALIAS=usb:v1612p0103d0150dc00dsc00dp00icFFisc00ip00in00
PRODUCT=1612/103/150
SEQNUM=2684
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=3837861377
我对这个世界还比较陌生,因此对如何解释这个问题知之甚少。这个问题之前出现过几次,我的解决办法就是彻底解决并从头开始重新安装 Ubuntu,这种方法很有效,但我觉得一定有更好的方法。对发生的事情有什么看法吗?
编辑:刚刚搞明白了。原来与硬件相关的模块一定是在崩溃期间损坏了,所以内核不再识别主板。我重新安装了模块,现在它可以正常工作了。感谢您的反馈!
答案1
我读了一些man udevadm
。以下内容可能对你有用:
sudo udevadm trigger -s=usbmisc /devices/pci0000:00/0000:00:1c.7/0000:03:00.0/usb3/3-1/3-1:1.0/usbmisc/sranger_mk2_1
看看是否可以运行,如果不行,继续:
sudo udevadm control -R
-R 来自手册页:
-R, --reload Signal systemd-udevd to reload the rules files and other databases like the kernel module index. Reloading rules and databases does not apply any changes to already existing devices; the new configuration will only be applied to new events.
我希望这有帮助。