Author Topic: Ts_read: Invalid Argument  (Read 5975 times)

band-aid

  • Newbie
  • *
  • Posts: 35
    • View Profile
Ts_read: Invalid Argument
« on: December 06, 2007, 11:25:18 pm »
I'm making progress, X starts with startx and icewm-session starts well. Wireless is going great. The only real problem that I can find is that I can't calibrate my touch screen.

Here's the error:

Code: [Select]
xres = 480, yres = 640
ts_read: Invalid argument

I'm running the angstrom 2.6.23 kernel with the default rootfs.

Thanks for your help

band-aid

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Ts_read: Invalid Argument
« Reply #1 on: December 07, 2007, 12:03:31 am »
Quote from: band-aid
I'm making progress, X starts with startx and icewm-session starts well. Wireless is going great. The only real problem that I can find is that I can't calibrate my touch screen.

Here's the error:

Code: [Select]
xres = 480, yres = 640
ts_read: Invalid argument

I'm running the angstrom 2.6.23 kernel with the default rootfs.

Thanks for your help

band-aid

I suspect that your /etc/ts.conf file has an error.  Mine did.  Make sure that any module_raw lines are commented out and try again.  Also check to see that your TSLIB_TSDEVICE  is set correctly.  On my machine I have

export TSLIB_TSDEVICE=/dev/input/event1

set in a script that calls the X server.  Some machines seem to have /dev/input/ts  as the correct setting, but I don't have that device file.  IIUC, /dev/input/ts is just a link to /dev/input/event1  anyway.
Zaurus:  SL C3100
ROM:  eabi debian/sid

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Ts_read: Invalid Argument
« Reply #2 on: December 07, 2007, 01:30:24 am »
What do you mean by "default rootfs"? Is it the one in January 2007?

If so, then you have to use the Angtrom tslib, which is debianized and packaged in yonggun's page, and is also available in my previous after installation tarball and the configured rootfs tarball.  

For Angstrom kernels, you have to do two things to set up touchscreen:
Step 1: Specify the correct device
edit ~/.profile and make sure you have these two lines:
Quote
export TSLIB_TSDEVICE="/dev/input/event1"
export TSLIB_CONFFILE="/etc/ts.conf"
Step 2: Edit /etc/ts.conf
Comment out the line "module_raw corgi" (as djl0 says).

Then run ts_calibrate again.

AFAIK, with the yonggun kernels the differences are:
-- the device is /dev/input/ts0
-- the "module_raw corgi" line is NOT commented in /etc/ts.conf

Hope this helps.
« Last Edit: December 07, 2007, 01:32:05 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

band-aid

  • Newbie
  • *
  • Posts: 35
    • View Profile
Ts_read: Invalid Argument
« Reply #3 on: December 07, 2007, 01:37:07 am »
Quote from: ZDevil
What do you mean by "default rootfs"? Is it the one in January 2007?

If so, then you have to use the Angtrom tslib, which is debianized and packaged in yonggun's page, and is also available in my previous after installation tarball and the configured rootfs tarball.  

For Angstrom kernels, you have to do two things to set up touchscreen:
Step 1: Specify the correct device
edit ~/.profile and make sure you have these two lines:
Quote
export TSLIB_TSDEVICE="/dev/input/event1"
export TSLIB_CONFFILE="/etc/ts.conf"
Step 2: Edit /etc/ts.conf
Comment out the line "module_raw corgi" (as djl0 says).

Then run ts_calibrate again.

AFAIK, with the yonggun kernels the differences are:
-- the device is /dev/input/ts0
-- the "module_raw corgi" line is NOT commented in /etc/ts.conf

Hope this helps.


I must have gotten myself confused and configured it using yongun instructions at some point. I recommented the corgi line and added those lines to my .profile. Now its working.

Is libgtk2.0-0 working?

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Ts_read: Invalid Argument
« Reply #4 on: December 07, 2007, 01:40:41 am »
libgtk2.0-0 works.

There is some apt-get dependency error occasionally when apt-getting. If so one workaround is to install the dependencies first or manually. This is how I got things installed.

And libgtk2 is preinstalled in the configured rootfs.
« Last Edit: December 07, 2007, 01:40:59 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

band-aid

  • Newbie
  • *
  • Posts: 35
    • View Profile
Ts_read: Invalid Argument
« Reply #5 on: December 07, 2007, 12:32:39 pm »
I'm using the rootfs from this page of the wiki https://www.oesf.org/index.php?title=Q17:_I...ternal_drive%3F

I'm having a terrible time getting this to install manually. Or maybe I just can't find the correct packages. I've got

libgtk2.0-common_2.12.3-1_all.deb
libgtk2.0-bin_2.12.3-1_all.deb
libgtk2.0-0_2.12.1-3_armel.deb

libgtk2.0-0 won't install with this version of libgtk2.0-common. libgtk2.0-bin won't install without libgtk2.0-0. I grabbed these packages off the debian package list, is there a better place to look?

Vitel

  • Newbie
  • *
  • Posts: 48
    • View Profile
Ts_read: Invalid Argument
« Reply #6 on: December 07, 2007, 02:21:10 pm »
Quote from: band-aid
I'm using the rootfs from this page of the wiki https://www.oesf.org/index.php?title=Q17:_I...ternal_drive%3F

I'm having a terrible time getting this to install manually. Or maybe I just can't find the correct packages. I've got

libgtk2.0-common_2.12.3-1_all.deb
libgtk2.0-bin_2.12.3-1_all.deb
libgtk2.0-0_2.12.1-3_armel.deb

libgtk2.0-0 won't install with this version of libgtk2.0-common. libgtk2.0-bin won't install without libgtk2.0-0. I grabbed these packages off the debian package list, is there a better place to look?
Try this:
libgtk2.0-common_2.12.1-3_all.deb
libgtk2.0-0_2.12.1-3_armel.deb
Regards,
Vitel

band-aid

  • Newbie
  • *
  • Posts: 35
    • View Profile
Ts_read: Invalid Argument
« Reply #7 on: December 07, 2007, 11:00:59 pm »
Ok thats got it. Heres another one since I haven't stumped you yet  

I'm trying to get a picture as a wallpaper in icewm. So I edit .xserverrc to say

Code: [Select]
#!/bin/sh
exec /usr/bin/Xfbdev -dpi 100 -nolisten tcp -fp /usr/share/fonts/X11/misc
/usr/bin/icewm-session
xrandr -o right

I also edited the the icewmbg section of .icewm/preferences o

Code: [Select]
DesktopBackgroundCenter=1
DesktopBackgroundScaled=1
DesktopBackgroundImage="/home//.icewm/Ab_blue_matrix.jpg"

Screen still shows up sideways (never have got that straightened out) and now my background is that headache inducing checkerboard pattern. I'm not to familiar with editing these scripts so I don't know whether or not exec needs to be in front of /usr/bin/icewm-session and xrandr -o right.

EDIT: problem just got more perplexing, is my home directory supposed to be /root ? like literally /home is empty. Shouldn't it be /home/root?
 I got the background working by pointing it to /root/.icewm/Ab_blue_matrix.jpg but I'm still concerned about my home folder.
Thanks for the help

Band-aid
« Last Edit: December 07, 2007, 11:13:56 pm by band-aid »