Keep awake screen

Is it possible to keep awake screen?

I tried to use SCREEN_PROPERTY_IDLE_MODE with a simple application and it did not work.

Code:

int main (int argc, char * argv) {}
int rc = 0;

screen_create_context (& screen_cxt, 0);

RC = screen_create_window (& screen_win, screen_cxt);
If {(rc)
perror ("screen_create_window");
Return EXIT_FAILURE;
}

int idle_mode = SCREEN_IDLE_MODE_KEEP_AWAKE;
RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_IDLE_MODE, & idle_mode);
If {(rc)
perror ("screen_set_window_property_iv (SCREEN_PROPERTY_IDLE_MODE)");
Return EXIT_FAILURE;
}

int i = 0;
for (;
{
fprintf (stdout, "%d\n", i);
fflush (stdout);
Sleep (1);
i ++ ;
}

return 0;
}

Resolved:

Need to post something on the window.

Tags: BlackBerry Developers

Similar Questions

  • How to keep the screen Apple Watch?

    When you use Stocard, sometimes I need to rotate my wrist backwards to scan the barcode, but it makes the screen saver off!  I can't find anything that actually stay on.  Very frustrating, because most supermarkets have flat scanners, so the watch must be upside down for the barcode to be scanned.  It is not a problem with Apple pay.

    Any ideas?

    Hello

    On your iPhone, in the application of the watch, go to: Watch My > General > screen Wake - under the tap, select 70 seconds.

    When you wake up your screensaver by pressing on it (rather than by increasing your wrist), this will keep the screen awake up to 70 seconds - or until you lower your wrist after pressing it (if earlier).

  • How can I keep the screen locked in portrait mode

    MY gen iPad 3 had a manual lock to keep the screen in portrait or landscape mode. How can I block this function on my cushion of air 2?

    It is on the control center.

    You will have an icon sixth on this line to compensate for the lack of switch.

  • My computer windows 7 keeps blue screening

    My computer windows 7 keeps blue screening.

    Here's the info provided (any help would be appreciated!)

    Signature of the problem:

    Problem event name: BlueScreen

    OS version: 6.1.7601.2.1.0.768.3

    Locale ID: 1033

    More information about the problem:

    BCCode: 1000007e

    BCP1: FFFFFFFFC0000005

    BCP2: FFFFF800033689DD

    BCP3: FFFFF88003747818

    BCP4: FFFFF88003747070

    OS version: 6_1_7601

    Service Pack: 1_0

    Product: 768_1

    Files helping to describe the problem:

    C:\Windows\Minidump\021215-28891-01.dmp

    C:\Users\Mario Perez\AppData\Local\Temp\WER-59951-0.sysdata.xml

    Read our privacy statement online:

    http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:

    C:\Windows\system32\en-US\erofflps.txt

    Try the following:

    1 perform the clean boot, and then check. See the link form more information:

    http://support.Microsoft.com/kb/929135

    2. If the problem persists, try to perform the SFC scan. Check the link for more information:

    http://support.Microsoft.com/kb/929833

    3. If the problem persists, try to update all device drivers. If no update is available, perform the reinstallation of the drivers: uninstall the drivers, reboot the PC, install the drovers, restart the PC and then check.

    4. However, if the problem persists, look in the dump file that was created (C:\Windows\Minidump\021215-28891-01.dmp), so to find the root cause of the problem.

  • Backlight() is now static. Ideas to keep the screen/backlight on

    Backlight control is no longer available to the JDE 4.7 then the following example does not work.

    If ((Display.getProperties)

    (& Display.DISPLAY_PROPERTY_REQUIRES_BACKLIGHT). = 0)

    {

    Backlight.Enable (true, 30);

    }

    Someone at - it simple solutions to keep the screen on?

    Thank you!

    In my tests, there is no way to keep the backlight on other than to call the method Baclight.enable (time, true) every seconds of time. The check for the backlight is off does not return true until the backlight is already low, you just choose a tmeout and call him whenever the amount of time spent.

    example of

    BacklightTimeout extends TimerTask {}

    public void run() {}

    Backlight.Enable(240,true);

    }

    }

    BacklightTimeout timeout = new BacklightTimeout();

    Timer.scheduleAtFixedRate (timeout, 0, 240000);

  • How to configure Acrobat DC to keep the screen on while reading the PDF?

    My phone is set to exit the screen after 30 seconds and lock automatically.

    While I read any PDF on Acrobat DC - screen turns off after 30 seconds.

    How can I set up Acrobat DC to keep the screen on continuously during I read any PDF file?

    Hello

    Have you tried to activate 'Screen brightness Lock' for the application Acrobat DC?

    For Acrobat DC for Android, the option is available in the app.  The action menu, and select settings > brightness screen lock.

    For Acrobat DC for iOS, the option is available in the iOS settings screen.  Go to settings > Adobe Acrobat and choose lock screen brightness.

    The option prevents the screen from dimming/turning off when Acrobat DC is running in the foreground, which in turn prevents your locking device.

    I hope this helps.

  • Motorcycle display (keep dark screen) does not

    Hi, I see a display bike option, IE KEEP SCREEN DARK from xxx to xxx

    I put the time, feeling that it will take my Off motodisplay during those moments even if I give a jolt to my phone

    So which aims to do, its does not work for me...

    and I feel very boring with Bright Light when my phone moves when I move on bed, at least try the Penumbra or make the option KEEP SCREEN DARK put to work

    I think he keeps just dark if you receive a notification when the specified period. Proximity/motion wake up it.

  • How to keep the screen on longer

    The computer stays on a bit of time and I keep after entering the password. Is there a way to keep longer?

    Hello

    Open windows control panel, open personalization, click on the link to screensaver at the bottom right and in the next window, set the time in the area of 'Wait' for once you want before the screen saver appears, and click on apply. Or if you never get the logon screen, Remove the check mark next to "on resume, display the login page»  Click on apply to save the changes.

    Then open windows control panel again and click on Power Options, click Change plan settings next to your current power plan selected in the next window, set the time using the drop-down list next to "Turn wide Display" to a more acceptable level and then click on save changes.

    Note:  Set in the Options menu of food to be slightly longer than the time set in the Menu of the screen saver or you will never see your screen saver start.

    Kind regards

    DP - K

  • my system keeps hanging screening ad blue

    my system seems to be hunging and blue screening. I have norton and checked the large mother said it was ok. I made a mask and found what they say the regstery my dab to buy this program - help

    Hi Larryhager,

    ·         What is the code error or error message true blue screen?

    ·         What version of Windows are you using?

    ·         How long have you been faced with this problem?

    ·         You did it last changes before the show?

    Follow the steps below for a possible solution:

    Method 1:

    Step 1: Start in safe mode and check if the problem persists.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2: If the problem does not occur in safe mode, you can put your system to boot (in normal mode) to solve the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2: I suggest that you update the drivers and check if it helps.

    See the links below for more details on the update of drivers:

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Update drivers: recommended links

    http://Windows.Microsoft.com/en-us/Windows7/update-drivers-recommended-links

    In addition, Open the event viewer and look for any error messages/codes.

    See also What are the information contained in the logs of the event (Event Viewer)?

    You can also visit the article to fix the blue screen errors.

    Resolve stop (blue screen) error in Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/resolving-stop-blue-screen-errors-in-Windows-7

    Hope this information helps.

  • my computer keeps blue screens, it says irqnotlessorequal or memory management

    blue screen help

    Click Start, go to my computer and select your primary hard drive (probably c :))
    Find your Windows folder (for example, Windows NT). Double click on that, then look for the Minidump folder. Open that and you will see the minidump files.
    Right-click on the first and select send to and in pop out menu select compressed (zipped folder).
    This creates a ZIP file version. If there is more than one dump file, repeat this step for each of the dump files.
    You can then attach these ZIP files to your next post.

  • keep on screen keyboard to appear at startup

    I recently activated on the keyboard of the screen when a key would not work because of some dirt in there, I fixed that, now I can not find how to prevent it from appearing when I start. I have to click Close (X) box each time. A funny note; The same key did not work with the keyboard screen, until the dirt has been cleaned. I have Vista on a gateway.

    Hello

    How do I change the keyboard to the screen on or off in Vista
    http://www.Vistax64.com/tutorials/72733-screen-keyboard.html

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • How can I keep the screen keyboard to start when I sart my computer

    Whenever I start my computer the keyboard to the start screen. D how do I prevent this?

    Start button > Control Panel > left side view, classic > ease of access > click on computer/Mo mouse or keyboard > uncheck 'Use on screen keyboard' > click Save

  • How to keep the screen on while the application is active [mobile Flex]?

    Hi there, does anyone know how to disable the feature that turns off the display if no button of the screen is detected?

    For example, I have a request, and if I do not touch the screen for some time, he died. How to disable that?

    Thank you!

    Figured out how.

    This is used inside the init() function:

    NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;

    This disabled the application - app.xml:

  • How can I keep the screen from closing when I close the macbook pro when you use the apple wireless keyboard?

    Try to use with my macbook pro apple wireless keyboard and an external display.  The display turns off when the macbook pro is closed.

    Make sure that it is connected to power.  It cannot run in clamshell mode of the battery power.

    https://support.Apple.com/HT201834

  • My screen keeps dimming on a HP Pavilion computer g laptop with Windows 7, why?

    Even if I'm on the internet, my screen fades at random, according to the Web site. Sometimes he would go to normal brightness and then right back to really dim. It would get so dark that I could hardly read anything on the screen in a dark room. I can't adjust the brightness with the F2 and F3 keys and I tried to adjust the brightness of the power management, and nothing changes. How can I keep the screen from dimming all the time?

    Your video card was built by AMD/ATI?

    If so, the Vari-Bright feature must be on. To fix this, go to:

    1 AMD Vision Engine Control Center (or AMD Catalyst Control Center)

    2 power

    3 PowerPlay

    4. uncheck the ' enable Vari-Bright ".

    and that will fix your problem.

Maybe you are looking for