[Librem-5-users] Forgotten Password

Matthias Apitz guru at unixarea.de
Fri Oct 21 01:44:30 PDT 2022

El día Freitag, Oktober 21, 2022 a las 10:31:38 +0200, jan de jonge via Librem-5-users escribió:

> Hello al,
> My new Librem 5 is going through the setup phase.
> Entering the new password went well.
> Memorization went less well.
> How do I reset the device to factory default?
> or how to deal with this sytualtie?
> Any help is much appreciated.
> Best regards,
> Jan

Hello Jan,

This mailing-list in nearly dead (around 5 mails since 2018). Better ask
in the forum: https://forums.puri.sm/c/librem/phones/11

Said that, I would prefer as well communication via mailing list.

I'm attaching you my file L5hints.txt which contains tips, pointers and tricks.
Number 01 and 09 deal with your problem.



Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!
-------------- next part --------------

01 Jumpdrive - what do to when L5 does not boot anymore
02 Stream
03 Gnome-power-manager
04 Improve the outgoing audio in calls with the "internal mic fix"
05 Enable show percentage of battery
06 Increase volume of the speaker
07 Sending SMS from shell
08 About disk decryption passphrase and user 'purism' password
09 Password lost/changed
10 Getting syslog
11 Building signal app
12 Solving Bluetooth problems
13 Reset by power-off
14 Send SMS from cmd line (needs some shell scripting)
15 Flashing the L5
16 OpenPGP smartcard
17 Changing the disk encryption password
18 Charging controller’s datasheets
19 Goodvibes stations
20 Configuration of phosh
21 Disk usage && flatpak apps
22 Temperature
23 Installed kernel version
24 Modem Information
25 firefox-esr
26 analyze journal logs
27 Unwilling to update problem
28 How to become root
29 Where Chatty stores the messages (SMS, ...)
30 When a give pkg was installed
31 Navigating on Librem 5 using a keyboard
32 L5 Power Supply

01 Jumpdrive - what do to when L5 does not boot anymore


    steps for building the Jumpdrive (on Ubuntu 20.x, done on 'hannes'):

    steps for setting the L5 into the correct mode but DO NOT run
    the flash script, but then run Jumpdrive with ./boot-purism-librem5.sh:

    running the script ./boot-purism-librem5.sh will give you acces from
    the Ubuntu to the two partitions 465MB and 28,7GB, see also

    see also my Jumpdrive.txt
    see also re-flash-L5.txt

02 Stream


    how to build:

    $ tar xzf Stream-master.tar.gz
    $ cd Stream-master
    $ meson --reconfigure build
    $ ninja -C build
    $ sudo ninja -C build install

03 Gnome-power-manager

    read full thread from message 8 ... 26
    and do also:
    $ gsettings set sm.puri.phoc.application:/sm/puri/phoc/application/org-gnome-powerstats/ scale-to-fit true

04 Improve the outgoing audio in calls with the "internal mic fix" 

    $ sudo apt install pavucontrol
    start the app and do:
    1. Choose the “Input Devices” tab
    2. Unlink the Left/Right gain controls to give independent control of each
    3. Disable top internal mic by setting “Front Left” gain to 0%

    one can set this as well from shell (and it's boot fest):

    $ pactl set-source-volume 1 0% 75%
    $ pacmd list-sources | grep -A7 "index: 1"

    in addition, there is a longish post about how to configure
    external headsets:

    and see also:

    I tested it, but the "Left=0%" gives better audio. Once I messed up
    the pulseaudio completely. One can fix this by just removin ~/.config/pulse/
    and reboot.

05 Enable show percentage of battery

    $ gsettings set org.gnome.desktop.interface show-battery-percentage true

    (was in System settings, but disappeared)

06 Increase volume of the speaker:

    $ pactl set-sink-volume 0 +10%

07 Sending SMS from shell:


08 About disk decryption passphrase and user 'purism' password:


09 Password lost/changed:


10 Getting syslog:


11 Building signal app:


12 Solving Bluetooth problems:


13 Reset by power-off:


14 Send SMS from cmd line (needs some shell scripting):


15 Flashing the L5:


16 OpenPGP smartcard:


17 Changing the disk encryption password:


18 Charging controller’s datasheets:


19 Goodvibes stations

    $ vim ~purism/.var/app/io.gitlab.Goodvibes/data/goodvibes/stations.xml

20 Configuration of phosh


21 Disk usage && flatpak apps

    du -sh /var/log/journal
    1.6G	/var/log/journal


    sudo vim /etc/systemd/journald.conf

    sudo journalctl --rotate
    sudo journalctl --vacuum-size=500M

    du -sh /var/log/journal
    513M	/var/log/journal

    $ sudo journalctl --disk-usage
    $ sudo journalctl --flush --rotate
    $ sudo journalctl --vacuum-time=3d

    flatpak apps


    du -sh /var/lib/flatpak
    1.9G	/var/lib/flatpak

    flatpak --columns=name,size list
    Name                                               Installed size
    Foliate                                              4.5 MB
    Goodvibes                                          714.8 kB
    Freedesktop Platform                               534.3 MB
    Mesa                                               290.1 MB
    ffmpeg-full                                          8.5 MB
    GNOME Application Platform version 41              736.0 MB
    Telegram Desktop                                   136.9 MB
    Telegram Desktop Webview Add-on                     90.5 MB

    flatpak --columns=app,name,size,installation list
    Application ID                  Name ...
    com.github.johnfactotum.Foliate Foliate ...

    flatpak uninstall --unused
    Nothing unused to uninstall

    flatpak uninstall <application ID>

22 Temperature

    Sebastian Krzyszkowiak:

    tail -n+0 /sys/class/thermal/thermal_zone?/{type,temp}

    `cpu-thermal`, `gpu-thermal` and `vpu-thermal` have obvious meaning.
    `max170xx_battery` is the temperature of the gauge chip, and
    `bq25890-charger` is the temperature of the battery.
    see also ~/guru/temp.sh

23 Installed kernel version

   apt list --installed 2>/dev/null | grep '^linux-image-.*-librem5'

24 Modem Information and firmware (using kermit)

   mmcli -h
   mmcli -L    (gives the modem number)
   mmcli --modem=3
   mmcli --modem=any    (as we have only one modem)

   how to make an shortcut icon for a small terminal app, see:

   cat ~/.kermrc
   set escap 21
   set line /dev/ttyUSB3
   set carrier-watch off

   $ sudo kermit ~pureos/.kermrc
   C-Kermit 9.0.305 OPEN SOURCE: Alpha.02, 19 Sep 2020, for Linux+SSL+KRB5 (64-bit)
    Copyright (C) 1985, 2020,
     Escape character: Ctrl-U (ASCII 21, NAK): enabled
   Type the escape character followed by C to get back,
   or followed by ? to see other options.
   (/home/purism/) C-Kermit> connect
   +BMSWVER: M100E_1.0.0_190426,BMC_M100E_1BAD_3117_V1.0.0.0_20190426,M100E_1.0.0_190910
   (Ctrl-U c)
   (/home/purism/) C-Kermit>quit
   Closing /dev/ttyUSB3...OK

   Re/ a firmware issue, see: https://gitlab.gnome.org/GNOME/calls/-/issues/116
   bad fw shows as:
   +BMSWVER: M100E_1.0.0_190426,BMC_M100E_1BAD_3117_V1.0.0.0_20190426,M100E_1.0.0_190426


25 firefox-esr


   If websites do not display the mobile version, try setting


   to something like

   Mozilla/5.0 (Android 12; Mobile; rv:68.0) Gecko/68.0 Firefox/99.0



26 analyze journal logs

   sudo journalctl --since today
   sudo journalctl --since -1h

27 Unwilling to update problem

   see also: https://forums.puri.sm/t/one-l5-unwilling-to-update/17207/10

   sudo mv /var/lib/apt/lists{,.old}
   sudo apt update

   sudo apt full-upgrade

   after reboot:

   sudo apt autoremove

   if all went well 

   sudo rm -rf /var/lib/apt/lists.old

   Required reboot is indicated by a file, /var/run/reboot-required.

28 How to become root

   sudo -s

29 Where Chatty stores the messages (SMS, ...)

   printf 'select time, body from messages\n' | sqlite3 ~/.purple/chatty/db/chatty-history.db
   1656974576|Die Aufbuchung  von 10.00 € war erfolgreich, Ihr neues Guthaben beträgt 13.62 €.

30 When a give pkg was installed

   You can check modification time of the file

   ls -l /var/lib/dpkg/info/<package_name>.list
   ls -lt /var/lib/dpkg/info/*.list

   This is regenerated for each successful install/update of the package
   by low level Debian dpkg tool which are controlled by apt, aptitude etc…

31 Navigating on Librem 5 using a keyboard

   see also: https://forums.puri.sm/t/navigating-on-librem-5-using-a-keyboard/18280/4

   some of phosh default shortcuts are:

   Super + (Left|Right):
                      Tile the focused window to the left or right side
                      of the active screen
   Super + Shift + (Left|Right):
                      Move the focused window to the left or right display
   Super + (Up|Down): Maximize or unmaximize the focused window
   Super + a:         Open the App Launcher, where you can type in the name of the
                      application to launch, or select it with arrow keys
   Super + s:         Open the App Switcher (similar to hitting the bottom section
                      of the touchscreen on the phone). This allows you to switch
                      between running applications using the arrow keys

32 L5 Power Supply

   Sebastian Krzyszkowiak (aka 'dos') in the forum in thread
   USB-DCP-5V-1.5A protocol and Librem 5

   more discussion about:

   «For our interest here, this document is very important initial document
   (prior to recent ones, and latest one defining PD3.1), let me sort it as
   historical one, official one that belongs to this thread:
   It defines our environment.»
   fetched as : USB_Type-C_Compliance_Document_rev_1_2.pdf

More information about the Librem-5-users mailing list