Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How to deal with IOCTL EV_PWR properly

    Mobile and Embedded
    1
    1
    722
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mwpowellhtx last edited by

      Hello,

      We've got an IOCTL EV_PWR question here.

      We have a power button that I want mapped through what seems like the conventional Linux way of handling the event: IOCTL EV_PWR.

      Is there a way for Qt to see this event, or do we need to poll for IOCTL EV_PWR in a timer, or something like that?

      It also needs to cooperate with "normal" keyboard presses, we have a controller mapped to up/down/left/right arrow keys for instance, type of thing.

      We are targeting ArchLinux for ARM. We will probably need to update our kernel to comprehend the issue, that sort of thing. Then, plausibly, we are developing a custom event dispatcher.

      Thoughts how to approach this? Thank you...

      Regards,

      Michael Powell

      1 Reply Last reply Reply Quote 0
      • First post
        Last post