"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
  New PinePhone user issues greenpineuser 7 560 11-14-2024, 01:51 PM
Last Post: TuxUnderTheArch
  PinePhone Beta Edition will not boot from MicroSD card Timothy_Ecc 10 8,673 10-04-2024, 12:01 AM
Last Post: spazz
  Pinephone with KDE plasma - Battery drain when phone is not used Daniello 1 395 07-03-2024, 08:38 PM
Last Post: Kevin Kofler
  link for supported pinephone os manjharo et all penguins_rule 3 922 05-09-2024, 03:02 AM
Last Post: Eugo
  systemic issue pinephone penguins_rule 3 1,088 04-02-2024, 11:52 AM
Last Post: Kevin Kofler
  new PinePhone upgrade issue WhiteHexagon 5 2,749 05-09-2023, 04:09 PM
Last Post: WhiteHexagon
  Can't add micro SD card to Pinephone thorensjubilee 7 3,701 02-27-2023, 10:21 AM
Last Post: mikehenson
  Pinephone Freeze kmsgli 14 9,690 02-04-2023, 08:35 PM
Last Post: Westslope
  nextcloud setup mruser1 2 2,275 12-05-2022, 03:22 AM
Last Post: alaraajavamma
  Pinephone craches after each call neithan76 2 2,053 07-29-2022, 11:47 AM
Last Post: Chief

Forum Jump:


Users browsing this thread: 1 Guest(s)