Dengar's Blog Logo

Dengar's blog...
We will see what I post, probably will be some random tutorials

Thursday, 13 November 2008

How to change the mouse polling rate in Ubuntu

Changing the mouse polling?

Special Thanks to: Cesare Tirabassi and everyone contributing in this thread

Beginner Tip: You must use sudo when editing these files.
Such as:
Code:
 gksudo gedit /etc/modules
Blackmagic's solution:
Edit /etc/modules
Code:
gksudo gedit /etc/modules
Add these two lines onto the end:
Code:
-r usbhid
usbhid mousepoll=2
reboot.

Alternate solution that may work on Feisty (try the first one first):
Add
Code:
options usbhid mousepoll=2
on its own line at the end of /etc/modprobe.d/options

and then add
Code:
usbhid
on the end of /etc/modules
reboot

Alternate solution that may work on Edgy:
Add
Code:
options usbhid mousepoll=2
to /etc/modprobe.d/usbhid

and then add
Code:
usbhid
on its own line at the end of /etc/modules
reboot

aidanr's alternate feisty solution
Create a file at /usr/local/bin/mymousesettings with the following inside:
Code:
#!/bin/bash
rmmod usbhid && modprobe usbhid mousepoll=2
or if you want to use lomoco (a program for changing the resolution on Logitech mice) you can use this instead:
(G5 and G7 mice don't need lomoco because they are software-independant)
{
Install:
Code:
sudo apt-get install lomoco
lomoco's Homepage: http://lomoco.linux-gamers.net/

Code:
#!/bin/bash
# -4 for 400 cpi, -8 for 800 cpi, -m for 1200 cpi, -h for 1600 cpi, -g for 2000 cpi
lomoco -h && rmmod usbhid && modprobe usbhid mousepoll=2
}

After doing either method enter the command
Code:
sudo visudo
and replace the line that says
Code:
%admin ALL=(ALL) ALL
with
Code:
%admin ALL=(ALL) ALL, NOPASSWD:/usr/local/bin/mymousesettings
Use Control + O and then hit enter to save and then use Control + X to exit.

Add that command to startup in System --> Preferences --> Sessions by clicking add and then adding
Code:
sudo sh /usr/local/bin/mymousesettings
as a new entry.
reboot


hanging the mouse polling?
Fixed it with the help of the Gentoo guide:
http://gentoo-wiki.com/TIP_Change_mouse_hz

I added
Code:
options usbhid mousepoll=2
to /etc/modprobe.d/usbhid
(using "sudo nano")

and then I added
Code:
usbhid
on the end of /etc/modules


=)
Code:
$ cat /sys/module/usbhid/parameters/mousepoll
2


Here are all the mouse polls:

1 = 1000Hz
2 = 500Hz
4 = 250Hz
8 = 125Hz
10 = 100Hz (Default)

Monday, 10 November 2008

OpenArena - the pure fun of playing Quake 3

As a Linux lover, I'm always happy to find games that are a) free and b) cross-platform (that means my non-linux friends can also play with me...

The latest of such games is OpenArena, a 3D First Person Shooter based on the now openly available source code ID Tech 3 (which was Quake 3, lots of COD parts and many more). Aparently the creator of OpenArena took the liverty of also smoothing out some of the bugs of Q3 and the result is an unbelievably rocking experience.

But not enough: the existing mods for Quake 3 (baseq3, OSP, CPMA, ...) are working on it too!

Because it's free it's still very much played online, I saw a lot of servers and will probably try to get my own dedicated server up in a few days...
The address will be posted here.

For all of you looking for a good online shooter, I can very much recommend OpenArena:
http://openarena.ws/

Tuesday, 21 October 2008

Microsoft Employees Forced Into Op To Make More Evil

Yes, the rumors have been around for quite some time. Since 1998, to be precise. A friend of mine, Dick Scratchy, has recently quit working for the corporation 'that want's to dominate the world by eliminating any other operating system', [sic].

Dick told me how, after successful interviews, he was invited to a private surgery to turn him into a 'Microsoft Compatible Employee (TM). Little did he know, he received a full anesthetic upon arrival and what happened to his body was blanked from his memory - only traces of the terrible experience remain with him.

Apparently, Microsoft Doctor (TM) removed the sublingual gland from his mouth and replaced it with a venom gland of a king cobra (see picture).

King Cobra poison gland in human mouthMicrosoft, so he Dick tells me, altered his body and installed the poisonous gland to 'deter enemies of the company and allow their employees to spit blinding poison in the faces of users of other operating systems or also people who are generally unhappy with Microsoft or any of it's products.'

Poor Dick had a lot of problems with his girlfriend because of the new gland, the two eventually split up.

This clearly illustrates what we all suspected: Microsoft wants to dominate the world. They don't care about you - the user. User friendliness is an illusion that only used to capture audiences initially. Now, as other operating systems clearly bring better value to the user, they use anything in their power - that includes their vast arsenal of employee resources around the world - to fight their competitors.

Be careful, never trust Microsoft and if anyone near you identifies themselves as an employee of said company - destroy their jaw! It's where the poisonous gland sits!

Some god be with us!

Sunday, 19 October 2008

Office 2007 Installer - The windows installer service cannot update one or more protected windows files.

FIX: Office 2007 Installer - The windows installer service cannot update one or more protected windows files.

I came across an interesting dilema just now trying to install Office 2007.

Before actually starting to install the product the setup stalled with:
The windows installer service cannot update one or more protected windows files.
I was a little stunned, this is clean installed box. So I checked the Event Viewer:
Product: Microsoft Software Update for Web Folders  (English) 12 -- Error 1933.

The Windows Installer service cannot update one or more protected Windows files. SFP Error: -536870654.

List of protected files:\r\nc:\program files\common files\microsoft shared\web server extensions\40\bin\fp4autl.dll
Ah ok, this is a customised installation of windows (I'll post how this happend later) and its looking for the frontpage extensions which (in this install) doesnt exist. So how to fix? Simple, download a copy of the missing file from DllDump, place it into the c:\program files\common files\microsoft shared\web server extensions\40\bin\ folder and retry installation!

Fix the upside down on uvc webcams

Hi everybody,
it's a very quick how-to that will help you to solve the problem of those webcams who give back upside-down images/videos!!!
This help is intended only for those who have a UVC capable webcam.
But it will be usefull only if your webcam supports YUV image format and the applications that use your webcam request YUV format to your webcam!!! I've tested it and it works with:
skype, amsn, kopete, luvcview, mplayer!!

So...let's start!!!!

In order to know if your webcam is UVC capable you just need to open your shell and run:
Code:
lsusb

you will get something like this:
Quote:
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID xxxx:yyyy "Your_Webcam_Model"
Bus 001 Device 001: ID 0000:0000
Then type:
Code:
sudo lsusb -d xxxx:yyyy -v | grep "14 Video"

If you get something like the following, your webcam is UVC capable:
Quote:
bFunctionClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video

If your webcam passes this test, you can go on reading. Otherwise, your camera needs to use propertary driver, because it doesn't use standard protocol/command.

Well,
now you need to donwload the UVCVIDEO driver sources, but they are on a SVN repository, so you need to install the SVN client:
Code:
sudo apt-get install subversion
and now you can download the sources:
Code:
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk

The sources will be saved into a folder called "Trunk" in the path from where you run the previous command.

Next, you need to use a patch to update your clean uvcvideo driver. Please download this.

Then proceed..

Code:
patch < patch_solution1_mirrored.patch
Well, now the worst part has been done!!!
We just need to compile our modded file and to install the new driver, so from shell you have to go to the "Trunk" directory and type:
Code:
make
there shouldn't be errors!!

Then, ONLY if you are using one of the Ubuntu distributions (ubuntu, kubuntu, etc.), open with you editor the "Makefile" and change the following line:
Code:
INSTALL_MOD_DIR := usb/media
with
Code:
INSTALL_MOD_DIR := ubuntu/media/usbvideo
Now we just need to remove uvcvideo module (if you have previously installed it):
Code:
sudo modprobe -r uvcvideo
Then:
Code:
sudo make install
sudo modprobe uvcvideo
Now everything should work!!!

Let me know!!

Fix 'Hardware error' for Adobe CS2 running over wine

PERMANENT FIX: The permanent fix is actually very simple. The problematic file is the General Settings file, "Adobe Photoshop CS2 Prefs.psp", which references the default fonts Adobe expects to be installed. If for any reason these fonts, or any other files, are not installed or not functioning as expected, the application will terminate to the desktop. This settings file is located here:

In Wine:

/home/[USER PROFILE]/.wine/drive_c/windows/profiles/[USER PROFILE]/Application Data/Adobe/Photoshop/9.0/Adobe Photoshop CS2 Settings/Adobe Photoshop CS2 Prefs.psp

In Crossover Office:

/home/[USER PROFILE]/.cxoffice/[CS2 INSTALLATION BOTTLE NAME]/drive_c/windows/profiles/crossover/Application Data/Adobe/Photoshop/9.0/Adobe Photoshop CS2 Settings/Adobe Photoshop CS2 Prefs.psp

Naturally, replace [USER PROFILE] with the user name you are working under, and replace the CS2 INSTALLATION BOTTLE NAME with whatever you named the bottle you installed Photoshop CS2 under in Crossover.

Now, if you've encountered this error, you've already run CS2 twice, and the settings file has already been created and corrupted. Although deleting it will allow you to start CS2, it will again store a corrupted file when you exit the application, and next time you start the application, you'll repeat the same fatal error as usual.

So, having located this file, perform the following steps:

(1) Rename or delete the corrupted file
(2) Start CS2. It should start just fine.
(3) IMMEDIATELY after it has started, change the permissions on the newly re-created settings file (Adobe Photoshop CS2 Prefs.psp) to READ ONLY. You can do this in your file browser, or, if you are at the command line, use the following command:

chmod -w ./Adobe\ Photoshop\ CS2\ Prefs.psp

Thursday, 28 August 2008

Logitech VX Revolution

I struggled for a long time to use the 'back' and forward button on my mouse in some applications. Especially the open source apps seemed to not recognise the button 4 and 5.
I tried assigning key macros, so that I maybe be able to use simple copy paste actions, but this didn't work either.

I finally found the solution: Simply switch of the SetPoint software that launches with windows start. Started working like a charm right away...

Tuesday, 19 August 2008

YugmaSE Team Collaboration

I have used this before, but reinstalled windoze and Skype, so I lost it. I only reinstalled it again recently and was amazed to see what good of a FREE product this really is:

Basically, this is WebEx for a small audience - you share your desktop, invite others to take control of your desktop, do white-boards and because it's all integrated with Skype, you have voice call and chat.

The free version limits you to 11 people to share the desktop with, but I hardly ever need more. The paid version comes without this restirction.

The installation was a bit cumbersome: Go to any person in your Skype list, click on menu (little grey box), 'do more...', 'get extras' and search for it. You start to download it, then it takes ages to install. You must afterwards create a new account (yes, it doesn't tie in all the way in). When you get an alarm asking you if you want to allow Java to do stuff, say 'yes' and it should be good to go.
To start, you now have to click on 'menu' -> 'do more' -> 'organise extras' and you should have a link in there.

There is also a desktop / Skype independent version of this handy tool. However, I use it with Skype and was never interested in having it install as a seperate programme.

Have more fun and be more productive with sharing!

Wednesday, 13 August 2008

Mongeese

July, 22nd 2008:

Chris Matenaers says: 'Were I a Mongoose, I'd eat poisonous snakes ALL the time!'

Tuesday, 29 January 2008

A new post!

After month of quiteness... A new post.

As always, I'm rather busy at work, I have a new laptop after my old one was stolen and I have experimented around with different operating systems.

Computer-wise I'm now running an ubuntu system and I have to say that I'm quite pleasantly surprised... Apart from my sound-card, the hardware is sorted. I can't very well use USB devices in Windows which is annoying, but I think I can live with that for the moment.

I'll be working on the design of the blog in the weeks. And I will see what else I got time for. I see if I can blog some more, maybe add different themes