How to turn off laptop webcam in Ubuntu

I have a Lenovo 3000 V100 laptop.

With Ubuntu 10.04 Lucid Lynx, I was able to turn off the integrated webcam (the led annoys me) by putting these lines in /etc/rc.local

echo 0 > /sys/bus/usb/devices/1-5/bConfigurationValue
echo "suspend" > /sys/bus/usb/devices/1-5/power/level

I don’t quite understand what they do, but they worked. For some reason I also don’t quite understand, after updating to Ubuntu 11.04 Natty Narwhal, they stopped working. However, adding this line to /etc/modprobe.d/blacklist.conf

blacklist gspca_m5602

seems to work (after a reboot). Apparently it prevents the loading of the kernel module containing the driver for the webcam. I used the lsmod command to find out that gspca_m5602 looks like the module related to the webcam.

Are there any other (less brute) ways to turn off the webcam?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s