Endless while loop

Diesen Artikel gibt es auch in Deutsch!
This is a short How-to for a while loop which echoes “LOOP!” :

while(true)
do echo "LOOP!"
sleep 3
done
  • while: starts the loop (in the brackets there is the constraint). Because an undefined variable is always “true” the loop will restart endless.
  • do: Contains what the loop should do. For this example it echoes “Loop!”.
  • sleep X – The script wait X second before continuing. (3 seconds here).
  • done – Ends the loop

You can save the script and run it in shell using “bash SCRIPTNAME” or use “chmod a+x” to make it runnable and start it by clicking at it.

Hanvon Art Master Driver for Linux

I bought an Art Master 0806 this weekend and had to recognize that it does not work with Debian or even Ubuntu. 457505 150x98 Hanvon Art Master Driver for Linux

With Google i found an initial release of an driver but this one did not work too. Well the motion worked but the pressure did not.

So i contacted “Ond” ,the developer of the driver and we worked together to fix the problem. Within two days the driver worked with all features.

How to set the driver up:

  • It has to be compiled by your self
  • Download the driver if you are using a Linux Kernel >3.2 use this driver.
  • Unpack the Tar-Zip with ‘tar xfvz [ARCHIVE NAME].tgz’
  • Navigate with ‘cd’ to the folder where the unpacked driver is
  • Use ‘make’ for compiling
  • If there is no error message you can use ‘insmod hanvon.ko’ for binding it.
  • The Tablet should now be usable

If you have any problems feel free to ask me for help.

The driver has been tested only with:

  • Hanvon Artmaster 0806,1107 and the 1209
  • Rollik RL0604, RL0504
  • Hanvon Armaster III (AM3M)
  • GraphicPal 0806

If you tried using it with another model please report your results to me.

If you want the driver to be loaded on boot next time you have to move the hanvon.ko to /lib/modules/your-kernel/kernel/drivers/input/tablet .

# mv ./hanvon.ko /lib/modules/$(uname -r)/kernel/drivers/input/tablet

update the modules database now.

# depmod

and add hanvon to /etc/modules

# echo “hanvon” > /etc/modules

Now the Module should be loaded automatic next time you boot. You can verify that by running:

# modprobe hanvon

If no error is reported everything is fine.

Edit1: Markus Zucker made a patch, that adds support for the Hanvon Artmaster AM 1209 to the driver

Edit2: Stephan contacted me because his 1107 was not working with this driver. I did the modification to make it able to use it.