Skip to content

leviport/Monoprice_22_linux_kernel_module

 
 

Repository files navigation

This is an experimental driver for Monoprice 22

Current status: stable as of 11 Nov 2016. Please open issues for any bugs you find.

  • BTN_TOOL_PEN and BUTTON_TOOL_RUBBER are signaled as soon as they are in hover range;
  • BTN_TOUCH is set when stylus or rubber touch the screen;
  • BTN_STYLUS2 is set while button pressed;
  • GIMP and KRITA work, but eraser is not recognized, as in all drivers I've seen

Installation

To install:

  • verify that your computer sees your Monoprice. lsusb should show 'ID 0b57:9016 Beijing HanwangTechnology Co., Ltd';
  • make to build the driver;
  • sudo make install to install the driver.

At this point you should be able to use the stylus as the mouse and with GIMP or Krita, etc.

To uninstall, of course

sudo make uninstall

Troubleshooting

If your stylus is not responsive after hybernation, type sudo /usr/local/bin/load_mono_22.sh. This is a known issue.

You can try checking

  • lsusb for 0b57:9016;
  • lsmod | grep mono for mono_22
  • cat /proc/bus/input/devices to see where your device is attached

With xinput, you can look try

  • xinput and look for 'Monoprice 22'
  • xinput list --long "Monoprice 22"
  • while :; do xinput --query-state "Monoprice 22"; sleep 1; done
  • xinput test "Monoprice 22" also,
  • evtest

Hacking

Obviously, sudo make uninstall and make clean as needed... See aidyw's repo for more information about debugging the driver.

References

based on original drivers by [email protected]

The driver was built to these guidelines:

About

Linux driver for Monoprice 22 aka MP22-HD display/tablet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 59.7%
  • Ruby 30.5%
  • Makefile 6.4%
  • Shell 3.4%