2008. június 15.

Updating to Gutsy

After some time the pen just crashed: after using the pen none of the pointing devices would do a click.
So I updated to Gutsy.
...
Ta-damm:
- the scroll joystick on the edge of the monitor works out os the box.
- the 3 tablet button just don't work with the previous script.
- I had to reinstall linuxwacom to fix the pen buttons.
- Firefox works with Flash :-)
- I had to change the rotate script to this:
#!/bin/sh
if [ -n "$(xrandr | grep "768x1024+0+0 right")" ]; then
 xrandr -o inverted
 xsetwacom set "stylus" Rotate 3
else
 if [ -n "$(xrandr | grep "1024x768+0+0 inverted")" ]; then
 xrandr -o normal
 xsetwacom set "stylus" Rotate NONE
else
 if [ -n "$(xrandr | grep "1024x768+0+0")" ]; then
 xrandr -o right
 xsetwacom set "stylus" Rotate CW
fi
fi
fi

2008. június 10.

making the USB work...

sudo nano /etc/fstab

comment out the cd-rom line like this:

# /dev/sdb1 /media/cdrom0 udf,iso9660 user,noauto 0 0

2008. június 7.

problems #5

OSK - OnScreen Keyboard.

Well... onboard is installed, but I can't open it, so I consider is broken or something.
I tried Cellwriter, but it's only for i368 or whatever, but not for amd64.
Right now ubuntu packages is down, so i'll try synaptic with
1.) GOK. - However this was too complicated for me.
2.) Matchbox OSK

... I updated to Gutsy, I'll check this out later...

2008. június 4.

problems #4

I have Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02) and kernel version 2.6.20-16-generic.
I'll try to set up my wifi using this site.

I don't have any errors reported for modprobe mac80211, and lsmod lists the modul, so I only have to install the iwl3945.

While trying to make I get this error:
mh@Alice:~/Desktop/iwlwifi-1.2.25$ make
Makefile:24:
Makefile:25: WARNING: $SHELL not set to bash.
Makefile:26: If you experience build errors, try
Makefile:27: 'make SHELL=/bin/bash'.
Makefile:28:
Kernel Makefile not found at '/lib/modules/2.6.20-16-generic/source'
chmod: "compatible/*" nem érhető el: Nincs ilyen fájl vagy könyvtár
/bin/sh: cannot create compatible/kversion: Directory nonexistent
-e
Makefile has been modified by generate_compatible, please run `make' again

make: *** [compatible/kversion] Error 1
I linked the folders:
ln -s /usr/src/linux-headers-`uname -r` /lib/modules/`uname -r`/source
I get error message:

mac80211 headers not found in:

/lib/modules/2.6.20-16-generic/source/include/net/

Please install the mac80211 subsystem.


How to get the 3 onscreen tablet buttons working?

ATTENTION! THIS POST IS OUTDATED!

1. Download the latest LinuxWacom.
2. Install the following packages through Synaptic:
  • tcl8.4
  • tcl8.4-dev
  • tk8.4
  • tk8.4-dev
  • xserver-xorg-dev
  • libncurses5-dev
...and dependancies.

3. Unpack the linuxwacom tar.gz
4. Modify the /src/xdrv/wcmISDV4.c as follows (add the lines in blue):
/* Coordinate data bit check */
if (data[0] & 0x40)
{
if ((int)data[0] == 0xc1)
{
if (data[1] & 0x07)
{
ds = &common->wcmChannel[0].work;
/* Now fool it into thiking it's in proximity */
ds->proximity = 1;
ds->buttons = ((data[1] & 0x07) << 3);
xf86WcmEvent(common,0,ds);
}
}
return common->wcmPktLength;
}
}
5. Modify the src/xdrv/wcmCommon.c as follows (one change in blue)
/*****************************************************************************
* xf86WcmSendButtons --
* Send button events by comparing the current button mask with the
* previous one.
****************************************************************************/

static void xf86WcmSendButtons(LocalDevicePtr local, int buttons, int rx, int ry,
int rz, int v3, int v4, int v5)
{
int button, mask, bsent = 0;
WacomDevicePtr priv = (WacomDevicePtr) local->private;
WacomCommonPtr common = priv->common;
DBG(6, priv->debugLevel, ErrorF("xf86WcmSendButtons "
"buttons=%d for %s\n", buttons, local->name));

/* Tablet PC buttons. */
if ( common->wcmTPCButton && !IsCursor(priv) && !IsPad(priv) && !IsEraser(priv) )
{
if ( buttons & 57 )
{
if ( !(priv->flags & TPCBUTTONS_FLAG) )
{
priv->flags |= TPCBUTTONS_FLAG;

bsent = 0;

/* send all pressed buttons down */
for (button=2; button<=MAX_BUTTONS; button++) { mask = 1 << (button-1); if ( buttons & mask ) { bsent = 1; /* set to the configured button */ sendAButton(local, button-1, 1, rx, ry, rz, v3, v4, v5); } }
6. Go to the folder in the Terminal and type:
./configure
sudo make
7. Now you should have a wacom_drv.so in the /src/xdrv directory. Make a backup of your old wacom_drv.so:

sudo mv /usr/lib/xorg/modules/input/wacom_drv.so /usr/lib/xorg/modules/input/wacom_drv.so.bak
and copy the new one over:

cd src/xdrv
sudo cp wacom_drv.so /usr/lib/xorg/modules/input/wacom_drv.so
8. Edit your profile:
sudo nano /etc/profile

# enable buttons on HP TC4400
xsetwacom set stylus Button2 "3"
xsetwacom set stylus Button4 "core key shift F1"
xsetwacom set stylus Button5 "core key shift F2"
xsetwacom set stylus Button6 "core key shift F3"

9. Reboot.

10. Set the global keybindings and keybinding commands in the Configuration Editor /Apps /Metacity:
Global Keybindings:
run_command_1 F1
run_command_2
F2
run_command_3
F3

Keybinding Commands:
command_1 xournal
command_2 sh /usr/bin/rotate.sh
command_3 [onscreen keyboard - I don't use it yet]
------------
Thanks to Ubuntu Forum Community.

[SOLVED] problems #3

I'm working on activating the 3 tablet buttons.

I already tried this method, but I sucked at assigning programs to the mouse buttons.


This other method somehow didn't work for me, but I will try again...

...I tried again, and it worked!

Where to find the XFree86 build environment?

Trying to make the 3 tablet-buttons alive I run into the following problem while trying to compile LinuxWacom, and found on the internet no solutions to it. I mean I can't find the XFree86 build environment or the Xorg SDK.
checking if wacom_drv.{o,so} should be compiled... configure: WARNING: requires Xorg SDK or XFree86 build environment, wacom_drv not built

checking for XSERVER... checking for valid Xorg SDK... "xf86Version.h missing"
Tried /usr/include, /usr/include/xorg, and /usr/xc/include

Solution: install Xserver-Xorg-Dev with syaptic package manager.

2008. június 1.

problems #2 - Xournal

After some time Xournal just didn't start.
I got a tip, that this is the software-s problem, and I should use another handwriting-notepad. Next step is to find one.

For Xournal I had to reinstall ubuntu, hoping Xournal starts, because I saved some important notes in its format.

NEWS: Actually, I reinstalled Ubuntu, and installed the newest Xournal (0.4.2.1) according to the instructions on the xournal homepage. I hope it will work. From now on I will save everything to pdf :-)

How to connect to another PC? (Windows)

System / Administration / Share Folders -> set up folder sharing.

To reach your Ubuntu using laptop from a Windows you must set up a password for the Ubuntu.

I found the solution here.

It says:
sudo smbpasswd -a USERNAME
sudo /etc/init.d/samba restart
You should use your username, and it is preferred to give not the same password as your root password, because windows will store it.