I don't know what version of Ubuntu you're using, but you can lengthen orturn it off altogether in the screensaver settings. In pre-11.04 I thinkthis option was under system->preferences->screensaver