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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,717
» Latest member: asdfjkl
» Forum threads: 16,267
» Forum posts: 117,226

Full Statistics

Latest Threads
Window Maker Live for Pin...
Forum: Linux on Pinebook Pro
Last Post: vajak
16 minutes ago
» Replies: 0
» Views: 4
sd card problems
Forum: PinePhone Accessories
Last Post: ottahe
48 minutes ago
» Replies: 2
» Views: 50
Recycling pinephone as ho...
Forum: PinePhone Hardware
Last Post: mdk
4 hours ago
» Replies: 6
» Views: 769
Battery connector dead
Forum: PinePhone Hardware
Last Post: mdk
4 hours ago
» Replies: 4
» Views: 2,461
Questions about running U...
Forum: General Discussion on PineTime
Last Post: ArmbianForSBCs
4 hours ago
» Replies: 1
» Views: 192
Armbian has been released...
Forum: News
Last Post: ArmbianForSBCs
4 hours ago
» Replies: 20
» Views: 31,485
Selling my Pinephone Pro ...
Forum: General Discussion on PinePhone
Last Post: asdfjkl
Yesterday, 06:32 PM
» Replies: 1
» Views: 2,757
PinePhone sensors - Gyros...
Forum: General Discussion on PinePhone
Last Post: WhiteHexagon
Yesterday, 08:07 AM
» Replies: 3
» Views: 173
no SD boot on replacement...
Forum: PinePhone Pro Hardware
Last Post: biketool
Yesterday, 07:46 AM
» Replies: 1
» Views: 69
Pinephone + Keyboard for ...
Forum: PinePhone Hardware
Last Post: biketool
Yesterday, 06:29 AM
» Replies: 11
» Views: 5,975

 
  How to access GPS data in Mobian
Posted by: ragreenburg - 05-08-2021, 06:56 PM - Forum: Mobian on PinePhone - Replies (3)

Anyone know how to get the GPS information from the GPS in the PinePhone? I've tried a few programs to get the location but they all seem to go by IP address so they all basically just say the town I am in and are off by a few miles so I was hoping to get the actual information from the GPS itself but I don't know how to do that. I also tried 'whereami' and for some reason that doesn't work. I install it and it says I have the most up to date version then when I try to run `whereami` it says the package isn't installed.


  Batch processing of photos
Posted by: Zebulon Walton - 05-08-2021, 03:51 PM - Forum: Mobian on PinePhone - No Replies

I found the amount of post-processing time when taking Megapixels photos to be a bit annoying so decided to move that to batch processing which can be run manually when convenient.

This is a real quick-and-dirty kludge. I'm not familiar with the image processing tools being used by the original postprocess.sh, so I stripped that down and sussed out the filename handling as best I could. If there are grievous errors please let me know, but this seems to work.

When taking photos the .dng files are copied directly to ~/Pictures and not further processed. The batch processing is done directly in ~/Pictures by manually running a script when desired. Intermediate .tiff files are deleted but original .dng files are kept in case something goes horribly wrong. If the corresponding .jpg file already exists that .dng file is skipped. (It is assumed that dcraw, imagemagick, and exiftools are installed. The original code determining what programs are installed is stripped out for simplicity.)

The following custom postprocess.sh is placed in ~/.config/megapixels:

Code:
#!/bin/sh

# The post-processing script gets called after taking a burst of
# pictures into a temporary directory. The first argument is the
# directory containing the raw files in the burst. The contents
# are 1.dng, 2.dng.... up to the number of photos in the burst.
#
# The second argument is the filename for the final photo without
# the extension, like "/home/user/Pictures/IMG202104031234"
#
# The post-processing script is responsible for cleaning up
# temporary directory for the burst.

if [ "$#" -ne 2 ]; then
    echo "Usage: $0 [burst-dir] [target-name]"
    exit 2
fi

BURST_DIR="$1"
TARGET_NAME="$2"
MAIN_PICTURE="$BURST_DIR"/1

# Move the first frame of the burst into ~/Pictures as the raw photo

mv "$BURST_DIR/1.dng" "$TARGET_NAME.dng"

# Clean up the temp dir containing the burst
rm -rf "$BURST_DIR"

exit 0

The following is saved to ~/bin/pp (the short name makes it easy to type via on-screen keyboard):

Code:
#!/bin/bash

# The post-processing script processes and converts the .dng files
# in ~/Pictures to .jpg files.

# Define processing function
process() {
  CONVERT="/usr/bin/convert"
  DCRAW=/usr/lib/libraw/dcraw_emu
  EXIFTOOL=/usr/bin/exiftool
  TIFF_EXT="dng.tiff"

  # -fbdd 1    Raw denoising with FBDD
  set -- -fbdd 1
  # +M        use embedded color matrix
  # -H 4      Recover highlights by rebuilding them
  # -o 1      Output in sRGB colorspace
  # -q 3      Debayer with AHD algorithm
  # -T        Output TIFF
  echo "Enhancing raw image, convert to tiff..."
  $DCRAW +M -H 4 -o 1 -q 3 -T "$TARGET_NAME.dng" "$TARGET_NAME.dng"

  echo "Converting to jpg..."
  $CONVERT "$TARGET_NAME.$TIFF_EXT" -sharpen 0x1.0 "$TARGET_NAME.jpg"

  echo "Copying exif data to jpg..."
  # Copy the exif data over from the tiff to the jpeg
  # since imagemagick is stupid
  $EXIFTOOL -tagsFromfile "$TARGET_NAME.$TIFF_EXT" \
            -software="Megapixels" \
            -overwrite_original "$TARGET_NAME.jpg" >/dev/null
  $EXIFTOOL -tagsFromFile @ "-ModifyDate>DateTimeOriginal" \
            -overwrite_original "$TARGET_NAME.jpg" >/dev/null

  # rm intermediate tiff file
  echo "Cleaning up..."
  rm $TARGET_NAME.$TIFF_EXT
  echo "Done."
}

# We get an error in the loop if there are no .dng files, so check first.
if [ ! -f ~/Pictures/*.dng ]; then
  echo "No .dng files found, aborting."
  exit 0
fi

# Loop through dng files and call process() function
pushd ~/Pictures >/dev/null
for file in *.dng
do
  TARGET_NAME=`echo $file | cut -d . -f 1`
  if [ ! -f $TARGET_NAME.jpg ]; then
    echo '----------------------------------------'
    echo Processing $file...
    process
    echo '----------------------------------------'
  fi
done
popd >/dev/null

So basically you just take your photos and the .dng files are quickly deposited in ~/Photos. Then when you want to process them and convert to jpg you just run "pp" from the terminal. (An icon on the screen could be set up for this if desired.) When satisfied that the jpg files are OK you can delete the original dng files to save space if desired.


  Touchpad notchy on new 2021 pinebook pro
Posted by: Neilcob - 05-08-2021, 03:20 PM - Forum: Pinebook Pro Hardware and Accessories - Replies (21)

Hi,

I'm just beginning to play with my new Pinebook Pro.  Arrived May 2021.

The only issue I'm unhappy with is that the touchpad seems to lag on initial movement.  i.e. you move your finger then the arrow moves some time later.  It's making button pressing and resizing windows very awkward.  I currently have a mouse plugged in and this works fine.  However I would like the touchpad working for 'sofa surfing'. Smile

I've already read a lot of previous post about the issue from 2019 and 2020.  I've tried re-flashing the keyboard driver and tried some of the previous reported  'fixes'.  There may be some slight observable improvement but it's marginal.  The main issue is initial finger movement and a lag in the pointer.  Has anyone got one of the newer pinebook pros and is experiencing the same issue?

I'm running the Manjaro install that came with the laptop.  I've also tried the Debian release booted from sd card and this exhibited the same issue.

I think it maybe a driver or power management issue rather than hardware since the hardware seems to function fine other than this initial lag.

Is there a solution to this problem?  Other than that the laptop is brilliant!

Neil


  12v Watts?
Posted by: Enthalpy0 - 05-08-2021, 03:09 PM - Forum: General Discussion on Pinecil - Replies (1)

Just got my pinecil and it looks good. Did a quick test with lead free solder and it worked fine. 

The only barrel 5.5 mm power supply I had in the house was 12 volts. (no USB C in the house either) With my temperature set up to 360 C it barely maintained it that hot. I put a watt meter on the AC electric side if the cord and it showed a maximum of 19 watts, even though the 12 vDC converter can deliver 3 amps. . . 36 watts. 

I see in the wiki in the QC discussion, it says 12v will only deliver 18 watts. I assumed that was a QC limitation. Is the 18 watts at 12 volts always a limitation?  (I’ll go read some datasheets)


  Burn mark after wearing Pinetime?
Posted by: gamerminstrel - 05-08-2021, 02:21 PM - Forum: General Discussion on PineTime - Replies (7)

I have been wearing my Pinetime basically nonstop since I got it. I took it off just now and there is a burn mark on my arm where I was wearing it. Has anyone else experienced this, and should I be worried?

I'm confident this is not any form of allergic reaction to the materials of the device as this burn is exclusively under the sensors on the backside of the pinetime. I think the sensors somehow burnt me, but the device itself never got hot to the touch.



Attached Files Thumbnail(s)
   

  If booted with headphones in, sound comes from them and speakers
Posted by: stozi - 05-08-2021, 12:33 PM - Forum: General Discussion on Pinebook Pro - Replies (6)

I've started playing music in my headphones without realizing it's also blaring from the speakers in public enough times now to try to fix this.

If headphones are in on boot, sound will come out of both them and the speakers unless you remove them and put them back. How to make only play from headphones if they are in on boot?


  Installing cinnamon on Manjaro PBP [SOLVED]
Posted by: quixote - 05-08-2021, 12:21 PM - Forum: Linux on Pinebook Pro - Replies (1)

This is for a user who just got a PBP (loves it Big Grin ) and before has used LinuxMint Cinnamon since forever.

Since he's used to Cinnamon, he wanted that as a DE, and I thought, "Easy. Go to Add/Remove software, find cinnamon-desktop, and install."

Well, that part was easy. But it keeps booting into KDE. I simply cannot find where you tell the system to use cinnamon. There's no option to choose DE at login (that I could see), and no setting that can be changed after it's booted.

There's got to be a way, right?   Huh   Help, please. Confused


  Pinephone in Canada
Posted by: RRman - 05-08-2021, 11:34 AM - Forum: General Discussion on PinePhone - No Replies

Hi guys,
I just got my phone few weeks back and been testing different builds. The 2 that I like and are working most of the time are Arch Linux Arm and Mangaro Phosh also Manjaro plasma(but having problem waking up the screen).
I find that when I try to call my Cell the modem for the sim card and I use shaw mobile services in BC always have busy signal on a first dial, if I hangup and call again the call goes true. Any one have the same experience? Other than that I love the phone and the option to ungoogle myself is great.


  Testing Some Games On The Pinebook Pro!
Posted by: ImmyChan - 05-08-2021, 09:32 AM - Forum: General Discussion on Pinebook Pro - No Replies

https://youtu.be/B4glJJrzY8o


  modem no carrier message
Posted by: Rainer - 05-08-2021, 07:34 AM - Forum: PinePhone Hardware - Replies (15)

hello,

pretty new to cell phones with previous desktop experience with linux. i have an old blackberry z30 that needed replacement and didn't like the iphone/ android options.

i recently inserted my sim card into the pinephone and keep getting the 'modem no carrier' messages. i'm on the koodo/telus network in canada. koodo network is displayed on the top right of the pinephone. sms, spacebar, and the phone seem to be functioning normally!? is there something i should be doing/configuring?

thanks.