Showing posts with label u820. Show all posts
Showing posts with label u820. Show all posts

2010-10-18

Linux on a Fujitsu U810, P1620, T1010 - Ubuntu 10.10 Maverick

Last week I upgraded to latest Ubuntu, Maverick 10.10.

Everything seems fine; Ireally suggest anyone of you with a u810 to upgraded asap.

- external monitor: works great

- suspend/resume: works great

- touchscreen: uhm ... the touch driver failed working. As pointed by nerd65536 and mifa (thanks for the fast fix), just with a small modification everything is working again.


So please find here the latest version of the driver !!

Also, following the suggestions from nerd65536, this version fixes the driver problem on suspend/restart, and README instructions are improved.

2010-07-24

Linux on a Fujitsu U810, U820 - keyboard lights

short story: it's working !! - keep reading

Some readers of this blog where still missing this feature, so I engaged the daunting task of finding some time and energy to solve this issue. After 5 hours of googling, reading documentation about acpi, linux kernel, reading c code for the linux kernel drivers, googling for ubuntu file repository source files, ... I found the solution, which is very easy:

=> keyboard lights can be easily controlled by accessing the sysfs <=

Since the sysfs is root-only, I have created a small c program, with automatic compile and install, that makes keyboard-lights accessible for any user.

Installation

1 download the fujitsu-kbdlights-0.1.0.tar.gz to any directory in your computer


2 decompress the package (it will create another directory, fujitsu-kbdlights-0.1.0/)
tar zxvf fujitsu-kbdlights-0.1.0.tar.gz


3 compile and install
cd fujitsu-kbdlights-0.1.0
make
sudo make install


4 and in a command shell, you can type

fujitsu_kbdlights on

fujitsu_kbdlights off

fujitsu_kbdlights toggle

fujitsu_kbdlights


5 if you want, you can bind any of the previous commands to a hot-key using any keyboard setup utility

Enjoy typing at night !!

2010-07-20

Linux on a Fujitsu U810, P1620, T1010 - Touchscreen IX

Following the request from several users, and a little bit late, I have adapted the driver to work on systems with kernel-compiled usbhid module.


The problem was that, in certain cases (fedora and other distributions) the usbhid module is compiled in the kernel, not compiled as a module. In these cases, the prior script that performs the correct binding of the device to the fujitsu_usb_touchscreen module was not working. Also, the previous script, even it was working, was not very polite and was not following correct computer initialization procedures.

You can find the new driver here.

To follow installation instructions, go read this previous post.

2009-08-21

Linux on a Fujitsu U810, U820, P1620, P1630, T1010, B8260 - Touchscreen X

andrew, a reader of this blog, has posted a comment noting that this linux touchscreen driver also works on a fujitsu p1630, so p1630 owners, welcome to this blog!

2009-07-17

Linux on a Fujitsu U810, P1620, T1010, B8260 - Touchscreen IX

An anonymous user has sent a comment where s/he tells me that the fujistu_usb_touchscreen driver is also working for the Fujitsu B8260!

Thanks for the comment; I'll update the docs!

2009-07-15

Linux on a Fujitsu U810, P1620, T1010 - Touchscreen VIII

Following a request from a user, I have adapted the driver to work on a Fujitsu T1010.

The problem was that, for an unknown reason, when running the calibration script, inside the driver code -1 was considered bigger than 94. I think that behavior must be because of some integer sign issues either because the new kernel, either because who knows; the truth is that this comparison works fine in my system, but doesn't on the T1010.

So, if you find that the calibration script doesn't work properly, then update to this newer version and try again.

Thanks to draco, for reporting the driver works on a T1010, for reporting the bug and letting me remote connect to his computer to debug the driver.

uname -a was:
Linux xxx 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 22:12:12 UTC 2009 x86_64 GNU/Linux


You can find the new driver here.

To follow installation instructions, go read this previous post.

2009-05-19

Linux on a Fujitsu U810, P1620 - Touchscreen VII

New update of the touchscreen driver package: the driver was not working ok when the screen was rotated.

I think that now, accuracy is good in all screen orientations.

Follow the instructions in this earlier post for download and installation.

2009-05-15

Linux on a Fujitsu U810, P1620 - Touchscreen VI

Update 2009.05.19: new version available here!!

Following the feedback from a user complaining about the module not compiling under linux kernel 2.6.30, I'm releasing this new version, 0.3.3, which includes the following improvements:

- compiles under 2.6.30
- installation does not override previous calibration values, if exist
- more robust /etc/rc.local, to make sure the module is loaded before usbhid

If you have it already working, you can forget about this update; this update is for people having trouble with installation or compilation, but does not provide any new functionality.

2009-05-14

Linux on a Fujitsu U810, P1620 - Touchscreen V

Update 2009.05.19: new version available here!!


Update 2009.05.16: updated the link to the package with the newer version. See this post for details.


As pointed by one user, when doing screen rotation pen accuracy was not good.

I have reviewed the code and come up with a new version, where I think coordinates calculation is OK now (I think the previous code was a leftover for when I had my screen not well calibrated ...)

So, download the new package and follow the instructions detailed in this previous post.

Please, report your feedback on this new version and calibration values !!

2009-05-13

Linux on a Fujitsu U810 - Skype

For installing skype, here's what I did:

1. setup the medibuntu repository where skype package is located:
following these instructions, I did, for jaunty,
sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

2. open synaptic package manager, and install skype (version 2.0.0.72 at the time of this writing)

3. for sound configuration, I opened the Volume Control right-clicking on the volume control icon, and I was playing with it.

Skype sound configuration is set as follows:




Skype works ok, but cpu usage is very high during a simple voice conversation.

I always use skype with a headphones/mic connected, never with the built-in mic or speaker, so I don't know yet whether or not the integrated mic works ok.

2009-05-12

Linux on a Fujitsu U810, P1620 - Touchscreen IV

Update 2010.10.18: new version available here!!


Update 2010.07.20: new version available here!!


Update 2009.07.15: new version available here!!


Update 2009.05.19: new version available here!!


Update 2009.05.14: there's a new version of the code in this post. I have also updated the link in this post.

Uhm.. good news for everyone listening ... (is there anyone?)

I finally managed to create a simple enough method for using and calibrating the touchscreen on a Fujitsu u810 (aka u1010), u820 (aka u2010) or p1620.

I think the steps are simple and easy.

To install, download this package (update: latest version here, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.8), uncompress it into a temporary directory, and follow the instructions included in the README file, which I copy here:


Fujitsu usb touchscreen kernel module and utilities v0.3.8
by zmiq2 ,
updated for Ubuntu maverick (10.10) by nerd65536 , Mon, 18 Oct 2010 18:19:33 +0200,


The goal of this project is to produce a useful linux kernel and utilities to use the
fujitsu usb touchscreen included in tablet laptops like the U810 (aka u1010, u820),
the P1620 and the T1010.

This driver has been tested and proved working on a Fujitsu U810 - 32bit, on a
Fujitsu P1620 - 64bit and on a Fujitsu T1010 - IA64bit.

For other authorship information, see copyright.



INSTALLATION

Installation steps detailed here are based on ubuntu linux distributioni 10.10. It might
be different in your system, but they certainly are very easy to adapt to any other
distribution.

Drop me an email if you have trouble installing the package.

0 set your computer BIOS to use the touchscreen in 'tablet' mode
this is the mode also used by windows, and provides very sharp touchscreen accuracy

1 download the package file to any directory

$ mkdir fujitsu_touchscreen_driver
$ cd fujitsu_touchscreen_driver
$ wget http://

2 uncompress the package
$ tar zxvf fujitsu-usb-touchscreen-0.3.8.tar.gz
$ cd fujitsu-usb-touchscreen-0.3.8

3 install the software
$ make
$ sudo make install
(at this last step you'll be asked for your password to install certain software as root user)

4 setup a startup application for automatic touchscreen rotation
ubuntu hardy (8.04)
once logged into gnome, go to System -> Preferences -> Sessions, and go to the 'Startup Programs' tab, and Add to automatically start /usr/bin/fujitsu_touchscreen_rotate.py at login

ubuntu jaunty (9.04), ubuntu karmic (10.04), ubuntu maverick (10.10)
once logged into gnome, go to System -> Preferences -> Startup Applications. Click Add.
under "Command:", type: "/usr/bin/fujitsu_touchscreen_rotate.py". Click OK.
on your next login, the rotation service will be active.

And you are done!!!

NOTE: you'll need to repeat step 3 every time you upgrade your linux kernel to a new version.



TOUCHSCREEN CALIBRATION

If you feel that the touchscreen is not accurately calibrated, i.e. when tapping the screen,
the cursor appears in a different spot, run the provided calibration tool.

Calibration must be done when screen is in normal orientation; calibration done in this mode
will make the touchscreen work in all orientations; do not calibrate the screen while rotated!


Open a terminal and type:

$ fujitsu_touchscreen_calibration.py


The terminal will start the calibration software. With the laptop stylus, click
several times on each of the four corners of the viewable screen, not the corners of the
hardware screen. When you see that the line "last read" doesn't change after clicking
on the corners, just press S to save the settings and quit.

While in the calibration tool, you can press R to reset current calibration procedure,
or press Q to quit without applying any changes.

After calibration you can see your calibration values by running the following command in
a terminal window:

$ dmesg | grep fujitsu_usb_touchscreen | grep loaded

Please report your computer model and calibration values at spareinfo.blogspot.com to
share with other users.



OTHER SETUP - SCREEN ROTATION

In order to have the touchscreen automatically rotate when rotating the screen, I
suggest you also install the fjbtndrv driver package from the ppa.launchpad.net. With
this package, when pressing the rotate-screen hardware button in the screen bezel in a
U810, the display will rotate and the touchscreen will act accordingly.

$ sudo add-apt-repository ppa:khnz/ppa
$ sudo apt-get update
$ sudo apt-get install fjbtndrv



OTHER SETUP - RIGHT CLICK ON LONG PRESS

In order to have a long-press act as a right-click, configure gnome assistive
technologies to do so:

1 Enable Assistive Technologies
ubuntu hardy (8.04)
in gnome, go to System -> Preferences -> Assistive Technologies and select the
'Enable assistive technologies' check

ubuntu jaunty (9.04) through ubuntu maverick (10.10)
in gnome, go to System -> Preferences -> Assistive Technologies and select the
'Mouse Accesibility' option to get into the details

2 Enable right click
ubuntu hardy (8.04), ubuntu jaunty (9.04) through ubuntu maverick (10.10)
in gnome, go to System -> Preferences -> Mouse, then go to Accessibility tab, and
select the 'Trigger secondary click by holding down the primary button' option

2009-05-11

Linux on a Fujitsu U810 - Gnome Phone Manager Issues

Recently I set gnome-phone-manager to automatically start after logging into gnome.

It seems to me this utility (to be able to send / receive sms from the computer using a bluetooth enabled phone) is not ready for production as:

- when started, if the phone was not ready, after activating bluetooth in the phone it would not connect. I had to stop the application and restart it again, with the phone ready, to be able to connect the computer with the phone.

even this 'reconnect' functionality is built-in, it clearly doesn't work as it should

- it was interfering in gnome-power-manager, thus my 'suspend when lid is closed' setting and the gnome brightness applet were not working as gnome-power-manager was crashing. i thought that to be realted with the wifi driver, but I was wrong.

So, my decision now is to stop using gnome-phone-manager and look for an alternative to easily be able to text-message with the computer using my bluetooth enabled phone and u810!

2009-05-07

Linux on a Fujitsu U810 - External Monitor III

Good news !!

As of today, I have found the way to have the external monitor work out-of-the-box.

After posting a bug report to the ubuntu team complaining for not updating the xorg-xserver-driver-intel package with fixes submitted for more than 1 month, developers said that an updated driver can be found in another repository!!

After configuring the new repository, my ubuntu installed the new driver which makes external-monitor work out-of-the-box!!

Here are the steps I followed to install packages from the ppa X Updates repository:

1. setup the sources
how to: https://help.ubuntu.com/8.04/add-applications/C/extra-repositories-adding.html
source added: deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main

detailed instructions:
System -> Administration -> Software Sources
[tab] Third-Party Software -> Add
enter deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main

[tab] Authentication -> Import Key File
download the file here, save it, and select it when pressing the Import Key File button

Then close the application window; ubuntu it will then automatically reload all package updates; if it doesn't, don't worry, follow to next step.



2. install updated driver

detailed instructions:
System -> Administration -> Update manager
(if necessary, press the 'Check' button to refresh what packages need to be upgraded.

I was asked to 'Run a partial upgrade', which of course I accepted.


3. reboot

And external monitor worked without any tweaks!

Now I can have the external monitor without having to recompiled and so so on every kernel upgrade, great!


Some info: my xorg.conf file, just in case anyone needs it:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"

SubSection "Display"
Virtual 2048 2048
EndSubSection
EndSection

2009-04-29

Linux on a Fujitsu P1620 - Touchscreen

update 2009.05.12: see this newer post: Linux on a Fujitsu U810, P1620 - Touchscreen IV


After having a reader asking me for the u810 touchscreen driver for his Fujitsu P1620, yesterday we made some tests and, good news!!

The driver works, even it needs some calibration parameters adjustments.

It works on a Fujitsu P1620 with ubuntu 9.04 (Jaunty) 64bits !!

We'll do some more testing but I hope to post a new version of the driver that will work for both P1620 and the U810, so stay tuned to have your screen 100% functional!!

Linux on a Fujitsu U810 - Suspend / Resume update

Update 2009-05-11: see this newer post as the solution to this issue (it seems that gnome-phone-manager was crashing gnome-power-manager, weird, right?)



With the latest Jaunty update, I noticed that when closing the lid the computer was not going into suspend.

I went to System -> Preferences -> Power Management, and my surprise was that there I couldn't find any 'when laptop lid is closed' option, nor 'on battery power' tab.

I finally found the solution to have all those options back:

1 go to System -> Preferences -> Power Management, select in General tab the 'Always display an icon' option

2 click on the icon in the panel, and then those options came back!!

There I selected again that, on close lid, have the computer go to suspend.

I don't know why the latest update just deleted my power settings.


Update: the day after, after resuming the laptop, going to System -> Preferences -> Power Management showed again the missing options. Weird, isn't it?

Why there weren't there the day before? Did my actions really solved the issue or there was something else?

Who knows, but suspend / resume is back to normal and working great!!

2009-04-20

Linux on a Fujitsu U810 - Touchscreen III

Update 2009.05.12: see this newer post:
Linux on a Fujitsu U810, P1620 - Touchscreen IV


This is a replacement of my previous entries on how to get the touchscreen working; please forget about previous posts (I and II), which works better and it's easier to install and maintain.

In order to have the touchscreen working, here's the final solution where:
  • the point precision is very sharp
  • works with standard Xorg drivers
  • works after suspending / resume cycle without trouble
  • works after rotating the screen
  • works even with an external monitor connected, so the touchscreen is remapped to fit the whole screen area
  • works very nicely for clicking as well as for ink-painting/writing with ink software like xournal !!!
The solution include these steps:
  1. configure bios to tablet mode
  2. install a kernel module: u810_tablet
  3. copy two files to make the u810_tablet module load correctly at boot and when X loads
  4. install one python script and one small c program to have the touchscreen work correctly after rotation

1. configure bios to tablet mode

go into bios and select touchscreen to work in tablet mode


2 install a kernel module: u810_tablet

Latest version: 0.2.4 (2009.04.20)

Download the source code for the u810_tablet kernel module, or just download the already compiled one (for ubuntu 9.04, kernel 2.6.28).

To compile the module:

- make sure you have the linux development environment installed; I would suggest to install the packages using synaptics package manager, and select linux-headers, gcc

- uncompress the downloaded file, cd to the newly created directory and just type
# make

and as root,
# make install


To just install the already compiled module (if you compiled the module, you don't need to follow this step):

as root, copy the module file (u180_tablet.ko) to /lib/modules/`uname -r`/extra/
# cp u810_tablet.ko
/lib/modules/`uname -r`/extra/

as root, run depmod command
# depmod -a


3 copy or edit two files to make the u810_tablet module load correctly at boot and when X loads

In order to have the module load correctly at boot, as root edit the file /etc/rc.local and insert the following lines at any place (you can download rc.local here):

# Correct u810_tablet module load - start
# Author: zmiq2
# Info: spareinfo.blogspot.com

MODPATH=/sbin
RMMOD=$MODPATH/rmmod
MODPROBE=$MODPATH/modprobe

. /lib/lsb/init-functions

log_action_begin_msg "Starting u810_tablet module load"
log_progress_msg " u810_tablet module load:unload usbhid"
$RMMOD usbhid
log_progress_msg " u810_tablet module load:load u810_tablet"
$MODPROBE u810_tablet
log_progress_msg " u810_tablet module load:reload usbhid"
$MODPROBE usbhid
log_action_begin_msg "Finished u810_tablet module load"
log_end_msg 0
# Correct u810_tablet module load - end

In order to have the windowing system recognize the module, copy this file as /etc/hal/fdi/policy/u810_tablet.fdi.


4 install one python script and one small c program to have the touchscreen work correctly after rotation

Download u810_rotate_helper and u810_rotate.py.

as root,

- copy both files to /usr/bin

- make u810_rotate_helper suid:
# chmod +s /usr/bin/u810_rotate_helper


Source code for u810_rotate_helper is here. You can easily compile it yourself just running the command
gcc u810_rotate_helper.c -o u810_rotate_helper
.


Activate u810_rotate.py to start when you log into gnome

Once logged into gnome, go to System -> Preferences -> Starup Applications and add /usr/bin/u810_rotate.py to start when you log in


Reboot and enjoy the touchscreen !!

I can recommend xournal, gournal as hand-writing note taking applications (no handwriting recognition though).

You'll need to repeat step 2 every time there's a new kernel version (like if you change from 2.6.28 to 2.6.29) but not if you just stick to the same ubuntu release (where usually kernel version after upgrade goes from 2.6.28-8 to 2.6.28-11).


Pending tasks

- autorotate integrated mouse-pointer coordinates when screen is rotated. That should be easy....

- configure evdev to handle long-press as right-mouse click


If you installed a previous version detailed in a previous post

- restore your initramfs:
make sure u180_tablet is not in /etc/initramfs-tools/modules file; if it was before, remove it and as root run the command # update-initramfs -u 'all'

- restore your acpi-support file
make sure u810_tablet is not included in in the MODULES variable in /etc/default/acpi-support file


Developer notes

- currently if using rotation using xinput facilities with evdev module does not work properly, even there's a bug fix already tested that suggests that it should work, so rotation is made by the driver

- u810_tablet module parameters
orientation=normal:0|right:1|inverted:2|left:3
maxx,maxy,minx,miny (when normal)
printpos=0|1, to print via /var/log/kern.log x/y coordinates, for debugging

2009-04-15

Linux on a Fujitsu U810 - Touchscreen II

2009.04.20 update: disregard this entry and go to read the better Linux on a Fujitsu U810 - Touchscreen III



The rest of this entry is obsolete.

This is a follow up of this previous entry, so make sure you read both!

1 Source code for u810_tablet kernel module

You can find here the source code for the u810_tablet kernel module. I'm willing to update it with any suggestions or improvements anyone may suggest.

Latest version: 0.2.3 (2009.04.15)

To compile the module:

- make sure you have the linux development environment installed; I would suggest to install the packages using synaptics package manager, and select linux-headers, gcc

- uncompress the downloaded file, cd to the newly created directory and just type
# make

and as root,
# make install

To load the new module, just unload the old one and load the new one:
as root:
# rmmod u810_tablet
# modprobe u810_tablet

To have the module load correctly on boot, follow step 3 described in this previous post

Read Developer Notes at the end of this post for some module parameters documentation


2 regarding step 4 of this previous entry, i have found that:

- using the evdev module, xournal works very well but the module doesn't work as expected, since last clicked coordinates remain in memory, so when you lift the pen and press in another area, the computer thinks you selected the whole area

- using the evtouch module, the touchscreen also works very well, but for an unkown reason xournal does not work; I haven't tried any other inking software

I'm currently investigating this issue because in both causes there are annoying effects.

- in order to have the u810_tablet work with xorg-evdev module, use this file as /etc/hal/fdi/policy/u810_tablet.fdi

- in order to have the u810_tablet work with xorg-evtouch module, use this file as /etc/hal/fdi/policy/u810_tablet.fdi


It is interesting to play with "System -> Preferences -> Mouse -> Accessibility Tab -> Trigger secondary click by holding down the primary button" option when working with evdev module, to make a long press act as right-click.


Developer notes

u810_tablet module info

- parameters
orientation=normal:0|right:1|inverted:2|left:3
maxx,maxy,minx,miny (when normal)
printpos=0|1, to print via /var/log/kern.log x/y coordinates, for debugging


$ ls -l /sys/module/u810_tablet/parameters/
total 0
-rw-r--r-- 1 root root 4096 2009-04-15 20:02 orientation
-rw-r--r-- 1 root root 4096 2009-04-15 20:02 printpos
-rw-r--r-- 1 root root 4096 2009-04-15 20:02 touch_maxx
-rw-r--r-- 1 root root 4096 2009-04-15 20:02 touch_maxy
-rw-r--r-- 1 root root 4096 2009-04-15 20:02 touch_minx
-rw-r--r-- 1 root root 4096 2009-04-15 20:02 touch_miny

To change touchscreen orientation
# echo "1" > orientation

Linux on a Fujitsu U810 - External Monitor II

update - 2009.05.07 - please disregard this post and go to the newer and better solution at Linux on a Fujitsu U810 - External Monitor III



This post is a follow up of my previous posts here and here.

As of today, 2009.04.15, ubuntu jaunty 9.04 xorg intel video driver package still does not include the patch that makes external monitor working. I hope next release will include it, since today's latest ubuntu version takes up to 2009.02.28's changes, while our desired patch was included in 2009.03.05 !!

In order to have the external monitor working now, without worries, follow these steps:

1 download this debian package (see note below for details on how I made the package)

2 install the package

as root, execute
# dpkg -i xserver-xorg-video-intel_2.6.1-1ubuntu1zmiq1_i386.deb

(you may see some messages regarding you are downgrading the package's current version, but it doesn't matter as this is a temporary solution)

3 make sure your /etc/X11/xorg.conf file is like

Section "Device"
Identifier "Configured Video Device"
Option "SDVOBOutput" "VGA-1"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"

SubSection "Display"
Virtual 2048 2048
EndSubSection
EndSection


(note the line Option "SDVOBOutput" "VGA-1")


4 reboot

Done!!

Since the FN+A keyboard shortcut does not work to switch the external monitor on / off, see this tip to have fast switching between external monitor on/off just pressing the brigthness-up button.

note: you must run step 2 every time you upgrade the video-intel driver module using ubuntu's update manager, since it will install an old unpatched version; you may also unselect the xorg-xserver-video-intel driver package from the packages list, so it doesn't overwrite your hand-installed package


Developer notes

The package posted above does not include any harmful stuff, but of course I'm not responsible of anything, it is provided as it is, blah blah blah...

I created the package downloading the ubuntu xorg intel driver available on 2009.01.23 (xserver-xorg-video-intel_2.6.1-1ubuntu1), and I applied the already available patch at that time.

I tried to do the same today, based on the latest 2.6.3 version and applying the current patch (which is different to the patch I applied to 2.6.1), but I haven't succeed and I don't want to spend more time fiddling since I hope soon ubuntu driver will have the patch included.

The patch available today is not the same as the one I used, but the one I used works anyway!

The steps I followed are:

1. get all code from repositories, as well as latest intel driver code, which already includes the patch

apt-get source xserver-xorg-video-intel
apt-get build-dep xserver-xorg-video-intel
apt-get install devscripts


2. apply the patch
cd xserver-xorg-video-intel-VERSION
(I cannot remember the exact command, something like patch < ....)

3. build the package
dch -l zmiq "Xorg-intel patched for external monitor on u810"
dpkg-buildpackage -b
dh_builddeb

4. install the created package
now you should have a file named like

xserver-xorg-video-intel_2.6.1-1ubuntu1zmiq1_i386.deb

2009-04-07

Linux on a Fujitsu U810 - Tablet mode

Once you have the touchscreen installed as described here, specially in steps 5 and 6, you have the computer setup for tablet mode.


By tablet mode I understand that:

- you have the screen rotated, so the keyboard is not accessible

- you mainly work with the stylus. Finger touch also works, but nail-touching


In this mode I still need to find:

- on-screen-keyboard (options: gok, onboard, ...)

- how to make scrollbars and buttons a little wider, so they are easier to touch

- how to rearrange panel to fit all icons when screen is rotated


So, does the unit works in tablet mode? yes (rotated screen works, touchscreen works)

Is it easy to work in tablet mode? It depends on what you do; web surfing or using a note taking application is fine !

Linux on a Fujitsu U810 - Eye TV Usb stick

Ubuntu doesn't include the required modules to have that stick working.

This is a hybrid usb stick: analog & digital receiver, but by now I only got it working as an analog receiver.


1 get the firmware that needs to be downloaded to the stick

# In order to use, you need to:
# 1) Download the windows driver with something like:
# wget http://www.steventoth.net/linux/xc5000/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip
# 2) Extract the file hcw85bda.sys from the zip into the current dir:
# unzip -j HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip Driver85/hcw85bda.sys
# 3) run the script:
# ./extract_xc3028.pl
# 4) copy the generated file:
# cp xc3028-v27.fw /lib/firmware


Get extract_xc3028.pl here.


2 compile the required modules

sudo apt-get install build-essential mercurial gcc linux-headers-`uname -r`
hg clone http://mcentral.de/hg/~mrec/v4l-dvb-experimental/
cd v4l-dvb-experimental
make && sudo make install
sudo echo "em28xx" >> /etc/modules
sudo echo "em2880-dvb" >> /etc/modules

=> insert usb stick now; new module should be loaded (look at dmesg)


3 find created devices

$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xf0340000 irq 17
1 [Em28xx Audio ]: Empia Em28xx AudEm28xx Audio - Em28xx Audio
Empia Em28xx Audio

=> audio=hw.1


4 Analog TV - run mplayer (xawt or other should also work)

mplayer -tv driver=v4l2:device=/dev/video0:norm=PAL:chanlist=europe-west:alsa:adevice=hw.1:forceaudio:immediatemode=0:amode=0 tv://


Devel notes

- command to record just audio
sudo arecord -D hw:2 -f dat prova.wav

- firmware download that doesn't work:

http://caligari.treboada.net/ubuntu_tdt

wget http://konstantin.filtschew.de/v4l-firmware/firmware_v4.tgz
sudo tar xzvf firmware_v4.tgz -C /lib/firmware