For my first trick, I will find all of your keyboards and return their syspaths. Found keyboard: /sys/devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.0/input/input4/event4 Found keyboard: /sys/devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.1/input/input5/event5 Found keyboard: /sys/devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.1/input/input5/js0 Found keyboard: /sys/devices/virtual/input/input6/event6
Next, I will find all of your mice and print the corresponding manufacturer. Found mouse /sys/devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.0/input/input3/event3 with vendor: Microsoft Found mouse /sys/devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.0/input/input3/mouse0 with vendor: Microsoft Now let's try something a little more difficult. Mountable filesystems! Found device: /sys/devices/pci0000:00/0000:00:11.0/host2/target2:0:0/2:0:0:0/block/sdb/sdb1 You probably know it better as /dev/sdb1 It's formatted as ext3, and gets mounted at /mnt/a! Found device: /sys/devices/pci0000:00/0000:00:11.0/host3/target3:0:0/3:0:0:0/block/sdc/sdc1 You probably know it better as /dev/sdc1 It's formatted as ext3, and gets mounted at /mnt/b! Found device: /sys/devices/pci0000:00/0000:00:14.1/host0/target0:0:0/0:0:0:0/block/sda/sda1 You probably know it better as /dev/sda1 It's formatted as ext4, and gets mounted at /boot! Found device: /sys/devices/pci0000:00/0000:00:14.1/host0/target0:0:0/0:0:0:0/block/sda/sda2 You probably know it better as /dev/sda2 It's formatted as ext3! Found device: /sys/devices/pci0000:00/0000:00:14.1/host0/target0:0:0/0:0:0:0/block/sda/sda4 You probably know it better as /dev/sda4 It's formatted as ext4! Network devices! Found device: /sys/devices/pci0000:00/0000:00:0a.0/0000:03:00.0/net/eth0 You probably know it better as eth0 Found device: /sys/devices/pci0000:00/0000:00:14.4/0000:04:07.0/net/eth1 You probably know it better as eth1 Found device: /sys/devices/virtual/net/lo You probably know it better as lo Found device: /sys/devices/virtual/net/ppp0 You probably know it better as ppp0 Found device: /sys/devices/virtual/net/vmnet1 You probably know it better as vmnet1 Found device: /sys/devices/virtual/net/vmnet8 You probably know it better as vmnet8 Internal drives, anyone? With serial numbers? /sys/devices/pci0000:00/0000:00:11.0/host2/target2:0:0/2:0:0:0/block/sdb: SAMSUNG_HD322HJ_S17AJ90S762671 /sys/devices/pci0000:00/0000:00:11.0/host3/target3:0:0/3:0:0:0/block/sdc: HDS722512VLSA80_VN6C3ECCDGVGUD /sys/devices/pci0000:00/0000:00:14.1/host0/target0:0:0/0:0:0:0/block/sda: WDC_WD800JB-00FMA0_WD-WMAJ93564683 Got any removables? I'm gonna find em! Ooh, a STORAGE DEVICE attached to the scsi subsytem! Ooh, a STORAGE DEVICE attached to the scsi subsytem! Ooh, a STORAGE DEVICE attached to the scsi subsytem! Ooh, a STORAGE DEVICE attached to the scsi subsytem! Ooh, a STORAGE DEVICE attached to the scsi subsytem! And now for something more complicated. Plug or unplug your keyboard or mouse for me. Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.1 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.1/0003:1241:1603.0005 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/0003:1241:1603.0004 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.1/0003:1241:1603.0005/hidraw/hidraw4 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.1/input/input8 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/0003:1241:1603.0004/hidraw/hidraw3 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/input/input7 is not a keyboard or a mouse!! You plugged in /dev/input/event7! All tests completed, exiting successfully! 2011/5/23 Mike Blumenkrantz <m...@zentific.com> > Hi, > > I requested that everyone re-run the eeze udev test a couple weeks ago. I > got 4 > responses. This is not sufficient. > > Take your removable hard drives and plug them in. Put a cd in your cdrom > drive. Run the test as root to let it open your devices. Reply to me with > the > output. > > Thanks. > -- > Mike Blumenkrantz > Zentific: NULL pointer dereferences now 50% off! > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel