1. Welcome to NoFap! We have disabled new forum accounts from being registered for the time being. In the meantime, you can join our weekly accountability groups.
    Dismiss Notice

How to block the laptop screen after 10 pm???

Discussion in 'Self Improvement' started by SREENII, Dec 20, 2019.

  1. SREENII

    SREENII Fapstronaut

    221
    684
    93
    hello..for the past few months i was using laptop till 2 am everyday..it badly disturbed my sleep pattern..now even if i try to sleep early..i feel so much irritationand couldn't sleep and have a tendency to open the laptop and use it till 2am..please suggest a method to stop this..is there any password protected screen blocker softwares that can block the laptop screen after a particular time at night??
     
    xjosamx, Force Majeure and brownie17 like this.
  2. Try softwares like COLD TURKEY.
     
    kimsin and SREENII like this.
  3. NaivePanda

    NaivePanda New Fapstronaut

    3
    35
    13
    I use Blocksite.co because it blocks out the popular porn websites and you can pick what websites you want to block. Like if you go on youtube until 2 am you can use blocksite.co and it can prevent you from going on youtube and if you don't want to always have a website blocked you can make a schedule on blockedsite for when you can go on the website.
     
  4. SREENII

    SREENII Fapstronaut

    221
    684
    93
    i'
    m already using effective parental controls that block all websites except the websites i really wanted..but the problem is i developed a habit of watching normal movies in laptop till latenight..so i need a screen blocker that prevent me from using laptop after 10 pm till 5am
     
  5. brownie17

    brownie17 New Fapstronaut

    3
    2
    3
    Hello, friend. I think you should want to go to bed early first. It takes force of will. To put the computer aside in time. Try to read a book before going to bed, it relaxes. And go to bed before 12, this is the main rule of healthy sleep.
     
  6. brownie17

    brownie17 New Fapstronaut

    3
    2
    3
    Oh, I didn't even know there were software for this.
     
  7. I think you have to realise it’s not in the computer the switch has to be, it’s in your mind.

    Do you use a mac? I have a script that puts the computer in sleep mode once every minute after a certain time. This works as a good reminder to stop using the computer but if you’re looking for something that’s impossible the get around, you should consider developing a good amount of self-discipline instead.
     
    SREENII likes this.
  8. SREENII

    SREENII Fapstronaut

    221
    684
    93
    Force Majeure likes this.
  9. HegHeu

    HegHeu Fapstronaut

    311
    235
    43
    Well I am in a similar situation and my time has increase till 3AM but one thing I and u should probably do is try to exercise the duck out in noon time will also prevents naps. Then try to sleep like half or an hour early and destress yourself before sleeping. U can slowly get back to the time u want to sleep at.
     
  10. If you're interested in the suspend-script, just tell me and I will write a short tutorial on how to set it up. It only works on mac though (and on linux with some small modifications)
     
    SREENII likes this.
  11. SREENII

    SREENII Fapstronaut

    221
    684
    93
    i'm using windows 10..is there any script that works on windows??
     
    Force Majeure likes this.
  12. I have no idea, haven’t been using Windows since Windows 98 ;)
     
    SREENII likes this.
  13. Im interested!
     
    Force Majeure likes this.
  14. xjosamx

    xjosamx Fapstronaut

    183
    221
    43
    I don't think a software is what you need. That is just a quick fix but you will fall back into this habit once you remove the software from your computer.
     
    SREENII likes this.
  15. CodeTalker

    CodeTalker Fapstronaut

    775
    1,219
    123
    I bought a WiFi access point and set him up so that it goes off after a certain time. The thing is, I can’t access the WiFi settings if the WiFi is off. So I can’t revert it until the next day.
    I did work and prevented me from some pmo.
     
    SREENII likes this.
  16. SREENII

    SREENII Fapstronaut

    221
    684
    93
    it's ok..i have a purpose..i'm currently using laptop mainly for my studies..after getting a job..i'll soon sell the laptop and start an offline life..till then i should have a control in my laptop use.
     
  17. Ok, here it comes!

    Open up a terminal (cmd+space, type terminal) and run the following command:
    mkdir -p ~/bin && echo -e '#!/bin/bash\n\n[[ "$(date +%H:%M)" > "22:22" ]] || [[ "$(date +%H:%M)" < "04:30" ]] && pmset sleepnow' > ~/bin/nightshift && chmod a+x ~/bin/nightshift

    This will create a script called nightshift in a directory called bin, located in your home directory. Tweak the timestamps according to your needs. The line above will suspend the computer if it is executed between 22:22 and 04:30, so the next step is to make it execute automatically. You can do this by adding a line in your crontab file:
    run the command
    VISUAL=nano crontab -e
    This will open your crontab file in a "nano" text editor. Paste the following line:
    * * * * * /Users/YOUR_USER_NAME/bin/nightshift
    (replace YOUR_USER_NAME with your user name)
    Save the file by hitting ctrl+x, followed by "y" and enter.

    Done! If you ever want to modify the times you can edit the script in any editor, like TextEdit or so. If you want to disable the script, add a "#" before the command in the file.

    Hope it woks, get back to me if you have any questions... :)
     
    Optimum Fortitude and SREENII like this.

Share This Page