Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-12-2015, 06:41 AM   #1
Registered: Oct 2011
Posts: 59

Rep: Reputation: Disabled
bash script for xfce4 powermanager settings switching forth and backward

i need a bash script to switch to zero second on ac the waiting time for turning off the monitor (highlighten in red). same as for on battery (highlighten in purple)

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-power-manager" version="1.0">
  <property name="xfce4-power-manager" type="empty">
    <property name="power-button-action" type="empty"/>
    <property name="show-tray-icon" type="empty"/>
    <property name="logind-handle-lid-switch" type="bool" value="true"/>
    <property name="dpms-on-ac-sleep" type="uint" value="1"/>
    <property name="dpms-on-ac-off" type="uint" value="2"/>
    <property name="brightness-on-battery" type="uint" value="9"/>
    <property name="dpms-on-battery-sleep" type="uint" value="1"/>
    <property name="dpms-on-battery-off" type="uint" value="2"/>
    <property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
    <property name="dpms-enabled" type="bool" value="true"/>
Old 03-13-2015, 02:52 PM   #2
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
You have marked this topic as solved. Please post your solution, so that others may benefit from it.
Old 03-15-2015, 03:45 AM   #3
Registered: Oct 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
to switch on
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-on-ac-off -s 2 | xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-on-ac-sleep -s 1 | notify-send -i gtk-dialog-info "Powersaving enabled"
to switch off
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-on-ac-off -s 0 | xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-on-ac-sleep -s 0 | notify-send -i gtk-dialog-info "Powersaving Disabled"


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
[SOLVED] Bash script not running properly on XFCE4 startup BridgeTheMasterBuilder Linux - Software 2 07-30-2014 12:20 PM
[SOLVED] Bash blues... Need help with simple script to control xrandr LVDS settings captdavid1949 Linux - Newbie 4 09-06-2013 08:39 AM
switching user with bash script Gil@LQ Linux - Software 1 01-14-2012 08:45 AM
XFCE4 Settings Manager missing an icon edwardp Debian 18 03-16-2011 11:28 AM
Shell script to extract single report by pattern, then both backward and forward ykheong Linux - Newbie 8 02-22-2010 01:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 PM.

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