Hello,

I was able to re-create the files of your patch and added them into my build 
tree.

Not having an accelerometer, I’ve had to make a few changes.
When you said, ‘It had issues’, I am also seeing some issues.

I can rotate my screen, but something about the callback (weston_rotate_rotate) 
is acting strange.
I have added a loop in autorotate that calls weston_rotate_rotate every 10 
secs.   I am logging out to Weston_log.
It seems I only get those logs once every 15-30 minutes and when I do, it’s 
hundreds of logs.  What’s up with that?

Also, my taskbar is the wrong length and my background is black.  Other than 
that, pretty cool.

You can’t remember what issues there were before?

Thanks again,


-dwd
                                                                         David 
Deyo
[cid:image003.png@01D78A0C.BBC29090]

Firmware Engineer
TPI- Tire Profiles
O: 214-396-3063
E:   dd...@tireprofiles.com<mailto:dd...@tireprofiles.com> | W:  
www.tireprofiles.com<http://www.tireprofiles.com/>
A: 3010 Story Rd W, Irving, TX 75038


From: Emmanuel Gil Peyrot<mailto:linkma...@linkmauve.fr>
Sent: Tuesday, August 3, 2021 11:00 AM
To: David Deyo<mailto:dd...@tireprofiles.com>
Cc: 
wayland-devel@lists.freedesktop.org<mailto:wayland-devel@lists.freedesktop.org>
Subject: Re: FW: xrandr and xwayland

Hi,

On Tue, Aug 03, 2021 at 01:04:11PM +0000, David Deyo wrote:
[…]
> I believe our compositor (Weston) can do it, transform=90, but to use this 
> method, it has to be restarted; causing our gui app to crash and lose all 
> entered data.
> The client probably needs to drive the orientation.   Considering our gui 
> will likely be in python3/tkinter, I will need some way create a page and 
> rotate the display.

I once implemented such a plugin[1] for Weston, it never got merged
because it had issues I don’t completely remember, but could be a good
starting point.

It relies on the iio subsystem to provide accelerometer data, and then
automatically rotates once it detects the display is sideways.

Hope it’ll help. :)

[1] https://lists.freedesktop.org/archives/wayland-devel/2016-August/030396.html

--
Emmanuel Gil Peyrot

Reply via email to