Distro patch to rotate pressure-sensitive tablets when RANDR changes

View: New views
5 Messages — Rating Filter:   Alert me  

Distro patch to rotate pressure-sensitive tablets when RANDR changes

by Federico Mena Quintero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

In the old resapplet, openSUSE had a patch to rotate a graphics tablet
(Wacom, etc.) when you rotate your monitor.  This was very useful for
tablet PCs like the Lenovo T61.

I just resurrected that patch for the new gnome-settings-daemon and
gnome-display-properties.

Talking to Søren and #xorg-devel about this, we decided that it's best
to leave this semi-hack as a patch in distros, and instead do the right
thing in X itself (have the input drivers detect RANDR events and rotate
themselves if needed).  But while that infrastructure becomes available,
it's still useful to rotate tablets automatically.

The patches are thus:

gnome-settings-daemon - Add a
boolean /apps/gnome-settings-daemon/xrandr/rotate_tablet_with_monitor
key in GConf.  If true, the tablet is rotated with xsetwacom when you
rotate your monitor.  If false, the tablet is not rotated.

gnome-control-center - Add a checkbox to the gnome-display-properties
dialog for the option above.  We don't detect if your tablet is built-in
or not, so we need this option for now.

The Git repositories are here:
http://gitorious.org/projects/gnome-settings-daemon/repos/mainline
http://gitorious.org/projects/gnome-control-center/repos/mainline

Look for the "rotate-wacom-tablet" branches in those repositories.

  Federico

_______________________________________________
gnomecc-list mailing list
gnomecc-list@...
http://mail.gnome.org/mailman/listinfo/gnomecc-list

Re: Distro patch to rotate pressure-sensitive tablets when RANDR changes

by Behdad Esfahbod-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Federico.  Love to see this in Fedora.

Federico Mena Quintero wrote:

> Hi,
>
> In the old resapplet, openSUSE had a patch to rotate a graphics tablet
> (Wacom, etc.) when you rotate your monitor.  This was very useful for
> tablet PCs like the Lenovo T61.
>
> I just resurrected that patch for the new gnome-settings-daemon and
> gnome-display-properties.
>
> Talking to Søren and #xorg-devel about this, we decided that it's best
> to leave this semi-hack as a patch in distros, and instead do the right
> thing in X itself (have the input drivers detect RANDR events and rotate
> themselves if needed).  But while that infrastructure becomes available,
> it's still useful to rotate tablets automatically.
>
> The patches are thus:
>
> gnome-settings-daemon - Add a
> boolean /apps/gnome-settings-daemon/xrandr/rotate_tablet_with_monitor
> key in GConf.  If true, the tablet is rotated with xsetwacom when you
> rotate your monitor.  If false, the tablet is not rotated.
>
> gnome-control-center - Add a checkbox to the gnome-display-properties
> dialog for the option above.  We don't detect if your tablet is built-in
> or not, so we need this option for now.
>
> The Git repositories are here:
> http://gitorious.org/projects/gnome-settings-daemon/repos/mainline
> http://gitorious.org/projects/gnome-control-center/repos/mainline
>
> Look for the "rotate-wacom-tablet" branches in those repositories.
>
>   Federico
>
> _______________________________________________
> distributor-list mailing list
> distributor-list@...
> http://mail.gnome.org/mailman/listinfo/distributor-list
_______________________________________________
gnomecc-list mailing list
gnomecc-list@...
http://mail.gnome.org/mailman/listinfo/gnomecc-list

Re: Distro patch to rotate pressure-sensitive tablets when RANDR changes

by Matthias Clasen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Feb 4, 2009 at 3:33 PM, Behdad Esfahbod <behdad@...> wrote:

[...]

>   But while that infrastructure becomes available,
>> it's still useful to rotate tablets automatically.

While we are talking about infrastructure becoming available, it is
worth pointing out that the recently released version 1.0 of the
synaptics driver supports device properties, so the Ubuntu patch to
add touchpad configuration to one of the capplets can now be done
properly instead of using the shmconfig crack.

Maybe somebody want to look into that...


Matthias
_______________________________________________
gnomecc-list mailing list
gnomecc-list@...
http://mail.gnome.org/mailman/listinfo/gnomecc-list

Re: Distro patch to rotate pressure-sensitive tablets when RANDR changes

by Bastien Nocera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2009-02-04 at 13:29 -0600, Federico Mena Quintero wrote:
> Hi,
>
<snip>
> The Git repositories are here:
> http://gitorious.org/projects/gnome-settings-daemon/repos/mainline
> http://gitorious.org/projects/gnome-control-center/repos/mainline
>
> Look for the "rotate-wacom-tablet" branches in those repositories.

Could we please have patches against the latest trunk instead?

Cheers

_______________________________________________
gnomecc-list mailing list
gnomecc-list@...
http://mail.gnome.org/mailman/listinfo/gnomecc-list

Re: Distro patch to rotate pressure-sensitive tablets when RANDR changes

by Federico Mena Quintero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-02-05 at 11:56 +0000, Bastien Nocera wrote:
> On Wed, 2009-02-04 at 13:29 -0600, Federico Mena Quintero wrote:
> > http://gitorious.org/projects/gnome-settings-daemon/repos/mainline
> > http://gitorious.org/projects/gnome-control-center/repos/mainline
> Could we please have patches against the latest trunk instead?

Huh, I screwed up something in gnome-control-center and somehow created
that branch from an older revision.  I just rebased against trunk; it's
in gitorious now.

Sorry if you had fetched that incorrect version; to fix it if you had a
remote for that gitorious repo, do something like

  git branch -D <branchname>
  git fetch gitorious

  Federico

_______________________________________________
gnomecc-list mailing list
gnomecc-list@...
http://mail.gnome.org/mailman/listinfo/gnomecc-list