Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 29,424
» Latest member: WayneDat
» Forum threads: 16,178
» Forum posts: 116,808
Full Statistics
|
Latest Threads |
Request for CAD files of ...
Forum: General Discussion on PineNote
Last Post: Szybet
5 hours ago
» Replies: 1
» Views: 886
|
? Introducing RoutineHero...
Forum: General Discussion on PineTime
Last Post: tllim
Today, 01:13 AM
» Replies: 1
» Views: 104
|
Movuan distribution for P...
Forum: PinePhone Software
Last Post: merom
Yesterday, 05:01 PM
» Replies: 5
» Views: 1,107
|
booting is looping
Forum: PineNote Software
Last Post: jabi27
Yesterday, 01:36 AM
» Replies: 2
» Views: 77
|
Can’t login to Linux
Forum: Linux on Pinebook Pro
Last Post: fnosai
Yesterday, 12:30 AM
» Replies: 0
» Views: 115
|
* /lib64 is a symbolic li...
Forum: PineNote Software
Last Post: jabi27
07-26-2025, 10:01 PM
» Replies: 2
» Views: 71
|
Invalid Signature by m-we...
Forum: PineNote Software
Last Post: Francus
07-25-2025, 05:26 AM
» Replies: 0
» Views: 73
|
Pinetab2 not starting
Forum: PineTab Hardware
Last Post: biketool
07-25-2025, 03:04 AM
» Replies: 12
» Views: 6,649
|
invalid signatures
Forum: Getting Started
Last Post: Dendrocalamus64
07-24-2025, 08:35 PM
» Replies: 2
» Views: 244
|
Pinebook problem
Forum: General Discussion on Pinebook Pro
Last Post: mikehenson
07-24-2025, 07:28 AM
» Replies: 1
» Views: 133
|
|
|
Blueman GUI Bluetooth Network Access Point - fixing Bridging |
Posted by: biketool - 03-20-2022, 02:00 PM - Forum: Mobian on PinePhone
- Replies (12)
|
 |
This post is as much notes for me to look back on as a request for better minds to review my attempts.
(edit) Skip to the bottom post where I have the PAN protocol pairing via Blueman GUI but there is still a problem with getting the network bridge working.
I added the bluetoothpan.sh as per link below and after reviewing I assume the iptables commands in the script will work without editing them.
The problem is the pinephone is not reporting in its bluetooth UUID list that it is available as a network access point.
here is the UUID from my old N900 used for years as a bluetooth network access point
Code: <snip>
00000002-0000-1000-8000-0002ee000002 Proprietary
00001103-0000-1000-8000-00805f9b34fb Dialup Networking (DUN)
00001104-0000-1000-8000-00805f9b34fb IrMC Sync
00001105-0000-1000-8000-00805f9b34fb OBEX Object Push
00001106-0000-1000-8000-00805f9b34fb OBEX File Transfer
0000110a-0000-1000-8000-00805f9b34fb Audio Source
0000110c-0000-1000-8000-00805f9b34fb Remote Control Target
0000110e-0000-1000-8000-00805f9b34fb Remote Control
00001115-0000-1000-8000-00805f9b34fb PANU
00001116-0000-1000-8000-00805f9b34fb Network Access Point
00001117-0000-1000-8000-00805f9b34fb Group Network
0000112f-0000-1000-8000-00805f9b34fb Phonebook Access (PBAP) - PSE
00001132-0000-1000-8000-00805f9b34fb Message Access Server
00005005-0000-1000-8000-0002ee000001 Proprietary
00005601-0000-1000-8000-0002ee000001 Proprietary
/org/bluez/hci0
VS pinephone as is after script, unpair, reboot, and re-pair
Code: <snip>
00001104-0000-1000-8000-00805f9b34fb IrMC Sync
00001105-0000-1000-8000-00805f9b34fb OBEX Object Push
00001106-0000-1000-8000-00805f9b34fb OBEX File Transfer
00001108-0000-1000-8000-00805f9b34fb Headset
0000110a-0000-1000-8000-00805f9b34fb Audio Source
0000110b-0000-1000-8000-00805f9b34fb Audio Sink
0000110c-0000-1000-8000-00805f9b34fb Remote Control Target
0000110d-0000-1000-8000-00805f9b34fb Advanced Audio
0000110e-0000-1000-8000-00805f9b34fb Remote Control
0000111f-0000-1000-8000-00805f9b34fb Handsfree Audio Gateway
0000112f-0000-1000-8000-00805f9b34fb Phonebook Access (PBAP) - PSE
00001132-0000-1000-8000-00805f9b34fb Message Access Server
00001133-0000-1000-8000-00805f9b34fb Message Notification Server
00001200-0000-1000-8000-00805f9b34fb PnP Information
00001800-0000-1000-8000-00805f9b34fb Generic Access
00001801-0000-1000-8000-00805f9b34fb Generic Attribute
0000180a-0000-1000-8000-00805f9b34fb Device Information
00005005-0000-1000-8000-0002ee000001 Proprietary
usb:v1D6Bp0246d053E
/org/bluez/hci0
I followed the old N900 PAN script exactly after reviewing it
https://wiki.maemo.org/Bluetooth_PAN
I realize that the package genwall is probably what is doing the work bridging mobile data and bnep0 http://maemo.org/packages/view/genwall/
but not sure where/how the PAN and BT network access point profiles are generated on the N900 but not the Pinephone
Code: When connecting the PinePhone through the USB cable it creates a network the PC will join. The PinePhone has the IP address 10.66.0.1 fixed but the IP address of your PC will vary. Set up ip-forwarding on your PC and set up NAT on your outgoing internet interface:
sudo sysctl net.ipv4.ip_forward=1
sudo iptables -P FORWARD ACCEPT
DEV=$(ip route get 1 | grep -o 'dev .*' | cut -d ' ' -f 2)
sudo iptables -t nat -D POSTROUTING -o "$DEV" -j MASQUERADE 2> /dev/null || true
sudo iptables -t nat -A POSTROUTING -o "$DEV" -j MASQUERADE
Afterwards, on the PinePhone, e.g., through SSH to 10.66.0.1, you need to set the default route to be your PC's USB network interface, and you need to define a DNS server (here 1.1.1.1 from Cloudflare):
sudo ip route add default via "$(arp -n | grep 10.66.0. | grep ether | cut -d ' ' -f 1)"
sudo resolvectl dns usb0 1.1.1.1
sudo resolvectl default-route usb0 true
When you disconnect the cable without rebooting any device, on reconnecting you only need to repeat the commands on the PinePhone to set up the default route again.
the above from https://wiki.mobian-project.org/doku.php...pc-via-usb still requires SSHing into your phone VS using it as an automated BT net access point.
UFW https://wiki.mobian-project.org/doku.php...g#firewall might work to bridge mobile data to bnep0 but we still have the UUID problem.
and do I need to kludge about with scripting a bnep0?
https://www.linuxquestions.org/questions...157-print/
I dont think so because the
Code: /etc/udev/rules.d/98-bnep0.rules:
ACTION=="add", SUBSYSTEM=="net", KERNEL=="bnep0", RUN+="/etc/udev/bluenet.sh"
ACTION=="remove", SUBSYSTEM=="net", KERNEL=="bnep0", RUN+="/etc/udev/bluenet.sh"
generates the bnep0 device
additionaly the /etc/udev/bluenet.sh script might be a bit wonky
just to note it here a friend suggested to me
>this is why often, folks write stuff like if [ x$ACTION = x"add" ]; then
>you need to export ACTION = "add"
> if you want to run this script manually
> or
> Action=add /etc/udev/bluenet.sh
> for debugging you may insert a line#2 of logger "this is /etc/udev/bluenet.sh action: $ACTION" and see what you get in syslog
> logger "this is /etc/udev/bluenet.sh action: $ACTION"« is also a good way to check if the udev on your target platform maybe defines other actions than "add" for $ACTION
> which might well be the real root of your problem
>arbitrary example (I plugged in a USB memstick) https://termbin.com/m7h7
> mobian@mobian:/usr/sbin$ sudo /etc/udev/bluenet.sh
> will fail, like you seen
> you need
> mobian@mobian:/usr/sbin$ sudo ACTION=add /etc/udev/bluenet.sh
this document probably has everything needed as it creates a PAN for an OpenWRT router
https://elinux.org/images/1/15/ELC_NA_20...0814r1.pdf
including the below
Code: root@OpenWrt:~# dbus-send --system
--dest=org.bluez /org/bluez/hci0
--type=method_call
org.bluez.NetworkServer1.Register
string:“00001116-0000-1000-8000-00805f9b34fb”
string:"br-lan"
which full circle seems to address the UUID issue, maybe better minds will see the answer in the steps I have taken and info gathered in this post.
|
|
|
Manjaro I3 |
Posted by: james64 - 03-20-2022, 06:07 AM - Forum: General Discussion on Pinebook Pro
- Replies (1)
|
 |
I have official Manjaro i3 ARM install on my pinebook pro.
Today I used the laptop for the first in almost a year. I tried pacman -Syyu and it says nothing to do.
I visited Manjaro website and ARM i3 for PBP is not listed. Was it discontinued? Where can I read about that?
thanks
|
|
|
Current State of PIne Phone Pro |
Posted by: kmsgli - 03-19-2022, 07:15 AM - Forum: General Discussion of PinePhone Pro
- Replies (40)
|
 |
Hey folks, looking for some opinions from current PPP users.
I am a regular Pine Phone user and I use it as my daily driver. I am really happy with the sate of the software and while it has some bugs that require a restart here and there its becoming less and less almost to the point where I don't notice issue really.
The big things for me are MMS and proper wake / suspend to conserve battery as I generally have access to a charger but I hate being plugged into it all day.
That being said I really do want a faster version of what I have, I just don't know if the PPP is as far along as the regular PP as the PP had so much more development time.
I would love to hear from anyone who has upgraded from the PP to the PPP or anyone that is daily driving the PPP.
Thanks for the help.
|
|
|
Jerky wired network |
Posted by: ale - 03-19-2022, 06:23 AM - Forum: Getting Started
- Replies (1)
|
 |
After some failed attempt to enter the network password, I managed to connect the phone to a wired network. It works, as it got a DHCP number and adjusted the clock. BTW, I see a MAC like 00:00:00:00:02:18; is that normal?
The microUSB connection to the dock is not very stable when moving the phone. Anyway, if I disconnect and reconnect it I see a message saying «Connection "Wired connection 1" activated», and, about a minute late, «Connection "Wired connection 1" deactivated. From the PC, if I try to ping or arping by MAC, I get Host Unreachable and Timeout, respectively. Even if I do that in the interval during which the connection. From the phone, I'm unable to reach out.
BTW, when I issued netstat on the phone terminal, I got "bash: netstat: command not found". Is that normal?
On my desk I have no room for another screen and keyboard to connect to the phone. My aim is to run ssh from the PC so as to be able to configure the phone using a real keyboard anyway. Is it possible to do it using the stock Manjaro system?
TIA for any hint
Ale
|
|
|
KB: Phone not/barely charging from power supplies when keyboard is not full |
Posted by: Phalio - 03-18-2022, 05:19 PM - Forum: PinePhone Accessories
- Replies (12)
|
 |
I really love the keyboard case so far, now my Pinephone truly is the perfect pocket-sized computer! This is what “phones” should be like! The only inconvenience I’m trying to solve right now is the charging priority/behaviour with a power supply plugged in. (Just so you know: The phone’s USB port is covered up, the current limit of keyboard battery -> phone is set, the userspace driver is installed.)
Previously, I only owned a 5V 1A power supply. It charged the KB+PP fine (apparently at around 1.2A) and didn’t get too hot. The problem/inconvenience is that the priority of the keyboard charging chip seems to be keyboard battery > phone > phone battery. This means that the phone doesn’t receive any power from the power supply while the keyboard is charging, and only receives power once the keyboard is (almost) full, resulting in the phone battery percentage continuing to drop for the multiple hours it took my 1A supply to charge the keyboard battery. Since a 5V 3A PD supply is recommended, I thought that those might be enough to charge both batteries at the same time, which I believe the charging chip is supposed to be able to do.
To test this theory, which is mine, I asked around for 5V 3A supplies and C-C cables I could borrow. Apparently these are not common at all, at least among the people I know in real life. Two 5V 3A supplies I tested indeed resulted in both batteries charging and the phone’s percentage going up. According to /sys readings, the keyboard battery was getting 2.3A, the phone battery 0.8A and I assume the phone parts an additional 0.2A, which seems to be what it uses with the screen off and low workloads. However, shortly after plugging in one of these chargers, the keyboard charging chip started continuously shutting itself off and on again about once per second, as if I were spamming the side button. Since the current values seem to add up to more than 3A, I assumed that these power supplies were supplying too much power and the charging chip was shutting itself off as a safety measure. I noticed that neither of the supplies mentioned PD anywhere on them, which I guess means that PD is mandatory.
So I got this power supply and this C-C cable, which seem to charge the keyboard battery at around 2.4A, so twice as fast as the old supply which is great and also halves the time until the phone finally gets to receive power, but the phone still doesn’t get any power when the keyboard battery is not full yet. A last series of tests I made involved combinations of my new supply and cable with a USB C charging port in a car (that seems to support PD as it worked fine) and its C-C cable. These tests apparently showed that both power supplies have the same behaviour, but the cables differ. My cable charged with only 2.4A in the car as well, but the other person’s cable, in either supply, supplied the keyboard battery with 2.4A and additionally the phone battery with 0.4A, plus assumingly 0.2A for the phone itself (is there a way to read that value if it exists as I assume?). Which adds up to exactly 3A. I guess that means my cable for some reason only passes through 2.4A, even though it supposedly supports up to 60W (what cable would I have to get that works as intended?).
So 5V 3A PD supplies seem to work in general, but the keyboard still eats up 2.4A first with its highest priority, only leaving the phone with 0.6A. Which is enough to keep the battery percentage constant with the screen on at low loads, so that would at least mostly prevent the phone battery from completely discharging before it has reached its turn, as was the case previously. But of course it would be best if I could somehow influence how much the phone gets. The userspace driver seems to only allow toggling power supply input as a whole and keyboard battery -> phone charging, which is very useful but doesn’t help with this inconvenience. I also found /sys/class/power_supply/ip5xxx-charger/constant_charge_current (and _max) which is set to 2300000 (and 3100000). Would changing this value, say to 2000000 or 1800000, reduce the amount of power the keyboard battery takes and therefore pass through more to the phone? Or is there anything else I could do?
And as I said: This is only a minor inconvenience, especially with proper 5V 3A input (if I’m able to get a cable that works). I can live with it being like this. That’s a very small price to pay for this incredible device. Thanks to everyone involved, especially to Megi! But it would be nice to know if there is a way.
And sorry for this being so long, I tend to ramble on a lot. Maybe I shouldn’t have included so many details from my findings.
TLDR: Is there a way to change how much power the phone gets from a power supply while the keyboard battery is also charging and not full yet?
|
|
|
|