Thanks for the tip! I’m running Ubuntu linux, and it seems this is indeed a IDE problem since different versions produce different (bad) results.
However in windows it works exactly as expected, so it is surely not a hardware problem!
I’d rather not have to use windows though >.<
Thanks again!