Search this site
Embedded Files
Skip to main content
Skip to navigation
Szymon's site
Home
Hardware
Debian 3.1r3 on Thinkpad T42
Debian 4.0r1 (Etch) and Nikon D40
Debian 4.0r1 (Etch) on IBM/Lenovo T42 laptop
Epson 3490 Photo Scanner under Debian 4.0 Etch
Kworld Pico USB TV Tuner - UB450-t under Ubuntu 9.10 / Ubuntu 10.4 Beta2
Logitech ClickSmart 310 under Ubuntu 9.10 (Karmic Koala)
Mobile Internet
Nokia 6320 over Bluetooth under Ubuntu 8.04
Slackware 10.2 on HP 2000M
Ubuntu 8.04 and network HP LaserJet Printers
Ultrabay under Ubuntu 8.04 - hotswapping made easy
Using R behind a firewall - unable to connect to 'cran.r-project.org' on port [solved]
Wireless Sinc Android (for free) for Ubuntu (but also other systems)
Software
freeldap.org contacts backup in Evolution 2.22.1.1
GNU R Statistical Software and Vim editor
How to downgrade to R 2.4.0-0sarge2 under Ubuntu 7.04
LaTeX Publishing System
Ox Statistical Software and Vim editor
Various Tricks
Szymon's site
Home
Hardware
Debian 3.1r3 on Thinkpad T42
Debian 4.0r1 (Etch) and Nikon D40
Debian 4.0r1 (Etch) on IBM/Lenovo T42 laptop
Epson 3490 Photo Scanner under Debian 4.0 Etch
Kworld Pico USB TV Tuner - UB450-t under Ubuntu 9.10 / Ubuntu 10.4 Beta2
Logitech ClickSmart 310 under Ubuntu 9.10 (Karmic Koala)
Mobile Internet
Nokia 6320 over Bluetooth under Ubuntu 8.04
Slackware 10.2 on HP 2000M
Ubuntu 8.04 and network HP LaserJet Printers
Ultrabay under Ubuntu 8.04 - hotswapping made easy
Using R behind a firewall - unable to connect to 'cran.r-project.org' on port [solved]
Wireless Sinc Android (for free) for Ubuntu (but also other systems)
Software
freeldap.org contacts backup in Evolution 2.22.1.1
GNU R Statistical Software and Vim editor
How to downgrade to R 2.4.0-0sarge2 under Ubuntu 7.04
LaTeX Publishing System
Ox Statistical Software and Vim editor
Various Tricks
More
Home
Hardware
Debian 3.1r3 on Thinkpad T42
Debian 4.0r1 (Etch) and Nikon D40
Debian 4.0r1 (Etch) on IBM/Lenovo T42 laptop
Epson 3490 Photo Scanner under Debian 4.0 Etch
Kworld Pico USB TV Tuner - UB450-t under Ubuntu 9.10 / Ubuntu 10.4 Beta2
Logitech ClickSmart 310 under Ubuntu 9.10 (Karmic Koala)
Mobile Internet
Nokia 6320 over Bluetooth under Ubuntu 8.04
Slackware 10.2 on HP 2000M
Ubuntu 8.04 and network HP LaserJet Printers
Ultrabay under Ubuntu 8.04 - hotswapping made easy
Using R behind a firewall - unable to connect to 'cran.r-project.org' on port [solved]
Wireless Sinc Android (for free) for Ubuntu (but also other systems)
Software
freeldap.org contacts backup in Evolution 2.22.1.1
GNU R Statistical Software and Vim editor
How to downgrade to R 2.4.0-0sarge2 under Ubuntu 7.04
LaTeX Publishing System
Ox Statistical Software and Vim editor
Various Tricks
Logitech ClickSmart 310 under Ubuntu 9.10 (Karmic Koala)
lsusb gives:
Bus 003 Device 006:
ID 046d:0900
Logitech, Inc. ClickSmart 310
The card doesn't work until you type as root:
modprobe -r gspca_spca500 && modprobe gspca_spca500
Then /dev/video0 is registered and udevadm info --attribute-walk --name /dev/video0 gives you:
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/video4linux/video0':
KERNEL=="video0"
SUBSYSTEM=="video4linux"
DRIVER==""
ATTR{name}=="gspca main driver"
ATTR{index}=="0"
looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0':
KERNELS=="3-1:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="spca500"
ATTRS{bInterfaceNumber}=="00"
ATTRS{bAlternateSetting}==" 0"
ATTRS{bNumEndpoints}=="01"
ATTRS{bInterfaceClass}=="ff"
ATTRS{bInterfaceSubClass}=="00"
ATTRS{bInterfaceProtocol}=="00"
ATTRS{modalias}=="usb:v046Dp0900d0090dc00dsc00dp00icFFisc00ip00"
ATTRS{supports_autosuspend}=="0"
looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb3/3-1':
KERNELS=="3-1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{bNumInterfaces}==" 2"
ATTRS{bConfigurationValue}=="1"
ATTRS{bmAttributes}=="80"
ATTRS{bMaxPower}=="500mA"
ATTRS{urbnum}=="64"
ATTRS{idVendor}=="
046d
"
ATTRS{idProduct}=="
0900
"
ATTRS{bcdDevice}=="0090"
ATTRS{bDeviceClass}=="00"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="8"
ATTRS{speed}=="12"
ATTRS{busnum}=="3"
ATTRS{devnum}=="6"
ATTRS{version}==" 1.00"
ATTRS{maxchild}=="0"
ATTRS{quirks}=="0x0"
ATTRS{authorized}=="1"
looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb3':
KERNELS=="usb3"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bmAttributes}=="e0"
ATTRS{bMaxPower}==" 0mA"
ATTRS{urbnum}=="114"
ATTRS{idVendor}=="1d6b"
ATTRS{idProduct}=="0001"
ATTRS{bcdDevice}=="0206"
ATTRS{bDeviceClass}=="09"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{speed}=="12"
ATTRS{busnum}=="3"
ATTRS{devnum}=="1"
ATTRS{version}==" 1.10"
ATTRS{maxchild}=="2"
ATTRS{quirks}=="0x0"
ATTRS{authorized}=="1"
ATTRS{manufacturer}=="Linux 2.6.31-21-generic uhci_hcd"
ATTRS{product}=="UHCI Host Controller"
ATTRS{serial}=="0000:00:1d.1"
ATTRS{authorized_default}=="1"
looking at parent device '/devices/pci0000:00/0000:00:1d.1':
KERNELS=="0000:00:1d.1"
SUBSYSTEMS=="pci"
DRIVERS=="uhci_hcd"
ATTRS{vendor}=="0x8086"
ATTRS{device}=="0x24c4"
ATTRS{subsystem_vendor}=="0x1014"
ATTRS{subsystem_device}=="0x052d"
ATTRS{class}=="0x0c0300"
ATTRS{irq}=="11"
ATTRS{local_cpus}=="ff"
ATTRS{local_cpulist}=="0-7"
ATTRS{modalias}=="pci:v00008086d000024C4sv00001014sd0000052Dbc0Csc03i00"
ATTRS{enable}=="1"
ATTRS{broken_parity_status}=="0"
ATTRS{msi_bus}==""
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
sudo gedit /etc/udev/rules.d/91-webcamtrigger.rules
ACTION=="add", SUBSYSTEM=="pci", SYSFS{device}=="0x24c4", SYSFS{vendor}=="0x8086", RUN+="/usr/local/bin/webcam.sh"
gedit /usr/local/bin/webcam.sh
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
echo ${DEVICE} >> /var/log/backuptousbdrive.log
fi
Google Sites
Report abuse
Google Sites
Report abuse