Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #242262 > unrolled thread
| Started by | riveravaldez <riveravaldezmail@gmail.com> |
|---|---|
| First post | 2021-11-20 07:50 +0100 |
| Last post | 2021-11-21 02:20 +0100 |
| Articles | 5 — 4 participants |
Back to article view | Back to linux.debian.user
How to rotate screen AND input (consistently) riveravaldez <riveravaldezmail@gmail.com> - 2021-11-20 07:50 +0100
Re: How to rotate screen AND input (consistently) Dan Ritter <dsr@randomstring.org> - 2021-11-20 13:10 +0100
Re: How to rotate screen AND input (consistently) David Wright <deblis@lionunicorn.co.uk> - 2021-11-20 17:20 +0100
Re: How to rotate screen AND input (consistently) Loïc Grenié <loic.grenie@gmail.com> - 2021-11-20 17:20 +0100
Re: How to rotate screen AND input (consistently) riveravaldez <riveravaldezmail@gmail.com> - 2021-11-21 02:20 +0100
| From | riveravaldez <riveravaldezmail@gmail.com> |
|---|---|
| Date | 2021-11-20 07:50 +0100 |
| Subject | How to rotate screen AND input (consistently) |
| Message-ID | <Dlsmd-2MD-3@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hi, I'm on Debian 11 in a ThinkPad X220 Tablet (convertible) and I need to rotate the display (both physically and GUI) which I do with: $ xrandr --output LVDS-1 --rotate inverted But then the input (trackpad/mouse, stylus, touchscreen, etc.) doesn't rotate accordingly, so it gets unusable... I've been reading different recommendations online but can't figure out which would be the best/proper/simpler approach to achieve this reliably (that hardware input stays consistent with the GUI in display when rotated). What should I do? Any hint? Thanks a lot!
[toc] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2021-11-20 13:10 +0100 |
| Message-ID | <DlxlV-5UL-15@gated-at.bofh.it> |
| In reply to | #242262 |
riveravaldez wrote: > Hi, > > I'm on Debian 11 in a ThinkPad X220 Tablet (convertible) > and I need to rotate the display (both physically and GUI) > which I do with: > > $ xrandr --output LVDS-1 --rotate inverted > > But then the input (trackpad/mouse, stylus, touchscreen, etc.) > doesn't rotate accordingly, so it gets unusable... Right, because for most cases, rotating a monitor doesn't mean picking up your mouse and rotating it, too. If you've got an external mouse, you'll see that works just fine, but that defeats the point of a tablet. > I've been reading different recommendations online > but can't figure out which would be the best/proper/simpler > approach to achieve this reliably (that hardware input > stays consistent with the GUI in display when rotated). > > What should I do? Any hint? I haven't done this, but I believe xinput is going to be your friend. It can list devices, list properties, and set whatever needs to be set. The older way of doing this is to get into the Mouse section of your xorg.conf. Wayland has its own ways, which perhaps someone else can explain. -dsr-
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2021-11-20 17:20 +0100 |
| Message-ID | <DlBfP-89E-3@gated-at.bofh.it> |
| In reply to | #242263 |
[Multipart message — attachments visible in raw view] — view raw
On Sat 20 Nov 2021 at 06:46:45 (-0500), Dan Ritter wrote: > riveravaldez wrote: > > > > I'm on Debian 11 in a ThinkPad X220 Tablet (convertible) > > and I need to rotate the display (both physically and GUI) > > which I do with: > > > > $ xrandr --output LVDS-1 --rotate inverted > > > > But then the input (trackpad/mouse, stylus, touchscreen, etc.) > > doesn't rotate accordingly, so it gets unusable... > > Right, because for most cases, rotating a monitor doesn't mean > picking up your mouse and rotating it, too. > > If you've got an external mouse, you'll see that works just > fine, but that defeats the point of a tablet. > > > I've been reading different recommendations online > > but can't figure out which would be the best/proper/simpler > > approach to achieve this reliably (that hardware input > > stays consistent with the GUI in display when rotated). > > > > What should I do? Any hint? > > I haven't done this, but I believe xinput is going to be your > friend. It can list devices, list properties, and set whatever > needs to be set. > > The older way of doing this is to get into the Mouse section of > your xorg.conf. > > Wayland has its own ways, which perhaps someone else can > explain. Indeed, I do this with xinput in X. My function is called synaps for historical reasons. The xinput is extracted from my bin/xinput-xsession, which itself is called from .xsession because keeping it separate allows you to call it at any time, nut just when X starts. Anyway, they're both attached, lightly anonymised, The reference to viewports may only make sense if you use fvwm. Cheers, David.
[toc] | [prev] | [next] | [standalone]
| From | Loïc Grenié <loic.grenie@gmail.com> |
|---|---|
| Date | 2021-11-20 17:20 +0100 |
| Message-ID | <DlBfQ-89E-5@gated-at.bofh.it> |
| In reply to | #242263 |
[Multipart message — attachments visible in raw view] — view raw
Le sam. 20 nov. 2021 à 13:03, Dan Ritter <dsr@randomstring.org> a écrit :
> riveravaldez wrote:
> > Hi,
> >
> > I'm on Debian 11 in a ThinkPad X220 Tablet (convertible)
> > and I need to rotate the display (both physically and GUI)
> > which I do with:
> >
> > $ xrandr --output LVDS-1 --rotate inverted
> >
> > But then the input (trackpad/mouse, stylus, touchscreen, etc.)
> > doesn't rotate accordingly, so it gets unusable...
>
> Right, because for most cases, rotating a monitor doesn't mean
> picking up your mouse and rotating it, too.
>
> If you've got an external mouse, you'll see that works just
> fine, but that defeats the point of a tablet.
>
> > I've been reading different recommendations online
> > but can't figure out which would be the best/proper/simpler
> > approach to achieve this reliably (that hardware input
> > stays consistent with the GUI in display when rotated).
> >
> > What should I do? Any hint?
>
> I haven't done this, but I believe xinput is going to be your
> friend. It can list devices, list properties, and set whatever
> needs to be set.
I do something like that. In my script the two corresponding
lines are:
TOUCHPAD=`xinput --list --short | grep Synaptics | grep -i pointer | sed -e
's/.*id=//' -e 's/[^0-9].*//'`
xinput set-prop $TOUCHPAD 169 0 -1 0 1 0 0 0 0 1
169 is the "coordinate transformation matrix" for my touchpad.
Hope this helps,
Loïc
[toc] | [prev] | [next] | [standalone]
| From | riveravaldez <riveravaldezmail@gmail.com> |
|---|---|
| Date | 2021-11-21 02:20 +0100 |
| Message-ID | <DlJGp-4FN-1@gated-at.bofh.it> |
| In reply to | #242263 |
On 11/20/21, Dan Ritter <dsr@randomstring.org> wrote: > riveravaldez wrote: >> Hi, >> >> I'm on Debian 11 in a ThinkPad X220 Tablet (convertible) >> and I need to rotate the display (both physically and GUI) >> which I do with: >> >> $ xrandr --output LVDS-1 --rotate inverted >> >> But then the input (trackpad/mouse, stylus, touchscreen, etc.) >> doesn't rotate accordingly, so it gets unusable... > > Right, because for most cases, rotating a monitor doesn't mean > picking up your mouse and rotating it, too. > > If you've got an external mouse, you'll see that works just > fine, but that defeats the point of a tablet. Absolutely right. Thanks a lot for the information. >> I've been reading different recommendations online >> but can't figure out which would be the best/proper/simpler >> approach to achieve this reliably (that hardware input >> stays consistent with the GUI in display when rotated). >> >> What should I do? Any hint? > > I haven't done this, but I believe xinput is going to be your > friend. It can list devices, list properties, and set whatever > needs to be set. Thanks, Dan, I'm going to check it. > The older way of doing this is to get into the Mouse section of > your xorg.conf. > > Wayland has its own ways, which perhaps someone else can > explain. Thanks a lot again. Just to avoid any waste of help, there's nothing/no wayland package in this box, pure X. Regards!
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web