Results 1 to 2 of 2

Thread: Detecting whether an HDMI cable has been plugged in and adjusting screen resolution

  1. #1
    Join Date
    Aug 2013
    Posts
    15
    Thanks
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Detecting whether an HDMI cable has been plugged in and adjusting screen resolution

    Good day fellow programmers,

    I was wondering whether there is a way to detect if an HDMI has been plugged in Linux Debian running on a Raspberry Pi?
    In that case I would like to start a function determining the connected monitors screen resolution.

    Is there any way to do this straight out of Qt?

    Thanks for your answers!
    Last edited by Plox; 27th September 2013 at 11:24.

  2. #2
    Join Date
    Aug 2013
    Posts
    15
    Thanks
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Detecting whether an HDMI cable has been plugged in and adjusting screen resoluti

    Hi again,
    I found a solution to this task and it's actually quite easy.
    All you need to do is query the current screen resolution every second and react based on the values it delivers.

    That way there is no need to detect an event such as a recently plugged in HDMI cable.

    Cheers,
    Plox

Similar Threads

  1. Qt5 on Raspberry Pi EGLFS wrong screen resolution
    By 1994rstefan in forum Qt Programming
    Replies: 3
    Last Post: 21st June 2017, 16:06
  2. Screen Resolution Restrictions
    By Goug in forum Qt Programming
    Replies: 2
    Last Post: 16th November 2011, 20:40
  3. changing screen resolution of touchscreen
    By aj2903 in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 8th April 2009, 19:57
  4. Screen resolution
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 7th September 2007, 18:00
  5. Screen Resolution
    By vijay anandh in forum Qt Programming
    Replies: 3
    Last Post: 6th October 2006, 14:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.