Lock screen + turn off monitor

So I'm currently using slock to lock the screen, and It's working perfectly: I press the hotkey, the screen blanks and doesn't come back on until I've entered my password.
Is there any way to do exactly the same thing but with the screen turning off? The command "xset dpms force off" but it comes back on at the slightest touch and I'd like it to stay off until the password is entered.
thanks!

Geissler wrote:2. The screen doesn't stay off until a password is entered, only until it detects user input, at which point you can only turn it back off by executing the command once more.
I use a simple script for slock and dpms handling:
( slock && xset dpms 0 0 60 ) &
xset dpms 0 0 2
xset dpms force off
This essentially turns off the monitor after 2s while running slock and restores the dpms timeout setting (60s) after slock terminates.

Similar Messages

  • Log in screen appear after Mac goes to sleep even if screen lock is turned off.

    Log in screen appear after Mac goes to sleep even if screen lock is turned off. This happens usually but not always. Using Yosemite, 2 year old iMac. This has only started to occur recently and it happened in Mavericks also.

    Howdy stkh,
    You may want to check the General pane of the Security & Privacy System preferences to make sure that the Require password...after sleep or screen saver begins is not checked. See this article for reference -
    OS X Yosemite: General pane of Security & Privacy preferences
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • [SOLVED] Screen turns off on boot at "Loading ACPI Modules"

    So, I have been using arch for some time and am really liking it so far.  It has replaced Windows on my desktop and am planning to install it on my laptop when I get a chance.  I showed my parents some audio apps that run under Linux, and they suddenly wanted arch too!   I decided to install arch on their desktop, so after migrating Windows to a larger hard drive, I installed arch onto the remaining space...  Everything seemed fine until I tried to boot into the new system.  Once it reaches "Loading ACPI Modules" the screen turns off and refuses to turn back on.  I have tried everything I could think of (booting into the LiveCD again and running pacman -Syu on the new install, swapping the monitor to a different video port, reinstalling arch) and some solutions I found on the forums (adding acpi=off, noapic, nolapic_sound to the boot line.)  The latter made the boot skip ACPI, but the the screen blanks on "Waiting for udev events to be processed"!  I'm thinking it might be something to do with the video card (an old Radeon X1300 AGP) but I don't know what to do to fix it...  The system doesn't lock up, as even after it blanks I can log in and push Ctrl-G to make a terminal beep!  I've tried everything I can think of...  If this doesn't work I'll probably try another distro on that machine.  The system is:
    Intel D845WN Motherboard
    1GB PC133 RAM
    2.2Ghz Celeron Processor
    Radeon X1300 AGP card
    Sound Blaster Audigy PCI card
    USB 2.0 PCI Card
    PCI NIC
    Thanks in advance for any advice!
    EDIT:  Actually, I think it does lock up, as I don't have to hold down the power button to turn it off after the screen blanks.
    EDIT AGAIN: Thanks, adding "radeon.setmode=0" worked like a charm!  I knew that card was a bit wacky, but I didn't think it would stop the system from booting...
    Last edited by Fwirt (2009-10-12 23:24:27)

    ok, seems it's the  automatic kernel mode setting (KMS) that causes this see:
    http://wiki.archlinux.org/index.php/ATI … _.28KMS.29
    to get the system to boot, go into the grub menu, edit the boot option (i.e. press 'e') then edit the line that looks like
    kernel /vmlinuz26 root=...
    and add
    radeon.modeset=0
    at the end of it. Then your system should start fine. Now add this to the corresponding line in /boot/grub/menu.lst
    greetings
    Indriði

  • [SOLVED] How to turn off monitor at CLI

    Hi
        I've been trying to find a way to turn off my monitor, but the solutions I've found were almost all for X environment.
        The best hint I've got was add following lines to /etc/rc.local:
    setterm -blank 1
    setterm -powersave on
    setterm -powerdown 1
    With that, monitor was suppose to blank screen after 1 minute and, after another 1 minute, shutdown. But it only blanks and nothing more. Without the first line: "setterm -blank 1", it just don't do anything.
        Does anybody has idea of what else should I try?
        Thanks in advance.
    Last edited by vinicius (2009-02-27 02:48:43)

    Hi, Nezmer
    Even with aliases, I would have to type von with monitor turned off.
    I've done a script, witch is not a perfect solution, but works fine.
    monitor_off:
    #!/bin/bash
    # Check if X is running or not, turn off monitor, #
    # wait for a key press and turn it on again. #
    grep_result_file=$PWD'/x_running'
    # Check if X is running.
    ps -e | grep -e "\bX\b" > $grep_result_file
    ps -e | grep -e "\bxorg\b" >> $grep_result_file
    ps -e | grep -e "\bxserver\b" >> $grep_result_file
    ## If you want to check result file, uncomment following lines.
    #echo "===== $grep_result_file - begin ====="
    #cat $grep_result_file
    #echo "===== $grep_result_file - end ====="
    if [ ! -s $grep_result_file ] || [[ $(tty) =~ tty ]] || [[ $(tty) =~ vc ]]; then
    echo 'Detected X not runnig or you are at console...'
    if [ $UID -ne 0 ]; then
    echo 'You need super user privileges to run this script at console.'
    echo 'Rerun as super user or start X and run from a terminal.'
    exit 0
    fi
    turn_off='vbetool dpms off'
    turn_on='vbetool dpms on'
    else
    echo 'Detected X running...'
    turn_off='xset dpms force off'
    fi
    echo 'Turning off monitor...'
    $turn_off
    echo 'Waiting for a key press...'
    read -n1 -s
    echo 'Turning on monitor...'
    $turn_on
    rm $grep_result_file
    echo 'Finished: monitor_off'
    It checks if X is running or not because at X environment vbetool was a little slow, at least for me.
    That's it!
    I hope this could be useful for someone else.
    Thank you for helping, guys.
    Vinícius
    P.S.: I'm setting this thread as solved, but any suggestion about the script is welcome.

  • Screen turns off immediately when setting systemIdleMode to NORMAL after having been in KEEP_AWAKE

    I've found a little issue in Android...
    In my application I download some files the first time it's run. Since it takes a couple of minutes without user input, the screen turns off automatically. I've found some tablets not only turn off the screen but also interrupt the download altogether when going to sleep, so to avoid this I'm using this to prevent the screen from turning off (is there any other workaround to prevent downloads being interrupted by sleep?):
    NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
    Of course, I've also added the WAKE_LOCK and DISABLE_KEYWARD permissions to my app descriptor, so the above code works. The problem is that I don't want the app to stay awake all the time, so after the download finishes, I'm setting the screen back to normal with:
    NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.NORMAL;
    But after executing that, the screen goes off immediately, instead of waiting for a minute or so before dimming the screen. It's as if the dimming was triggered already during the download process, but didn't actually happen because of the KEEP_AWAKE setting, and then when switching to NORMAL, the screen dimming takes place immediately so it turns off.
    Is this an intended behaviour or should I file a bug?
    How can I manage to set the systemIdleMode to NORMAL but still have the screen on waiting a bit before going to sleep? Turning off the screen as soon as the download is finished is confusing for the user, who might think the app has frozen when it's really just in sleep mode (and the user has to unlock the screen before going back to the app).
    This happens in just about any version of AIR 3.x (and probably below).
    Also, it happens in iOS as well, but it's less dramatic because the screen just dims a little (app is still visible) when setting systemIdleMode to NORMAL, instead of turning off completely and locking the screen, which is the behaviour in Android.

    undereyes wrote:
    this work with iOS 6.0, me app lock
    What do you mean? That it doesn't happen in iOS 6.0 anymore? What do you mean with "me app lock"? Please, elaborate

  • GT70 BSOD or Stuck after Windows puts it to sleep mode of turns off monitor

    Hi Everyone!
    i have an  issue (or 2) with my laptop.
    both happens when:
    1) whenever i put the laptop into sleep mode or either windows does so automatically (inactive period), - the laptop will go to sleep just fine.
    2) windows turns off monitor after a period of inactivity. (sleep mode due to inactivity was disabled in this case)
    in both the cases i mentions above, if i wake the computer within lets say 5 minutes, it'll turn on just fine.
    but after a certain period of time passes it wont.
    with the sleep mode, the computer will wake and will then produce a BSOD STOP error 0x4 and restart.
    with monitor turned off it'll simply wont turn on, not responding to neither keyboard, mouse or power button. - i have to do a hard reboot
    any ideas?
    anything i can check?
    note the laptop just came back from a warranty repair, so all parts have been tested and been found ok!
    system specs:
    MSI GT70-0ND
    CPU: Intel Core i7-3630QM 2.4GHz (Intel GPU HD 4000 included)
    Memory: 16GB DDR3
    Storage: 750GB HDD 7200rpm
                   128GB SSD (Patriot Pyro SE) - OS installed on this.
    GPU: 4GB NVIDIA Geforce GTX 675MX
    OS: Windows 7 64bit
    Thanks in Advance!!

    i dont think i have the same problem as in the other thread.
    my bios:
    my laptop doesnt restart when my screen is turned off and i try to wake it. it would simply wont wake up.
    and my BSOD happens only after i wake the laptop from sleep mode and only if it been in sleep mode for a while. meaning i if i wake it up within a few mins of going to sleep it'll boot justfine.

  • Hp pavilion 15 screen turn off for few second when i turn on or off charger

    Hello,
    I bought new hp pavilion 15. i notice many time when i turn on or off my charger, screen turn off for few second then after few second screen turn on. please help me out its furstating me . 
    This question was solved.
    View Solution.

    >> It is customary and in this case Necessary for you to provide the exact model of Notebook you have a problem-with. [ There are MANY variations of HP Pavilion 15-T Models, for example. ]
    >> You should always be sure you have installed/applied ALL updates for all of your Notebook's hardware devices, and ALL Windows Updates labeled "Important" and ALL "Optional"-section Windows Updates for any hardware device in your Notebook which the Windows Updates service detects (and offers an Update for).
    >> For example, this link:  http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4158&lc=en&cc=us&dlc=en&sw_lang=&product=6787... has the latest HP Drivers and Patches for a specific variant of the Pavilion 15-T.
    >> AFTER you are certain you have all the latest drivers and patches in-place, you can try the 'old Trick' as follows: Shutdown Windows; when your Notebook has turned-Off completely (after Shutdown completes), THEN remove the AC Adapter connector and remove the BatteryPack.
    >> Hold DOWN the power-button continuously for a full 62 seconds. Then put your BatteryPack back in your Notebook. Do NOT connect your AC Adapter yet. Power-On the Notebook and Logon into Windows. Check the Control Panel\Power Options settings and find out the Charge Level of your BatteryPack. If it is below 25%, then (and only then) plug in your AC Adapter and connect it to your Notebook... and let the BatteryPack charge up "completely" to 98-100% Level. *Note: if your Adapter has a removable AC cord-connector, be certain that connection is 'tight'. <Do NOT stick your fingers or ANY object into any AC Adapter!> If you even think your AC Adapter is faulty, GET A NEW ONE! Damaging a $400-$800 Notebook PC is NOT worth it, versus the cost of a New Adapter.
    >> Use the built-in Help functions of your Notebook to find out how to DISABLE(!) "Hibernation", and eliminate that TROUBLE-CAUSING 'feature' of Windows PCs. When you have done so, always REStart Windows, to be certain the changes are applied. *Many changes and Updates take place 'Fully' only "during" Shutdown and/or "during" Startup of Windows PCs. [While Windows O.S. is "running", most of it's System Files are LOCKED.]
    >> FYI: always let your BatteryPack run down to it's Lower setting BEFORE you plug-in your AC Adapter/Charger. Charging  any rechargeable BatteryPack at  "mid-charge-levels" causes shorter BatteryPack life...

  • C6-00. Screen turns off, but touch sensor still wo...

    in normal mode (non physical keyboard mode), i use it, everything works fine..
    but in physical keyboard mode, once slide it, a few secs later, the screen turns off.. i tried to use the lock button at the side to turn it on back, but, nothing happens, i have to slide n lock unlock it many times to get it turned on again.( BUT SOMETIME, WHEN I SLIDE IT, EVERYTHING WORKS NORMALLY!)
    when this thing happen, even in normal mode, i cant revive it back... i take out my batteries, put it back, start, it still doesnt turned on. but with "some miracle", sometimes it does turn on back.. but when i go to keyboad mode again... screen turns off.. same **bleep** happens.
    anyone face the same problem?
    "what do you mean by touch sensor still works?"
    -when the screen turns off(at home screen), i press at the "contact" at bottom right of the screen, the phone does vibrate. proves that the touch sensor works.
    fyi, i've tried,
    7370
    7780
    shift + space + del.
    these 3 formatting methods just doesnt get this thing back to its normal condition again.
    sigh. lost trust in nokia

    It is the latest v 20.0.042. In fact, I already reinstalled the firmware again and did a hard reset *#7370# but problem is still there. The display is totally off now either in vertical or horizontal keyboard mode, I have to slide the keyboard a little and hold it there to get the display back, it is too tiresome and is unacceptable. So I highly suspect the it is the sliding keyboard that causes the display problems.
    I went to Nokia Care and they said that this phone is no longer under warranty. I will have to pay a substantial amount of money to have them repair it. This sucks

  • Yoga 2 13 Tablet Screen turns off when in Tablet Mode

    I just bought my Yoga 2 13, when I flip it to Tablet mode, the screen turns off. Apparently it goes to sleep. When I open it it turns on again. Do I need to do any adjustments? or is this a defect?

    Try updating your drivers first: http://mobilesupport.lenovo.com/us/en/products/lap​tops-and-netbooks/yoga-series/yoga-2-13-notebook-l​...
    If that does not help, try a factory reset:
    1. Turn off your Yoga 2 13
    2. Press the tiny button next to the power button on the right
    3. Follow instructions to perform a factory reset
    If none of the above attempts have helped you, it is probably a hardware issue.
    Jonas
    Microsoft MVP: Windows Consumer Expert
    Yoga Tablet 2 10 || ThinkPad X1 Carbon (20A7007MPH) || ThinkPad Helix (3698-6EU) || IdeaCentre B540
    Twitter: @jonashendrickx

  • I downgrad my iphone from ios5 to ios 4.3.3 and after restoring the ios 4.3.3 i fixed all itunes error but after that my i phone screen turned off and the apple logo didnt shows up any more what ever i did my iphone model 4 gsm

    i downgrad my iphone from ios5 to ios 4.3.3 and after restoring the ios 4.3.3 i fixed all itunes error but after that my i phone screen turned off and the apple logo didnt shows up any more what ever i did my iphone model 4 gsm and fyi  i try all the ways to turn it on but it didnt sucsses

    roaminggnome 
      thanks for helping but i didnt know that is the downgrade is forbidden  and i ask for help and u didnt help me so i just want to thank u for telling me that is the downgrade is forbidden >>> but now i didnt have i phone any more so thank u so much again >>>> 

  • Black screen/turns off random bootcamp windows 7

    I have a imac 27" mid 2010 and i am using windows 7 x64 ultimate on bootcamp (3.3 and later 4.0) from snow leopard to lion, i have
    recently upgraded my mac with mountain lion.
    But after i did upgrade to mountain lion a day later my screen in bootcamp goes black/turns off. I can sometimes hear the sounds when it happens.
    The black screen/turn off, is also randomly so its not happening when i do something or opening something. So after a few black-outs i started to get fustrated and i surfed the web for solutions (Option + Alt + P + R), disconnect power cord wait 10 seconds and reconnect, install/uninstall new drivers, reinstalling windows. reinstalling mountain lion and windows but the problem is stil there.
    But when using mountain lion i dont have any problems everything works fine.
    I think that mountain lion has changed something to the firmware or bios of the system, or changed something to bootcamp?
    I really dont know, the only thing i know is i cant use windows as i normally did, and my boss isnt happy when i dont finish my work.
    I really need some answers and solutions.
    Thanks

    Same problem occuring for me, although Windows 7 boots fine in safe mode but when booting in regular mode after the lauch screen it goes black and turns off. Funny thing is that mountain lion didn't seem to be the problem for me instead I believe windows updated it's software for me and then it started happening. Im going to try and reformat partition reinstall windows 7.
    oh BTW I'm on Macbook Pro x Retina Display.

  • Screen turns off after a few minutes and needs to be closed then opened

    hi, as the title suggests my powerbook screen turns off after a few minutes before my screensaver is set to come on and when i come back and press a key or move the pad it wont start up so i need to close the powerbook then open it up again for it to activate. its not a huge problem but my programs which connect to the internet seem to lose their connection when i open it up again. is this normal? is there a setting i can change?
    thanks
    ross

    Is there a way to "disable" Standby, Suspend and Off just when watching movies (in fullscreen or not)? I want them to do what they usually do in all other cases.
    Setting them to 0 in xorg.conf does the thing, but I need that functionality only when I'm wathing movies. Making a script that alters adjustments in xorg.conf isn't the best solution - you'd have to restart X every time you want to watch a movie .
    Cheers,
    Daniel

  • S890 screen turns off while playing games

    I bought this phone a week ago.Everything about this phone is awesom except one thing. The screen turns off while playing games automatically,which is really annoying. Is there any fix for this??

    Graphics card springs to mind;
    also, in your game settings, in either options or video settings (or similar). Are the settings correct for your card. I know on a low end PC, "full hardware acceleration" can cause crashing.
    I'd still think, it's more a graphics related problem. If you have a big flat screen mintor (e.g 24,27 or even 30") then that, in it's own right needs a good card. Add the game to it and you may have problems. I do take it you have compared the specs with what's required on the box (of the game) and "about this mac/"more info"). All the best.

  • When screen turn off, my song also turn off.

    I bough ipod nano (for my watch) but during I listen music when screen turn off the song will turn off also.
    What's wrong.? In the beginning is no problem I can listen non stop music.
    After I try to update version (currently my ipod version 1.1) but seem not success yet.

    Where you restore? On ipod?
    Pls sync with iTune then go to summery tap
    and click Restore.

  • Early 2011 Macbook Pro screen turns off/on

    I was listening to music and doing some homework when the screen turned off and then turned back on. The computer wasn't hot at all when it happened. The music also stopped when it happened. After a few seconds it turned back on and everything went back to normal, I had sound and everything. I'm not exactly sure what happened, battery was at 87% so I'm sure it wasn't that. This is the first instance of it happening. If anyone has any advice or knows anything I could do to ensure it doesn't continue or get worse it'd be very much appreciated.

    I thought it might have been an update that triggered it, but I guess not.  It could be your hardware, but I would try to dianose software reasons first.... such as something else you were running that triggered a resolution change.  Whats involved in "doing your homework"?

Maybe you are looking for

  • HT204150 lost all contacts in i cloud, dont remember my id and password

    i lost all my contacts on my i cloud. how can i get it back?

  • Error Unable to fetch authentication_scheme

    I have imported a HTMLDB application into a new workspace. When I try to run the application I get the error: Error Unable to fetch authentication_scheme in application 100 I need to be able to use this application with other workspaces (the schemas

  • Instantiate MXML component in actionscript - percent sizing issues

    Hey guys, I'm busting my head trying to sort out this issue. I have a MXML custom component which is being instantiated in actionscript, e.g.: component:CustomComponent = new CustomComponent(); The custom component extends Canvas (i.e. the root XML t

  • GUI programming in java

    Is there any method on toolkit class that centers the window on the user's desktop?

  • What is XI

    Hi all, I am working as a ABAP Developer and I would like to know about XI. What skills I need to learn XI? Will my experience in ABAP helps me to learn XI? Do I need to learn J2EE? Experience in cross applications like ALE/IDOC AND RFC will help? Pl