×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    How to prevent backlight dimming?

    How can I prevent the backlight of the screen from dimming and going off?

    Thanks

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to prevent backlight dimming?

    MCE provides a method call for this:
    http://maemo.org/api_refs/5.0/5.0-fi...23a31866455b80

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    166

    Re: How to prevent backlight dimming?

    Is there any sample code how to use MCE_PREVENT_BLANK_REQ dbus method ? i am quite new to maemo development and dont know how dbus works?

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to prevent backlight dimming?

    Quote Originally Posted by kunal_the_one View Post
    Is there any sample code how to use MCE_PREVENT_BLANK_REQ dbus method ? i am quite new to maemo development and dont know how dbus works?
    DBus is not Maemo specific
    http://qt.nokia.com/doc/4.6/qdbusinterface.html#details

  5. #5
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Brisbane, Australia
    Posts
    18

    Re: How to prevent backlight dimming?

    QSystemInfo API from the Qt Mobility project has a function to do this.

    QSystemScreenSaver::setScreenSaverInhibit()

    Will inhibit the blanking for the life of the QSystemScreenSaver object
    Code Monkey, QtMobility, Nokia

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to prevent backlight dimming?

    Quote Originally Posted by lpotter View Post
    QSystemInfo API from the Qt Mobility project has a function to do this.

    QSystemScreenSaver::setScreenSaverInhibit()

    Will inhibit the blanking for the life of the QSystemScreenSaver object
    Actual Debian packages are located in extras-devel repositories:
    http://repository.maemo.org/extras-d...q/qt-mobility/

    The only problem is the current status of Qt Mobility for Maemo 5 doesn't really look good:
    http://qt.nokia.com/doc/qtmobility-1...-compatability
    Last edited by divanov; 2010-02-24 at 10:20. Reason: Information update

  7. #7
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Brisbane, Australia
    Posts
    18

    Re: How to prevent backlight dimming?

    Quote Originally Posted by divanov View Post
    Actual Debian packages are located in extras-devel repositories:
    http://repository.maemo.org/extras-d...q/qt-mobility/

    The only problem is the current status of Qt Mobility for Maemo 5 doesn't really look good:
    http://qt.nokia.com/doc/qtmobility-1...-compatability
    That grid is not too descriptive, but the SceenSaverInhibit works for maemo5

    In the least you could see how it's done with QtDBus.
    Code Monkey, QtMobility, Nokia

  8. #8
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to prevent backlight dimming?

    Quote Originally Posted by lpotter View Post
    That grid is not too descriptive, but the SceenSaverInhibit works for maemo5

    In the least you could see how it's done with QtDBus.
    There is another problem with Qt Mobility at the moment. If one wants to publish an application in Ovi Store there is no Qt Mobility. It makes it better and safer to use native Maemo API for the time being.

  9. #9
    Registered User
    Join Date
    Jul 2004
    Posts
    166

    Re: How to prevent backlight dimming?

    I found following code after doing some research.

    #include <QtDBus>
    #include <mce/mode-names.h>
    #include <mce/dbus-names.h>


    QDBusConnection::systemBus().call(QDBusMessage::createMethodCall(MCE_SERVICE, MCE_REQUEST_PATH,
    MCE_REQUEST_IF, MCE_PREVENT_BLANK_REQ));

  10. #10
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to prevent backlight dimming?

    Quote Originally Posted by kunal_the_one View Post
    I found following code after doing some research.
    I don't know why do you need to do any research as I've already given the link to an answer.

    Code:
    #include <QtDBus>
    #include <mce/mode-names.h>
    #include <mce/dbus-names.h>
    
    QDBusInterface mce(MCE_SERVICE, MCE_REQUEST_PATH,
                       MCE_REQUEST_IF, QDBusConnection::systemBus());
    mce.call(MCE_PREVENT_BLANK_REQ);

  11. #11
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    54

    Re: How to prevent backlight dimming?

    Quote Originally Posted by kunal_the_one View Post
    I found following code after doing some research.

    #include <QtDBus>
    #include <mce/mode-names.h>
    #include <mce/dbus-names.h>


    QDBusConnection::systemBus().call(QDBusMessage::createMethodCall(MCE_SERVICE, MCE_REQUEST_PATH,
    MCE_REQUEST_IF, MCE_PREVENT_BLANK_REQ));
    Thanks, it worked!

Similar Threads

  1. inactivity timer, backlight, system dialogue windows.
    By davidmaxwaterman in forum Series 40 & S60 Platform Feedback Archive
    Replies: 0
    Last Post: 2007-05-24, 03:11
  2. Backlight Control
    By kburgess in forum Symbian User Interface
    Replies: 5
    Last Post: 2006-12-20, 13:32
  3. Backlight and vibration on N70 / S60
    By klemensz in forum Mobile Java Games
    Replies: 2
    Last Post: 2006-07-30, 18:18
  4. A reward of $40 to solve backlight problem
    By edcruise in forum Symbian
    Replies: 2
    Last Post: 2006-06-30, 22:42
  5. Backlight control
    By Danila in forum Symbian
    Replies: 1
    Last Post: 2003-05-23, 10:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •