~hamblingreen

https://hamblingreen.com

Student, FOSS user and developer, interested in embedded programming, linux, and C.

~hamblingreen/framebufferphone-devel

Last active 4 months ago
View more

Recent activity

[PATCH v2] add system clock to statusline 4 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

prints correctly when compiled with -O ReleaseFast

---
 src/Runtime.zig       | 15 +++++++++------
 src/shims/time.zig    |  1 +
 src/util/utiltime.zig | 14 ++++++++++++++
 3 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/src/Runtime.zig b/src/Runtime.zig
index a5e9d6d..a4266a8 100644
--- a/src/Runtime.zig
+++ b/src/Runtime.zig
@@ -322,11 +322,11 @@ fn refresh_status(runtime: *@This()) !void {
    if (runtime.status_last_update != null and
[message trimmed]

[PATCH] add system clock to statusline 4 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

---
 src/Runtime.zig       | 9 ++++++---
 src/shims/time.zig    | 1 +
 src/util/utiltime.zig | 9 +++++++++
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/Runtime.zig b/src/Runtime.zig
index a5e9d6d..2a32a65 100644
--- a/src/Runtime.zig
+++ b/src/Runtime.zig
@@ -357,7 +357,8 @@ fn redraw_ui(runtime: *@This()) !void {

    if (runtime.mode == .Lock) {
        const vt = try utiltty.current_vt();
[message trimmed]

[PATCH v4] Switch to pulseaudio 4 months ago

From Bobby Hambiln to ~hamblingreen/framebufferphone-devel

From: Bobby Hamblin <hamblingreen@hotmail.com>

Tested on original pinephone with pmos.
Not yet tested on ppp or with arch arm
---
 scripts/f_audio | 184 ++++++++++++++++++++++++++++++++++++------------
 1 file changed, 139 insertions(+), 45 deletions(-)

diff --git a/scripts/f_audio b/scripts/f_audio
index d94abb2..00776db 100755
--- a/scripts/f_audio
+++ b/scripts/f_audio
@@ -1,66 +1,160 @@
#!/usr/bin/env osh
[message trimmed]

[PATCH v3] Switch to pulseaudio 4 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

Implements all pre-migration functionality. Not yet tested on pinephone
(pro)

---
 scripts/f_audio | 130 ++++++++++++++++++++++++++++++++++++------------
 1 file changed, 97 insertions(+), 33 deletions(-)

diff --git a/scripts/f_audio b/scripts/f_audio
index d94abb2..f072166 100755
--- a/scripts/f_audio
+++ b/scripts/f_audio
@@ -1,50 +1,114 @@
#!/usr/bin/env osh
shopt -s strict:all; shopt --unset strict_errexit
[message trimmed]

[PATCH] Switch to pulseaudio 5 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

---
 scripts/f_audio | 74 ++++++++++++++++++++++++++++++++-----------------
 1 file changed, 48 insertions(+), 26 deletions(-)

diff --git a/scripts/f_audio b/scripts/f_audio
index d94abb2..69a4dbd 100755
--- a/scripts/f_audio
+++ b/scripts/f_audio
@@ -1,50 +1,72 @@
#!/usr/bin/env osh
shopt -s strict:all; shopt --unset strict_errexit
DEP_ALPINE="alsa-utils"
DEP_ARCH="alsa-utils"
DEP_ALPINE=""
[message trimmed]

[PATCH 7/7] zig 0.12: dir.dir.openFile -> dir.openFile 5 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

---
 src/util/utildevfs.zig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/utildevfs.zig b/src/util/utildevfs.zig
index 9aeeccd..3aee69e 100644
--- a/src/util/utildevfs.zig
+++ b/src/util/utildevfs.zig
@@ -17,7 +17,7 @@ pub fn get_devfs_files(allocator: std.mem.Allocator, devfs_subdir: []const u8, c
    while (try dir_it.next()) |item| {
        if (item.kind != .character_device) continue;

        const file_opt = dir.dir.openFile(item.name, .{ .mode = .read_only }) catch |err| b: {
        const file_opt = dir.openFile(item.name, .{ .mode = .read_only }) catch |err| b: {
[message trimmed]

[PATCH 6/7] zig 0.12: os.* -> posix.* 5 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

---
 src/Runtime.zig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/Runtime.zig b/src/Runtime.zig
index 2fe41c9..a5e9d6d 100644
--- a/src/Runtime.zig
+++ b/src/Runtime.zig
@@ -53,18 +53,18 @@ submode_normal: types.SubmodeNormal = .Keyboard,
pub fn fds_poll_loop(runtime: *@This()) !void {
    const ev_key_files = try utildevfs.get_devfs_files(runtime.allocator, "/dev/input", linput.EV_KEY);
    const ev_touch_files = try utildevfs.get_devfs_files(runtime.allocator, "/dev/input", linput.EV_ABS);
    var poll_fds: std.ArrayList(std.os.pollfd) = std.ArrayList(std.os.pollfd).init(runtime.allocator);
    var poll_fds: std.ArrayList(std.posix.pollfd) = std.ArrayList(std.posix.pollfd).init(runtime.allocator);
[message trimmed]

[PATCH 5/7] zig 0.12: std.os.SIG -> std.os.linux.SIG 5 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

---
 src/Runtime.zig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Runtime.zig b/src/Runtime.zig
index 401d70a..2fe41c9 100644
--- a/src/Runtime.zig
+++ b/src/Runtime.zig
@@ -544,14 +544,14 @@ pub fn init(allocator: std.mem.Allocator) !@This() {
    try framebuffer.init(allocator);

    // Setup signals
    if (0 != std.os.linux.sigaction(std.os.SIG.WINCH, &.{
    if (0 != std.os.linux.sigaction(std.os.linux.SIG.WINCH, &.{
[message trimmed]

[PATCH 4/7] zig 0.12: fs.openIterableDirAbsolute -> fs.openDirAbsolute 5 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

---
 src/util/utilbin.zig           | 2 +-
 src/util/utildevfs.zig         | 2 +-
 src/util/utilwakeupsources.zig | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/util/utilbin.zig b/src/util/utilbin.zig
index db23c03..421d402 100644
--- a/src/util/utilbin.zig
+++ b/src/util/utilbin.zig
@@ -9,7 +9,7 @@ fn path_strings(allocator: std.mem.Allocator) ![][]const u8 {
        var it = std.mem.tokenize(u8, path, ":");
        while (it.next()) |dirpath| {
            if (!std.fs.path.isAbsolute(dirpath)) continue;
[message trimmed]

[PATCH 3/7] zig 0.12: std.mem.copy -> std.mem.copyForwards 5 months ago

From Bobby Hamblin to ~hamblingreen/framebufferphone-devel

---
 src/Runtime.zig             | 2 +-
 src/interfaces/Uinputkb.zig | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Runtime.zig b/src/Runtime.zig
index 69d0437..401d70a 100644
--- a/src/Runtime.zig
+++ b/src/Runtime.zig
@@ -577,7 +577,7 @@ pub fn init(allocator: std.mem.Allocator) !@This() {
    // Setup data_keyboard
    runtime.submode_normal = .Keyboard;
    runtime.data_keyboard = try allocator.alloc(types.GridItem, config.keyboard.len);
    std.mem.copy(types.GridItem, runtime.data_keyboard[0..], config.keyboard[0..]);
[message trimmed]