Hi I'm trying to run this script which closes the screen when calling the script.
Script code:
#! / Bin / sh position = `xset -q | Grep is "Monitor" | If the exit exset dpms closes the force when the exset dpm is off 0 but when I call the X error of the unsuccessful request : Invalid management (invalid parameter attributes) main objection of unsuccessful request: Short opcode of 142 (DPMS) unsuccessful request: 6 (DPMSForceLevel) serial number of unsuccessful requests: 10 Current serial number in output stream: 12
#! / Bin / bash export DISPLAY =: 0.0 if [$ # -EC 0]; Then use echo: $ (original name $ 0) "exit | stop | status" exit 1fi if [$ 1 = "off"]; Then Echo-A "Monitor Turning Off ..." Close the Exset DPMS Force -a "done. \ NCheck:" Excerpt -C | GRP "Monitor" Alif [$ 1 = "" "; Then Echo-A" Monitor On ... ... "Exclamation -A" on Exset Dpms Force " Check \ N: "Exset -e | GRP" Monitor "is Elife [$ 1 =" status "]; then use xset -q | sed -ne 's / ^ [] * monitor // p' else echo: $ (Original name $ 0) "on | Off | Status "F here:
No comments:
Post a Comment