donbowman / kde-auto-rotate

Autorotate the display & pointers on a convertible laptop
Apache License 2.0
54 stars 24 forks source link

Thinkpad Helix Wacom Pen Not Rotating #2

Open benyanke opened 6 years ago

benyanke commented 6 years ago

The pen included with the Thinkpad Helix is not rotating. Have you used a pen with this script, or just touch?

Wacom handles pen detection a bit oddly, so I'm still working on it, but a potential fix is about 50% done, if you are interested.

donbowman commented 6 years ago

i'm not sure what pen rotation means(?) but i'm on an asus ux370 w/ a pen. But i don't use the pen tbh.

On Mon, 15 Oct 2018 at 14:18, Ben Yanke notifications@github.com wrote:

The pen included with the Thinkpad Helix is not rotating. Have you used a pen with this script, or just touch?

Wacom handles pen detection a bit oddly, so I'm still working on it, but a potential fix is about 50% done, if you are interested.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/donbowman/kde-auto-rotate/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AE5OkwSWSW5pwGpABb9UiOaDDf8h9lXoks5ulNGMgaJpZM4Xc4V7 .

benyanke commented 6 years ago

The rotation issue is relating to where the touches of the pen translate. By default, the pen works in normal mode, but if you rotate the screen 90 degrees and use the pen, the cursor is moved by the pen at a 90 degree shift (a pen tap on the top left screen makes the mouse tap on the bottom left, for example).

When you have a sec, could you try your pen with rotation? I'd be curious if it's helix specific.

donbowman commented 5 years ago

Can you post the output of: xinput list ?

TheElectricWarlock commented 5 years ago

I also have this same device and this is in fact a problem. I have found a simple solution in order to solve this problem. Install the package "kde-config-tablet", which is available on any Ubuntu based distribution. Remove the pen from the holder, and look for the application called "Graphic Tablet". Under the "Tablet" tab, select "Invert Auto-Rotation". This will invert the input of the pen every time the screen rotates.

benyanke commented 5 years ago

Thanks for that frostclaw!

I have had little time to work on this, but I'm getting close. Turns out there is some sort of environment or scoping issue going on, as it works fine when run in a minimized terminal or gnuscreen session, but fails when using the included systemd options. I'll try and submit something soon once I fully figure out what's going on.

There was one weird quirk I found where xinput doesn't list the touch pen until it's been touched, then it disappears off the list again. To get around this, I did a hack where it writes known devices to a tmp file, then reads back from that tmp file on the next loop around, even if the device is gone.

pheidrias commented 4 years ago

Hello Ben,

have you found a way to make this script permanent?

I do have the same problem: manually enabled and started it works fine, but the corresponding (running!) auto-started process doesn't rotate (it seems to react on the sensor change though - journalctl) the screen :-(.

Thanks for any input, pheidrias

benyanke commented 4 years ago

I'll admit I haven't used this device in months...so I haven't had any luck nor have I attempted to do so. I'll revisit this if I ever come back to it!