:: Re: [maemo-leste] pinephone bravehe…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Merlijn Wajer
Päiväys:  
Vastaanottaja: maemo-leste
Aihe: Re: [maemo-leste] pinephone bravehearth support
Hi,

On 01/03/2020 14:06, Daniel Abrecht wrote:
> On 2020-03-01 00:42, Merlijn Wajer wrote:
>> 1. you will also have to change the touchscreen use (xinput
>> --map-to-output <number> DSI-1) -- I think it's DSI-1, anyway, also,
>> maybe DSI-1 comes because <number>)
>
> During my attempt to port maemo to the librem5, I've written a program
> and a script to automate this.
>
> This program let's you execute a script if a randr event occurs, and
> exports the event object properties as environment variables:
> https://github.com/Daniel-Abrecht/onrandr
>
> To see the available environment variables the `onrandr` program sets,
> you can use the `env` command like this:
> ```
> env -i DISPLAY="$DISPLAY" ./onrandr -- sh -c "echo; env"
> ```
>
> On the librem5, I have this script to automatically fix the touch screen
> rotation:
> https://github.com/Daniel-Abrecht/image-builder/blob/master/rootfs-overlay/librem5/etc/X11/Xsession.post/70-map-touchscreen
>
>
> Just replace the "generic ft5x06 (f0)" with whatever the touch screen is
> called on the pinephone.
>
> Last time I tried, I wasn't really able to use it in portrait mode,
> though, because it rotated back all the time.


Correct, these are still some problems with portrait mode:
https://github.com/maemo-leste/bugtracker/issues/283

Until those are resolved, I don't think we should even consider
automatically rotating, or starting in portrait mode.

That said, hopefully it won't take too long for that to be fixed.

Cheers,
Merlijn