Opening the "Tools"-menu resets Duemilanove

I don't know how do this in Ubuntu, but in Windows I disabled the "serial enumeration" from port properties + my "hacked" rxtxlib (ask the OS for open COM ports and not trying to open each one) = no resets