Oregon, US


Last active 4 months ago


Last active 7 months ago


Last active 1 year, 3 months ago


Last active 2 years ago
View more

Recent activity

Re: gamma control of output failed 11 days ago

From Clayton Craft to ~kennylevinsen/wlsunset-devel

On Sun, 18 Jul 2021 15:05:23 +0200 Kenny Levinsen <kl@kl.wtf> wrote:
> Take a look at the debug output from sway, it might sway why it 
> couldn't apply the gamma update.
 Hmm, running sway with `sway -d`, I see absolutely nothing printed by sway when
 wlsunset shows that error.

gamma control of output failed 13 days ago

From Clayton Craft to ~kennylevinsen/wlsunset-devel

I'm trying to run wlsunset on Alpine Linux (edge), Sway 1.6.1, and wlroots 0.14,
and it's not setting gamma on the display:

$ wlsunset
registry: adding output 39
gamma control of output 39 failed
calculated sun trajectory: midnight sun
setting temperature to 6500 K

Display is the built-in panel on a PineBook Pro.

Any idea what might be going on? Thanks!


[PATCH sxmo-utils] sxmo_lisgdstart: log output to file 3 months ago

From Clayton Craft to ~mil/sxmo-devel

Useful when identifying/debugging lisgd crashes, and other strange behavior.

The log location is the same place where dwm logs to, so this seemed
 scripts/core/sxmo_lisgdstart.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/core/sxmo_lisgdstart.sh b/scripts/core/sxmo_lisgdstart.sh
index 117e275..afc971a 100755
--- a/scripts/core/sxmo_lisgdstart.sh
+++ b/scripts/core/sxmo_lisgdstart.sh
@@ -45,5 +45,5 @@ else
		-g '1,UD,R,*,P,sxmo_inputhandler.sh scrolldown_short' \
[message trimmed]

[PATCH sxmo-utils 4/4] deviceprofiles/librem5: set BACKLIGHT var to correct device 3 months ago

From Clayton Craft to ~mil/sxmo-devel

 scripts/deviceprofiles/sxmo_deviceprofile_librem5r4purism.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/deviceprofiles/sxmo_deviceprofile_librem5r4purism.sh b/scripts/deviceprofiles/sxmo_deviceprofile_librem5r4purism.sh
index 280c3fb..5cb86e3 100644
--- a/scripts/deviceprofiles/sxmo_deviceprofile_librem5r4purism.sh
+++ b/scripts/deviceprofiles/sxmo_deviceprofile_librem5r4purism.sh
@@ -3,3 +3,4 @@
export SPEAKER="Speaker"
export HEADPHONE="Headphone"
export EARPIECE="Earpiece"
export BACKLIGHT="/sys/devices/platform/backlight-dsi/backlight/backlight-dsi"
[message trimmed]

[PATCH sxmo-utils 3/4] programs/sxmo_setpinebacklight: drop unused application 3 months ago

From Clayton Craft to ~mil/sxmo-devel

 Makefile                         |  8 +------
 programs/sxmo_setpinebacklight.c | 40 --------------------------------
 2 files changed, 1 insertion(+), 47 deletions(-)
 delete mode 100644 programs/sxmo_setpinebacklight.c

diff --git a/Makefile b/Makefile
index 6804dff..08055c3 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,6 @@ PREFIX:=/usr

	programs/sxmo_setpineled \
[message trimmed]

[PATCH sxmo-utils 2/4] sxmo_brightness.sh: write brightness val directly to sysfs 3 months ago

From Clayton Craft to ~mil/sxmo-devel

This removes the dependency on an external compiled app for writing the
brightness value to sysfs, and just echoes it directly to the backlight
sysfs node.

In addition, if the write fails, the script exits instead of sending a
misleading notification.
 scripts/core/sxmo_brightness.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/core/sxmo_brightness.sh b/scripts/core/sxmo_brightness.sh
index 3128e35..372ac18 100755
--- a/scripts/core/sxmo_brightness.sh
+++ b/scripts/core/sxmo_brightness.sh
[message trimmed]

[PATCH sxmo-utils 1/4] sxmo_brightness: add support for overriding backlight device 3 months ago

From Clayton Craft to ~mil/sxmo-devel

This uses the BACKLIGHT env var to override the device used for
controlling the backlight. My intention was to keep the default behavior
if it's unset, use the backlight/backlight path if that exists then fall
back to backlight/edp-backlight.

Finally, this changes the script to return immediately if no backlight
device is found with the given options.
 scripts/core/sxmo_brightness.sh | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/scripts/core/sxmo_brightness.sh b/scripts/core/sxmo_brightness.sh
index 2c7733d..3128e35 100755
--- a/scripts/core/sxmo_brightness.sh
[message trimmed]

[PATCH sxmo-utils 0/4] Simplify backlight control 3 months ago

From Clayton Craft to ~mil/sxmo-devel

This series aims to simplify the backlight control in sxmo, by handling
the backlight control entirely in sxmo_brightness. This script is also
changed to support override the backlight device with the value of
BACKLIGHT from the environment (e.g. when set by a device profile
script). Finally the librem 5's profile script sets BACKLIGHT to the
appropriate device.

Clayton Craft (4):
  sxmo_brightness: add support for overriding backlight device
  sxmo_brightness.sh: write brightness val directly to sysfs
  programs/sxmo_setpinebacklight: drop unused application
  deviceprofiles/librem5: set BACKLIGHT var to correct device

 Makefile                                      |  8 +---

[PATCH sxmo-utils] sxmo_audio*: properly set vars with default values if they are unset 3 months ago

From Clayton Craft to ~mil/sxmo-devel

A mistake from implementing this resulted in the shell trying to expand
the 'word' part (e.g. "Line Out"), when the var was unset or null.
Obviously those are are strings and not expandable.
 scripts/core/sxmo_audiocurrentdevice.sh | 6 +++---
 scripts/core/sxmo_audioout.sh           | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/core/sxmo_audiocurrentdevice.sh b/scripts/core/sxmo_audiocurrentdevice.sh
index ddef734..f3e3134 100755
--- a/scripts/core/sxmo_audiocurrentdevice.sh
+++ b/scripts/core/sxmo_audiocurrentdevice.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
[message trimmed]

[PATCH sxmo-utils 4/4] sxmo_deviceprofile_librem5*: add initial profile for librem5 3 months ago

From Clayton Craft to ~mil/sxmo-devel

Currently there are 3 revisions of the L5, and they are all sharing the
same profile here since this only sets audio vars and they're all the
same. In the future the symlinks can be broken if profiles need to
deviate for some reason in order to set different values for vars, etc.
 scripts/deviceprofiles/sxmo_deviceprofile_librem5r2purism.sh | 1 +
 scripts/deviceprofiles/sxmo_deviceprofile_librem5r3purism.sh | 1 +
 scripts/deviceprofiles/sxmo_deviceprofile_librem5r4purism.sh | 3 +++
 3 files changed, 5 insertions(+)
 create mode 120000 scripts/deviceprofiles/sxmo_deviceprofile_librem5r2purism.sh
 create mode 120000 scripts/deviceprofiles/sxmo_deviceprofile_librem5r3purism.sh
 create mode 100644 scripts/deviceprofiles/sxmo_deviceprofile_librem5r4purism.sh

diff --git a/scripts/deviceprofiles/sxmo_deviceprofile_librem5r2purism.sh b/scripts/deviceprofiles/sxmo_deviceprofile_librem5r2purism.sh
[message trimmed]