<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks, Andre, for all of those great
      tips.<br>
      <br>
      I've been looking at the Exec lines in several versions of
      ~/.config/autostart/LXRandR-autostart.desktop (created when one
      clicks Save in LXRandR) and thinking about how I could create
      something that would cause Fn-F7 to toggle through the LVDS, VGA
      and S-Video outputs, but your approach -- simply binding to
      LXRandR -- is a MUCH better idea!<br>
      <br>
      And if I wanted to add the ability to extend the desktop instead
      of mirroring it, I could install arandr and just bind to that
      instead.<br>
      <br>
      On 4/29/2014 3:18 PM, Andre Rodovalho wrote:<br>
    </div>
    <blockquote
cite="mid:CABLbVHNpSwtyPV9Tj6L=nJ4Kk-kcNNNsubbjpEOGG+fr1bMcMQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">I tested here, and it works: <a
          moz-do-not-send="true"
href="http://askubuntu.com/questions/181390/what-is-the-command-for-sleep-hibernate">http://askubuntu.com/questions/181390/what-is-the-command-for-sleep-hibernate</a><br>
        <br>
        <code><b>pm-suspend</b> and<b> </b></code><code><b>pm-hibernate</b></code><br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2014-04-29 16:13 GMT-03:00 Andre
          Rodovalho <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:andre.rodovalho@gmail.com" target="_blank">andre.rodovalho@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">On <span
                style="font-family:arial,sans-serif;font-size:13px">lubuntu-rc.xml
                I do:</span>
              <div><br>
              </div>
              <div>
                <div><keybind key="XF86Display"></div>
                <div>      <action name="Execute"></div>
                <div>        <command>lxrandr</command></div>
                <div>      </action></div>
                <div>    </keybind><br>
                  <br>
                  <b>lxrandr</b> deals with additional monitors, you
                  just enable them an apply.<br>
                </div>
              </div>
              <div>
                <br>
              </div>
              <div>I'm not sure what commands you can execute to sleep
                and hibernate, but you can control radio with <b>rfkill</b>.
                I'm not sure if those commands really require root
                access, but on that case you can do a: <b>gksu command</b></div>
              <div><b><br>
                </b></div>
              <div>Hope that helps! To test the shortcuts without
                restarting all the system you can restart only openbox:
                <b>openbox --restart</b></div>
            </div>
            <div class="gmail_extra"><br>
              <br>
              <div class="gmail_quote">
                2014-04-28 22:03 GMT-03:00 Israel <span dir="ltr"><<a
                    moz-do-not-send="true"
                    href="mailto:israeldahl@gmail.com" target="_blank">israeldahl@gmail.com</a>></span>:
                <div>
                  <div class="h5"><br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div>On 04/28/2014 07:48 PM, John Hupp wrote:<br>
                        > I was trying to watch Netflix on a laptop
                        (with Lubuntu) connected to<br>
                        > a TV by S-Video connection.  I found out
                        that Fn-F7 was not working to<br>
                        > select the external VGA or S-Video
                        displays.<br>
                        ><br>
                        > Subsequently I found that Fn-F4 does not
                        put the laptop to sleep, and<br>
                        > Fn-F5 does not toggle the WiFi radio
                        on/off.  (The other common<br>
                        > special keys work OK.)<br>
                        ><br>
                        > So I'm trying to get those keys working
                        that way via entries in<br>
                        > lubuntu-rc.xml.<br>
                        ><br>
                        > With 'xev -event keyboard' I found out that
                        Fn-F7 produces the keysym<br>
                        > 'XF86Display' but I still need to know what
                        command to bind that to.<br>
                        > So that's my first question.<br>
                        ><br>
                        > Fn-F4 and Fn-F5 does not produce any
                        keysym's, so I'm currently at a<br>
                        > loss for how to proceed next with those.<br>
                        ><br>
                        ><br>
                      </div>
                      Hi,<br>
                      <br>
                      you can use arandr to make a shell script to
                      switch the display to a<br>
                      certain mode.  Plug in the monitor and use arandr
                      to make a setup you<br>
                      want, and save that.  Then open your config file
                      for openbox and set<br>
                      the keyboard shortcut for your display key (i.e.
                      XF86Display)<br>
                      to execute the<br>
                      <command><br>
                      /bin/bash /path/to/scriptname.sh<br>
                      </command><br>
                      while scriptname.sh is whatever you saved the
                      setup as with the correct<br>
                      path.<br>
                      <br>
                      arandr is a front-end for xrandr.  So the script
                      is actually using<br>
                      xrandr to modify your display settings.<br>
                      <br>
                      I hope this helps.<br>
                      <span><font color="#888888"><br>
                          --<br>
                          Regards<br>
                        </font></span>
                      <div>
                        <div><br>
                          <br>
                          --<br>
                          Lubuntu-users mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:Lubuntu-users@lists.ubuntu.com"
                            target="_blank">Lubuntu-users@lists.ubuntu.com</a><br>
                          Modify settings or unsubscribe at: <a
                            moz-do-not-send="true"
                            href="https://lists.ubuntu.com/mailman/listinfo/lubuntu-users"
                            target="_blank">https://lists.ubuntu.com/mailman/listinfo/lubuntu-users</a><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>