venerdì 30 novembre 2012

USB Mouse Polling Rate and Linux Mint

I wanted to change the usb mouse polling rate in my Linux Mint system from the default value (125Hz) to something higher that my mouse would still support (500Hz).

Lucky me, I found this post: http://forums.linuxmint.com/viewtopic.php?f=49&t=109267
and this wiki: https://wiki.archlinux.org/index.php/Mouse_Polling_Rate

I only had to edit /etc/modules file, adding these two lines:
-r usbhid
usbhid mousepoll=2
Save and reboot!

It is '2' (ms) in my case because I wanted to set it to 500Hz. Other common values are:
Hz ms
1000 1
500 2
250 4
125 8
100 10

As you can see, the higher is the frequency at which the usb port communicates, the lower is the response time (orly?).

Hope it helps you :)

venerdì 31 agosto 2012

chat.facebook.com Pidgin disabled not authorized

I found many (fake) solutions on Google for this problem, none of them worked for me.
It was not me typing the wrong password, or wrong domain, resource, port, server or whatever.

I only had to generate a password for Pidgin app on facebook.

Some pictures will make it more clear:
Go to Account Settings.
The Security Settings page.
The tooltip if you mouse-over Learn more. Now click Generate app passwords.
I didn't make any test, but I think this should be the same one you put as Resource in Pidgin's settings.
Copy the password and Paste it into your Pidgin password's field. Probably you also want to save it because there's no way to read the password again.
From now on, you have to use this generated password to join Facebook chat from Pidgin.
Now I don't get that user@chat.facebook.com/Pidgin disabled not authorized error anymore. :)

domenica 13 maggio 2012

Make Skype look cool on Debian 64 bit

Your Skype doesn't look pretty?

You tried running it into the terminal and some errors similar to these appeared?

Gtk-Message: Failed to load module "canberra-gtk-module": /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class: ELFCLASS64

(:4921): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: wrong ELF class: ELFCLASS64

Maybe you're trying to run Skype with the wrong libraries' version (64 bit instead of 32 bit).

I solved with this little script:

#!/bin/bash
export GTK_PATH=/usr/lib32/gtk-2.0
skype

Hope this works for you too :)