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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,437
» Latest member: jackqasim
» Forum threads: 16,180
» Forum posts: 116,825

Full Statistics

Latest Threads
Keyboard availability?
Forum: PinePhone Pro Accessories
Last Post: Peter Gamma
5 hours ago
» Replies: 8
» Views: 1,005
* /lib64 is a symbolic li...
Forum: PineNote Software
Last Post: Francus
10 hours ago
» Replies: 3
» Views: 144
Full desktop Surfing and ...
Forum: General Discussion on Pinebook Pro
Last Post: jackqasim
Today, 02:35 AM
» Replies: 1
» Views: 203
Games compilation howto o...
Forum: General Discussion on Pinebook Pro
Last Post: jackqasim
Yesterday, 02:08 AM
» Replies: 202
» Views: 400,441
incorporate a multimeter ...
Forum: General
Last Post: hinomi
07-31-2025, 03:39 PM
» Replies: 1
» Views: 361
Pine Phone Pro audio on p...
Forum: PinePhone Pro Software
Last Post: DominiqueM
07-31-2025, 05:37 AM
» Replies: 49
» Views: 35,980
Want to buy second hand P...
Forum: General Discussion on PinePhone
Last Post: MaryOtero
07-31-2025, 01:14 AM
» Replies: 1
» Views: 1,276
Pinetime Black Screen
Forum: General Discussion on PineTime
Last Post: karthick
07-30-2025, 11:44 PM
» Replies: 1
» Views: 885
How does CPU frequency sc...
Forum: Linux on Quartz64
Last Post: pugzarecute
07-30-2025, 07:19 AM
» Replies: 0
» Views: 70
Pinephone Pro not in stor...
Forum: General Discussion on PinePhone
Last Post: bubulux20c
07-29-2025, 09:31 PM
» Replies: 0
» Views: 106

 
Lightbulb Feature Request
Posted by: duilns - 03-09-2022, 04:37 PM - Forum: General Discussion on PineTime - Replies (8)

Dear PineTime community.

I have been in the shadows following the progress of Pine64 for quiet some item. Several years since the AOBs.

I am interested in acquiring a pinetime watch. How ever I follow a strict.. "time system"? If you would call it. 

I need "my watch" to display 'Day of year/week of year'. Example - Today March 9, 2022 would be W10 / D68. Also, an option to set the initial Week Day to Monday/Sunday would be great.

What would I need to do inorder to facilitate this type of feature? I can't code or anything the like of it. 

many thanks.


  Pinebook Pro not turn
Posted by: carbo29 - 03-09-2022, 12:48 PM - Forum: General Discussion on Pinebook Pro - Replies (11)

Buongiorno,
sono nuovo.
Dopo aver riavviato il Pinebook Pro, non si è più acceso.
La batteria era ormai scarica. Ho provato a attaccare l'alimentazione ma rimane rosso ma il Pinebook non si accende.
Ho provato ad unire i due cavetti senza la batteria ma non si accende, togliendo la batteria senza collegare i cavi la lucetta rossa inizia a lampeggiare ma in entrambi i casi non si accende. Ora lo sto tenendo in carica da circa 3 ore ma continua a non accendersi.
Potete aiutarmi. Grazie per un qualsiasi aiuto.

 Hello, I'm new. After restarting the Pinebook Pro, it no longer turned on. The battery was now dead. I tried to plug in the power but it stays red but the Pinebook won't turn on. I tried to join the two cables without the battery but it does not turn on, removing the battery without connecting the cables the red light starts flashing but in both cases it does not turn on. I've been charging it for about 3 hours now but it still won't turn on. Can you help me. Thanks for any help.

Sorry for the language I'm using a translator.


  new used twice now it wont turn on
Posted by: Timmer4323 - 03-09-2022, 10:42 AM - Forum: General Discussion on Pinecil - No Replies

I just bought it 2nd time to use it while I was using it , it turned off. wont restart. please help


  How to charge with 3 ampere / 5 volt / 15 watts?
Posted by: lacriz - 03-09-2022, 09:27 AM - Forum: PinePhone Hardware - Replies (3)

Hi,

in the pine phone manual that came with the phone it says the phone can be charged with up to 3 ampere.

I bought a 3 ampere phone charger but the 'Power supply' tool says this about the usb charger:

'Current Limit: 1.5A'


Can I do something about this?

The phone is charging just as slow as with my old 1.5A charger, so as of now I just wasted my money on the new charger Sad


  Uninstalling Applications
Posted by: Emilio - 03-09-2022, 08:57 AM - Forum: PinePhone Pro Software - Replies (3)

Does anybody know how to remove
Koko, Weather Clip etc ? 
I do not know where to find the package
Even reading the list of installed


  How can we have an always on VPN
Posted by: robocone - 03-09-2022, 07:01 AM - Forum: PinePhone Pro Software - Replies (2)

On my android smartphone I had an 'always on' VPN. Has anyone configured their pinephone in the same way?



I would like it to start a wireguard VPN before bringing up the wifi or mobile interfaces, as well as a kill-switch if the VPN disconnects somehow.

Edit: This is what I ended up doing:

I used wg-quick and the iptables rules @tophneal suggested (I didn't use the ip6tables commands).

Code:
PostUp  =  iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
PreDown = iptables -D OUTPUT ! -o %i -m mark ! --mark $(wg show  %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -D OUTPUT ! -o %i -m mark ! --mark $(wg show  %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT


1. Create an appropriate config /etc/wireguard/wg0.conf and create the private/public keys

2. I turned off ipv6 because I'm not using it

/etc/sysctl.d/disable-ipv6.conf
Code:
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

For the wg-quick script utility and for wg-quick to be able to set the DNS
Code:
pacman -S wireguard-tools  systemd-resolvconf
# use systemd-resolved for dns
systemctl enable systemd-resolved
(https://wiki.archlinux.org/title/WireGua...resolution)

3. Start the service and enable it at boot
Code:
# Try starting and stopping the service to ensure the configuration is working
wg-quick up wg0
# test the config
wg-quick down wg0

# enable the service
systemctl enable wg-quick@wg0


Caveats:
The VPN is not started until the network is already up, so there is a short time during boot where packets could leak. Since it should still stay online when it's disconnected and when we changing interfaces, this was an acceptable compromise for me.

We could further improve it by copying and modifying the wg-quick systemd service so that it adds the firewall rule before we connect to the vpn and have it start earlier in the boot.
(see https://www.wireguard.com/netns/ for other ideas and explanation of how the wg-quick routing works)

Edit 2:
Now that I've tested it with the mobile modem as well, it turns out that the connection is not maintained when the interface changes. Based on the wg-quick rules I thought that it would continue to work, so further changes are needed.

Edit 3:
To work around this issue in the meantime I am persisting the killswitch firewall rule when restarting the VPN, using ' -C <rule> || -I <rule' so that the rule is only added once.
Code:
PostUp  =  iptables -C OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT || iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
# PreDown = iptables -D OUTPUT ! -o %i -m mark ! --mark $(wg show  %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -D OUTPUT ! -o %i -m mark ! --mark $(wg show  %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT


  Howto Full disk encryption manjaro and detached header (with keyboard)
Posted by: robocone - 03-09-2022, 06:53 AM - Forum: PinePhone Pro Software - No Replies

This is a howto, from following the arch wiki, on how to encrypt the root partition with LUKS.

I'm using a Pinephone Pro with a keyboard, but you could probably explorer other methods if a keyboard is not available.

The SD card will contain the boot partition and the LUKS header. If it is removed, then there should be no way to access the phone or see what kind of data is present.

The internal eMMC will contain the encrypted LUKS volume.


Boot the phone from Manjaro SD and then fill the eMMC disk with random encrypted data

Code:
cryptsetup open --type plain -d /dev/urandom /dev/mmcblk2 to_be_wiped
dd if=/dev/zero of=/dev/mapper/to_be_wiped status=progress
(https://wiki.archlinux.org/title/Dm-cryp..._partition)


Format the eMMC as an encrypted disk and save our header file
Code:
cryptsetup luksFormat /dev/mmcblk2 --header /boot/header.img
(https://wiki.archlinux.org/title/Dm-cryp...UKS_header)


I was not able to get LVM to work from the Manjaro SD (2022-03-09). Creating an lvm volume group and volume worked, but after the disk was closed, the LVM volume group would not be detected when it was re-opened. I created a single partition instead.
Code:
cryptsetup open /dev/mmcblk2 crypt --header /boot/header.img
mkfs.ext4 /dev/mapper/crypt


Update our initramfs image
Follow the step in https://wiki.archlinux.org/title/Dm-cryp...crypt_hook to copy and modify the 'encrypt' hook to a custom 'encrypt2' hook to support our detached header and then modify mkinitcpio.conf
Code:
/etc/mkinitcpio.conf
...
FILES=(/boot/header.img)
...
HOOKS=(base udev keyboard autodetect keymap modconf block encrypt2 shell filesystems fsck)
Make sure to remove the bootspash-manjaro hook, so that we can see the password prompt.

Copy the system on the sd card to the encrypted partition and resize it to fit the remaining space
Code:
dd if=/dev/mmcblk1p2 of=/dev/mapper/crypt bs=4096
resize2fs /dev/mapper/crypt


Update the bootloader to boot our new system.
Code:
/boot/boot.txt
...
setenv bootargs loglevel=4 console=tty0 console=${console} earlycon=uart8250,mmio32,0xff1a0000 consoleblank=0 boot=PARTUUID=${uuid_boot} root=/dev/mapper/crypt cryptdevice=/dev/mmcblk2:crypt:header rw rootwait quiet audit=0


Finally build the initramfs and boot.scr
Code:
mkinitcpio -P
ppp-uboot-mkscr


After reboot, we should have a password prompt and boot into our encrypted system.

The /dev/mmcblk1p2 partition can be wiped and used for something else.


  Faulty Pinephone add on Keyboard. Support Ticket: Id #12442
Posted by: Kawayuppie - 03-09-2022, 03:02 AM - Forum: PinePhone Accessories - Replies (6)

Hi,

I submitted a ticket on 29/30 January about this issue, but I have had no response there so I am posting my problem here in hope. All I need is a new part or where I can get it.

Date: 29 January 2022

Dear Pine64 Support,

It need a new circuit board for the keyboard.

I think the charging circuit has gone faulty, the 5208 gets extremely hot, too hot to touch.
The battery appears okay and is fully charged.

Also noticed the there is no power being supplied to the phone via the pogo connections if there isn’t a charger cable plugged in. This might be related to the above.

I can use Megi’s tools to still read the i2c bus, but the charger readings show only 2 volts and 0 mA, however the battery is measuring 4 volt directly.
Keyboard still works if a USB charger is plugged into the keyboard.

How it all started:
Keyboard was working just fine ever since I got it a couple weeks ago. No problems. I have been careful to follow the guidelines concerning charging and peripherals.
The charger I use is the PINE64 PinePower 65W.

I left the pinephone and keyboard overnight maybe logger but not plugged into charger.
In the morning I picked it up and it was dead, no power coming form keyboard.
So I plugged the charger into the keyboard USB port and left it for sometime.
Returned and discovered that keyboard power not working, nothing going to phone.

Previously when everything worked you could press the power button on the keyboard and power would d go to the phone.

Some points.

[] keyboard battery is at full charge, so it did charge or kept its charge?
[] there is no power going to the pogo pin connector unless usb cable is plugged in.
[] the i2c tools show the button is registering, but that says the battery has only 2 volts but when in charge mode shows only 0 mA and doe snot indicate sending current to pinephone.
[] the 5208 get really hot, so much so that you can burn your finger on it.
[] I2C bus is working, Tools do read from it, and keyboard works, as long as there the USB charger cable is plugged in.

Would I be able to get another circuit board? 

Yours Faithfully,

André Skarzynski, M0JEK


  First time pine phone user
Posted by: Matt73 - 03-09-2022, 02:06 AM - Forum: PinePhone Software - Replies (3)

Hi Guys,

I've been on Linux on my laptop for about 2 years now and have never looked back. I recently bought a pine phone for my wife because I am sick of her iphone eavesdropping on us constantly. Apparently, Ubuntu Touch is the 'best' operating system to use on the pine phone so I flashed it to an sd card. It's great but when the phone goes to sleep, I can't bring it out of sleep without restarting the phone. Maybe it's because the system is not installed to the internal phone? Any way t bring it out of suspend without a reboot?

Any advice appreciated

Best Wishes

Matt


  Article: Apache NuttX Driver for BME280 Sensor (PineCone BL602)
Posted by: lupyuen - 03-08-2022, 08:29 PM - Forum: General - No Replies

Here's how we ported the BME280 I2C Driver (Temperature / Humidity / Pressure) from Zephyr OS to NuttX on PineCone BL602...

Apache NuttX Driver for BME280 Sensor: Ported from Zephyr OS