Deactivate accelerometer
A better solution is to unload hp_accel module: sudo modprobe -r hp_accel
If you don't want your system to load the module at every boot, simply blacklist it adding the following line to /etc/modprobe.d/blacklist.conf:
blacklist hp_accel
Answered by OP in question:
Solved it
chmod -r /dev/input/js0
was enough
I wrote a small program to read the Joystick under termilnal. As you said I see it as a joystick on my laptop: ST LIS3LV02DL Accelerometer but when I plug in a real joystick it disappears from the list... and the real joystick is listed.