« April 2006 | Main | August 2006 »

June 6, 2006

HOWTO: Fix gok startup issue on ubuntu 6.06

I didn't realized gok is completely unusable on ubuntu 6.06 when I installed ubuntu yesterday.
First, I tried to grab everything from CVS HEAD and build it by myself.
No luck.
Second, from the error message, I was thinking it was caused by "/dev/js0" is missing.
I searched in forum and created "/dev/js?" and "/dev/input/js?".
Still no luck.
Then I have to use gdb and set a breakpoint at gdk_x_error().
After looking at the stacks and sources, I found it was caused by some input devices of xconf.

Here comes the solution:
sudo vi /etc/X11/xorg.conf

Comment out these lines:
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

*** and also ***
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
under Section "ServerLayout"

Now, save the file and reboot.
Enjoy yourself with gok!

Technorati Tags: , ,

Posted by ginn at 10:43 PM | Comments (0)