LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2005, 05:37 PM   #1
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Can MythTV disable the gnome screensaver?


I use Myth to watch TV on my PC running Fedora Core 4. Unfortunately every 20 minutes or so the gnome screensaver kicks in because there's been no activity.

I want to keep the gnome screensaver set with a time delay but I don't want it to kick in while I'm watching telly. A lot of Windows programs have an option to disable the screensaver while in fullscreen mode. Does Myth have something equivalent?

I'm running:
  • kernel 2.6.11-1.1369_FC4
  • Gnome 2.10.0
  • Myth 0.18.1-55
 
Old 03-06-2012, 05:07 PM   #2
apos
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Older thread, but came up in google on top!


Under Ubunut 11.10 I am starting the mythfrontend with the following skript.
It is called by the "Power"-Button of my remote control using irexec. But the important part is:

After starting mythfrontend:

Code:
dconf write /org/gnome/settings-daemon/plugins/power/idle-dim-battery false
When ending

Code:
dconf write /org/gnome/settings-daemon/plugins/power/idle-dim-battery true
There is also a "idle-dim-ac". It depends what system you are using! If not sure, you can disable them all.

This assumes dconf-tools installed!
Older ubuntu versions use gconf. XFCE has it's own tools and editors.

Code:
#!/bin/bash
PROGRAM="mythfrontend.real"

if ps x | grep -v grep | grep -v $$ | grep $0
then
        echo "$0 already running. Exiting"
        exit 1
else

##########################################
if ps x | grep -v grep | grep "${PROGRAM}"
then
    killall /usr/bin/mythfrontend.real
    sleep 1
    killall_ myth
    dconf write /org/gnome/settings-daemon/plugins/power/idle-dim-battery true
    exit 0
else
    mythfrontend &
    dconf write /org/gnome/settings-daemon/plugins/power/idle-dim-battery false
    #mythfrontend &
    exit 0
fi
##########################################
fi
The program also uses the following "killall_"-script for killing mythfrontend and service, which prevents to start over again:

Code:
#!/bin/bash
PROGRAM="${1}"

if [ ${PROGRAM} = "" ] 
then
	echo "Programname required."
	exit 1
fi

KILL="$(ps x | grep -v grep | grep -v killall | grep -v $(basename $0) | grep "${PROGRAM}" | sed 's/^\ //' | cut -d' ' -f1 | sed 's/ //g')"

if [ "${KILL}" != "" ]
then
	for killme in "${KILL}"
	do
		echo "Killing <9> process number $killme"
		kill -9 $killme
	done
else
	echo "Nothing to kill ..."
fi
Greets
Axel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Screensaver with GNOME brianre001 Linux - Software 1 11-11-2004 03:23 AM
Console screensaver won't disable jev-bird Linux - Software 0 10-13-2004 01:51 PM
Disable screensaver in slack 9.1 without any x or sth ice_world Linux - Newbie 3 06-06-2004 01:52 PM
How to disable screensaver for some applications ... legroschat Linux - Software 5 08-28-2003 02:49 AM
gnome screensaver ? BajaNick Linux - Software 0 08-01-2003 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration