Saturday, November 29, 2008

Genius G-Pen 560 Tablet on Ubuntu Linux 8.10 Intrepid

This tablet is detected as "Aiptek" and successfully managed by aiptek kernel driver. However, for X11 you'll need a recent wizardpen_drv (0.6.x)

1) Find in "wizardpen.c" lines with case BTN_LEFT etc. and add BTN_STYLUS, BTN_STYLUS2 and BTN_TOUCH where appropriate. Compile and install as described in the README.

2) Do not add tablet description to xorg.conf, instead comment the mouse definition in the layout section of the config and add file "99-x11-wizardpen.fdi" to "/etc/hal/fdi/policy"

---

<?xml version="1.0" encoding="ISO-8859-1" ?>
<deviceinfo version="0.2">
<device>
<!-- This MUST match with the name of your tablet -->
<match key="info.product" contains="Aiptek">
<merge key="input.x11_driver" type="string">wizardpen</merge>

<!-- <merge key="input.x11_driver" type="string">wacom</merge>
<merge key="input.x11_options.Type" type="string">stylus</merge> -->



<merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
<merge key="input.x11_options.TopX" type="string">185</merge>
<merge key="input.x11_options.TopY" type="string">372</merge>
<merge key="input.x11_options.BottomX" type="string">11811</merge>
<merge key="input.x11_options.BottomY" type="string">8793</merge>
<merge key="input.x11_options.MaxX" type="string">11811</merge>
<merge key="input.x11_options.MaxY" type="string">8793</merge>


<merge key="input.x11_options.TopZ" type="string">32</merge>
<merge key="input.x11_options.MaxZ" type="string">1023</merge>
<merge key="input.x11_options.BottomZ" type="string">1023</merge>


</match>
</device>
</deviceinfo>
---

Beholder TV tuner 507 on Ubuntu Linux 8.10 Intrepid

Create new file, e.g. "beholder.conf" in /etc/modprobe.d/
with the following text:

-----

options tuner secam=d
options tda9887 secam=d
options saa7134 tuner=38 card=67 gbuffers=4
alias char-major-89-* i2c-dev
options i2c-algo-bit bit_test=1

----

Now reboot.

Wednesday, July 11, 2007

watch and capture TV on Linux

How to capture and watch tv

Use xawtv (it doesn't lock the devices and doesn't hang, at least while I was experimenting ;) and ffmpeg.

run xawtv, switch to favourite channel.

ffmpeg -f mpegvideo -acodec mp2 -ar 48000 -ab 192 -ac 2 -ad /dev/dsp -vd /dev/video0 -vcodec mpeg2video -b 6000 -s 720x576 -aspect 4:3 test_cap.mpeg


To fix problems with SECAM:

select SECAM channel in xawtv, then


v4lctl setattr norm SECAM-DK


Here is a sample .xawtv file:


[defaults]

norm = PAL


[tv xxi]

freq = 77.240


[tdk]

freq = 111.240


[eurosport]

freq = 119.240


[nat. geo]

freq = 126.899


[discovery]

freq = 135.239


[animal planet]

freq = 143.239


[tvc]

freq = 151.239


[dziecki]

freq = 159.239


[euronews]

freq = 167.239


[hallmark]

freq = 175.239


[soviet kino]

freq = 191.239


[one.by]

freq = 215.239


[ont]

norm = SECAM

freq = 222.599


[belmuztv]

freq = 239.239


[8]

freq = 247.239


[rambler]

freq = 487.240


[disc. science]

freq = 503.240


[extreme]

freq = 551.240


[history]

freq = 567.240


[dziecki2]

freq = 575.240


[WF]

freq = 783.240


[ntv]

norm = SECAM

freq = 58.930


[lad]

norm = SECAM

freq = 84.900


[stv]

norm = SECAM

freq = 92.930


[bt]

norm = secam

freq = 182.970


[mtv]

freq = 198.510


[rtr]

norm = SECAM

freq = 207.150


[mir]

norm = SECAM

freq = 230.750

Monday, June 4, 2007

Beholder TV tuner

For kernel 2.6.19.2

How to setup Beholder TV tuner

1)see README.saa7134 in linux-source/Documentation
2)modprobe -r saa7134
3)modprobe saa7134 card=67

Create /etc/modprobe.d/beholder.conf with:
options saa7134 card=67

Sound card setup:

Create /etc/modprobe.d/sound.conf with
options snd-hda-intel model=6stack-dig

Use ALSA mixer, Front for general sound, Analog Mix for TV sound + Line-In for kdetv.

Friday, June 1, 2007

G-Pen 560

How I made my Genius G-560 tablet working in Debian Linux 4.0 .

1) Downloaded wizardpen driver

http://www.stud.fit.vutbr.cz/~xhorak28/index.php?page=WizardPen_Driver

2) Unpacked to home directory.
3) In the make file Adjusted the directory for the directory where x.org drivers lie.
4) Did as it is written in INSTALL and README.
5) with cat and hexdump utilites I have found the proper /dev/input/event device for the tablet ;-)
6) Modified the x.org file for:

Section "InputDevice"
Identifier "Tablet"
Driver "wizardpen"
Option "Device" "/dev/input/event1" # adjust for yours device for the tablet
Option "MaxX" "11939"
Option "MaxY" "8939"
Option "MaxZ" "1023"
Option "TopZ" "32"
Option "BottomY" "8650"
EndSection


Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse" "CorePointer"
InputDevice "Tablet" "AlwaysCore"
EndSection


7) Restarted the x.org server.