LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1021|回复: 3

usb的device id总在变化么?

[复制链接]
发表于 2008-4-8 14:09:34 | 显示全部楼层 |阅读模式
iSight firmware loader需要指定usb的device id作为参数。我写道udev rule里,但是每次启动device都变化

lsusb得到这个:

Bus 001 Device 010: ID 05ac:8501 Apple Computer, Inc. Built-in iSight [Micron]
Bus 001 Device 001: ID 0000:0000  
Bus 005 Device 003: ID 05ac:1000 Apple Computer, Inc.
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 003: ID 05ac:8240 Apple Computer, Inc. IR Receiver [build-in]
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 006: ID 046d:c016 Logitech, Inc. M-UV69a Optical Wheel Mouse
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 003: ID 05ac:021a Apple Computer, Inc.
Bus 002 Device 001: ID 0000:0000  

第一行的Device每次启动都变。有没有办法不变
发表于 2008-4-8 15:31:04 | 显示全部楼层
Post by graydream;1836054
iSight firmware loader需要指定usb的device id作为参数。我写道udev rule里,但是每次启动device都变化

lsusb得到这个:

Bus 001 Device 010: ID 05ac:8501 Apple Computer, Inc. Built-in iSight [Micron]
Bus 001 Device 001: ID 0000:0000  
Bus 005 Device 003: ID 05ac:1000 Apple Computer, Inc.
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 003: ID 05ac:8240 Apple Computer, Inc. IR Receiver [build-in]
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 006: ID 046d:c016 Logitech, Inc. M-UV69a Optical Wheel Mouse
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 003: ID 05ac:021a Apple Computer, Inc.
Bus 002 Device 001: ID 0000:0000  

第一行的Device每次启动都变。有没有办法不变


用uuid吧,那个不变。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-11 15:15:44 | 显示全部楼层
那个ift-load好像不接受uuid,不是要hack下吧
回复 支持 反对

使用道具 举报

发表于 2008-4-11 16:25:21 | 显示全部楼层
udevinfo 之
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表