Giter Site home page Giter Site logo

Comments (14)

pastaq avatar pastaq commented on July 17, 2024

Can you run the system profiler from OpenGamepadUI and post the resulting file? Please ensure handycon.service and opengamepadui are both not running before conducting the test. When it asks for the key presses, press the left back button then the right back button before hitting ctrl+c on the keyboard to end the script. This must be run with sudo permissions.

Thanks.

from handygccs.

aarron-lee avatar aarron-lee commented on July 17, 2024

Generated file is here: G1618-04_system_profile.txt

Also, not sure if this helps, but when I tried to manually map the back buttons via input-remapper, it turns out that the back buttons are registered as a mouse. Pause was the back right button, Print was the back left button.

back_buttons

Unfortunately, input-remapper's systemd service seems to fail to initialize in gamepadui on boot, but it does properly work when I tested it in desktop mode BPM.

from handygccs.

pastaq avatar pastaq commented on July 17, 2024

Since there are two mouse for windows devices it's possible we're just grabbing the wrong one. Do you know if the events trigger on the device attached to
usb-0000:73:00.3-4.2/input0 or the one attached to usb-0000:73:00.3-4.2/input1

from handygccs.

aarron-lee avatar aarron-lee commented on July 17, 2024

hrm, so I tried building handycon after updating gpd_gen3.py with the input1 ID, and noticed the following after a reboot:

  • the back buttons seem to no longer register in the input-mapper app, which I think means that handycon now is controlling the back buttons.
    • The back-left button had also previously been a PrintScreen button by default on Desktop mode without handycon
      • with the updated handycon running, it no longer is registering as a printscreen button on the desktop
  • however, when I try to use the back buttons in game mode, they don't do anything.
    • it seems that the buttons are now being controlled, but aren't actually registered to do anything.

I'll try to change around the code in handycon, and try to figure out what's happening.

from handygccs.

aarron-lee avatar aarron-lee commented on July 17, 2024

Going to investigate some more tomorrow, but added some basic logging in gpd_gen3.py.

When pressing the back-left button, the following values were logged:

seed_event event at 1693883873.070568, code 04, type 04, val 458822 
 active_keys [99] 
 button_on 458822 
---
seed_event event at 1693883873.070568, code 99, type 01, val 01 
 active_keys [99] 
 button_on 1 
---
seed_event event at 1693883873.070568, code 00, type 00, val 00 
 active_keys [99] 
 button_on 0 
---
seed_event event at 1693883873.336501, code 99, type 01, val 02 
 active_keys [99] 
 button_on 2 
---
seed_event event at 1693883873.336501, code 00, type 00, val 01 
 active_keys [99] 
 button_on 1 
---
seed_event event at 1693883873.366600, code 04, type 04, val 458822 
 active_keys [] 
 button_on 458822 
---
seed_event event at 1693883873.366600, code 99, type 01, val 00 
 active_keys [] 
 button_on 0 
---
seed_event event at 1693883873.366600, code 00, type 00, val 00 
 active_keys [] 
 button_on 0 
---

When I pressed the back-right button, got the following logs:

seed_event event at 1693883892.136303, code 04, type 04, val 458824 
 active_keys [119] 
 button_on 458824 
---
seed_event event at 1693883892.136303, code 119, type 01, val 01 
 active_keys [119] 
 button_on 1 
 ---
seed_event event at 1693883892.136303, code 00, type 00, val 00 
 active_keys [119] 
 button_on 0 
 button2 [[1, 316], [1, 304]]
---
seed_event event at 1693883892.402902, code 119, type 01, val 02 
 active_keys [119] 
 button_on 2 
---
seed_event event at 1693883892.402902, code 00, type 00, val 01 
 active_keys [119] 
 button_on 1 
---
seed_event event at 1693883892.432318, code 04, type 04, val 458824 
 active_keys [] 
 button_on 458824 
---
seed_event event at 1693883892.432318, code 119, type 01, val 00 
 active_keys [] 
 button_on 0 
---
seed_event event at 1693883892.432318, code 00, type 00, val 00 
 active_keys [] 
 button_on 0 
---

from handygccs.

pastaq avatar pastaq commented on July 17, 2024

I just looked at the code. It's super wrong for the key up events...

from handygccs.

pastaq avatar pastaq commented on July 17, 2024

Line 41 should have just [119] for seed_event.code and 47 should have 99

from handygccs.

pastaq avatar pastaq commented on July 17, 2024

Actually all the GPD devices have this bug

from handygccs.

pastaq avatar pastaq commented on July 17, 2024

Just pushed a fix

from handygccs.

aarron-lee avatar aarron-lee commented on July 17, 2024

Thanks, I can confirm that this almost fixed the issue. The last remaining thing to fix is to change from input0 to input1.

handycon.KEYBOARD_ADDRESS = 'usb-0000:73:00.3-4.2/input0'

After updating to input1 on the latest handygccs, I can confirm that the back-left button is working as QAM, back-right for screenshot.

from handygccs.

aarron-lee avatar aarron-lee commented on July 17, 2024

Just to clarify, I had to do one more manual code change, which was updating the KEYBOARD_ADDRESS code in gpd_gen3.py from input0 to input1. Worked perfectly afterwards.

I'm not seeing the code change on the main branch, so I'm assuming it's a change that'll be pushed later.

Anyways, thanks for the help with troubleshooting this issue! :)

from handygccs.

pastaq avatar pastaq commented on July 17, 2024

I misread what you wrote. I'll update that soon, thanks!

from handygccs.

pastaq avatar pastaq commented on July 17, 2024

Updated. Please verify and we can close this issue.

from handygccs.

aarron-lee avatar aarron-lee commented on July 17, 2024

just updated to the latest handygccs via pikaur, I can confirm that it all works now.

from handygccs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.