From bdejonge at xs4all.nl Fri Oct 21 01:31:38 2022 From: bdejonge at xs4all.nl (jan de jonge) Date: Fri, 21 Oct 2022 10:31:38 +0200 Subject: [Librem-5-users] Forgotten Password Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From guru at unixarea.de Fri Oct 21 01:44:30 2022 From: guru at unixarea.de (Matthias Apitz) Date: Fri, 21 Oct 2022 10:44:30 +0200 Subject: [Librem-5-users] Forgotten Password In-Reply-To: References: Message-ID: <20221021084430.GA36@sh4-5.1blu.de> 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. HIH matthias -- 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 https://forums.puri.sm/t/after-software-update-no-wifi-or-wwan-adapter-found/16259/14 steps for building the Jumpdrive (on Ubuntu 20.x, done on 'hannes'): https://source.puri.sm/Librem5/community-wiki/-/wikis/Building-uuu-and-Jumpdrive 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: https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html#flash-the-image running the script ./boot-purism-librem5.sh will give you acces from the Ubuntu to the two partitions 465MB and 28,7GB, see also https://forums.puri.sm/t/cant-use-l5-after-update/16245/14 see also my Jumpdrive.txt see also re-flash-L5.txt 02 Stream https://forums.puri.sm/t/watching-youtube-on-librem-5/16182/4 https://source.puri.sm/todd/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 https://forums.puri.sm/t/phosh-developed-by-purism-for-librem-5-is-the-most-popular-ui-in-pinephone-community-poll-jan-2022/16171/8 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" https://forums.puri.sm/t/internal-mic-fix/15063/12 $ 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: https://forums.puri.sm/t/calls-with-usb-headsets-and-other-audio-devices/16260 and see also: https://forums.puri.sm/t/l5-call-audio-quality/12544/48 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% https://forums.puri.sm/t/l5-basic-suport/15783/39 https://wiki.archlinux.org/title/PulseAudio/Examples 07 Sending SMS from shell: https://forums.puri.sm/t/librem-5-capabilities-that-no-other-phone-has/14878/18 08 About disk decryption passphrase and user 'purism' password: https://forums.puri.sm/t/disk-decryption-passphrase/14848/7 09 Password lost/changed: https://forums.puri.sm/t/password-changed-login-no-longer-possible/14913/3 https://source.puri.sm/Librem5/community-wiki/-/wikis/Building-uuu-and-Jumpdrive https://developer.puri.sm/Librem5/Development_Environment/Phone/Connecting_via_USB.html#usb-serial-console 10 Getting syslog: https://forums.puri.sm/t/how-to-get-lirem-5-kernel-log-in-var-log-syslog-in-addition-to-systemd-journal/14069/3 11 Building signal app: https://forums.puri.sm/t/building-and-running-signal-desktop-on-the-librem-5/14999/3 12 Solving Bluetooth problems: https://forums.puri.sm/t/bluetooth-support-for-librem-5/14965/45 13 Reset by power-off: https://forums.puri.sm/t/librem-5-received-and-inital-reaction/14650/13 14 Send SMS from cmd line (needs some shell scripting): https://source.puri.sm/Librem5/community-wiki/-/wikis/Tips-&-Tricks#send-sms-text-message-from-terminal 15 Flashing the L5: https://forums.puri.sm/t/flashing-to-byzantium/15168 https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html 16 OpenPGP smartcard: https://puri.sm/posts/openpgp-in-your-pocket/ ~purism/guru/OpenPGP-L5.txt 17 Changing the disk encryption password: https://forums.puri.sm/t/librem-5-encryption-confusion/15195/4 18 Charging controller’s datasheets: https://forums.puri.sm/t/librem5-batteryjuice-measurement/15280/17 https://www.ti.com/product/BQ25895 19 Goodvibes stations $ vim ~purism/.var/app/io.gitlab.Goodvibes/data/goodvibes/stations.xml 20 Configuration of phosh https://gitlab.gnome.org/World/Phosh/phosh/-/wikis/Configuration 21 Disk usage && flatpak apps du -sh /var/log/journal 1.6G /var/log/journal https://forums.puri.sm/t/mining-the-journalctl-logs/15618/5 sudo vim /etc/systemd/journald.conf SystemMaxUse=500M MaxFileSec=1month sudo journalctl --rotate sudo journalctl --vacuum-size=500M du -sh /var/log/journal 513M /var/log/journal https://forums.puri.sm/t/reclaim-disk-space/15214 $ sudo journalctl --disk-usage $ sudo journalctl --flush --rotate $ sudo journalctl --vacuum-time=3d flatpak apps https://www.debugpoint.com/2021/10/clean-up-flatpak/ 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 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: https://forums.puri.sm/t/shortcut-to-modem-info/16886 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 ate OK at+BMSWVER +BMSWVER: M100E_1.0.0_190426,BMC_M100E_1BAD_3117_V1.0.0.0_20190426,M100E_1.0.0_190910 OK ate0 OK (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 https://forums.puri.sm/t/epiphany-web-is-very-crashy-on-my-new-librem-5/17067/7 If websites do not display the mobile version, try setting general.useragent.override to something like Mozilla/5.0 (Android 12; Mobile; rv:68.0) Gecko/68.0 Firefox/99.0 in about:config 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/.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 https://forums.puri.sm/t/usb-dcp-5v-1-5a-protocol-and-librem-5/17637/2 more discussion about: https://forums.puri.sm/t/general-charger-through-usb-c/18371/22 «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: https://www.usb.org/sites/default/files/USB_Type-C_Compliance_Document_rev_1_2.pdf It defines our environment.» fetched as : USB_Type-C_Compliance_Document_rev_1_2.pdf