[gutsy] screen resolution rotation does not rotate wacom

Bug #133430 reported by Andrew Frank
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wacom-tools (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

i have a tablet wtih a wacom stylus (stylistic 5010 fujitsu siemens)

if i change the screen orienation using the GUI screen resolution in preferences
the screen rotates
but the wacom stylus does not rotate

it is necessary that screen rotate checks for the presence of a wacom stylus and rotates this with the screen.
otherwise the screen visible and the cursor are not moving together!

thank you for the 7.10!

Revision history for this message
cornbread (corn13read) wrote : same issue

I have the same issue! The cursor is not following the pen and is about 2 inches away from my pen. I am using a Lenovo Thinkpad x60 Tablet on Gutsy herd 5

Revision history for this message
Andrew Frank (frank-geoinfo) wrote :

i attach the xorg.conf file, with the additions that are required.
(attention - my default position is portrait)

Revision history for this message
Russell Sears (sears) wrote :

I have attached two perl scripts that I use to rotate my screen on an x61 tablet. They should work (more or less) on the x60 tablet as well.

They handle xrandr, wacom rotation, and also set the arrow buttons on the front panel to the appropriate keyboard arrow keys. rotscreen.new calls xrandr 1.2 binaries (from gutsy), rotscreen.old uses xrandr 1.1 bianries (from feisty)

To set the keys, you need to add this to your sudo config (with visudo):

user ALL=(ALL) NOPASSWD: /usr/bin/setkeycodes * *

(Change user to your username...)

If you pass an argument, it's a number from 0-4 that controls the screen rotation. Zero = normal. If you don't, it toggles the screen between my two preferred screen orientations. (I'm left handed....)

Revision history for this message
Russell Sears (sears) wrote :
Revision history for this message
lcampagn (luke-campagnola) wrote :

See http://luke.no-ip.org/x60tablet/#rotate_script for a similar script.

Of course, it would be really nice if xrandr would handle these things on its own. .. or perhaps the wacom drivers should detect screen rotation?

Revision history for this message
Russell Sears (sears) wrote :

The problem with having xrandr or the driver hardcode the policy is that it wouldn't work properly with other wacom hardware (not all wacom devices are built into screens, and it's unclear what to do when there are multiple displays, and the user rotates one of them...).

Perhaps some sort of event notification thing would make more sense. xrandr could generate events like acpi and hotplug do. Then the wacom rotation script could be registered with an event notification daemon, just like the gnome power management stuff... That would make it easier to write quick and dirty scripts that "do the right thing", and let the gnome people try out a few GUIs (and maybe a graphical calibration tool...) until they're happy with it...

Revision history for this message
Tom Jaeger (thjaeger) wrote :

All of this is possible today. I've attached a little program that selects for XRandR changes and then sets the orientation of the stylus accordingly.

Compile it via
gcc -Wall -lX11 -lXrandr wacomrotate.c -o wacomrotate
and then run it as
./wacomrotate &

Caveat: If you are using more than one screen, the program might not do the right thing, I can't test this right now. If you're having any trouble with it, please let me know.

Revision history for this message
Tom Jaeger (thjaeger) wrote :

The bug should probably be moved to wacom-tools.

Revision history for this message
Tom Jaeger (thjaeger) wrote :

Oh, and if you're missing development files, "apt-get build-dep xrandr" should take care of it.

Bryce Harrington (bryce)
Changed in xrandr:
importance: Undecided → Low
Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

Tom: your prgram works. I made a quick hack to let it disable compiz when rotating. It is not a solution for the general public (it should at least check if compiz is running, and let the user configure the alternate window manager) but works for me and can be customized. I attach it here for reference. The "sleep" allows you to detach the pen from the screen (it will de-calibrate when switching back to compiz if you keep it on screen - must be a bug).

Revision history for this message
Brandon Dubois (tu13es) wrote :

I've got a Lenovo X60 as well and experience the same issues as people above. I'm currently running Fedora 8 with XFCE and Compiz-Fusion.

I tried the wacomrotate.c file changing "metacity" to "gtk-window-decorator", but in both cases the script doesn't seem to do anything.

Any ideas?

Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

randon: why did you change metacity to gtk-window-decorator? The latter is just responsible to draw borders and titlebar under *compiz*. If you want to disable 3d effects and use gnome, you most likely want metacity there. Then, the program must be running when you rotate the screen (try launching that from a terminal and letting it open). If that works, you can add the program to your session.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.