Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Gaomon M106K #332

Closed
OneBadPeanut opened this issue Sep 29, 2020 · 25 comments · Fixed by #335
Closed

Support for Gaomon M106K #332

OneBadPeanut opened this issue Sep 29, 2020 · 25 comments · Fixed by #335
Assignees
Labels
configuration Adds or modifies a tablet configuration enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@OneBadPeanut
Copy link

OneBadPeanut commented Sep 29, 2020

Description

Id like this tablet to be supported so I could play osu with better drivers please :)

@OneBadPeanut OneBadPeanut added the enhancement New feature or request label Sep 29, 2020
@InfinityGhost
Copy link
Member

Export diagnostics in the GUI and send it here. That can help us get a base to start off with.

@InfinityGhost InfinityGhost added the configuration Adds or modifies a tablet configuration label Sep 29, 2020
@InfinityGhost InfinityGhost changed the title Gaomon m106k support? Support for Gaomon M106K Sep 29, 2020
@OneBadPeanut
Copy link
Author

How would I do that?

@InfinityGhost
Copy link
Member

  • Start OpenTabletDriver.UX.Wpf.exe (assuming you're on Windows)
  • In the menu, click Help -> Export diagnostics
  • This will show a save file dialog, which you can just save it and drag it here or upload and link

@OneBadPeanut
Copy link
Author

Alright this should be it this time. Better than my last post which was a bigline of text
gaomon m106k.txt

@InfinityGhost
Copy link
Member

Writing this here for reference

{
  "VendorID": 9580,
  "ProductID": 110,
  "MaxInputReportLength": 8
}

@InfinityGhost
Copy link
Member

Does your release have OpenTabletDriver.Console.exe in it?

@OneBadPeanut
Copy link
Author

yes it does

@InfinityGhost
Copy link
Member

Save this text as Configurations/Gaomon/M106K.json in the configurations folder

{
  "Name": "Gaomon M106K",
  "DigitizerIdentifier": {
    "VendorID": 9580,
    "ProductID": 110,
    "InputReportLength": 8,
    "OutputReportLength": 0,
    "ReportParser": "OpenTabletDriver.Vendors.Gaomon.GaomonReportParser",
    "FeatureInitReport": null,
    "OutputInitReport": null
  },
  "AlternateDigitizerIdentifier": {
    "VendorID": 0,
    "ProductID": 0,
    "InputReportLength": 0,
    "OutputReportLength": 0,
    "ReportParser": null,
    "FeatureInitReport": null,
    "OutputInitReport": null
  },
  "AuxilaryDeviceIdentifier": {
    "VendorID": 0,
    "ProductID": 0,
    "InputReportLength": 0,
    "OutputReportLength": 0,
    "ReportParser": null,
    "FeatureInitReport": null,
    "OutputInitReport": null
  },
  "Width": 254.0,
  "Height": 158.8,
  "MaxX": 50800.0,
  "MaxY": 31760.0,
  "MaxPressure": 2047,
  "ActiveReportID": null,
  "Attributes": {},
  "DeviceStrings": {},
  "InitializationStrings": []
}

We still need to get device strings from the tablet with the console app, however.

@InfinityGhost
Copy link
Member

InfinityGhost commented Sep 29, 2020

  • Make sure the GUI is closed
  • Launch OpenTabletDriver.Daemon.exe by itself
  • Using powershell, cd into the directory with OpenTabletDriver.Console.exe
  • From there run the following, which if successful will return a string and save it to 201.txt which we will use for identification.
./OpenTabletDriver.Console.exe getstring 201 | Out-File ./201.txt
  • Send that file or its contents here.

@InfinityGhost InfinityGhost added this to the v0.4.1 milestone Sep 29, 2020
@OneBadPeanut
Copy link
Author

OneBadPeanut commented Sep 29, 2020

I think I might've done something wrong but I will send anyways
201.txt
this was also in the bin folder where opentabletdriver.console was

@InfinityGhost
Copy link
Member

oops, forgot we need a development build for the getstring command. https://github.com/InfinityGhost/OpenTabletDriver/actions/runs/278801343

@InfinityGhost
Copy link
Member

You'll have to close the daemon and recopy that configuration, but otherwise redo the previous steps with the development build.

@OneBadPeanut
Copy link
Author

OneBadPeanut commented Sep 29, 2020

201.txt
I got this once I did that, was daemon supposed to be closed?

@InfinityGhost
Copy link
Member

This configuration should work almost correctly now, however we still need one more thing, the active report range. This is where you use the tablet debugger to see what the ReportID property changes to when dragging, hovering, and when the pen is off of the tablet.

{
  "Name": "Gaomon M106K",
  "DigitizerIdentifier": {
    "VendorID": 9580,
    "ProductID": 110,
    "InputReportLength": 8,
    "OutputReportLength": 0,
    "ReportParser": "OpenTabletDriver.Vendors.Gaomon.GaomonReportParser",
    "FeatureInitReport": null,
    "OutputInitReport": null
  },
  "AlternateDigitizerIdentifier": {
    "VendorID": 0,
    "ProductID": 0,
    "InputReportLength": 0,
    "OutputReportLength": 0,
    "ReportParser": null,
    "FeatureInitReport": null,
    "OutputInitReport": null
  },
  "AuxilaryDeviceIdentifier": {
    "VendorID": 0,
    "ProductID": 0,
    "InputReportLength": 0,
    "OutputReportLength": 0,
    "ReportParser": null,
    "FeatureInitReport": null,
    "OutputInitReport": null
  },
  "Width": 254.0,
  "Height": 158.8,
  "MaxX": 50800.0,
  "MaxY": 31760.0,
  "MaxPressure": 2047,
  "ActiveReportID": null,
  "Attributes": {},
  "DeviceStrings": {
    "201": "OEM02_T151_\\d{6}$"
  },
  "InitializationStrings": [
    200
  ]
}

@InfinityGhost
Copy link
Member

I got this once I did that, was daemon supposed to be closed?

If I understand what you meant, the daemon exited after requesting the string? That's a separate issue on its own I'll tackle another time.

@InfinityGhost InfinityGhost added the good first issue Good for newcomers label Sep 29, 2020
@OneBadPeanut
Copy link
Author

It says no tablet detected so should i still use the dev build or switch to the other one

@InfinityGhost
Copy link
Member

Does it still not detect if you change the DeviceStrings property to empty?

"DeviceStrings": {},

@InfinityGhost InfinityGhost self-assigned this Sep 29, 2020
@OneBadPeanut
Copy link
Author

it still is not detected. F

@InfinityGhost
Copy link
Member

Re-export diagnostics and resend. I think something might have changed.

@OneBadPeanut
Copy link
Author

gaomon m106k 2.txt
this is it now i left in everything this time so hopefully it helps

@InfinityGhost
Copy link
Member

Okay, try setting this property to empty, restart the daemon and gui

  "InitializationStrings": []

@OneBadPeanut
Copy link
Author

no but i got this as a message
image

@InfinityGhost
Copy link
Member

This is gonna require USB packet sniffing the Gaomon driver to figure out what they're doing to open the device stream. https://discord.gg/P3GYdUS and later on we'll see what we can do.

@OneBadPeanut
Copy link
Author

alright then I appreciate the help though

@OneBadPeanut
Copy link
Author

This is what I also get in daemon.exe
image

@InfinityGhost InfinityGhost linked a pull request Sep 30, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Adds or modifies a tablet configuration enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants