Tiny Core Linux

General TC => General TC Talk => Topic started by: fmayhewubh on March 08, 2013, 08:46:25 PM

Title: Serial Tablet
Post by: fmayhewubh on March 08, 2013, 08:46:25 PM
simple question? Has anyone actually gotten a serial tablet working?

Im working on M-275 tablets. with the input-tablet-touchscreen drivers, xorg, and the xorg.conf.d from a working tablet im not getting cursor movement. the device (dev/ttyS1) gives some output in cat with some movements across the screen.

Title: Re: Serial Tablet
Post by: Rich on March 08, 2013, 08:51:51 PM
Hi fmayhewubh
Have you looked through   /var/log/Xorg.0.log   for possible clues or errors?
Title: Re: Serial Tablet
Post by: fmayhewubh on March 08, 2013, 09:01:56 PM
looks like logging is not setup. but that is a good idea. do you know how to get logging in TC, if so i will setup and retry
Title: Re: Serial Tablet
Post by: Rich on March 08, 2013, 09:08:25 PM
Hi fmayhewubh
If the file is not there then Xorg is probably not running. Does the first line in your  /home/tc/.xsession  file
say Xorg or xvesa?
Title: Re: Serial Tablet
Post by: tinypoodle on March 08, 2013, 09:09:15 PM
Quick search brought up
http://forums.justlinux.com/showthread.php?143956-Linux-on-a-gateway-M275-Tablet-PC&s=3d8a36510a2e55fce36a6135cd871619&p=835984#post835984
Title: Re: Serial Tablet
Post by: fmayhewubh on March 08, 2013, 10:56:56 PM
Quick search brought up
http://forums.justlinux.com/showthread.php?143956-Linux-on-a-gateway-M275-Tablet-PC&s=3d8a36510a2e55fce36a6135cd871619&p=835984#post835984
already have that, as a 50-wacom.conf

Hi fmayhewubh
If the file is not there then Xorg is probably not running. Does the first line in your  /home/tc/.xsession  file
say Xorg or xvesa?


well, what do you know. XVersa. I've got Xorg 7.5 downloaded so how do i configure this? change my Xorg.conf.versa to a Xorg.conf ?
Title: Re: Serial Tablet
Post by: Rich on March 08, 2013, 11:03:54 PM
Hi fmayhewubh
Copy /etc/X11/xorg.conf.vesa to /etc/X11/xorg.conf and make any changes you need to that.
Add the xorg.conf file to your backup. Press Ctrl-Alt-Backspace and then run startx
If Xorg plays nice with your hardware, you'll see your desktop.

Title: Re: Serial Tablet
Post by: fmayhewubh on March 08, 2013, 11:23:08 PM
Hi fmayhewubh
Copy /etc/X11/xorg.conf.vesa to /etc/X11/xorg.conf and make any changes you need to that.
Add the xorg.conf file to your backup. Press Ctrl-Alt-Backspace and then run startx
If Xorg plays nice with your hardware, you'll see your desktop.



Xvesa is still in the .xsession (xvesa -br -screen 1024x786x32... etc) should i change this or will xorg set itself?
Title: Re: Serial Tablet
Post by: Rich on March 08, 2013, 11:32:57 PM
Hi fmayhewubh
I don't remember what makes the change in .xsession. Change the first line to:
Code: [Select]
/usr/local/bin/Xorg -nolisten tcp &
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 01:11:51 AM
Hi fmayhewubh
I don't remember what makes the change in .xsession. Change the first line to:
Code: [Select]
/usr/local/bin/Xorg -nolisten tcp &

still no input from pen. i cant seem to remove xorg.conf.vesa it keeps coming back
Title: Re: Serial Tablet
Post by: Rich on March 09, 2013, 01:20:54 AM
Hi fmayhewubh
xorg.conf.vesa is just a sample, Xorg does not look at it. Is Xorg running? Open a terminal and run  top
Is Xorg or xvesa listed?
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 11:29:56 AM
Xorg is running. ^.^
pen still shows no action... and an
Code: [Select]
lsmod | grep wacom
 shows nothing (maybe i am missing the wacom driver :/ )
are there excess tce's needed for module loading.
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 11:31:46 AM
also my udev might not have wacom rules.
Title: Re: Serial Tablet
Post by: Rich on March 09, 2013, 01:03:33 PM
Hi fmayhewubh
Quote
Quote
Code: [Select]
lsmod | grep wacom

 shows nothing (maybe i am missing the wacom driver :/ )
Maybe you need to install   input-tablet-touchscreen-3.0.21-tinycore.tcz ?
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 01:32:22 PM
input-tablet-touchscreen-3.0.21 is downloaded and set as onboot.
Title: Re: Serial Tablet
Post by: curaga on March 09, 2013, 02:20:38 PM
Since you have the serial device, kernel and udev are fine. It looks like you're only missing the wacom Xorg driver - we don't have that in the repo currently.

Compiling it should be fairly easy with compiletc and Xorg-7.6-dev.
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 02:26:33 PM
im using xorg 7.5, should that cause problems?
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 02:29:27 PM
and if you mean wacom.ko.gz i have that. it came w/input-tablet-touchscreen
Title: Re: Serial Tablet
Post by: curaga on March 09, 2013, 02:37:49 PM
I mean xf86-input-wacom. If using 7.5, then you need Xorg-7.5-dev ;)
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 02:51:02 PM
downloaded the xf86input, unziped, downloaded gcc,
Code: [Select]
checking to see whether the C compiler works... no
...
configure error: C compiler cannot create executables
Title: Re: Serial Tablet
Post by: gerald_clark on March 09, 2013, 02:57:38 PM
Use the compiletc extension.
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 04:22:30 PM
Code: [Select]
error: package requirements (xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto) were not met
Title: Re: Serial Tablet
Post by: Rich on March 09, 2013, 04:51:21 PM
Hi fmayhewubh
Did you install  Xorg-7.5-dev.tcz ?
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 05:03:51 PM
Yep, set for on boot,
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 05:10:27 PM
needed pixman, and udev lib/dev

did a make and sudo make install... testing.
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 05:28:04 PM
lost x after restart. couldn't read output unfortunately command line also having problems, when i Ctrl+Alt+Backspace i get a blank screen, i can still startx but i cant see the prompt
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 06:44:06 PM
as quoted from Xorg.log

Code: [Select]
(II) LoadModule: "wacom"
(WW) Warning, couldn't open module wacom
(II) UnloadModule: "wacom"
(EE) Failed to load module "wacom" (module does not exist, 0)

do i need to unzip the gz'd module. it was included in input-tablet-touchscreen
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 08:46:26 PM
I dont understand! there is a wacom.ko.gz in just about every location that its expected but Xorg cant find the driver >.<
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 09:06:40 PM
when i modprobe i get a "cannot find" error when i sudo modprobe it, it will load the module but when i reload x Xorg.log still says the driver dosen't exist.
Title: Re: Serial Tablet
Post by: aus9 on March 09, 2013, 09:38:55 PM
Then try adding a modprobe to your bootlocal.sh

Quote
/sbin/modprobe wacom

reboot to test
Title: Re: Serial Tablet
Post by: fmayhewubh on March 09, 2013, 10:51:34 PM
okay, wacom now active but xorg cant find it.
Title: Re: Serial Tablet
Post by: aus9 on March 10, 2013, 12:56:50 AM
I don't have a tablet but I wonder if you are trying to use only a renamed vesa with a tweak?  Have you exit to prompt and tried
Code: [Select]
sudo su
Xorg -configure

if so you may be able to hold down the shift key and press page up to scroll thru any messages that might help the gurus here who may be sleeping?

if it worked with no errors then
Code: [Select]
su tc
startx

then add

etc/X11/xorg.conf to filetool.lst
Title: Re: Serial Tablet
Post by: fmayhewubh on March 10, 2013, 01:04:07 PM
I know for certin that xorg is running. its in my .xsession at the top.(i think the code i used is in this thread) but i will check.
Title: Re: Serial Tablet
Post by: tinypoodle on March 10, 2013, 01:13:28 PM
Code: [Select]
ps|grep X
Title: Re: Serial Tablet
Post by: fmayhewubh on March 10, 2013, 01:39:06 PM
Oh dear, now i have a new problem... GUI failure. i get a black box in a green/red/etc box. all i did was remove Xorg-7.6-lib (thought it was conflicting w/xorg7.5) replaced it w/ Xorg-7.5-lib (didn't get installed :/ ) and than replace  Xorg-7.6-lib when wait for X started failing... so short detour from this problem to >> forum.tinycorelinux.net/index.php/topic,15028.0.html 

I am not abandoning this thread.
Title: Re: Serial Tablet
Post by: fmayhewubh on March 10, 2013, 01:51:23 PM
NM, xorg-7.5-lib removed screen working. continuing quest for wacom.
Title: Re: Serial Tablet
Post by: fmayhewubh on March 10, 2013, 01:57:53 PM
Code: [Select]
ps|grep X

Code: [Select]
6627 root /usr/local/bin/Xorg -nolisten tcp
7033 tc grep X