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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,472
» Latest member: ventionsquiche
» Forum threads: 16,196
» Forum posts: 116,873

Full Statistics

Latest Threads
fixing the ppkb mainboard...
Forum: PinePhone Pro Accessories
Last Post: zetabeta
Yesterday, 12:04 AM
» Replies: 1
» Views: 52
Pinephone pro stuck while...
Forum: PinePhone Pro Hardware
Last Post: Supervisor
08-16-2025, 06:40 PM
» Replies: 2
» Views: 90
Compatible U.S. carriers ...
Forum: General Discussion on PinePhone
Last Post: Zebulon Walton
08-15-2025, 07:34 PM
» Replies: 2
» Views: 130
Long dialpad keypress to ...
Forum: Mobian on PinePhone
Last Post: Zebulon Walton
08-15-2025, 06:48 PM
» Replies: 3
» Views: 101
Are there plannes to crea...
Forum: PinePhone Pro Hardware
Last Post: Kevin Kofler
08-15-2025, 06:20 PM
» Replies: 4
» Views: 894
PinePhone Pro discontinue...
Forum: General Discussion of PinePhone Pro
Last Post: zetabeta
08-15-2025, 12:27 PM
» Replies: 6
» Views: 351
Pinephone Pro wont boot t...
Forum: General Discussion of PinePhone Pro
Last Post: zetabeta
08-15-2025, 04:22 AM
» Replies: 3
» Views: 166
prototyping to help someo...
Forum: General
Last Post: xerosenex
08-14-2025, 02:31 AM
» Replies: 0
» Views: 103
Password reset via u-boot...
Forum: PineNote Software
Last Post: lunnabae
08-13-2025, 01:17 AM
» Replies: 6
» Views: 1,758
incorporate a multimeter ...
Forum: General
Last Post: lalisa12
08-13-2025, 01:14 AM
» Replies: 2
» Views: 526

 
  basic and ugly mpc-python-GTK3 mpd remote
Posted by: alexandre - 08-22-2021, 11:35 AM - Forum: PinePhone Software - No Replies

I could not find any mpd remote for phosh (some GTK desktop client do the job, but they're not appropriate to a mobile device), so here is a simple python file to perform basic actions (play, stop, pause, next, previous, enable/disable outputs). It relies on mpc to act with the server. One has to change the login string of the script with the right passwd and IP (let a space at the end). If you know about a real app that does the job, tell me. If you ever write one, i would try it Wink. At home, the outputs i want to control are numbered 2 and 3 : change that according to your wishes…


#!/bin/python3

import gi, os

gi.require_version("Gtk", "3.0")

from gi.repository import Gtk

login="mpc -h  your_password@ip_of_the_server "

class ButtonWindow(Gtk.Window):
    def __init__(self):
        super().__init__(title="MPD Remote")
        self.set_border_width(10)

        vbox = Gtk.VBox(spacing=6)
        self.add(vbox)

        button = Gtk.Button.new_with_label("Stop")
        button.connect("clicked", self.on_stop_clicked)
        vbox.pack_start(button, True, True, 0)

        button = Gtk.Button.new_with_mnemonic("Play")
        button.connect("clicked", self.on_play_clicked)
        vbox.pack_start(button, True, True, 0)

        button = Gtk.Button.new_with_mnemonic("Pause")
        button.connect("clicked", self.on_pause_clicked)
        vbox.pack_start(button, True, True, 0)
       
        button = Gtk.Button.new_with_mnemonic("Précédente")
        button.connect("clicked", self.on_prec_clicked)
        vbox.pack_start(button, True, True, 0)
       
        button = Gtk.Button.new_with_mnemonic("Suivante")
        button.connect("clicked", self.on_suiv_clicked)
        vbox.pack_start(button, True, True, 0)
       
        switch = Gtk.Switch()
        switch.connect("notify::active", self.on_switch_activated)
        switch.set_active(True)
        vbox.pack_start(switch, True, True, 0)
       
        switch2 = Gtk.Switch()
        switch2.connect("notify::active", self.on_switch2_activated)
        switch2.set_active(True)
        vbox.pack_start(switch2, True, True, 0)

    def on_switch_activated(self, switch, gparam):
        if switch.get_active():
            state = "on"
            os.system(login+"enable 3")
        else:
            state = "off"
            os.system(login+"disable 3")
       
    def on_switch2_activated(self, switch, gparam):
        if switch.get_active():
            state = "on"
            os.system(login+"enable 2")
        else:
            state = "off"
            os.system(login+"disable 2")

    def on_stop_clicked(self, button):
        os.system(login+"stop")

    def on_play_clicked(self, button):
        os.system(login+"play")

    def on_pause_clicked(self, button):
        os.system(login+"pause")
   
    def on_suiv_clicked(self, button):
        os.system(login+"next")

    def on_prec_clicked(self, button):
        os.system(login+"prev")


win = ButtonWindow()
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()


  Lockscreen not moving
Posted by: henkdieter - 08-22-2021, 07:31 AM - Forum: SailfishOS on PinePhone - Replies (30)

HI,

I've flashed SFOS on my BH Pinephone yesterday, using the flash-it.sh script as instructed by the PinePhone Software Releases page on the wiki. I'm really impressed with how snappy and smooth this OS runs on the pinephone.

The device boots into the lockscreen, and from there I can edge swipe down or op, opening the settings or the camera. Swiping from the left or from the right, however, has no effect, and as such I am unable to move the lockscreen and start using the rest of the OS.

I know there's nothing wrong with my screen. as when the config is slider is down, I can close it by swiping from the left or the right. I've also never had any touchscreen problems with Manjaro.

Has anyone else had this issue? Is there anything that can be done about it?

Thanks!


  Onboard answering/message app
Posted by: bcnaz - 08-22-2021, 05:32 AM - Forum: PinePhone Software - Replies (1)

I don't know if it is feasible,   but instead of going through the carrier,  could we have an app that allows our phone to answer when

we choose to let the call go to voicemail....  ?

If we are out of cell range, or our phone is turned off it  'could'  still go to the carriers servers....

or if you are like me, I just do not set up voicemail on the carriers servers.

 *  But cutting out the middleman sounds good to me.


  Regarding USB Power and Modem Initialization
Posted by: vidual - 08-21-2021, 08:41 PM - Forum: PinePhone Hardware - Replies (2)

I wonder if there is a way to go sans stock battery? Not to replace the battery with a compatible alternative but to modify the phone to complement a different type of system. New to the forum, haven't really perused the place BUT-- I find it interesting that when I plug the phone to, say, a computer without a battery (though I assume off an external battery it may act similarly) two things happen:

a. It's lighter, duh. But instantly lighter in a way that is oddly exciting to me?
b. It's faster. Not that I've measured it...

I'm assuming the apps run smoother because the, as I humbly perceive, power-hungry modem necessitates the battery, and so no modem to compete with the CPU, RAM, etc. (at least using postmarketOS with sxmo). However, from reading another post on power management in /sys, the USB power settings could potentially be tweaked to power the modem? And if so, we could technically use whatever battery we want, so long as we can find a way to mount it to our bodies in a totally natural, cyborg way. jk, but no, I'm serious.

I do not understand why the board, cpu, the screen, everything gets power except the modem? To which, with space regained used once by the battery one could hypothetically mod peripherals where the battery currently lay?

But seriously, if I could get my unit to be this light and this fast and do cellular (with totally cool wrist straps that contain batteries, think about it) the phone would be instantly more usable as a daily driver and rather unique to boot.

So, my grand OP question is: can the pinephone modem be charged off an external source via USB without modding the battery pins with a dummy?

At the very least, if the setup could work with just the charge from the dock, the pinephone could be used as a neat terminal with lower latency much like that raspberry 4 keyboard, if of course, you mount keys to it (in the gap where the battery no longer needs to exist.) External battery power would make the lifetime of the thing effectively endless.

tldr: USB power without the battery powers the phone's components except for the modem. Why come and how to innovate?


  Customizations or upgrades?
Posted by: ohuw67 - 08-21-2021, 02:54 PM - Forum: General Discussion on Pinebook Pro - Replies (4)

Hello community, does anyone know whether they will be selling the Pinebook Pro with custom specs in the future? Like more memory or disk capacity.


Question External display doesn't work in TwisterOS (Armbian)
Posted by: TDC_PBP - 08-21-2021, 02:46 PM - Forum: Linux on Pinebook Pro - No Replies

Does anyone know how to make an external display work in TwisterOS (which is based on Armbian)? The external display works in Manjaro, but not TwisterOS. Here is the only offending line I could find in dmesg:

[  10.658203] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work [rockchipdrm]] *ERROR* Enable dp failed -19

I have attached the rest of dmesg's output, in case that is useful info.

Thanks!



Attached Files
.txt   dmesgoutput.txt (Size: 55.19 KB / Downloads: 404)

  SXMO on Debian
Posted by: IVp - 08-21-2021, 02:33 PM - Forum: Sxmo on PinePhone - No Replies

If anyone wants to try sxmo on Debian, I made a small script that should at least get the basics working. Run this script from phosh or ssh after setting up an internet connection on Mobian ( I used ...phosh-20210516.img.gz ). It's based on an existing script to install sxmo on arch. 

Numerous things still do not work. Wifi and (allmost) all on screen input (lisgd and svkbd) work without issues. OTG works, but screen hast to be set up manually. Most apps from the apps list work, but scripts that need sfeed do not. Sound doesn't really work. If you want to have sound, use pulseaudio from the terminal. Suspend doesn't work. Bluetooth is untested. The camera works, because megapixels just works. Modem is untested and most likely doesn't quite work. I want to get sound and suspend (sleep) to work next. 

I'm also not sure how long this script will continue to work, since sxmo is moving to tinydm and wayland.


Question FydeOS privacy policy?
Posted by: TDC_PBP - 08-21-2021, 02:22 PM - Forum: Chromium OS on Pinebook Pro - Replies (1)

FydeOS sounds really cool (and probably would be a great backup OS if something I need to use doesn't work in Linux on the PBP yet), but I would really like to read FydeOS' privacy policy to know what data it is collecting on me before trying it. I looked on their English website, but I couldn't find a privacy policy anywhere. Could someone please share a link to it?


  Daemon and go library to interact with InfiniTime on Linux
Posted by: Arsen6331 - 08-21-2021, 10:32 AM - Forum: Development Discussion on PineTime - No Replies

I have created a go library and a daemon to interact with the InfiniTime firmware on Linux. These were created in about a week, so I don't know how good they are. If anyone is interested, here they are:

Daemon: https://gitea.arsenm.dev/Arsen6331/itd
Library: https://gitea.arsenm.dev/Arsen6331/infinitime


This was also posted on reddit: https://www.reddit.com/r/PINE64official/...nfinitime/


  [SOLVED] Gadgetbridge not pairing with pinetime
Posted by: zoof - 08-21-2021, 09:27 AM - Forum: General Discussion on PineTime - Replies (3)

Hi,

I just got my PineTime and it's amazing!  I installed Siglo on my laptop and was able to pair and update the firmware to 1.3.

I also installed Gadgetbridge on a Motorola Ace and it doesn't see the PineTime.  I followed the Gadgetbridge configuration instructions here.

Any ideas or suggestions?