mine ... $ svn info Path: . URL: http://svn.enlightenment.org/svn/e/trunk/eeze Repository Root: http://svn.enlightenment.org/svn/e Repository UUID: 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 Revision: 59653 Node Kind: directory Schedule: normal Last Changed Author: discomfitor Last Changed Rev: 59644 Last Changed Date: 2011-05-24 11:43:35 +0200 (Tue, 24 May 2011)
$ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 413c:a005 Dell Computer Corp. Internal 2.0 Hub Bus 001 Device 004: ID 0424:2504 Standard Microsystems Corp. USB 2.0 Hub Bus 003 Device 002: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub Bus 001 Device 005: ID 413c:1005 Dell Computer Corp. Multimedia Pro Keyboard Hub Bus 001 Device 013: ID 413c:3016 Dell Computer Corp. Optical 5-Button Wheel Mouse Bus 003 Device 003: ID 0b97:7762 O2 Micro, Inc. Oz776 SmartCard Reader Bus 001 Device 007: ID 413c:2011 Dell Computer Corp. Multimedia Pro Keyboard Bus 001 Device 012: ID 19b6:8192 Infotech Logistic, LLC Bus 001 Device 011: ID 07f9:2571 Dotop Technology, Inc. Bus 001 Device 014: ID 059f:0651 LaCie, Ltd $ sudo ./src/bin/eeze_disk_ls Found the following mountable disks: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0/host4/target4:0:0/4:0:0:0/block/sr1 - /dev/sr1:(null) /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0/block/sdb - /dev/sdb:(null) /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0/block/sdb/sdb1 - /dev/sdb1:(null) /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host6/target6:0:0/6:0:0:0/block/sdc/sdc1 - /dev/sdc1:(null) /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1 - /dev/sda1:/mnt/ubuntu /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda2 - /dev/sda2:/ /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda3 - /dev/sda3:/home Found the following removable drives: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0 - (null):(null) Found the following internal drives: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host6/target6:0:0/6:0:0:0/block/sdc - /dev/sdc /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda - /dev/sda $ ./src/bin/eeze_udev_test For my first trick, I will find all of your keyboards and return their syspaths. Found keyboard: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.3/1-7.3.1/1-7.3.1:1.0/input/input11/event11 Found keyboard: /sys/devices/platform/i8042/serio0/input/input0/event0 Next, I will find all of your mice and print the corresponding manufacturer. Found mouse /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/input/input14/event10 with vendor: Linux 2.6.38-ARCH ehci_hcd Found mouse /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/input/input14/mouse2 with vendor: Linux 2.6.38-ARCH ehci_hcd Found mouse /sys/devices/platform/i8042/serio1/input/input5/event5 with vendor: (null) Found mouse /sys/devices/platform/i8042/serio1/input/input5/mouse0 with vendor: (null) Found device: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0/host4/target4:0:0/4:0:0:0/block/sr1 You probably know it better as /dev/sr1 It's formatted as iso9660! Found device: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0/block/sdb You probably know it better as /dev/sdb It's formatted as vfat! Found device: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0/block/sdb/sdb1 You probably know it better as /dev/sdb1 It's formatted as ext2! Found device: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host6/target6:0:0/6:0:0:0/block/sdc/sdc1 You probably know it better as /dev/sdc1 It's formatted as ntfs! Found device: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1 You probably know it better as /dev/sda1 It's formatted as ext4! Found device: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda2 You probably know it better as /dev/sda2 It's formatted as ext4! Found device: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda3 You probably know it better as /dev/sda3 It's formatted as ext4! Network devices! Found device: /sys/devices/pci0000:00/0000:00:1c.2/0000:09:00.0/net/eth0 You probably know it better as eth0 Found device: /sys/devices/virtual/net/lo You probably know it better as lo Internal drives, anyone? With serial numbers? /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host6/target6:0:0/6:0:0:0/block/sdc: SEAGATE_ST3500830A_10000E000E9D99A8-0:0 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda: ST980825AS_5MH02LHD Got any removables? I'm gonna find em! Ooh, a 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:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/input/input14/mouse2 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/input/input14/event10 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/input/input14 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/0003:413C:3016.0005/hidraw/hidraw0 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/0003:413C:3016.0005 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/0003:413C:3016.0006 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/0003:413C:3016.0006/hidraw/hidraw0 is not a keyboard or a mouse!! Sneaky sneaky! But /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.4/1-7.4:1.0/input/input15 is not a keyboard or a mouse!! You plugged in /dev/input/mouse2! All tests completed, exiting successfully! -- Jérémy Zurcher ------------------------------------------------------------------------------ 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