"Emergency" terminal on pinephone (with default setup)
#1
Hello.

I don't have a pinephone for now, but plan to buy one. I have a question about the default setup (or about what can be configured easily).

On desktop linux, if the system works badly, there is an option to get an "emergency" terminal, which does not depend on the graphical X system, by pressing ctrl-alt-f1 or something similar. (Well, if the things go too badly, the computer will not respond to ctrl-alt-f1 either, but often this works.)

Is there such an option on pinephone with the default OS? Do I need an external keyboard for that?
  Reply
#2
Due to the rate of development the 'default' OS that is delivered on the phone will be out of date. It's usually best to replace it with an up to date version when the phone arrives. See the wiki for instructions.

There isn't a direct 'emergency mode' equivalent, but there are a few options you can use:
* boot from uSD instead of the internal eMMC and use the OS on the uSD for recovery
* boot with a serial cable in the headphone socket - this gives you a serial terminal for the bootloader, and subsequent OS.
* boot to 'USB mass storage' mode with either tow-boot or JumpDrive and use a desktop linux to mount the internal drive and do any repairs
* if you have sshd set up on the phone, and the phone auto-connects to the network, you can ssh in even with a blank screen and do repairs.
There are probably more I haven't thought of.

If you use the p-boot bootloader you can probably configure a recovery boot option too, but without an on-screen keyboard you'll need an external one as you say. I often use ssh when more than a little text input is needed, and have used it for recovery in blank-screen situations such as when there was a bug with the auto-brightness that turned off the backlight.
  Reply
#3
Thank you. So, do I understand correctly that all of these options require restart?
  Reply
#4
On Manjaro+Plasma the old Ctrl+Alt+Fn combo does work, although you will need a physical keyboard connected. I just used an "AmazonBasics" USB C to A adapter and a regular USB keyboard.

I used it to do a somewhat orderly reboot when the GUI was playing up when I tried to use the Night Color feature.
  Reply
#5
on postmarketos you can install and use ttyescape (https://wiki.postmarketos.org/wiki/TTYescape)

You can escape to tty2 (with an on screen keyboard) by keeping Vol Down pressed while hitting three times the power button

It just saved me two days ago while updating sxmo Wink
  Reply
#6
Thank you, I will try this if and when I buy the phone.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  link for supported pinephone os manjharo et all penguins_rule 3 368 05-09-2024, 03:02 AM
Last Post: Eugo
  systemic issue pinephone penguins_rule 3 522 04-02-2024, 11:52 AM
Last Post: Kevin Kofler
  new PinePhone upgrade issue WhiteHexagon 5 1,921 05-09-2023, 04:09 PM
Last Post: WhiteHexagon
  Can't add micro SD card to Pinephone thorensjubilee 7 2,695 02-27-2023, 10:21 AM
Last Post: mikehenson
  Pinephone Freeze kmsgli 14 7,789 02-04-2023, 08:35 PM
Last Post: Westslope
  nextcloud setup mruser1 2 1,787 12-05-2022, 03:22 AM
Last Post: alaraajavamma
  Pinephone craches after each call neithan76 2 1,674 07-29-2022, 11:47 AM
Last Post: Chief
  manjaro-pinephone / plasma-mobile-dev: Update broken Uturn 32 30,101 07-28-2022, 12:40 PM
Last Post: johaennessen
  Can't install software via Discover or Terminal Kimberley van Buyten 2 1,628 06-10-2022, 02:13 AM
Last Post: shulamy
  How to convert your pinephone to a palmtop now that you have the clamshell keyboard rotwang 3 3,167 05-09-2022, 08:29 AM
Last Post: ragreenburg

Forum Jump:


Users browsing this thread: 1 Guest(s)