[kde-linux] power saving thru reboot

Doug dmcgarrett at optonline.net
Mon Aug 5 23:03:49 UTC 2013


On 08/05/2013 04:52 PM, Pablo Sanchez wrote:
> [ Comments below, in-line ]
> 
> On 08/05/2013 04:35 PM, Doug wrote:
>>
>> Please provide more detail. I need to know in what directories to put
>> the script(s). I have tried in /root/.kde4/Autostart and in
>> /etc/skel/.kde4/Autostart (both at once), putting the commands
>>
>> xset dpms 600 900 0
>> xset +dpms
>>
>> which works until reboot, and then it doesn't, and the commands don't
>> carry forward either.
>>
>> Does it matter what the name of the script is?
>>
> 
> Hi Doug,
> 
> The script name doesn't matter.
> 
> I don't know what you mean `the commands don't carry forward either'
> 
> If I were you, I'd do the following.
> 
> First, open a terminal window.  Next, type `mkdir ~/bin'  This command 
> may fail if the directory `bin' exists under your HOME directory.  So 
> ignore the error.  :)
> 
> Change your current directory to ~/bin:
> 
>     $ cd ~/bin
> 
> Create the shell script with your commands - I fixed your calls from above:
> 
>     $ cat > set_screen_settings <<EOF
> xset -display :0 dpms 600 900 0
> xset -display :0 +dpms
> EOF
> 
> Set the shell script's execution bits:
> 
>     $ chmod +x set_screen_settings
> 
> Now, instruct KDE to execute the script at login:
> 
> o Personal Settings > Startup and Shutdown
> o Click `Add Program ...'
> o Type in the full path to your shell script:
> 
>       /home/USER/bin/set_screen_settings
> 
>    where USER is your user name.
> 
> o Click `OK' in the `Properties ...' pane
> o By default, you should see the `Status' checked so it reads `Enabled'
> 
> You can log out and log back in to set it or you can run the command 
> manually via a terminal window:
> 
>     ~/bin/set_screen_settings
> 
> Cheers,
> 
I thank you! I haven't done it yet, but it sounds like you know how!
I'll definitely do that this evening.

--doug

-- 
Blessed are the peacemakers..for they shall be shot at from both sides.
--A.M.Greeley



More information about the kde-linux mailing list