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. No keyboard input on BeagleBone Black

No keyboard input on BeagleBone Black

Scheduled Pinned Locked Moved Mobile and Embedded
beaglebonekeyboardinput
20 Posts 2 Posters 8.3k 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.
  • B Offline
    B Offline
    Bremenpl
    wrote on 1 Jul 2015, 13:02 last edited by
    #3

    Hello there, Could anyone help in this matter please? I Still havent resolved the problem. Now I have noticed that keyboard also doesnt work when I run the Qt app at startup from rc.local

    lprzenioslo.zut.edu.pl

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Jul 2015, 23:35 last edited by
      #4

      Hi,

      Which version of Qt are you using ? Do you have the rights to access the input devices ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Bremenpl
        wrote on 2 Jul 2015, 06:07 last edited by Bremenpl 7 Feb 2015, 06:13
        #5

        Hello,
        My application rights are:
        -rwxrwxrwx 1 root root 353100 Mar 2 2015 OvenViewer

        And the input device rights are:
        crwxrwxrwt 1 root root 13, 65 Mar 1 21:45 event1

        I have set the rights in a file /etc/udev/rules.d/85-pure-data.rules:
        KERNEL=="event1", MODE="777"

        My Qt version is 4.8.6:
        QMake version 2.01a
        Using Qt version 4.8.6 in /opt/qt-arm/lib

        lprzenioslo.zut.edu.pl

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bremenpl
          wrote on 2 Jul 2015, 10:23 last edited by Bremenpl 7 Feb 2015, 10:29
          #6

          Also there is one thing I have noticed thats suspicious for me. When I run the program remotelly at termination of it I always see a line:
          bash: line 1: 653 Terminated DISPLAY=':0.0' QWS_KEYBOARD='/dev/tty' /home/debian/OvenViewer -qws
          QWS_KEYBOARD is set to /dev/tty, even though I have changed it in the build variables to /dev/input/event1 as well as in .user and .pro.user files. But after some builds it becape /dev/tty again in .user file. Might this be the case? How does he know what variable to set?

          Also, why does the mouse work, but not keyboard...?

          lprzenioslo.zut.edu.pl

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 2 Jul 2015, 21:50 last edited by
            #7

            Starting the application from Qt Creator ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bremenpl
              wrote on 3 Jul 2015, 04:38 last edited by
              #8

              Yes, the last post was about when running from qt creator.

              lprzenioslo.zut.edu.pl

              1 Reply Last reply
              0
              • B Offline
                B Offline
                Bremenpl
                wrote on 3 Jul 2015, 06:55 last edited by
                #9

                Also one more thing. I have just implemented by hand a code that reads from /dev/input/event1 and I have placed it in the main before MainWindow is created and it works, which means that the app has the rights to red the input, just the Qt doesnt interpret it, why?

                The code here after retrieving 20 events from /dev/input/event1 continues to the Qt gui App: Keyboard test code

                lprzenioslo.zut.edu.pl

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 3 Jul 2015, 22:15 last edited by
                  #10

                  Just to be entirely sure, Qt 4 series ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    Bremenpl
                    wrote on 4 Jul 2015, 05:31 last edited by
                    #11

                    Yes, the package i have installee it from was qt 4 everywhere

                    lprzenioslo.zut.edu.pl

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 4 Jul 2015, 20:29 last edited by
                      #12

                      Did I saw correctly ? You have "QWS_KEYBOARD='/dev/tty'" in either a bash script on your target or set in Qt Creator in the run environment panel

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        Bremenpl
                        wrote on 4 Jul 2015, 22:50 last edited by
                        #13

                        Yes qt creator seems to set it somehow, even though i have found all occuriences of QWS_KEYBOARD in project files and set it to event1. Thats not that much of a problem, the bigger deal is that it doesnt start from rc.local script.

                        lprzenioslo.zut.edu.pl

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 4 Jul 2015, 23:23 last edited by
                          #14

                          Look on the Run part of the Project panel in the Environment Variables

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          B 1 Reply Last reply 4 Jul 2015, 23:31
                          0
                          • S SGaist
                            4 Jul 2015, 23:23

                            Look on the Run part of the Project panel in the Environment Variables

                            B Offline
                            B Offline
                            Bremenpl
                            wrote on 4 Jul 2015, 23:31 last edited by
                            #15

                            @SGaist i started there, the walue was set correctly with event1 and qt creator doesnt care, i think its a bug.

                            lprzenioslo.zut.edu.pl

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 5 Jul 2015, 09:00 last edited by
                              #16

                              Strange, which version of Qt Creator are you using ?

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • B Offline
                                B Offline
                                Bremenpl
                                wrote on 6 Jul 2015, 13:11 last edited by
                                #17

                                Qt creator version 3.2.0

                                lprzenioslo.zut.edu.pl

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 28 Jul 2015, 22:50 last edited by
                                  #18

                                  Did you check with a more recent version ?

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • B Offline
                                    B Offline
                                    Bremenpl
                                    wrote on 29 Jul 2015, 05:22 last edited by
                                    #19

                                    No, I havent. Is there any known bug here? Also, I didnt think there is a newer qt version for embedded systems.

                                    lprzenioslo.zut.edu.pl

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 31 Jul 2015, 20:11 last edited by
                                      #20

                                      Sorry, I meant a more recent version of Qt Creator, as for Qt 4 the latest version is 4.8.7

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      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