LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-19-2007, 03:40 PM   #1
aslanprrrrrrr
LQ Newbie
 
Registered: Dec 2007
Posts: 10

Rep: Reputation: 0
xset startup script


Hello, I am new to the forums...

I have made a script called
dpmsoff

these are the contents

#!/bin/bash
xset dpms 0 0 0


I set the file to executable with this command

chmod +x dpmsoff

when I log in it does not pop up a text editor

but when I pull up xset -q to check it
it still is set with numbers on the dpms instead of
nulling it out...

Anyone have an idea what I may be doing wrong..
I am placing this file in my .kde/Autostart dir
Also I should mention if I run it like this
bash dpmsoff
it works...

Thanks for any help.

Last edited by aslanprrrrrrr; 12-19-2007 at 03:42 PM.
 
Old 12-20-2007, 08:42 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Hmm. It looks like it should work to me. I have a similar script in my Autostart folder and it works just fine. But I simply use 'xset -dpms' to disable dpms entirely. Is that what you're trying to do?
 
Old 12-21-2007, 06:19 AM   #3
aslanprrrrrrr
LQ Newbie
 
Registered: Dec 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Cool

well, I just decided to use kpowersave since inside the configuration you can set profiles to be 0 0 0 on the dpms which accomplished what I was trying to do...
I would still like to see a sample of how you disabled dpms in a script and which location you placed it...also include the filename so I will know how to name it and I am assuming you are making it executable?
Please reply...Thanks
 
Old 12-21-2007, 07:27 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It's no different than yours, really. I just put that command, and a couple of others, in a bash script and made it executable, then placed it in .kde/Autostart.

Quote:
$ ls -l ~/.kde/Autostart/xsettings.sh

-rwxr--r-- 1 david david 51 2007-11-26 02:40 /home/david/.kde/Autostart/xsettings.sh


$ less ~/.kde/Autostart

#!/bin/bash

xset -dpms
xmodmap ~/.Xmodmap
xhost +localhost
'xset -dpms' disables the dpms settings.
'xmodmap ~/.Xmodmap' runs the Xmodmap file that configures my multimedia buttons. There are probably better ways to run this, but this is the easiest for me.
'xhost +localhost' is to let root connect with the xserver for running gui apps. I use it for a script I wrote that has a pop-up information dialog.

As you can see, there's nothing special there. I see nothing to help shed light on your trouble, except, now that I think about it, that perhaps it uses the .sh extension on the file name to recognize it as a script. I've noticed konqueror recognizes file associations primarily by extension, so perhaps it's the same here. Might be worth a try.
 
  


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
xset Jeebizz Slackware 4 08-11-2006 09:03 PM
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
xset is unable to open display from within bash script copolii Linux - General 3 10-22-2005 06:26 PM
xset -dpms and xset s off ericcarlson Fedora 1 10-01-2004 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:48 AM.

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