7/12/13

Ubuntu: How to disable integrated webcam and still be able to use an external one

On a fresh kernel just echo it with zero. For example:
Search what we need to be turned off:
lsusb
This returns a list of devices:
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 001 Device 002: ID 0402:5602 ALi Corp. M5602 Video Camera Controller
Bus 001 Device 003: ID 045e:0723 Microsoft Corp. LifeCam VX-7000 (UVC-compliant)
Change 1-6 to your device ports to be disabled: cat /sys/bus/usb/devices/1-6/idProduct
This gives me 5602.
Now we've found it (to iterate search, change 1-6 to all your device ports), now just turn it off:
echo "0" > /sys/bus/usb/devices/1-6/bConfigurationValue
After making sure it works as desired, make it load every startup (for example, in /etc/rc.local.)

7/8/13

Ubuntu 12.04: Wireless network - connected, got ip, but no packets through (Fixed on 13.04)

Test if it running

Please try:
Code:
lsmod | grep iwl
See if your wireless driver is iwlagn or iwlwifi and then remove it and reload it with a parameter.
Code:
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi 11n_disable=1
Any improvement? If so, we'll need to write one file to make it permanent.

----

Do if the upper_test fixs your problem

The iwlwifi driver is troubled with a bug wherein it doesn't handle N traffic at all well. It seems to clog and pass NO traffic at all. Fortunately,there is a fix; tell the driver to disable ts N capability. It's a compromise, I know, but there seem to be two choices: it works without N or it doesn't work at all.

Please open a terminal and do:
Code:
sudo gedit /etc/modprobe.d/iwlwifi.conf
Of course, use the actual name of your driver, if not iwlwifi. Write one line:
Code:
options iwlwifi 11n_disable=1
Proofread carefully, save and close gedit. 

reboot your system.