Holy crap thanks so much for this!
setting properties to the xinput devices says the following:
Got any idea how I can fix that?
EDIT: Fixed it, apparently I was trying to change the properties to one of the 5 input devices with the same name as the tablet(?) anyway I did xinput to the right one and everything works! Thanks so much for this!
setting properties to the xinput devices says the following:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 131 (XInputExtension)
Minor opcode of failed request: 57 ()
Serial number of failed request: 20
Current serial number in output stream: 21
Got any idea how I can fix that?
EDIT: Fixed it, apparently I was trying to change the properties to one of the 5 input devices with the same name as the tablet(?) anyway I did xinput to the right one and everything works! Thanks so much for this!
SlowLogicBoy wrote:
I want to chime in with this so here I go:
Relevant Specs
Ubuntu Mate 16.10
GTX 660
XP-Pen G430
2x Monitors 1920x1200 + 1680x1050
Tablet:
My tablet didn't work out of the box so I just used tips from Huion H420 / osu!tablet area and monitor mapping installed Digimend drivers, unplugged and plugged back in my tablet.. WORKS LIKE A CHARM
Tablet appeared as:
⎜ ↳ UGTABLET TABLET G3 4x3 Mouse id=8 [slave pointer (2)]
⎜ ↳ UGTABLET TABLET G3 4x3 Mouse id=9 [slave pointer (2)]
⎜ ↳ UGTABLET TABLET G3 4x3 Pen id=10 [slave pointer (2)]
I used "UGTABLET TABLET G3 4x3 Pen" to config everything:
First of I like to play with "Forced Proportions" and since my tablet isn't 16:10,I had to tweak it a bit:
xinput --list-props "UGTABLET TABLET G3 4x3 Pen"
gave me:
Coordinate Transformation Matrix (154): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
So to suit me I had to tweak this matrix to my needs...
First value gives me how my tablets x axis is mapped to my Screen (Screen = all monitors), so lets work on that.
if my both monitors would be same resolution, I could just type 0.5 and that would be it, but since they are not, I need to calc how much of my screen takes main monitor, so
Sceen:
1920+1680 = 3600
And proportion:
1920/3600 = 0,533333333333,
so now I have the X mapping value.
Second 1 in that matrix is for Y mapping, since my tablets active area is 120:77 it doesn't map to 16:10 so I need to tweak this number too.
16/10 = 1.6 (you can do that with resolution too 1920/1200)
To find out how much of Y I need on tablet
120/1.6 = 75
To make that 75 be my whole Y:
77/75 = 1.026666
So I got my X and Y mapping to apply them:
xinput set-prop 'UGTABLET TABLET G3 4x3 Pen' 'Coordinate Transformation Matrix' 0.533333, 0.000000, 0.000000, 0.000000, 1.026666, 0.000000, 0.000000, 0.000000, 1.000000
More on Coordinate Transformation Matrix you can read here
Performance: (I only speak for Nvidia)
This was done after tips from this thread,
These apply for Ubuntu Mate
Problem: When I switch to another program (or otherwise loose focus on osu!) Keyboard input is no longer registered in osu!
Solution: Play full screen + Add wine registry: 'HKEY_CURRENT_USER\Software\Wine\X11 Driver' String Value 'UseTakeFocus' with value 'N' (everything without ' (quote) of course)
Problem: Screen tearing
Solution: Mate Tweaks -> Windows -> Window manager change to Compiz
For some people Marco Compton works better, but for me Tearing still occurred.