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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 30,255
» Latest member: BillySorvan
» Forum threads: 16,391
» Forum posts: 117,631

Full Statistics

Latest Threads
Pinecil V2 + Raspberry Pi...
Forum: General
Last Post: tllim
Yesterday, 09:42 PM
» Replies: 1
» Views: 155
Article: Will Linux phone...
Forum: General
Last Post: elinkser
Yesterday, 02:58 PM
» Replies: 5
» Views: 341
Star64 Irradium (based on...
Forum: Getting Started
Last Post: mara
10-08-2026, 02:00 PM
» Replies: 21
» Views: 20,908
SlateOS feedback needed!
Forum: Development Discussion on PineTime
Last Post: Nolegdai
10-05-2026, 02:04 PM
» Replies: 1
» Views: 772
Unknown Startup Password ...
Forum: PineTab Hardware
Last Post: tllim
10-05-2026, 12:44 PM
» Replies: 1
» Views: 318
HDMI or VGA From Pinebook...
Forum: Pinebook Pro Hardware and Accessories
Last Post: tllim
10-05-2026, 12:42 PM
» Replies: 7
» Views: 10,301
Delivery to Ukraine
Forum: Shipment Related Discussion
Last Post: freidepiter
10-01-2026, 12:56 PM
» Replies: 10
» Views: 16,701
PINEPOCALYPSE (pics inclu...
Forum: General Discussion on Pinebook Pro
Last Post: segaloco
09-29-2026, 11:36 PM
» Replies: 2
» Views: 734
PineTab-V Experiences
Forum: General Discussion on PineTab
Last Post: segaloco
09-29-2026, 11:28 PM
» Replies: 0
» Views: 274
irradium (based on crux l...
Forum: Linux on Rock64
Last Post: mara
09-27-2026, 11:55 AM
» Replies: 14
» Views: 21,314

 
  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.


Thumbs Up Modem Shutdown/Startup Scripts
Posted by: big_fluff - 05-08-2021, 12:59 AM - Forum: PostmarketOS on PinePhone - No Replies

Have you cut a hole in the back cover of your pinephone and regularly switch off your cellular modem with the dip switch to keep the 3 letters from being creepy? If so, you will need these scripts so you can turn off/on the modem without having to restart your phone.

Turning modem off:

Install "minicom"

Code:
sudo apk install minicom


Create file "modem_shutdown" with the following text:

Code:
sudo minicom -S shut_down -D /dev/ttyUSB2

Create file "shut_down" with the following text:

Code:
send AT+QPOWD=1

now make both executable (Probably don't need to make "shut_down" executable)
I also added read/write so I can edit them as needed later.

Code:
sudo chmod 700 modem_shutdown
sudo chmod 700 shut_down

Install gnome-terminal (So you can click "Run in terminal" in the filemanager "Nemo")

Code:
sudo apk install gnome-terminal

now click on "modem_shutdown" in your home or whatever directory you put these files. Be sure to click "open in terminal" and supply your user password. You should see a minicom screen pop up and it will eventually say "Cannot open /dev/ttyUSB2!". Close out the minicom instance. You can now switch off the modem with the dip switch.

Turning modem on:

Create file "modem_startup" with the following text:

Code:
sudo rc-service eg25-manager restart

make it executable

Code:
sudo chmod 700 modem_startup

Flip the dip switch back on and click on "modem_startup" and "Run in terminal" like the shutdown script.