2

I am using Kubuntu 12.10 and have 10 min. screen timeout for reducing the brightness. I just migrated from Windows and now I have a problem with "idle mode". I've also read this and this.

But for example, when I am also talking via skype or any video conference software, I have the same problem. I do not want to move my mouse every time since this is annoying.

How can I write a script to prevent screen sleeping or dimming if there is a sound, for example?

wakeup
  • 955

3 Answers3

2

I found a solution for my problem: caffeine...

Add repository:

sudo add-apt-repository ppa:caffeine-developers/ppa

Update package list:

sudo apt-get update

Install caffeine:

sudo apt-get install caffeine python-glade2
wakeup
  • 955
0

Not Necessary editing the script, but By Pressing Ubuntu Key, then type in start menu screensaver then disable these, ur welcome! Screensaver

Screensaver2

0

I'm quite sure that the exact thing you want to do would not worth the hassle. However, as sounds are usually related to a single app why would not you write a script for just that application to turn off power savings while you keep it running?

(example is for VLC)

#!/bin/bash

#Disable modes
/usr/bin/xset -dpms &
/usr/bin/xset s off &

#Open VLC
/usr/bin/vlc "$@"

#Re-enable modes
/usr/bin/xset dpms
/usr/bin/xset s on
exit

Or you could just turn the 3 settings off that affect the display: "Dim Display" and "Screen Energy Saving" (in system settings->power management) and "Screen Saver" (in system settings->display and monitor).

But to run a background process to address the incompleteness of the power management daemon? Come on...

By the way this "feature" is present at least since Lucid (10.04, 29/04/2010). It is still present in Trusty (14.04) as of 25/01/2014, I tested it. How embarrassing would that be for me if I was an Ubuntu developer?

Szasz
  • 1