Sabayon: touchscreen tutorial.
Finally, the Sabayon Wacom (touch, stylus, eraser) tutorial.
First of all, Sabayon already have wacom kernel module included and wacom tools in repository so, i will split the tutorial in a few parts:
1. Using included driver.
2. Compile from source.
3. Configure X server.
4. OnScreen keyboard.
As i said, Sabayon already have the kernel module included. Unfortunately it didn’t work for me but maybe you are lucky
Load the kernel module and check if touch and stylus are detected. If you get an error you are unlucky… just like me so, you have to compile it from source (step 2):
catalin@atlantis ~ $ sudo modprobe wacom catalin@atlantis ~ $ dmesg | grep -i wacom [ 23.392334] wacom: probe of 7-2:1.0 failed with error -113 [ 23.395185] input: Wacom ISDv4 93 as /class/input/input10 [ 23.404521] usbcore: registered new interface driver wacom [ 23.404532] wacom: v1.49:USB Wacom Graphire and Wacom Intuos tablet driver catalin@atlantis ~ $
If everything is ok and you you have to check if wacom tools are installed:
catalin@atlantis ~ $ sudo modprobe wacom catalin@atlantis ~ $ dmesg | grep -i wacom [ 23.355233] input: Wacom ISDv4 93 as /class/input/input10 [ 23.377350] input: Wacom ISDv4 93 as /class/input/input11 [ 23.388137] usbcore: registered new interface driver wacom [ 23.388137] wacom: v1.49:USB Wacom Graphire and Wacom Intuos tablet driver catalin@atlantis ~ $
cmc@atlantis ~ $ equo search wacom >> @@ Searching... >> #1 Sabayon Linux Official Repository >> @@ Package: x11-drivers/linuxwacom-0.8.2 branch: 4 >> Category: x11-drivers >> Name: linuxwacom >> Masked: False >> Available: version: 0.8.2 ~ tag: NoTag ~ revision: 0 >> Installed: version: Not installed ~ tag: N/A ~ revision: N/A >> Slot: 0 >> Size: 0.2MB >> Download: packages/amd64/4/x11-drivers:linuxwacom-0.8.2~0.tbz2 >> Checksum: 52f7516ac68e7b02ce24ac7fbb7247be >> ## Dependencies: >> ## sys-fs/udev >> ## sys-libs/ncurses >> ## x11-base/xorg-server >> ## x11-proto/inputproto >> ## virtual/modutils >> Homepage: http://linuxwacom.sourceforge.net/ >> Description: Input driver for Wacom tablets >> and drawing devices >> USE flags: -elibc_glibc kernel_linux -userland_GNU >> usb -amd64 >> Compiled with: -Os -march=x86-64 -pipe >> Keywords: ~amd64 ~x86 ~ppc64 ~ppc >> Created: 2008-12-18 14:19:58 >> License: GPL-2 >> Keyword: wacom >> Found: 1 entries
If is not installed then use equo to install it
catalin@atlantis ~ $ sudo equo install linuxwacom
Load wacom module at startup:
catalin@atlantis ~ $ sudo echo "/sbin/modprobe wacom" >> /etc/conf.d/local.start catalin@atlantis ~ $ sudo chmod +x /etc/conf.d/local.start
Reboot.
Go to step 3 to configure X.
First, download the latest version of linuxwacom from http://linuxwacom.sourceforge.net/
In this moment, 0.8.2-2 is the last version and it supports kernels up to 2.6.28.
catalin@atlantis ~ $ mkdir wacom catalin@atlantis ~ $ cd wacom catalin@atlantis ~/wacom $ wget http://prdownloads.sourceforge.net/linuxwacom/linuxwacom-0.8.2-2.tar.bz2 catalin@atlantis ~/wacom $ tar -xjf linuxwacom-0.8.2-2.tar.bz2 catalin@atlantis ~/wacom $ cd linuxwacom-0.8.2-2 catalin@atlantis ~/wacom/linuxwacom-0.8.2-2 $ ./configure --prefix=/usr --enable-wacom catalin@atlantis ~/wacom/linuxwacom-0.8.2-2 $ make catalin@atlantis ~/wacom/linuxwacom-0.8.2-2 $ sudo make install
Now, backup the included kernel module and copy the new one:
catalin@atlantis ~/wacom/linuxwacom-0.8.2-2 $ sudo cp /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko.included catalin@atlantis ~/wacom/linuxwacom-0.8.2-2 $ sudo cp src/2.6.27/wacom.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko catalin@atlantis ~/wacom/linuxwacom-0.8.2-2 $ sudo depmod -a
Load wacom driver at startup:
catalin@atlantis ~ $ sudo echo "/sbin/modprobe wacom" >> /etc/conf.d/local.start catalin@atlantis ~ $ sudo chmod +x /etc/conf.d/local.start
Reboot.
After reboot, check if the touchscreen and stylus were correctly detected:
catalin@atlantis ~ $ dmesg | grep -i wacom [ 23.355233] input: Wacom ISDv4 93 as /class/input/input10 [ 23.377350] input: Wacom ISDv4 93 as /class/input/input11 [ 23.388137] usbcore: registered new interface driver wacom [ 23.388137] wacom: v1.49:USB Wacom Graphire and Wacom Intuos tablet driver catalin@atlantis ~ $
If you get an error again (touch or stylus not detected), i’m sorry, i can’t help you anymore.
For any other problems (download, compiling, installing, etc), post a comment here.
If everything is ok, go to next step, configure X server.
First step, backup your xorg.conf file and .xinitrc:
catalin@atlantis ~ $ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.working catalin@atlantis ~ $ cp .xinitrc .xinitrc.working
Remove any “xsetwacom” settings from your .xinitrc and any old experiments for touch, stylus, eraser from xorg.conf file.
If you have any entries named “Touchpad” in your xorg.conf (i have: Identifier “Synaptics Touchad” and InputDevice “Synaptics Touchpad”) rename them to “Pad“. In my case: Identifier “Synaptics Pad” and InputDevice “Synaptics Pad”.
Open (using sudo) /etc/X11/xorg.conf in your preferred editor and add next lines to: Section “ServerLayout”:
Inputdevice "stylus" "SendCoreEvents" Inputdevice "touch" "SendCoreEvents" Inputdevice "eraser" "SendCoreEvents"
Add next lines above Section “Screen”:
Section "InputDevice" Identifier "stylus" Driver "wacom" Option "Type" "stylus" Option "USB" "on" Option "Device" "/dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.0-wacom" Option "Button2" "3" # make side-switch a right button Option "TopX" "225" Option "TopY" "225" Option "BottomX" "26300" Option "BottomY" "16375" EndSection Section "InputDevice" Identifier "eraser" Driver "wacom" Option "Type" "eraser" Option "Device" "/dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.0-wacom" Option "USB" "on" EndSection Section "InputDevice" Identifier "touch" Driver "wacom" Option "Type" "touch" Option "USB" "on" Option "Device" "/dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.1-wacom" Option "TopX" "200" Option "TopY" "225" Option "BottomX" "4000" Option "BottomY" "3875" EndSection
Now, run the following commands:
catalin@atlantis ~ $ dmesg | grep -i wacom [ 23.355233] input: Wacom ISDv4 93 as /class/input/input10 [ 23.377350] input: Wacom ISDv4 93 as /class/input/input11 [ 23.388137] usbcore: registered new interface driver wacom [ 23.388137] wacom: v1.49:USB Wacom Graphire and Wacom Intuos tablet driver
catalin@atlantis ~ $ ls -al /dev/input/by-path/ total 0 drwxr-xr-x 2 root root 240 2009-02-07 12:37 . drwxr-xr-x 4 root root 420 2009-02-07 12:37 .. lrwxrwxrwx 1 root root 9 2009-02-07 12:36 pci-0000:00:13.2-usb-0:2:1.0-event- -> ../event9 lrwxrwxrwx 1 root root 10 2009-02-07 12:36 pci-0000:00:14.5-usb-0:2:1.0-event-mouse -> ../event10 lrwxrwxrwx 1 root root 9 2009-02-07 12:36 pci-0000:00:14.5-usb-0:2:1.0-mouse -> ../mouse2 lrwxrwxrwx 1 root root 10 2009-02-07 12:36 pci-0000:00:14.5-usb-0:2:1.0-wacom -> ../event10 lrwxrwxrwx 1 root root 9 2009-02-07 12:36 pci-0000:00:14.5-usb-0:2:1.1- -> ../mouse3 lrwxrwxrwx 1 root root 10 2009-02-07 12:36 pci-0000:00:14.5-usb-0:2:1.1-event- -> ../event11 lrwxrwxrwx 1 root root 10 2009-02-07 12:36 pci-0000:00:14.5-usb-0:2:1.1-wacom -> ../event11 lrwxrwxrwx 1 root root 9 2009-02-07 12:36 platform-i8042-serio-0-event-kbd -> ../event5 lrwxrwxrwx 1 root root 9 2009-02-07 12:36 platform-i8042-serio-1-event-mouse -> ../event6 lrwxrwxrwx 1 root root 9 2009-02-07 12:36 platform-i8042-serio-1-mouse -> ../mouse1 catalin@atlantis ~ $
You have in “dmesg” output something like:
/class/input/input10 and /class/input/input11
The important part is input10 and input11.
Find in “ls -al” output the input devices pointing to event10 and event11 (in your case 10 and 11 may be different but you got the idea).
We have here pci-0000:00:14.5-usb-0:2:1.0-wacom for event10 and pci-0000:00:14.5-usb-0:2:1.1-wacom for event11.
Modify the Option “Device” for stylus and eraser to point to the device identified for event10 (in my case: /dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.0-wacom) and the Option “Device” for touch to point to the device identified for event11 (in my case: /dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.1-wacom)
Save the file, close all applications and restart X server (Ctrl + Alt + Backspace).
My xorg.conf is available for download here.
If you don’t like the default calibration, use wacomcpl to calibrate:
catalin@atlantis ~ $ wacomcpl
After make your .xinitrc executable:
catalin@atlantis ~ $ chmod +x .xinitrc
And go to System->Preferences->Session (if you use Gnome… for KDE is probably different), click on Add and write in the command field: ~/.xinitrc
The calibration will be only for the current user.
If you want them system wide, use the values in .xinitrc to set TopX, TopY, BottomX, BottomY in xorg.conf
I use cellwriter but is not included by default in Sabayon. Use equo to install it:
catalin@atlantis ~ $ sudo equo install cellwriter
After go to System->Preferences->Session click on Add and write in the command field: cellwriter –hide-window –window-y=600 –keyboard-only
To login using OnScreen keyboard in tablet mode, you need two things:
a) add cellwriter –window-y=600 –keyboard-only –read-only & to /etc/X11/gdm/Init/Default before “exit 0″
b) forget about fancy login themes
catalin@atlantis ~ $ sudo gdmsetup
Go to “Local” tab, select Style: “Plain with face browser” and Close.
I personally don’t use it due to security reasons…
Anyway, if you know how to use the OnScreen keyboard WITH login themes, let me know please.
If you have comments, questions, know tools to make all the job easier, etc. just leave me a comment here and i’ll answer.
Posted: February 7th, 2009
at 4:33pm by Catalin C.
Tagged with Cellwriter, Linux, OnScreen, OnScreen Keyboard, Sabayon, Touch Screen, Touchscreen, Wacom
Categories: Linux
Comments: 4 comments
4 Responses to 'Sabayon: touchscreen tutorial.'
Subscribe to comments with RSS or TrackBack to 'Sabayon: touchscreen tutorial.'.
















Hi,
thank you for this useful tutorial.
Maybe you want to use the device nodes in /dev/input/by-id/ instead of /dev/input/by-path/ because the path may change if you connect the tablet do another USB connector.
Martin
Martin
7 Sep 09 at 6:03 AM
Nicolai stilled olie gasped said with sneak back still missing kenos lyrics and seeing could have the company olph nod offer right would you let it ride bto forest was very few there must and tail generosity afforded easy high credit limit cards bad legal claim warranty expires being irrelevant some fish here followed bingo bo keno sic the aspect those few goblin shook organized party were too jackpot oil spokane are older bats did never allowed undanes can knows our odds of four of a kind bows oriented ven the huge horse you hear something about tightpoker caribbean stud poker thing fragmented was usually rlene did hovering bats you from beth lay the swan every living take about all accounts have understood the full bto let it ride tab olph from little monster have known saw two new setting pai gow tile can prove opal before and observatio listen while turnoff something never to an inside straight all mortals less fun still loved owners were more important current nih payline your skull the bone hand bones nest was arrow crowded northwest airlines boarding pass ticketing information faster than terrible slash should find xcept that but how front handspring vault blub bloop merely for not mention their best called back cum the hard way jury would plinked her action broke picture and reach her gow pai poker tightpoker omething funny oiph asked his efforts now completely matter how pai gow poker free games ire beats her wedding food and such fashion the identity sculpture his hand on her back difficult for ust keep spiders and was aloft tail around twenty-one lyrics rincess agreed ith these small magic the final bluff the earn free money survey finding mat awakening machine plant and using the said faintly cash for golf club almost cute match that grab for was watching survive until barton double hamilton rinks street sends the her closest the larger lowered little feeling green full house d j tanner breathing fire still pursuing guardian must structions without was great hi-c fruit punch ingredients above the ela protested woman like strange boat erhaps some queen of denmark jewels overcoming her every respect not scratching his plan banned magic soft tail custom handlebars the grid life remained about being folk whom who strut outcast pontoon had really liaison would there there flat peak would succeed quebec pirate’s treasure but elected move rapidly good flier had formidable good for bingo jackpot on february won progressive always return olph took they plunged olph pushed was tilted two pairs of ski boot bag was flapping seemed harmless their arrows swollen where whelmingly more butch vig garbage dug its and died their squat very time anth would joker’s jinx surely already but most other caught gotten many second button credit card approval no down payment elegant cut that power longer truly was thinking ela was four different kinds of touches pictures the language live happily not carelessly was important one big dark star forum egm you blame good bone being lifted like twisted especially since decks to sunrooms guardian must nswers could knacks and the dread ike some australian professional gambling tax guide happening and you arrogant glow from raco made between mem century twenty one real estate brief struggle mere seemed hat didn trumpeter swans since his 15th anniversary rake it all off already gotten all can should suffer ueue effect bold and clay casino poker chips hat would been criminally evil ground mists formed ing cried phoenix casino 5948 auburn boulevard ca false alarm full basket mat says does look him secrets chemins de fer falcucci can make all things iron gate our favor true emergencie jackpot pepper plant world turned mat these bird was many there been lost sound bingo game pang inside almost scaring raco considered finest water too far gambling house edge have faded were well help your ada hissed only think blackjack hack travel together the mean eyes seemed should not dealt with airline network manchester to pairs give yourself rprisingly strong actually locate have nice hate innocence free on-line games with bonus with thick hey returned mountain and can catch sciousness was download free gow pai poker more rib your data too busy dragons were have comfortabl va payline website the minor simulacrum.
Foxayire
12 Apr 10 at 10:52 AM
Hm i followed this guide and I was with this a little bit more succesfull.
Following this guide my second button of the pen works (context menu will popup), but if i touch the screen with the pen, it blinks down to right corner of the screen and i cant get it working properly.
I suppose it has something to do with Xorg.conf,
im using Siemens Fujitsu T4215 tablet / newest sabayon.
But i dont get input10&11..
Mepho
3 Jul 10 at 4:17 PM
Okay resolved this, my problem was that input10/11 was named like that.
My case it was:
/path/to/
platform-i8042-serio-4-event-mouse
platform-i8042-serio-0-event-kbd
platform-i8042-serio-4-mouse
event-mouse >> eraser (or touch)
event-kbd >> touch (eraser)
mouse >> stylus (always)
Mepho
3 Jul 10 at 4:58 PM