Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to deal with IOCTL EV_PWR properly
Forum Update on Monday, May 27th 2025

How to deal with IOCTL EV_PWR properly

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 816 Views
  • 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 Offline
    M Offline
    mwpowellhtx
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved