Sway on PinePhone POC
#5
(06-02-2020, 06:23 PM)mil Wrote: This is pretty neat and cool to see lisgd pop up somewhere else too Wink

I'll have to play around with this, I'm particularly interested in the program you have in pinephone-toolkit `cpu-sleep` to put certain CPUs offline. (Curious how that'd work out for say continuing to listen to music or something, e.g. does that still work; and is there a big battery life gain - do you have any stats for batterylife in this single-cpu/low-cpu mode?)

Also curious how manageable sway is with gestures - one problem I had with lisgd and gestures is that if your finger generally overruns multiple windows, you wind up switching window focus (atleast in dwm, and that throws off the meaning of the gesture); but curious how this worked out in your setup and how reliable it is. Will have to play around with this when I get some free time or if you wind up making an ISO that would be awesome.

To be fair putting CPUs into sleep doesn't do anything fancy, just `echo 0 > /sys/devices/system/cpu/cpu1/online` for 3 out of 4 CPUs Smile  I don't have any statistics, but looking at the charging current it helped only slightly. I ran just one test: leaving it idling in the "sleep" mode, after 6.5 hours it had 7 % battery left, proving I could use it off the grid Big Grin

When going to sleep while playing music, there is a brief but audible skip if the player's process gets transferred to the primary CPU. Otherwise it works great and one CPU manages to play a song no problem.

Focus in sway is controlled more explicitly, so it stays where you set it. On the other hand the source touch events get propagated to the underlying windows. You may get some unwanted actions this way Smile 

I wanted to avoid diving into the problems of how to build an image with everything included, but if this PoC turns out usable, I'll reconsider it.
  Reply


Messages In This Thread
Sway on PinePhone POC - by dejvino - 06-01-2020, 03:48 PM
RE: Sway on PinePhone POC - by nas - 06-02-2020, 11:06 AM
RE: Sway on PinePhone POC - by dejvino - 06-02-2020, 12:10 PM
RE: Sway on PinePhone POC - by mil - 06-02-2020, 06:23 PM
RE: Sway on PinePhone POC - by dejvino - 06-06-2020, 07:20 AM
RE: Sway on PinePhone POC - by xmixahlx - 06-06-2020, 03:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  baremetal via Zig on PinePhone - JumpDrive help please WhiteHexagon 1 218 07-07-2025, 10:33 AM
Last Post: WhiteHexagon
  Movuan distribution for PinePhone merom 4 1,002 04-07-2025, 12:32 AM
Last Post: tllim
  Latest firmware for PinePhone modem! Subsentient 105 174,839 02-02-2025, 08:47 PM
Last Post: bacydentir85
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 43,205 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 1,441 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 47,109 07-26-2024, 10:35 PM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 2,456 07-04-2024, 07:34 AM
Last Post: Kevin Kofler
  Which word processor to choose for the Pinephone? Peter Gamma 16 9,586 06-22-2024, 07:28 AM
Last Post: Peter Gamma
  Samba share on the Pinephone? Peter Gamma 0 1,140 06-16-2024, 10:26 PM
Last Post: Peter Gamma
  Possible Free Backup Carrier for PinePhone PineFone 0 1,065 06-13-2024, 03:45 PM
Last Post: PineFone

Forum Jump:


Users browsing this thread: 1 Guest(s)