Prevent the display go to sleep

Hi, is there a way to prevent display dimming?

I came across a few threads, but these discussions were dated a few months ago.

So I would like to know if theres any new API released to fix this problem a solution?

0o0o

PS: I used the following code, but it does not work, it's weird

    ForeignWindowControl *foreignWindow=ForeignWindowControl::create();
    int idle_mode = SCREEN_IDLE_MODE_KEEP_AWAKE;
    screen_set_window_property_iv((screen_window_t)foreignWindow, SCREEN_PROPERTY_IDLE_MODE,&idle_mode);

See my replies in this thread: http://supportforums.blackberry.com/t5/Cascades-Development/Display-Keep-Alive-in-Cascades/m-p/19280...

Tags: BlackBerry Developers

Similar Questions

  • Prevent the display of switching when the laptop lid is closed?

    Hello

    I am looking for a way to prevent the display of switching when I close the lid of my laptop. On my old laptop, Windows XP, I could open the cover while watching a movie on a secondary antibody (TV) to display for example to check something on the web on the laptop screen - displays remained as they were. But under Vista, whenever I get close or open the cover, screen goes on television and laptop as a result and the whole process takes some time. This behavior remains the same even after the deactivation of TMM in Vista.
    Is there a solution to this problem?

    Thanks in advance.

    SOLUTION VERY SIMPLE:

    1. open Device Manager
    2. in "System devices" find "ACPI lid"
    3 open the properties for "ACPI lid" and go to the tab "driver".
    4. Select "Update driver".
    5. Select 'Browse my computer for driver software' and 'Let Me pick "...
    Uncheck the "Show compatible hardware".
    6 and now, 'Manufacturer' select "(Standard système truc) ' and model:"
    'Volume manager' (Yes, 'Manager of Volume')
    7. then, then restart the system and it works!

    ON WINDOWS 7 x 64

    (Post Found: http://forums.whirlpool.net.au/archive/1421975 )

  • Photo screensaver prevents the display of power

    New HP dv5-1235dx notebook my wife is running Vista Home Premium SP1 64-bit.  His favorite screen saver is 'Photos', using a directory containing hundreds of photos.  The screen saver is programmed to start after 3 minutes.  The computer is powered by a power cord, rather than out of the battery.

    The problem is that the option of power management to turn off the display does not work when this screensaver is activated.  No matter how much time is allowed for the screen saver, or how late is allowed before the screen should turn off.

    If any other screen saver is selected, the power management option turns off the display as expected.  My wife doesn't want to use a different screen saver, however.

    Is it possible to get to the screen to disable everything using the screen saver pictures?

    I don't want to put the computer to sleep, because preventing my virus scan chose to take place late at night.

    Thanks for any help you can provide.

    The computer manufacturer helped me solve the problem.

    They suggested I have replace the screen saver Windows Vista 'Photos' with a screensaver third photo of my choice, then try to use power management features to turn off the screen again.  It worked.  The third photo screensaver that I have chosen (called 'Slide show without end' and on the Tucows site) does not interfere with power management functions the way built into Vista 'Photos' screen saver appears to do.

    Gary

  • The virtual keyboard will prevent the display of gestures in some of the screens.

    Hello

    If peripheral BB10 function key a cheap shots left that the keyboard is displayed even if the screen has no control of editfield. How can I disable this behavior on some of the screen.

    Same issue was discussed below thread, but there is one year and no solution:

    https://supportforums.BlackBerry.com/T5/native-development/how-do-I-prevent-the-virtual-keyboard-fro...

    A workaround that I have implemented is to listen BPS events:

    Subscribe (virtualkeyboard_get_domain ());

    then, virtualkeyboard_request_events (0);

    and then, to catch keyboard events and hide the keyboard.

    If (bps_event_get_domain (event) is virtualkeyboard_get_domain())
    {
    virtualkeyboard_hide();
    }

    This workaround works, but the problem is virtual keyboard appears to half way through and dismissed immd.

    I want to completely disable the virtual keyboard to appear on the gesture on some of my screens.

    is this possible? using something in the bar - descriptor.xml? or handling certain events in C++, QML?

    Here is the configuration that I use:

    SDK: 10.1

    Feature: Z10 with software version 10.2

    IDE: Momentics version 2.0

    Thanks in advance.

    I think the problem here is that gestures like this are handled by OS not by an application so you can not stop this behavior.

  • How to prevent the display of a Page?

    have a form with a table on the first page.  If it has more than 7
    line items, then it continues a new master to page content area
    view the rest of the elements.  Then he has another separate page
    to print at the end.

    However, if I have 7 lines or less, it still prints my pursuit
    page.  Is there a way to prevent this page from the display and
    being included in the number of pages?

    As another option, is there a way I can subtract 1 from the number of pages
    If the number of items in the line is 7 or less?

    I have attached a copy of my hierarchy.  I want to view Page1.  It's a table.  If it has more than 7 lines of billing, I continue to a content area in LIContPage1.  Page 2 prints the last.

    However, if there are less than 7 line items on page 1, I don't want LIContPage1 to print or be included in the page numbering.

    Thank you!

    Hello dude,.

    Search for any field (assumes that the "txtnumber") of the table is in the page. If not hide the page.

    for (var i = 0; i)< xfa.host.numpages="" ;="">

    {

    var oFields = xfa.layout.pageContent (i, "field");

    z = oFields.length;

    for (nNodeCount = 0; nNodeCount)< z;="">

    {

    If (oFields.item (nNodeCount) .name is 'txtNumber')

    {

    This.Presence = "Hidden".

    }

    I hope this works!

    Following fields fall into the category of field (mentioned in the script).

    Returns all the following form design objects: button, checkbox, DateTime field.

    Drop-down list, Signature of Document field, Image field, list box, numeric field, password

    Field, radio button and text field.

    Kind regards

    Rakesh

  • Prevent the display to touch the menu context (context menu) and maintenance

    I want to keep the display on touch & hold on the menu context (context menu) contact (no SurePress) devices.

    Currently, I am of the override of the touchEvent() method and consume in the case of TouchGesture.HOVER.

    protected boolean touchEvent(TouchEvent message) {
        if ((TouchEvent.GESTURE == message.getEvent()) && (TouchGesture.HOVER == message.getGesture().getEvent())) {
            return true;
        }
        return super.touchEvent(message);
    }
    

    It works but I would like to know if there is a better way to do it for the specific area.

    There are http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/Field.html#makeContextMenu (... but I think that it allows only to erase or change the menu, don't not to avoid planned.)
    others may be better informed about this area, but I think that your approach is valid.
    You can also check navigationclick maybe, don't know if the hover the gesture is translated to a click, but usually a click opens the context menu.

  • application. CFC / cflogin prevents the display of the page

    I don't quite understand this problem. I have an application that requires a user to connect. If the user is not registered, they have the opportunity to register. Thus, in the application.cfc I code in the onRequestStart that checks if the registration form has been called, otherwise, it goes through the process of cflogin. Currently I have research db dummied by always providing a "true" result in searches of the db. Logic does a minimal validation that a user and a password have been entered. If this isn't the case, everything works fine. The login screen displays with the error message again. However, if I get a username/password (remember, everything will pass this test currently), the page I post on does contain no content. Nothing. The address bar displays the correct address, but there is no source of the page. Similarly, if I followed the link from the screen to connect to the registration page, the registration page is also empty.

    I have attached my application.cfc below code. Note that I put the action with the variable loginAction dynamically. You can try it out to get a better understanding by going to http://www.changent.com/rr/index.html and clicking on the link connection or any other links below my account (this is where the logic to dynamically change the action of the form of connection comes in).

    Thanks for your help!

    Bill

    The form field is available, it seems, at least according to the sample on the adobe website (see the example security based on user applications page, and a link to the example of Application.cfc). Right at the top, it checks for form.logout. See code attached. The real problem was that I had coded in the Application.cfc onRequest and you didn't know who would spoil unless I did specifically a cfinclude on the desired model.





  • How can I prevent the display of the url to be sometimes replaced by button icons?

    The address in the url bar is sometimes replaced by a line of icons to buttons, which may overlap the buttons next to the url.

    Please see a typical view here:

    http://Preview.tinyurl.com/k3ayssw

    This, I am happy to say, does not happen with all the websites I visit, but it happens often enough to be a real nuisance.

    Here is a list of * some * Web pages where I met this phenomenon:

    http://Preview.tinyurl.com/ov7pcrs

    http://Preview.tinyurl.com/omeov9u

    http://Preview.tinyurl.com/yrtpxf (all Wikipedia pages)

    http://Preview.tinyurl.com/ppp8vog (all pages of tv - series.me )

    http://Preview.tinyurl.com/pm5q2se

    http://Preview.tinyurl.com/ygfsd68

    Hope that there is an easy solution. I went back to the classic view to work around him, to see that it does not solve the problem.

    Cheers, Tony

    The culprit seems to have been the 1.0.6 by Kitsuneymg RSS icon, which seems to no longer be available on the website of modules. Thank you, CoreyMH!

    Cheers, Tony

  • How can I prevent the display of the grey turn Code when I select Live view mode?

    I just upgraded to Dreamweaver CC 2014. Now, when I pick something in Live View mode when in split view, Code view window becomes gray. I can hardly see anything and cannot easily find my cursor. Very annoying. How can I change this? Does anyone know?

    It seems to me that you use Design mode in your previous version.

    The editor in Live mode is new to DWCC2014 and later, if you were using an earlier version, and by clicking on the elements in Live View mode, he would have acted like you were clicking on these items in a browser, there is no way to change using Live View before CC2014. The blue plan has been added during the introduction of the editor in Live mode.

    Click on the Live View drop down menu and choose Design, see if that is more as you remember.

  • How can I prevent the button tooltips will appear?

    Hello

    I use the ToolTip text for the button for programming purposes (sorting script). But I don't want what they shown to my visitors.

    Is there some sort of code to prevent the display button tooltips? Thank you.

    Dmitry

    The problem is resolved. Don't need any help. Thank you.

  • Prevent the digital signature if the fields are white

    I am just checking that some fields are filled before the user can digitally sign the form. If the fields are empty, I would like to prevent the display of the digital signature window.  How do I do that?

    Here is my script:

    var vSignature
    if(xfa.form.form1.execValidate() == true){
     vSignature = this.rawValue;
    }
    else{
    xfa.host.messageBox("At Least One Required Field Was Left Blank");
    }
    

    Add controls null (or no matter what field validation that you plan to be completed) in the event the digital signature field preSign, if the validation fails then cancel the action after providing a message

    You can attach your form?

    Santosh-

    http://about.me/nskumar

  • Crush the display flashes for 2-3 minutes after that mini mac wakes up from sleep

    Crush the display flashes for 2-3 minutes after that mini mac wakes up from sleep

    If you have another Thunderbolt cable, plug it into the unused port on the

    Thunderbolt Display and then in the Mini and see if the same thing happens.

    What you can see is a precursor of the poster, built out of the cable.

    At least, it could eliminate a costly repair problem.  Although the cable itself is not

    expensive, opening to the top of the screen of TB to replace could be.

    Well that not connected on a Mini, I began to see in similar behavior my

    iMac, so that there was finally a break in the complete cable.

  • gauge the battery to the boot screen and battery on report menu conflicting Details about the level of the battery. The gauge from the battery to the Starter incorrectly displays the low battery level that prevent the macbook pro battery retina start

    gauge the battery to the boot screen and battery on report menu conflicting Details about the level of the battery. The gauge from the battery to the Starter incorrectly displays the low battery level that prevent the start of the battery. This happens on macbook pro retina 13 inches

    When I try to startup macbook pro retina in battery mode, it will fail to start showing low battery level and an indicator to recharge the battery. It does not start on battery. When I then connect via the power cable at startup (and check the battery level), monitor of battery in the menu bar indicates that the battery is charged to the top.

    It gets really frustrating and remove my ability to use the macbook pro retina as a truly portable device...

    Appreciate any help on this

    Have you tried resetting the SMC? Reset the management system (SCM) controller on your Mac - Apple Support

  • Prevent the window display at the end results

    This may seem like a strange request, but is it possible to prevent the window of final results at the end of the series of tests coming? I still need all the results by managing the mechanism works because the results are stored in a database and use the MainSequenceResults property. However I don't have the actual results of TestStand. I'm happy change the process template, but couldn't find the right place.

    Thank you

    Ronnie

    Hi Ronnie,.

    I had a few minutes of time to visit SequentialModel of or

    If you don't know the step enclosed, no results will be displayed

    Hi Ray,

    I'll try, but change the UI so much meaning because it is also in the editor

    Concerning

    Jürgen

  • Windows 7 turns the display off, but doesn't go to sleep

    My Windows 7 will not more in mode 'sleep'.  It will turn the display at 5 minutes (by the Power Options settings), but it won't put the computer to sleep after 30 minutes.  The screen is off, but the hard drive flashes.  The power light on the computer is turned on, not the sleep mode color amber.

    If I choose Start, stop, sleep, the computer enters mode "Eve".

    How can I get the computer to go to sleep automatically?

    Follow the below mentioned steps to solve the problem:
    1. click on start and open Control Panel.
    2. open Power Options then select the option to change when the computer sleeps.
    3. click on change advanced power settings, under Multimedia settings make sure that you don't have to stop the idling to sleep

Maybe you are looking for