UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Disabled touch keys and stable channel

    Scheduled Pinned Locked Moved Samsung S3 Neo+
    19 Posts 5 Posters 1.7k Views 1 Watching
    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.
      • flohackF Offline
        flohack
        last edited by

        Hi there,

        I decided to disable the touch keys on the bottom hardware panel since they always wake the device when you donΒ΄t want it πŸ™‚

        Shall we keep the middle button active? I think its okay to keep it but not sure.

        I will try to roll out this change to the upcoming OTA-16 πŸ™‚ when finally S3 Neo will get its stable channel so you dont live as dangerous as I do on devel πŸ˜‰

        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi @flohack
          last edited by

          @flohack I think you should leave the home button enabled, it's a physical button anyway right? Most devices like MX4 has it enabled. It can be an alternative for opening the app drawer πŸ™‚

          flohackF KenedaK 2 Replies Last reply Reply Quote 0
          • flohackF Offline
            flohack @kugiigi
            last edited by

            @kugiigi Yes I leave it but interestingly, a single click does nothin, I need to quickly double-click and then the drawer opens and closes rapidly πŸ™‚ Maybe it sends the wrong keybinding. Would need to analyze with someone with an MX4.

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

            1 Reply Last reply Reply Quote 0
            • KenedaK Offline
              Keneda @kugiigi
              last edited by

              @kugiigi
              yes and it is very usefull on mx4 ^^

              @flohack said in Disabled touch keys and stable channel:

              Would need to analyze with someone with an MX4.

              Depending on what you need i may can help.
              But not now as i'm at work :beaming_face_with_smiling_eyes:

              2015-2023 : Meizu MX4 ☠️⚰️✝️
              2023-2024 : Nexus 5 ☠️⚰️✝️
              2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
              πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

              1 Reply Last reply Reply Quote 0
              • KenedaK Offline
                Keneda
                last edited by

                @Flohack

                ?

                2015-2023 : Meizu MX4 ☠️⚰️✝️
                2023-2024 : Nexus 5 ☠️⚰️✝️
                2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                flohackF 1 Reply Last reply Reply Quote 0
                • flohackF Offline
                  flohack @Keneda
                  last edited by

                  @keneda you would need to install the evtest package. And then do the following:

                  • Call evtest
                  • For every listed device, select its number, and then press a few times on the button. If you find the right one, the menu button will signal events. I am interested in which event type that button produces.

                  My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                  KenedaK 1 Reply Last reply Reply Quote 0
                  • KenedaK Offline
                    Keneda @flohack
                    last edited by

                    @flohack said in Disabled touch keys and stable channel:

                    @keneda you would need to install the evtest package. And then do the following:

                    • Call evtest
                    • For every listed device, select its number, and then press a few times on the button. If you find the right one, the menu button will signal events. I am interested in which event type that button produces.

                    I can do that, but, as i am a real noob in linux, you may explain :

                    • how to install evtest (and do i need libertine or i have to make file system r/w)
                    • how to "call" evtest

                    2015-2023 : Meizu MX4 ☠️⚰️✝️
                    2023-2024 : Nexus 5 ☠️⚰️✝️
                    2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                    πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                    flohackF MoemM 2 Replies Last reply Reply Quote 0
                    • flohackF Offline
                      flohack @Keneda
                      last edited by

                      @kenedaits an extra package you need to install on your device. Best would be if you do this via ssh from your PC:

                      • Find your deviceΒ΄s IP address, e.g. go to the system-settings WiFi page, and see in the details of your WiFi connection
                      • Start ssh if its not started with the internal terminal app: sudo service ssh start
                      • Connect with your favourite ssh client to the IP
                      • Make your rootfs writable: sudo mount / -o remount,rw
                      • Update apt package sources: sudo apt update
                      • Install evtest: sudo apt install evtest

                      Now you have the tool. To see all input devices type evtest and then you get a list. It will prompt you to select one. Start at the top of the list, work your way all through. After selecting a device press our touch the button and see if you get messages like:

                      e32786bc-aa2c-4d61-8c8f-48f212f55e5c-grafik.png

                      As you can see in my case the device /dev/input/event6 is named uinput-fpc and indeed is the fingerprint reader giving fake keyboard events. You can see its sending KEY_DOWN which is like a cursor keypress on a normal keyboard.

                      Good Luck!

                      My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                      KenedaK 1 Reply Last reply Reply Quote 0
                      • MoemM Offline
                        Moem @Keneda
                        last edited by

                        @keneda If you haven't used ssh before, this may be helpful: https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html

                        Is currently using an Op5t
                        Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                        1 Reply Last reply Reply Quote 0
                        • KenedaK Offline
                          Keneda @flohack
                          last edited by

                          @flohack i'll do my best ^^

                          @Moem Right, never used ssh.

                          Thanks both.

                          Now i go to work, have a nice day πŸ˜‰

                          2015-2023 : Meizu MX4 ☠️⚰️✝️
                          2023-2024 : Nexus 5 ☠️⚰️✝️
                          2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                          πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                          1 Reply Last reply Reply Quote 0
                          • KenedaK Offline
                            Keneda
                            last edited by

                            @Flohack Just to tell you i did not give up, i wait for OTA16 to reach my MX4, then i'll save data and try.

                            By the way, i forgot to ask previously, why is SSH the best?
                            Can't it works well directly from the MX4?

                            2015-2023 : Meizu MX4 ☠️⚰️✝️
                            2023-2024 : Nexus 5 ☠️⚰️✝️
                            2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                            πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                            MoemM 1 Reply Last reply Reply Quote 0
                            • MoemM Offline
                              Moem @Keneda
                              last edited by

                              @keneda Once you get it set up, SSH is really nice because it lets you use the terminal on your phone, from your computer (laptop or desktop). Real keyboard and everything. So much easier!

                              Is currently using an Op5t
                              Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                              1 Reply Last reply Reply Quote 0
                              • ImmyChanI Offline
                                ImmyChan
                                last edited by

                                Wait, the hardware buttons do things on Ubuntu Touch? How does that work?

                                flohackF 1 Reply Last reply Reply Quote 0
                                • flohackF Offline
                                  flohack @ImmyChan
                                  last edited by

                                  @immychan basically hardware buttons that are mapped to input devices will emulate a keyboard keypress. There are a multitude of keycodes that can be emitted by hardware buttons.

                                  Lomiri will react on a few of them, and this can of course be tweaked in some way. I am thinking of connecting the hardware button of the Fairphone 2 e.g. to do the same as we know from this device: Open the app drawer.

                                  My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                  KenedaK 1 Reply Last reply Reply Quote 0
                                  • KenedaK Offline
                                    Keneda @flohack
                                    last edited by Keneda

                                    @flohack Sorry for the laaaaaate feedback, here it is, and i hope i did it well (even if i didn't use SSH) ^^

                                    evtest_mx4_touch_button_fsize.png

                                    I tested all events, and the touch button only gave me feedback with event1 "mtk-tpd" that handles touchscreen too.
                                    I tried quick and long press that does not the same thing in uTouch, but same result on evtest.

                                    Tell me if you need something else, i'll try to be quicker to answer :grinning_face_with_sweat:

                                    2015-2023 : Meizu MX4 ☠️⚰️✝️
                                    2023-2024 : Nexus 5 ☠️⚰️✝️
                                    2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                    πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                    flohackF 1 Reply Last reply Reply Quote 0
                                    • flohackF Offline
                                      flohack @Keneda
                                      last edited by

                                      @keneda Alright so it seems its bound to KEY_LEFTMETA which is basically ALT-Key I think right?

                                      My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                      KenedaK 1 Reply Last reply Reply Quote 0
                                      • KenedaK Offline
                                        Keneda @flohack
                                        last edited by Keneda

                                        @flohack said in Disabled touch keys and stable channel:

                                        Alright so it seems its bound to KEY_LEFTMETA which is basically ALT-Key I think right?

                                        Yes it seems, but can't tell if it's alt-key :grinning_face_with_sweat:

                                        Did a qwant search https://www.qwant.com/?client=brz-moz&q=KEY_LEFTMETA&t=web but nothing clear about that.

                                        2015-2023 : Meizu MX4 ☠️⚰️✝️
                                        2023-2024 : Nexus 5 ☠️⚰️✝️
                                        2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                        πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                        flohackF 1 Reply Last reply Reply Quote 0
                                        • flohackF Offline
                                          flohack @Keneda
                                          last edited by

                                          @keneda No its left windows key ^^

                                          So to summarize, that key should open the launcher we said right?

                                          My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                          KenedaK 1 Reply Last reply Reply Quote 0
                                          • KenedaK Offline
                                            Keneda @flohack
                                            last edited by Keneda

                                            @flohack said in Disabled touch keys and stable channel:

                                            So to summarize, that key should open the launcher we said right?

                                            Yes. To be more precise, with no app opened, it opens app drawer (as app launcher is always on screen), with an app opened, it opens both app launcher and drawer.

                                            2015-2023 : Meizu MX4 ☠️⚰️✝️
                                            2023-2024 : Nexus 5 ☠️⚰️✝️
                                            2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                            πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                            1 Reply Last reply Reply Quote 0
                                            • KenedaK Keneda referenced this topic on
                                            • First post
                                              Last post