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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,958
» Latest member: rex9090t
» Forum threads: 16,333
» Forum posts: 117,437

Full Statistics

Latest Threads
StarPro64 Irradium (based...
Forum: Getting Started
Last Post: mara
7 hours ago
» Replies: 19
» Views: 8,451
Finally got Kali working ...
Forum: General Discussion on Pinebook Pro
Last Post: qingss0
Yesterday, 08:00 AM
» Replies: 0
» Views: 73
Charging problem
Forum: General Discussion on Pinebook Pro
Last Post: RicTor
Yesterday, 07:30 AM
» Replies: 0
» Views: 50
Latest firmware for PineP...
Forum: PinePhone Software
Last Post: baptx
04-03-2026, 08:37 AM
» Replies: 106
» Views: 215,455
Updates have gotten me ex...
Forum: General Discussion on PineNote
Last Post: bills2002
04-02-2026, 05:16 PM
» Replies: 0
» Views: 87
Voidlinux working on eMMC
Forum: General Discussion on PineTab
Last Post: tllim
04-01-2026, 04:14 PM
» Replies: 1
» Views: 147
Pinecil V2 doesn’t power ...
Forum: General Discussion on Pinecil
Last Post: Juptin
03-28-2026, 02:37 AM
» Replies: 1
» Views: 1,998
dead Pinebook - help plea...
Forum: General Discussion on Pinebook Pro
Last Post: williamcorlin
03-26-2026, 04:22 PM
» Replies: 3
» Views: 888
BT PAN - we need iptables...
Forum: Mobian on PinePhone
Last Post: biketool
03-25-2026, 12:57 PM
» Replies: 1
» Views: 568
How can I record video on...
Forum: General Discussion on PinePhone
Last Post: baptx
03-25-2026, 12:55 PM
» Replies: 23
» Views: 18,753

 
  Files change randomly after coping to USB disks
Posted by: sosojni - 07-02-2020, 05:17 AM - Forum: Linux on PINE A64-LTS / SOPINE - Replies (2)

So, this is setup:

Pine64 LTS with 64GB SD Card -> USB Hub -> 4 External cases with disks inside

1) I create large ZIP file on my desktop (win10) and check MD5 hash.
2) I copy that file to Pine SD card via Samba and check MD5 hash. Hash is same as original.
3) I copy file from SD card to Disk1. I check hash of file on SD card and on disk1. All hashes are same.
4) I copy file again from SD card to Disk2. I check hash of file on SD card and on disk1 and disk2. All hashes are same.
5) I copy file again from SD card to Disk 3. I check hash of file on SD card and on disk1, disk2 and disk3. disk2 hash is different!!!

You can see this running twice, once in subdirs of disks, and once in root of disks:

https://pastebin.com/raw/5nqdZVUJ

Error is sometimes on 1 disk, sometimes there is no error, sometimes error is on 3 disks and sometimes on all disks. It's random.

How is that possible?

I have ran disk checks for bad sectors, i am currently doing mem test, everything is fine for now...


  Automatic app scaling
Posted by: a-wai - 07-02-2020, 02:59 AM - Forum: Mobian on PinePhone - Replies (14)

Hi,

In the past few days, a new phoc version has been released, which brings a long-awaited feature: automatic scaling of large windows!
It is however disabled by default, as it could cause some strange behavior for apps not requiring such "extreme" measures.

Therefore, this feature has to be enabled on a per-app basis, using instructions from the wiki.

Feel free to experiment and share your experience here or on the wiki Smile


  GNSS Raw Data
Posted by: nanich87 - 07-02-2020, 01:52 AM - Forum: PinePhone Hardware - Replies (1)

Is it possible to obtain the raw data from the GNSS chip? I need it for precise positioning with external software like RTKLIB.


  Pinebook Pro availability.
Posted by: MHT719 - 07-01-2020, 10:14 PM - Forum: General Discussion on Pinebook Pro - Replies (5)

Hi everyone, I plan to buy a pinebook pro (ANSI Keyboard Variant) soon (within July).  I was wondering if anybody knew about when they would be available to order that info would be greatly appreciated.


  NixOS getting started guide
Posted by: _hg_ - 07-01-2020, 06:48 PM - Forum: Linux on Pinebook Pro - Replies (4)

I am a complete NixOS newbie, so it took me a while to get things settled. I thought I'd share this here in case it helps someone else. Note, this guide is not perfect and still requires some general Linux knowledge or careful Googling.

Building the system

  1. If you are not running the build on a system that has Nix, install Nix (see https://nixos.org/download.html).
  2. Clone https://github.com/samueldr/wip-pinebook-pro
  3. Edit both build.sh and default.nix, and replace 19.09 with 20.03. 20.03 is the current stable channel, and it should work better based on conversations in the project's GitHub issues.
  4. If you are on Manjaro (and maybe other distros?) edit build.sh and change nix-build to $(which nix-build). (Thanks to acsid's fork https://github.com/acsid/wip-pinebook-pr...9f71a0b6cf)
  5. Run build.nix to build it. Kernel build may take a long time, probably hours.
  6. Copy the wip-pinebook-pro folder to some storage media (ideally a thumb drive) in case you mess up, so you don't have to build everything again.
  7. Install:
  • For SD install: use the dd command below, but make sure you are using the right /dev/mmcblk*. For me this was /dev/mmcblk1.
  • For install to eMMC with USB adapter: use the dd command below, but change /dev/mmcblk0 to the location of your USB adapter. (Not tested but this should work.)
  • For install to internal eMMC without adapter: first perform the SD install, then reboot into your new NixOS install on the SD card. Then see steps in the next section below.
Code:
lsblk /dev/mmcblk0 && sudo dd if=result/idbloader.img of=/dev/mmcblk0 bs=512 seek=64 oflag=direct,sync && sudo dd if=result/u-boot.itb of=/dev/mmcblk0 bs=512 seek=16384 oflag=direct,sync


Building and installing to internal eMMC from booted SD image

If you saved your built image:

  1. Mount the storage media where you saved the wip-pinebook-pro folder.
  2. Run the dd command above, but change /dev/mmcblk0 to the correct device. For me this was /dev/mmcblk2.
  3. Shutdown, eject the SD card, and reboot.

If you lost your built image like I did and you need to rebuild:
 
  1. Set up networking. For wireless, you can do this by creating /etc/wpa_supplicant.conf with the proper setup and then run "sudo systemctl start wpa_supplicant.service". Ethernet may just work with a USB adapter, but I have not tested this.
  2. Clone https://github.com/samueldr/wip-pinebook-pro. You can pull down the repo using curl or run "nix-shell -p gitMinimal" to temporarily acquire git.
  3. Edit both build.sh and default.nix, and replace 19.09 with 20.03. 20.03 is the current stable channel, and it should work better based on conversations in the project's GitHub issues.
  4. Run build.nix to build it. Kernel build may take a long time, probably hours.
  5. Run the dd command from above, but change /dev/mmcblk0 to the correct device. For me this was /dev/mmcblk2.
  6. Shutdown, eject the SD card, and reboot.

Making a usable system

  1. Once you can boot, you will need configuration files before you can use nixos-rebuild. Run "nixos-generate-config" to get a starter /etc/nixos/configuration.nix and /etc/nixos/hardware-configuration.nix.
  2. Make your configuration. An example is here: https://github.com/tgunnoe/configuration...ration.nix. START SIMPLE. I would leave out anything graphical to start with, you just want to be able to rebuild your kernel and reboot. I may post a followup basic config later. Don't forget to include a reference to the wip-pinebook-pro patches, either using tgunnoe's method (linked) or by cloning the repo locally and referencing it in your imports section as in the repo's README.
  3. Set up networking. For wireless, you can do this by creating /etc/wpa_supplicant.conf with the proper setup and then run "sudo systemctl start wpa_supplicant.service". Ethernet may just work with a USB adapter, but I have not tested this. Make sure you also set networking options in your configuration.nix so you will have a functional connection after you rebuild!
  4. Run "nix-channel --update" to update your channel.
  5. Run "nixos-rebuild boot --update". This should pull down everything and rebuild everything.

Once you have a working configuration.nix, you should be able to add packages to it and run "nixos-rebuild switch" without a problem. Note that if you break your configuration, you may have to use the SD card image or the serial console to revert.


  Upgrading eMMC and Installing Majaro XFCD 20.06
Posted by: lyssa - 07-01-2020, 05:27 PM - Forum: Linux on Pinebook Pro - No Replies

Upgrading The eMMC And Installing Manjaro Xfce (or whatever image, I think)

Thanks to many others for bits and pieces, including Syonyk’s how-to at https://forum.pine64.org/showthread.php?tid=10279.

This post is more for the noob, like me. I did not want to use aditional software, like Etcher. Just use what I had.

Part 1 – Setting up the temporary SD card

1. Download compressed image and sha256 files to functioning PBP running from eMMC. Mine was 64Gb.

2. Verify whatever.img.xz file integrity against sha256 file. Note: whatever is place holder for your filename.

Code:
sha256sum -b whatever.img.xz

If OK, proceed. Smile Otherwise, begin Part 1 again Angry .

3. Expand the img.xz file.

Code:
unxz whatever.img.xz

Note: The compressed file will disappear unless you save a copy somewhere else before expanding. This procedure assumes everything is in your Downloads folder as is your terminal. Note: This takes a few minutes on PBP.

4. Write downloaded and checked Manjaro Xfce (or whatever) image to SD card with dd:

WARNING: CHECK WITH LSBLK TO VERIFY AND NOTE WHICH DEVICE IS YOUR SDCARD BEFORE RUNNING "dd" COMMAND TO WRITE YOUR IMAGE TO IT!

In my case, the target SD card was mmcblk1 while running on eMMC. Yours could be different, maybe?

Code:
sudo dd if=whatever.img of=/dev/mmcblk1 bs=4M status=progress

5. Power off and restart Manjaro Xfce from SD card. No need to remove, disable, turn off eMMC. Woohoo! It worked.

Part 2

At this point, the eMMC has been replaced with a new blank part, and the tools put away. Mine is 128Gb. There are other how-tos on that. Very simple. You are powered up now and running on the SD in the Downloads directory. I think it is easiest and safer to download the image files again instead of trying to shuffle things around between the SD and the old eMMC. So here we go again.

1. Download compressed image and sha256 files to your functioning PBP running from SD.

2. Verify whatever.img.xz file integrity against sha256 file. Note: whatever is place holder for your filename.

Code:
sha256sum -b whatever.img.xz

If OK, proceed. Smile Otherwise, begin Part 2 again Angry .

3. Expand the img.xz file.

Code:
unxz whatever.img.xz

Note: The compressed file will disappear unless you save a copy somewhere else before expanding. This procedure assumes everything is in your Downloads folder as is your terminal. Note: This takes a few minutes on PBP.

4. Write downloaded, checked, and expanded Manjaro Xfce (or whatever) image to the new eMMC card with dd:

WARNING: CHECK WITH LSBLK TO VERIFY AND NOTE WHICH DEVICE IS YOUR eMMC BEFORE RUNNING "dd" COMMAND TO WRITE YOUR IMAGE TO IT!

In my case, the eMMC was mmcblk2. Yours could be different, maybe?

Code:
sudo dd if=whatever.img of=/dev/mmcblk2 bs=4M status=progress

5. Turn off PBP, remove SD card and turn PBP on. It should boot from eMMC with Manjaro Xfce (or whatever) installed. Second woohoo! It worked again.


Sleepy


  NVME powersaving script
Posted by: mamboman777 - 07-01-2020, 05:17 PM - Forum: General Discussion on Pinebook Pro - Replies (10)

I've tried to solve this and can't quite figure it out.  

My goal: on AC power have a script that contains "sudo nvme set-feature /dev/nvme0 -f 2 -v 0" runs; according to the wiki this sets the NVME power management for maximum performance.  On Battery power a script that contains "sudo nvme set-feature /dev/nvme0 -f 2 -v 2" runs; according to the wiki this sets the NVME power management for decreased performance,  but better battery life.  

I have the scripts running successfully, but only as sudo and I can't figure out how to get KDE to run them using the "power management" gui.  I tried entering 'sudo /my/script.sh' into the KDE energy management, but it's either failing to run or running into some sort of permission problem.  

How can I get these scripts to run whenever AC/BAT change is detected?  I wish this were a feature in TLP, but I don't see it there either.  


Thanks!

-Josh


  Improve WiFi stability
Posted by: RTheren - 07-01-2020, 04:31 PM - Forum: SailfishOS on PinePhone - No Replies

Hello there,

To make WiFi usable on PP (way more stable than normal), run the following commands in terminal:

Code:
$ devel-su
# echo 0 > /sys/module/8723cs/parameters/rtw_power_mgnt

Then turn WiFi off and on again. Ping to any IP/hostname doesn't drop so often now, and most apps work much better.


  IDE megathread - please contribute
Posted by: brzegorz - 07-01-2020, 03:23 PM - Forum: General Discussion on Pinebook Pro - Replies (4)

Hi, information about IDE's are quite scattered around web and it'd be cool if you shared your experiences with what works, and what does not. I'll start, I'm using Manjaro.

- VS Code - https://aur.archlinux.org/packages/code-headmelted-bin/
works, though it's a bit choppy. It's my IDE of choice for C++ together with the "clangd" extension, which provides good autocompletion/find references/find implementation functionalities. Official C++ extension doesn't support ARM, but it's in progress. Clangd is a good replacement.

- KDevelop - I've installed it, though I don't remember how. I've messed with it a bit and then found out about clangd

- RStudio - I'm not aware of anyone installing it on Manjaro due to missing dependencies(whole Haskell, I think). It's possible it works on Debian, though.


  Be careful when removing your back cover
Posted by: NO_ob - 07-01-2020, 02:13 PM - Forum: General Discussion on PinePhone - Replies (1)

I got a pressure mark on my screen after removing the back cover so be careful lel

Edit: it seems to have gone away after a few hours
[Image: x1Z26ae.jpg]