Prevent USB (Belkin Mini Bluetooth Adapter) from waking computer

A Belkin Mini Bluetooth Adapter adapter was waking a Windows 7 machine. This stops it:

Control panel > Power options > Edit power plan > Change advanced power settings > Sleep > Allow wake timers > Disable

As long as the USB device is disconnected before you send the machine to sleep. As it is an IPhone that is waking the machine, it is necessary to turn off bluetooth on the phone to sever the connection, it can be turned on again immediately. Then the machine can be put to sleep.

It would be better if the entire bluetooth device would have a setting to prevent it waking the computer, but I could not find one. The only solution here seemed to be to turn off the USB controllers ability to wake the computer, and that seems like overkill as I may one day plug another USB device (mouse, keyboard etc.) into that port which I would want to wake the machine.

Debian WPA wireless configuration

Wireless in Linux has always been a pain if you don't have a GUI such as Gnome or KDE. In Debisn 6.03 (Squeeze) add the following to /etc/networking/interfaces:

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
    wpa-ssid YOUR_SSID_HERE
    wpa-proto WPA
    wpa-group TKIP
    wpa-pairwise TKIP
    wpa-key-mgmt WPA-PSK
    wpa-psk YOUR_KEY_HERE

replace wlan0 with your wireless interface name, which you can get by typing 'ifconfig -a' into a konsole. You will need root (or sudo) access to get the 'ifconfig -a' command to output anything.

Firefox looks awful in Kubuntu

While re-configuring KDE (yet again) after deleting ~/.kde in order to get a new configuration, I found that firefox looked terrible. I eventually found this post that suggested installing lxappearance, and as I was desperate I gave it a go. I clicked on my theme 'QtCurve' in the widget panel and changed the font from sans to sherif, and then clicked Apply. Amazingly, Firefox looked a lot better.

I am not sure why this seemed to work, but I will mention that I also uninstalled qtcurve and then reinstalled it - so maybe that was it.

Linux: wake up from sleep from keyboard

Resume From Suspend With Keyboard/Mouse is a post by Bobby Baker that shows how to get a Linux machine to resume from a sleep state by pressing the keyboard. At the end of his post he mentions that some people can't keep the fix after a reboot. I had the problem due to having two USB devices in /proc/acpi/wakeup and echo'ing them both to activate them. When I removed one of the echos, everything worked fine.

 

Read More

Amarok preventing hibernate (Kubuntu 10.10) with remote samba share.

My machines hibernate feature was failing due to Amarok's 'Watch folders for changes' option. This is probably caused as the music partition is mounted from a remote share using Gigalo (but the problem also occurs using Samba/CIFS). Disabling it re-enables hibernate again.

Read More

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure and Database connection failed. Error received from database was #2013: Lost connection to MySQL server at 'reading initial communication packet', system error: 0

For me, deny-hosts caused this error by adding ALL: 127.0.0.1 to the /etc/hosts.deny file.

Read More