Disable turn off screen while youtube is watching

I want disable screen blanking if I am watching something in fullscreen(eg YouTube).
If I watching movies in offline player (VLC) there is no problem, screen not blanking. It happens when I watching online players like YT.
How can i fix them?

solamir wrote:
You can launch your browser by script:
#!/bin/bash
firefox &
while true
do
xdotool key shift; sleep 60
done
Xdotool will be pressing shift key once a minute. Сertainly package xdotool (from community) must be installed in your sistem.
http://xkcd.com/196/
solamir, if you want to paste a snippet of code, please use [ code ] tags
like this
It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Similar Messages

  • How to turn off screen while computer is on an hdmi tv/projector hook up

    How to turn off screen while computer is on an hdmi tv/projector hook up?

    Have you tried Clamshell Mode?
    http://support.apple.com/kb/ht3131
    Ciao.

  • Turn off screen while using Drive

    Hi,
    How can I turn off screen, to save battery, while using Drive? When I press power button, screen turns off, but I lose voice navigation.

    Hi karlo1020lumia,
    Welcome to the forum!
    What is the model of your device? If you're referring to the Nokia Drive application, this is a normal behavior. The screen must be active for the application to work properly. If your concern is about the phone's battery, you can check this link for the tips on how to prolong the battery life of the device:
    Battery - Making it last
    Hope this helps. Let us know the outcome.

  • Turn off screen while OS runs

    Hello
    Is there a way to turn off the screen of a Toshiba L300 19J while the system runs (plays music for example) ...?
    Thank you.

    But it can be programatically. Not only by OS... I thought Toshiba had an utility software for this.
    Monitor power can be controlled:
    SendMessage(ValidHWND, WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_STATE);
    Maybe I'll write a small app for this...
    Would be nice if Flash Cards could do this by default...
    Also i found an app specially for this porpouse: http://www.raymond.cc/blog/archives/2008/07/20/how-to-manually-turn-off-notebook-or-laptop-lcd-screen/

  • Turn off screen while apps run Need help

    I'm running the SiriusXM app to stream music but I don't want the screen to keep after I choose my station. Does anyone know of a way to blank the screen? Is there a setting so when there is no touch activity it goes blank?
    Also If you switch tabs it won't keep running the music in the background?  I have a choice tunes or surf but not both?
    Thanks
    I'm here you wish you were too

    You should be able to just tap the power button to turn off the screen.  The app should keep running just fine. 
    If it doesn't, that's a problem with the app.  I also have a music app in the Android Market and it is possible for the programmer to grab what are called "sleep locks" to enable the screen to be turned off without losing required resources like WiFi and the CPU.  My app lets the screen dim, but not go off... however, the user can turn the screen off and the app keeps working.

  • Macbook: Turn off screen while streaming audio

    I want to use my macbook for an input in my audio system. I am going to stream audio, but because I intend to use it in a darkened room, I wish to be able to make the screen shut off. Is there a command to do that or another way to do it?
    Thanks.

    tritium11 wrote:
    I want to use my macbook for an input in my audio system. I am going to stream audio, but because I intend to use it in a darkened room, I wish to be able to make the screen shut off. Is there a command to do that or another way to do it?
    Thanks.
    Yes, you can put the screen/display to sleep by creating a "Hot Corner"
    Open the Desktop & Screen saver Preferences, click Hot Corners (bottom left) and select one of the four screen corners and then select "Sleep Display."
    When you are streaming, just move your cursor to that particular corner and there you are.

  • My iphone 4 only turns on when its plugged into a wall and when it finally turns on it lasts for about a minute then it turns off and while its on the signal says searching, what should i do?

    my iphone 4 only turns on when its plugged into a wall and when it finally turns on it lasts for about a minute then it turns off and while its on the signal says searching, what should i do?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.      
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. You likely have a bad battery.
    Apple Retail Store - Genius Bar                       
    Apple will exchange your iPod for a refurbished one with a new battery for $79. They do not fix yours.
    Apple - iPod Repair price                       
    A third-party place like the following will replace yur battery for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the battery yourself if you are up to it. A replacement costs about $10
    iPod Touch Repair – iFixit

  • How to turn off 3G while open 2G for iphone 4s?

    How to turn off 3G while open 2G for iphone 4s?

    Apple removed the ability to disable 3G on the iPhone 4S. iOS 5.1 beta has added the switch back. Whether we'll see it in the final release is unknown. We'll just have to wait & see.

  • In ipad3 Facebook turn off itself while using

    I have iPad 3, while using Facebook app, the turn off itself while using, I have to restart it again, but agin and again it turns off.
    I dont know why????
    Any suggestions

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank then power ON again in the normal way.] It is 'appsolutely' safe!

  • MBP turning off randomly while on battery

    So my MBP keeps turning off randomly while I'm using battery, first few times it happened I thought it had just got to hot and turned off because of that. But after it happend a few times i noticed that its not even hot to the touch. Its happening what ever i am doing even when I have very low cpu usage like listening to i tunes, or just watching a movie.
    Any ideas what it could be?
    Thanks for any help you guys can give.

    I have the same problem. It is most likely the battery has become faulty or possibly damaged. Best to replace the battery or if you can call one of the genius' at the mac store.

  • Re: i was charging my iphone 3GS yesterday in electricity when once it turned off suddenly while it was in quarter battery. I tried charging it again but it didint open, i tried to plug it into my laptop but itunes didnt recognize it and it doesnt work.

    Re: i was charging my iphone 3GS yesterday in electricity when once it turned off suddenly while it was in quarter battery. I tried charging it again but it didint open, i tried to plug it into my laptop but itunes didnt recognize it and it doesnt work.

    Hello candymerna,
    At this point I would recommeng resetting the device if if will not turn on.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    From: iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
              http://support.apple.com/kb/ht1430
    If it does turn on, but will not charge then take a look at this part of the article iPhone: Hardware troubleshooting found http://support.apple.com/kb/ts2802
    Power/Battery
    Battery does not charge from the USB power adapter
    Important: Only original iPhone can be charged from a FireWire-based power source. If iPhone is connected to a computer that's turned off or is in sleep or standby mode, the battery may drain.
    Verify that the outlet being used is working.
    Try another USB power adapter if available.
    If no other USB power adapter is available, try connecting to a high-power USB 2.0 port (not a keyboard). The computer must be turned on and not in sleep or standby mode.
    Try another USB cable if available.
    Also refer to iPhone and iPod touch: Charging the battery.
    If it is charging, but not recognized in iTunes take a look at one of these articles depending on your Operating System.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    or
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591
    Cheers,
    Sterling

  • I was charging my iphone 3GS yesterday in electricity when once it turned off suddenly while it was in quarter battery. I tried charging it again but it didint open, i tried to plug it into my laptop but itunes didnt recognize it and it doesnt work. help

    i was charging my iphone 3GS yesterday in electricity when once it turned off suddenly while it was in quarter battery. I tried charging it again but it didint open, i tried to plug it into my laptop but itunes didnt recognize it and it doesnt work. help plzzz

    Hello candymerna,
    At this point I would recommeng resetting the device if if will not turn on.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    From: iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
              http://support.apple.com/kb/ht1430
    If it does turn on, but will not charge then take a look at this part of the article iPhone: Hardware troubleshooting found http://support.apple.com/kb/ts2802
    Power/Battery
    Battery does not charge from the USB power adapter
    Important: Only original iPhone can be charged from a FireWire-based power source. If iPhone is connected to a computer that's turned off or is in sleep or standby mode, the battery may drain.
    Verify that the outlet being used is working.
    Try another USB power adapter if available.
    If no other USB power adapter is available, try connecting to a high-power USB 2.0 port (not a keyboard). The computer must be turned on and not in sleep or standby mode.
    Try another USB cable if available.
    Also refer to iPhone and iPod touch: Charging the battery.
    If it is charging, but not recognized in iTunes take a look at one of these articles depending on your Operating System.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    or
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591
    Cheers,
    Sterling

  • How to turn off screen shot flash

    How do you to turn off screen shot flash?

    Have you tried Clamshell Mode?
    http://support.apple.com/kb/ht3131
    Ciao.

  • How to turn off screen on Macbook Air when connected to Computer LeD monitor?

    How to turn off screen on Macbook Air when connected to Led monitor screen?

    The only way you can turn it off is to close the lid - so you would need an external wired or wireless keyboard and mouse/trackpad attached.
    Matt

  • Turn-Off screen keeps coming up - maybe broken sleep button?

    hey there,
    i got my 3gs on saturday (t-mobile, germany) and it worked great for exactly one day. on sunday i noticed that the phone woke up from time to time showing the turn off screen, which usually appears if you hold down the sleep button for some seconds (red slider at the top).
    after that, the same screen popped up more often, it even interrupts other actions by appearing on top of applications like phone or mail.
    sometimes the phone will make a screenshot of the current screen if i push the home button, so it seems like the sleep key is stuck.
    the phone has no visible damages, the button looks normal and doesn't act jammed.
    all this happens unpredictably so i can't reproduce it, but its happens pretty often by now and is anoying as ****
    i tried restarting the phone, resetting the prefs, resetting everything, restoring in via itunes etc.
    guess is have to send it back, i just wanted to ask for more ideas and leave a mark for other affected users.
    regards
    jan

    Bad news. I got my 3GS Saturday (6/27) at the local Apple Store. By Sunday morning, I noticed the "random" power off slider. Sometimes, the sleep switch works, sometimes it doesn't. It's gotten progressively worse...after less than 72 hours of ownership. I have a case open with Apple and a Genius appointment in 2 days. In the meantime, I suggest you DO NOT power off your phone. Apple had me do a reset (for the 4th time) and the phone would power down DURING the boot. After 10 minutes..and pressing NOTHING, it suddenly started up and ran. The sleep switch is virtually dead. The Apple rep mentioned something about "cracked circuit boards", but did not elaborate. I suspect something in the assembly process is trashing the board the switch is attached to.

Maybe you are looking for

  • Not able to generate Report

    hi, In matrix report as the Number of column field and row field are not certain how do I get to know or point to each column field value for particular row. Other details:- In simple matrix report with column field as 'Division No' and Row field as

  • Can I stream the audio from my AppleTV to my ITouch?

    I would like to be on the treadmill with my headphones plugged into the ITouch and not have to crank the volume up on the TV while whatching it.

  • Layout variants in Selection screen

    Hi All,     I have a requirement where i need to create a functinal key on selection screen'Disp Variant' and i need to provide F4 help when user click on button and when layout is selected the report should show the layout according to selected layo

  • Two Urgent Batch Processing Questions!!

    Q1) I have over a thousand one-minute clips I need to convert to a different QUicktime format using compressor.... I have created my custom preset that I want to use for all 1000 clips. I really dont want to drag my preset manually onto all 1000 clip

  • How to create dynamic window in smartform

    <i>HI Floks</i> my requirement is invoice smartform having few line items .i can print this line items with different categories with dynamically placed in smartfom. there how many items with in particular category print its self . how is it possible