Does anyone know to check via SSH or bash script whether or not my laptop has "fallen asleep". For some reason whenever my laptop falls asleep my drawings (on /dev/fb0) are over ridden by the framebuffer terminal (yes I've tried turning this off but then my drawings are just overridden by a black screen) when I hit the space bar or something and my computer wakes up.

Any help would be appreciated!

  • Why do you need a script to know whether your computer is asleep? – John Militer May 2 '16 at 23:46
  • Like I described above, when my computer falls asleep and I wake it up for some reason all the fb0 art that I drew gets overriden by the framebuffer terminal. And incase you suggest I disable the framebuffer terminal, I have already tried that and my fb0 art still went away, I want to know when my laptop falls asleep so I can re-draw the image when it wakes up. – ktb92677 May 2 '16 at 23:48
  • 1
    You should change the address of the fbo art to a different address. – John Militer May 2 '16 at 23:53
  • 1
    Hmm, could you explain how that would help? – ktb92677 May 3 '16 at 0:02
  • /dev/fbo is in /dev which is for disc files. Either it is taken by the system, or the system "cleans up" /dev when it falls asleep. – John Militer May 3 '16 at 0:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.