Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 28,088
» Latest member: harisq
» Forum threads: 15,672
» Forum posts: 114,509

Full Statistics

Latest Threads
Slarm64 on PinePhone [Uno...
Forum: PinePhone Software
Last Post: donchurch
8 hours ago
» Replies: 35
» Views: 24,478
Bluetooth Handsfree Bount...
Forum: General Discussion on PinePhone
Last Post: conifera
Yesterday, 04:58 PM
» Replies: 23
» Views: 1,771
Install Tow-Boot on the S...
Forum: Pinebook Pro Tutorials
Last Post: alchemist
Yesterday, 12:20 PM
» Replies: 13
» Views: 7,976
Help needed to understand...
Forum: Mobian on PinePhone
Last Post: Pelecanus
Yesterday, 07:59 AM
» Replies: 2
» Views: 56
Helpful setup summaries
Forum: General Discussion on PineTab
Last Post: tophneal
04-18-2024, 09:48 AM
» Replies: 1
» Views: 46
After upgrade on 08.03.24...
Forum: General Discussion on PineTab
Last Post: Corkonian
04-18-2024, 01:22 AM
» Replies: 3
» Views: 620
how to use rk2aw-spi-flas...
Forum: General Discussion of PinePhone Pro
Last Post: Gooberpatrol66
04-17-2024, 10:23 PM
» Replies: 0
» Views: 57
GloDroid (Android-14)
Forum: PinePhone Software
Last Post: GaryM
04-17-2024, 08:39 AM
» Replies: 1
» Views: 104
Android images for RockPr...
Forum: Android on RockPro64
Last Post: tophneal
04-17-2024, 07:50 AM
» Replies: 1
» Views: 37
Pinebook Pro Initial Impr...
Forum: General Discussion on Pinebook Pro
Last Post: KC9UDX
04-16-2024, 07:29 PM
» Replies: 443
» Views: 585,310

 
  wifi adapter not found.. why?
Posted by: b7l3wui26r - 11-28-2021, 01:45 PM - Forum: Mobian on PinePhone - Replies (3)

Hi.. Why is my wifi adapter not found?


  Pinephone not booting, always vibrating
Posted by: alexander12 - 11-28-2021, 01:03 PM - Forum: General Discussion on PinePhone - Replies (7)

My pinephone (postmarketOS edition) was on, and working normally when it immediately turned off. It can be that the battery is flat.

When plugging in the power, the red light turns on, and the phone immediately starts vibrating without stopping. Screen remains black.

Same behavior without battery.

What can I try to resolve the issue?


  Help - Factory Reset ??
Posted by: sej016 - 11-28-2021, 09:30 AM - Forum: General Discussion on PinePhone - Replies (4)

I can't see how to search the forum, so had to ask the question,

How do I reset my Pinefone 64 beat to "as shipped"/"factory" condition.   I need to erase all user/password stuff and start again.

Tks..... Steve J


  Android remote control using SSH/ADB/scrcpy
Posted by: pauloliver - 11-28-2021, 09:15 AM - Forum: General Discussion on PinePhone - Replies (1)

Hello everyone, first time poster (long time lurker). Smile

I wanted to share a experiment I've been working on. Maybe someone can find useful, or help me improve on the ideas described below. I purchased my Pinephone BE some while ago and I've been slowly working on it with hopes that I'll be able to turn it into my main phone. I'm using Archlinux with SXMO (flashed to eMMC) and I'm really happy with the level of customization and tinkering that's possible (it feels I'm still just scratching the surface). SXMO feels light and snappy, gestures are easy to remember (once you get accustomed). Calls, SMSs, mobile data (and even the mobile hotspot functionality) work excellently. Battery drains fast while in use, but lasts about 24+ hours while in suspend mode (I think I can live with that).

Detaching from Android has been difficult due to some services (like my home alarm system) only being controllable through an Android or IOS app. This has been a huge bummer, as it has kept me needing to carry my Android phone with me whenever I leave home (to arm/unarm and check on the system). If only there was a way to control my Android phone remotely, I'd be able to leave it at home most (if not all) of the time.

I've thus been looking into ways to achieve this. Ideally, I wanted to be able to control the droid phone through SSH. I've used scrcpy before to control my phone with my PC by plugging it to an USB port. Once I realized scrcpy could be SSH-forwarded I knew I was on to something!

The scrcpy utility is not available as an ARM package on the Archlinux repositories, but I was able to build it on the Pinephone easily by following instructions here:
https://github.com/Genymobile/scrcpy/blo...r/BUILD.md
Most dependencies were already installed on Arch by default (I think only exceptions where wget and meson). I think the android utilities (android-tools package on Arch) where also needed on the Pinephone as well.

I have an old laptop running 24/7 as a home server, so I installed the android-tools package there as well. This allows launching an ADB server on the background that can run continuously. I created a simple systemd service to achieve this and started/enabled it on the home-server:

Code:
[Unit]
Description=ADB server service
Requires=network.target
After=network-online.target

[Service]
User=paul
ExecStart=/usr/bin/adb -a nodaemon server
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target

I already had debugging enabled on my Android phone, which means I can just plug it into the home-server and it gets detected by the adb daemon, nice!

As a last step I needed to be able to dynamically create a SSH connection on the Pinephone that forwards the ports used by scrcpy to connect to the adb server (5037 and 27183). SXMO allows creating userscripts that then become easily accessible through the UI. I created a simple shell script that creates the SSH connection and launches scrcpy:

Code:
#!/bin/sh

SOCKET=/tmp/droid-tunnel-ctrl-socket
SCRLOG=/tmp/droid-tunnel-scrcpy-log

# Parameters
SSHCON=$1
VIDSIZE=$2
VIDFPS=$3

notify-send "DROID TUNNEL" "Launching tunnel through '$SSHCON', size:$VIDSIZE, fps:$VIDFPS"

on_exit() {
        kill -9 $SCRPID
        ssh -S $SOCKET -O exit $SSHCON
}

trap on_exit EXIT

ssh -M -S $SOCKET -fnNT -L5037:localhost:5037 -L27183:localhost:27183 $SSHCON
ssh -S $SOCKET -O check $SSHCON

killall -v scrcpy
scrcpy -V verbose --force-adb-forward --max-fps $VIDFPS --max-size $VIDSIZE > $SCRLOG 2>&1 &
SCRPID=$!

while sleep 0.1 ; do
        grep --quiet "X connection to :0 broken" $SCRLOG && break
done

On the shell script above, the first argument (SSHCON) represents the SSH connection to the home-server. This is pre-configured on my ~/.config/ssh. VIDSIZE is the resolution of the generated video that's captured live from the Android phone (long side). VIDFPS (as you may have guessed) are the captured frames per second. The script first generates the SSH connection (using a control socket) that forwards the needed ports and then launches the in-built scrcpy binary. I found out the on_exit hook and polling for the X connection message was needed to make sure scrcpy does not hang when I close the window in SXMO (ugly but it works for now).

Result: Android on my Pinephone, yay. Big Grin

Video --> https://pauloliver.dev/files/sxmo-android-rc.mp4

I can invoke the script above using 2 different SSH connections, first a local connection on my home network, and also a remote connection (that goes through a tunnel set on a VPS I currently rent). The one that goes through the tunnel is set to a lower resolution and frame-rate, but it's completely usable, which means I can monitor/control the Android phone from anywhere. The scrcpy key-bindings even allow me to easily lock/unlock the Android phone and turn off the screen when not in use (way safer to leave the phone locked at home).

I'd like to come up with more hacky ways to control the Android apps programatically in the future (IDK if that's possible) but this will work for now. I can finally set/unset my home alarm from my Pinephone. Tongue


  Pacman vs. Discover
Posted by: jojuma - 11-28-2021, 07:34 AM - Forum: Manjaro on PinePhone - Replies (3)

Hello,

for quite a while I used pacman and updated my system in the terminal using:

Code:
pacman -Syyu
Discover often failed to update or didn't report available updates.

Then, once during an update, the wifi connection failed and from then on I got an error message after every reboot saying "Offline update failed - Unexpected system error". Neither pacman nor Discover did any updates any more.
After some research I came to the conclusion, it would be easier to completely reinstall the system than keep trying to fix that problem.

I then reinstalled the latest beta release from https://forum.manjaro.org/c/arm/releases/102.

But now it's the other way round: Discover reports and performs updates while pacman says, there's nothing to do.
I feel completely unsure if either of those methods do their job correctly.

My question is: How can I know for sure, if there are any updates and if my system is up to date or not?

Current system data:
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.17-1-MANJARO-ARM

Thank you!


  PinbebookPro electrically dead ...
Posted by: abukolt19 - 11-28-2021, 06:48 AM - Forum: Pinebook Pro Hardware and Accessories - Replies (3)

I have had my PBP since early May 2021 and have loved it dearly. It was perfect for experimenting with software, the battery life was great, etc.



However, a few days ago, my enjoyment of it came to a halt, with a bad software installation that crippled the system (Manjaro, updated from the original installation). I tried to re-install the OS onto the 64Gb eMMC, but I kept getting told that the file system on the eMMC was corrupt. Eventually, one of the attempts, always ending with a restart, failed to bring the computer back to life. No lights came on at all. Since then, the only sign of electrical life has been a little red light next to where the power supply cable goes in (the barrel port/jack?)



I suspect the motherboard is dead. Perhaps the eMMC, too. I admit, I am a software guy, so I need guidance on diagnosing the electronics/electricals of my PBP. I would really appreciate any suggestions. It would be a shame to have to scrap a computer after six months.





P.S.



I have written to support@pinemicrosystemsinc.zohosupport.com, but they tell me to try the forums.



There was one case I have seen in the forums that also referred to a dead PBP and the answer was "Conctact sales" [for motherboard, and other parts].


Bug [Support Request] Modem is Failing to Be Accessible
Posted by: FriendlyGecko - 11-28-2021, 03:46 AM - Forum: PinePhone Hardware - Replies (3)

Phone does not report modem to end user making it inaccessible. Kill switch was toggled, tested on Arch Linux and Mobian, powered down and left overnight, and not sure what else to do from here. Any and all help would be greatly appreciated (and if there is a better place for this, please advise).

Output of sudo systemctl status ModemManager:

ModemManager.service - Modem Manager
    Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; enabled; vendor preset: disabled)
    Active: active (running) since Sat 2021-11-27 22:45:08 CET; 2min 40s ago
  Main PID: 3098 (ModemManager)
      Tasks: 3 (limit: 3275)
    Memory: 8.9M
        CPU: 526ms
    CGroup: /system.slice/ModemManager.service
            └─3098 /usr/bin/ModemManager --test-quick-suspend-resume

Nov 27 22:45:07 arch systemd[1]: Starting Modem Manager...
Nov 27 22:45:08 arch ModemManager[3098]: <info>  ModemManager (version 1.18.4) starting in system bus...
Nov 27 22:45:08 arch systemd[1]: Started Modem Manager.
Nov 27 22:45:11 arch ModemManager[3098]: <info>  [base-manager] couldn't check support for device '/sys/devices/platform/soc/1c10000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1': not supported by any plugin


  Are there any step-by-step guide on a VPN?
Posted by: 74vscsa2uu - 11-27-2021, 10:44 PM - Forum: General Discussion on PinePhone - Replies (4)

Could anyone tell me which is most secure, openvpn or wireguard?

And could anyone please link a step-by-step guide to set it up on a pinephone please? Or maybe write one here?
Thanks!


  Kodi on Pinephone
Posted by: biketool - 11-27-2021, 01:47 PM - Forum: PinePhone Software - Replies (2)

If you look in the software repositories of your Pinephone compatible distro the FOSS app Kodi is probably found if installing desktop apps are enabled.
Kodi is more a framework for plugins from commercial subscription streaming to game emulation and many others, it comes with with a built in multimedia playback capability which can play most media files.
The one difficulty I have found with using Kodi for playback vs any other media player including the stock one in Mobian is that the Kodi mobile skins I have tried to use expect an android home key or something else emulating a backspace.
Is there anyone who has found an easy to use skin for Kodi which provides the missing [back] signal somehow?
Any other Kodi related ideas especially reducing the battery usage for video playback(better utilizing hardware decoding?) would be appreciated!


  MASSIVE NOOB QUESTION
Posted by: wsleini - 11-27-2021, 09:46 AM - Forum: General - Replies (5)

When is Pine64 planning on releasing the pinephone pro to the public?