Hi everyone,
I’m curious if the PinePhone has (or will have) any built-in feature or community tool to help optimize long-term battery health, like charging limits (e.g., stopping at 80%) or adaptive charging. I know some laptops and modern smartphones have this option, and it really helps prolong battery life.
Has anyone experimented with something similar on the PinePhone, or is it more a matter of manually managing charging?
dd if=/dev/zero of=/stick.img bs=1M count=8192
fdisk /stick.img
# Inside fdisk I prepared the image using the following keys:
# o x s 32 h 128 c 4096 r n p 1 \n \n t c p w
losetup -o 1M /dev/loop0 /stick.img
mkfs.vfat /dev/loop0
mount -t vfat /dev/loop0 /mnt
echo hallo >/mnt/test.txt
umount /mnt
losetup -d /dev/loop0
The following script intends to simulate a USB stick on the device mode USB port:
Code:
#!/bin/sh
cd /sys/kernel/config/usb_gadget
mkdir g1
sleep 1
cd g1
echo 0x1d6b >idVendor # reserved for the Linux Foundation
echo 0x0104 >idProduct # multifunction is sufficient
#echo 0x0615 > bcdDevice This is preset for some reason.
echo 0x0200 > bcdUSB # USB 2.0
# Is the following correct for a flash stick?
echo 0x08 > bDeviceClass
echo 0x06 > bDeviceSubClass
echo 0x80 > bDeviceProtocol
#echo 0x62 > bDeviceProtocol
echo 0x40 >bMaxPacketSize0
echo high-speed >max_speed
# The following strings can be chosen freely; for the serial number I take the
# actual SN of my PineTab2.
cd strings
mkdir 0x409 && cd 0x409
sleep 1
cat /proc/device-tree/serial-number >serialnumber
echo Pine64 >manufacturer
echo PineTab2\ v2.0 >product
# Alternatively one could also use some of the information in
# /sys/bus/i2c/drivers/husb311/0-004e to fill in the above.
cd ../../configs
mkdir c.1 && cd c.1
sleep 1
mkdir strings/0x409
sleep 1
echo "Memory stick emulation based on image file" >strings/0x409/configuration
# German:
mkdir strings/0x407
sleep 1
echo "Speicherstick-Emulation mit einer Image-Datei" >strings/0x407/configuration
echo 0xc0 >bmAttributes # self-powered
echo 2 >MaxPower # probably irrelevant when self-powered
cd ../../functions
mkdir mass_storage.usb0
sleep 1
cd mass_storage.usb0
echo 1 >stall
cd lun.0
echo /stick.img >file
echo 0 >removable
echo 1 >nofua
cd ../../..
ln -s functions/mass_storage.usb0 configs/c.1
sleep 1
# and now make it active:
ls /sys/class/udc >UDC
# to unbind it: echo "" >UDC; sleep 1; cd ..; rm -rf g1
# in emergency: echo 1 >functions/mass_storage.usb0/lun.0/forced_eject
Several of these settings are not absolutely necessary, also the sleep statements; they reflect only my desperate attempts to get it working. When I execute it, not having anything connected to the USB port yet, I see these lines in my dmesg:
Code:
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
dwc3 fcc00000.usb: failed to enable ep0out
Why "removable"? Why "no medium"? What exactly "failed" w.r.t. endpoint 0?
Then I connect my PineTab2 to a PC's USB-2 port, which results in four more lines in the dmesg:
usb 4-10: new high-speed USB device number 5 using xhci_hcd
usb 4-10: device descriptor read/64, error -71
usb 4-10: device descriptor read/64, error -71
usb 4-10: new high-speed USB device number 6 using xhci_hcd
usb 4-10: device descriptor read/64, error -71
usb 4-10: device descriptor read/64, error -71
usb usb4-port10: attempt power cycle
usb 4-10: new high-speed USB device number 7 using xhci_hcd
usb 4-10: Device not responding to setup address.
usb 4-10: Device not responding to setup address.
usb 4-10: device not accepting address 7, error -71
usb 4-10: new high-speed USB device number 8 using xhci_hcd
usb 4-10: Device not responding to setup address.
usb 4-10: Device not responding to setup address.
usb 4-10: device not accepting address 8, error -71
usb usb4-port10: unable to enumerate USB device
Obviously the gadget isn't functional. When I unplug the cable again, the PC's dmesg shows nothing, the PineTab2's just the ususal extcon stuff:
Also, I can't delete the directory tree of my gadget in the configfs: not permitted.
Further observations:
* After this disaster I can plug a USB stick into this very socket using an OTG cable. It works, switches to host mode and mounts the stick.
* Also, charging the PineTab2 will work as always.
* The message "dwc3 fcc00000.usb: failed to enable ep0out" always shows up, also when I try other configurations, e.g. the script here near the bottom of the page (8814.usbconfigfs.sh.txt for an acm gadget): https://e2e.ti.com/support/processors-gr...-am62x_dts
My questions:
a) Has anybody got a working USB gadget of any flavour (mass_storage, acm, ecm, ...) on the PineTab2? Please show me your script or tell me my mistake.
b) Could this be a broken kernel driver? Should I report an issue to danctnix?
c) Can you reproduce the problem on your own PineTab2 using my script?
I have an account on Discord and access several areas there, so I anticipated no problems accessing the Pine64 area. I was mistaken.
I am told that I must complete a few more steps first, but when I click on the button to do so a popup window opens that has a submit button that cannot be pressed and the beginning of a list of rules that cannot be scrolled to see them all.
I had intended to embed or attach the screenshots of this, but either I don't know how to do so or that is unavailable in this forum.
I see no way to contact anyone to correct this problem, so I am posting here in hopes someone can help me get this sorted out.
I am currently using an antique Fitbit Flex 2 taped together and have ordered the Pinetime dev kit to replace it as my health/fitness monitor.
I currently keep an eye on my Fitbit using the https://dashboard.exercise.quest/ website on my laptop. I used to sync my Fitbit using their USB dongle until they dropped support. This forced me to get a junk phone to use with their Android app to sync it.
The final straw leading to my migration was Google insisting I had to migrate my Fitbit into their account. That along with the decrepit state of my device led to my decision to migrate.
I intend to take them up on their offer to download my Fitbit historic data once I have the Pinetime configured to take over its function. I would hope to be able to integrate this into new data from the Pinetime at some point.
The wiki indicates there are multiple ways to manage and work with my new Pinetime. I have a laptop running Linux mint 22 and an Android 16 phone. I would prefer to be able to monitor things from my laptop as I currently do and a data display similar to the webpage noted above would be great. As the Pinetime has many more features than the Flex 2 I also see reasons to connect with my phone.
Can the Pinetime display incoming caller-ID information from the phone? Can the Pinetime be used to accept or decline a call? These functions would be great to have as I could then leave my phone in my pocket and deal with a call. If the Pinetime could also be used to originate a call that would also be handy.
The heart monitoring functions of the Pinetime are new to me as the Flex 2 doesn't have that. In addition to heart rate can it detect heart rhythm issues? It would be good to be alerted to these in time to seek medical attention before they become acute. If it can detect a myocardial infarction to initiate an emergency call great.
Does the Pinetime have a fall detection feature? As I am a 72 year old a bad fall can be life threatening and it would be great if an emergency call could be initiated in case of a fall leaving me non-responsive.
As a newcomer to Pinetime I would appreciate any recommendations for which tools are best suited for me. I ordered the dev kit as it offers more possible options, but that might have been an overreach on my part. I have been working with Linux for a number of years, but I am mostly an end user as opposed to a developer.
Thank you in advance for your guidance to a new Pinetime user.
I just bought a Pinecil v2 and updated to firmware 2.23
and it also checks out to be official via the website check.
I bought the Amazon Basics 65W One-Port GaN USB-C PD 3.0 charger which is on the pine64.org list of 20v chargers but it only goss up to 15v. When I play with the settings I can get it to reach 20v only when PD Mode is set to normal. So the default mode „no dynamic” as well as „safe mode” only go to 15 volts …
New Pinenote user here, running on Debian Trixie. I've read the recent blog post explaining the issues with Wifi using 5Ghz, and indeed I can't connect my Pinenote to my home network on that frequency.
The blog post explains 2 workarounds, the first of which involves changing your network to only use specific bands. I'm not particularly interested in that option as it won't work on any other networks when I'm away from home and I don't want to jeopardize performance to my other devices.
What's not clear to me is if there's any action I can take to try out the second workaround listed there. It sounds like a more robust way to solve the issue, but the blog post doesn't seem to contain any instructions or links to instructions for how to actually do it.
Anyone is still playing PineCone? I am trying to build blsp_boot2 myself using the bl_iot_sdk tree.
However, the binary that I built is very different from the prebuilt image bl_iot_sdk/tools/flash_tool/bl602/builtin_imgs/blsp_boot2.elf
Here is how I did:
$ cd bl_iot_sdk
$ export BL60X_SDK_PATH=$(pwd)
$ export CONFIG_CHIP_NAME=BL602
$ cd bl_iot_sdk/customer_app/bl602_boot2
$make
The generated binary bl602_boot2.elf contains the main function like a dummy.
230002aa <main>:
230002aa: 8082 ret
230002ac: 0001 nop
230002ae: 0101 addi sp,sp,0
The pre-built blsp_boot2.elf seems to be a valid one, which matches the bl602_boot2 code.
Can anyone point out what I have missed here? thanks so much in advance.
What is the default password for my KDE plasma pine phone? I was never prompted to enter a password, but need it to run sudo commands in the terminal. I found default passwords like 1234, 12345, 123456, linux, on various forum post, but none of them work in my case.
My pine phone stopped making and receiving phone call.
I have full Internet and connection sharing, SMS works fine, both sending and receiving, but I am unable to make or receive phone calls.
I am in Australia, connecting through Telstra.
When attempting to make a call, it immediately goes to call ended, and when anyone calls me I get no indication that a call is coming through, at their end it goes to voice mail, and I receive an sms telling me I missed a call..
For an lshw list of my hardware .. please see attachment
The issue is not related to the recent upgrade, as it occurred prior to upgrading. I was hoping the upgrade would fix the issue..