PINE64
Flip portrait orientation 180 degrees - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Flip portrait orientation 180 degrees (/showthread.php?tid=12795)



Flip portrait orientation 180 degrees - 3x5co - 01-15-2021

I bought a bluetooth keyboard with a groove to put my phone in. It works great, but I can't plug in my phone when it's docked. I'm hoping there's a way to change the settings so that I'm essentially holding the phone upside-down when in portrait orientation.


RE: Flip portrait orientation 180 degrees - 3x5co - 01-15-2021

OK, I have found a semi-solution to this.

```
sudo apt install wlr-randr
```

Then edit ~/.bashrc and add this:

```
function flip() { wlr-randr --output DSI-1 --transform 180; }
```

Then `. ~/.bashrc` to reload bash. Now, when you run `flip` either on the phone's terminal or over SSH, You'll be in upside-down portrait mode.

This is nice because you can dock your phone and keep it plugged in, and the headphone position is like an old iPod touch (if you like that).

However, you can't flip it this way using the indicator. It will flip back to normal portait mode if you click it, then landscape. These are the three things I would like to do:


  1. Make the upside-down portrait orientation permanent;
  2. Make it work with the phosh indicator;
  3. Invert the volume buttons so they're also upside-down.



RE: Flip portrait orientation 180 degrees - dukla2000 - 01-22-2021

(01-15-2021, 01:21 PM)3x5co Wrote: ...

  1. Make the upside-down portrait orientation permanent;
  2. Make it work with the phosh indicator;
...

Arch has this working recently (say in January sometime, not sure when): enabling auto screen rotation via Phosh indicator and it does what you expect.