openSUSE > Multimedia ja grafiikka

Krita ja piirtopytä?

<< < (3/5) > >>

Rantarosvo:
Nyt on semmonen tilanne(taas) kun miun aivokapasiteetti loppuu kesken. Tota ohjetta oon yrittää ymmärtää, mutta ei homma etene. Googlen kääntäjäkin tekee senverran persoonallisen käännöksen ettei siitä oo apua.

Eli kysymys kuuluu, mitä pitää tehdä?

ajuri on --> /home/rosmo/wizardpen-0.6.1rc2.tar.gz

copypaste ohjesta:

Joka on -->http://www.rainbowcyber.co.uk/html/modules.php?name=News&file=article&sid=745

Ajuri ladattu täältä--> http://code.google.com/p/linuxgenius/downloads/list?can=1&q=label%3AFeatured&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount


--- Lainaus ---This time it uses a more classic configure/make/make install suite of commands. You will probably need to start Yast first, and download some extra packages xorg-X11-* that could be missing in order to compile. The make install will place the 2 files wizardpen_drv.la and wizardpen_drv.so in /usr/local/lib/xorg/modules/input. I decided to let them there and soft linked them in the /usr/lib/xorg/modules/input directory. The permissions are ok and don't need any modification s. So now is the difficult part : creating an entry for the device in xorg.conf and writing a udev rule to allow udevd to manage it.

All udev rules are stored in /etc/udev/rules.d. Therefore adding our tablet device means that a new short file with a rule to have it recognized when pluging it in a usb port must be created. Let's call it 10-local.rules with this line inside it :

KERNEL=="event*", SYSFS{idVendor}=="5543", NAME="input/%k", SYMLINK="input/wizardpen"

To restart the udevd daemon you can do :

# /etc/init.d/boot.udev restart

We should now see a /dev/input/wizardpen created after pluging the tablet or just booting the pc. It is a soft link to event4. We can display more information with udevinfo :

# udevinfo -a -p `udevinfo -q path -n /dev/input/wizardpen`

looking at device '/devices/pci0000:00/0000:00:03.1/usb3/3-1/3-1.1/3-1.1:1.0/input/input4/event4':
KERNEL=="event4"
SUBSYSTEM=="input"
DRIVER==""
ATTR{dev}=="13:68"

looking at parent device '/devices/pci0000:00/0000:00:03.1/usb3/3-1/3-1.1/3-1.1: 1.0/input/input4':
KERNELS=="input4"
SUBSYSTEMS=="input"
DRIVERS==""
ATTRS{name}=="UC-LOGIC Tablet WP5540U"
ATTRS{phys}=="usb-0000:00 :03.1-1.1/input0"
ATTRS{uniq}==""
ATTRS{modalias}=="input:b0003v5543p0004e0100-e0,1,2,3,4,k100,110,111,112,113,114,115,140,14A,14B,r0,1,8,9,a0,1,2,3,18,m4,lsfw"
...

We must now add a few lines to /etc/X11/xorg.conf to allow the X11 server to load the driver with the right options. First a section InputDevice, with the geometry of the tablet and in the ServerLayout part an InputDevice line with SendCoreEvents. You will see that it is usually advised to put AlwaysCore instead, but it seems that it leads the driver to mix pen and mouse and I could have the pen working fine only using these settings.

...
Section "InputDevice"
Identifier "tablet"
Driver "wizardpen"
Option " Name" "UC-LOGIC Tablet WP5540U"
Option "Device" "/dev/input/wizardpen"

Option "TopX" "2199"
Option "TopY" "3598"
Option "TopZ" "10"

Option "BottomX" "30325"
Option "BottomY" "29278"
Option "BottomZ" "511"

Option "MaxX" "30325"
Option "MaxY" "29278"
Option "MaxZ" "511"

Option "Mode" "absolute"
Option "SendCoreEvents" "true"
# Option "ClickPressureLevel" "1024"
Option "Type" "stylus"
EndSection
...
Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "tablet" "SendCoreEvents"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off "
Screen "Screen[0]"
EndSection

Now we can restart the X server (with startx # -logverbose 8 if we want to check the correct load of the driver in /var/log/Xorg.0.log). Several commands can be used at some point to test the input from the pen :

dd if=/dev/input/wizardpen of=/dev/stdout
cat /dev/input/wizardpen

and here is the output of xsetpointer :

# xsetpointer -l
0: "Virtual core keyboard" [XKeyboard]
1: "Virtual core pointer" [XPointer]
2: "Mouse[1]" [XExtensionPointer]
3: "Keyboard[0]" [XExtensionKeyboard]
4: "tablet" [XExtensionPointer]

Starting inkscape I could play with the pen and draw lines and circles. The 2 mice were also working fine. It does not make sense to move both mice (tablet and "normal" mouse) and pen at the same time, but each of them can control the pointer.

Conclusion : the XP-Pen UC-Logic tablet is a cheap system that can help inscape/xfig/gimp/qcad... users to get a friendly interface with a graphic software.
--- Lainaus päättyy ---

guest1014:
Kokeilin tuota ohjetta, mutta X ei käynnisty silloin kun xorg.conf tiedostoon on lisätty piirustuspöydän tiedot..  :o

Täytyy tutkia asiaa uudestaan ilmojen niin salliessa ( Aurinko paistaa nyt kirkkaalta taivaalta  :) ).

openSUSEssa toimii myös Mandrivan wizardpen-paketti.

http://rpm.pbone.net/index.php3/stat/4/idpl/14938684/dir/mandrake_other/com/wizardpen-0.7.0-2mdv2011.0.i586.rpm.html

Rantarosvo:
Latasin koneelle ton mandrivan paketin, mutta ei suostunu asentumaan. Vastaavaa kokemusta on joskus aikasemminkin koneelle ladatuista paketeistä. Tulee kesken asennuksen herja ettei voida asentaa.

Edit:
Tämmösen löysin, muttei siitä miulle mitään käytännön hyötyä ollu. Ei asennu paketti, mutta jos joku viisaampi tästä jotain hyötyy...

http://rpm.pbone.net/index.php3?stat=3&search=x11-input-wizardpen-tools&srodzaj=3

Rantarosvo:
Onko muuten tommosen yksittäisen ajurin kääntäminen mimmonen homma? Onko riskejä tämmösellä täys tampiolla  ko meikäläinen. Koneita on kaks, joten kokeilu ei olis maata kaatava juttu.

Tää nyt ei liity tohon edelliseen, mutta voiko noita ubuntufoorumilla olevia komentoja jotenkin soveltaa suselle? Mie ko en tosta sudon käytöstä ymmärrä mitään. Miusta se romuttaa yhden Linuxin kulmakivistä. Jos joku viisaampi kertos mimmoset olis komennot susessa, niin voisin kokeilla. Jos kampe heräis henkiin, vois siitä vaikka wikiin kirjottaa ohjeen. Käsittäksein toi wizardpen ajuri kattaa aika ison osan näitä halpoja piirtopöytiä, joten kysyntää vois olla. Tais toimia joidenkin tasohiirien?(irrallinen läppärin hiiri, minkä nimestä ei miulla oo haisuakaan) kanssakin.

http://forum.ubuntu-fi.org/index.php?topic=35726.0;prev_next=next

arijoutsi:
Useimmiten make-käsky lähdekoodihakemistossa kääntää ohjelman ja make install asentaa sen. Komennolla make check voidaan tarkistaa tehty käännös, komennolla make clean poistaa luodut binäärit lähdekoodihakemistosta ja komennolla make uninstall (useimmissa tapauksissa) poistaa asennetut binäärit.

Useimmiten näin, mutta poikkeuksiakin on. Tiedoston mukana tulee install tai readme tai molemmat josta nuo selviävät.

Navigaatio

[0] Viestien etusivu

[#] Seuraava sivu

[*] Edellinen sivu

Siirry pois tekstitilasta