Skip to content

Commit

Permalink
opendingux: redraw gmenu2x on charger state change
Browse files Browse the repository at this point in the history
1. Bumps gmenu2x to the commit that updates the battery indicator on
   USR1.
2. Updates udev rules to send USR1 to gmenu2x on charger state changes.

Signed-off-by: Gleb Mazovetskiy <[email protected]>
  • Loading branch information
glebm authored and pcercuei committed Oct 30, 2022
1 parent 6769385 commit ccc72c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion board/opendingux/package/gmenu2x/gmenu2x.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sha256 8294807a961e95c2d3fb1bb8609055e472bbad95d6b82679523febb02f29ffdf gmenu2x-177af6d.tar.gz
sha256 62aa3409e5b69cf9ff069ac11d4d6c7f5b3df813ed319a27729f5523a4ae7f27 gmenu2x-74321f7.tar.gz
2 changes: 1 addition & 1 deletion board/opendingux/package/gmenu2x/gmenu2x.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# gmenu2x
#
#############################################################
GMENU2X_VERSION = 177af6d
GMENU2X_VERSION = 74321f7
GMENU2X_SITE = $(call github,opendingux,gmenu2x,$(GMENU2X_VERSION))
GMENU2X_DEPENDENCIES = sdl sdl_ttf sdl_gfx dejavu libpng fonts-droid
GMENU2X_CONF_OPTS = -DBIND_CONSOLE=ON
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SUBSYSTEM!="power_supply", GOTO="usb_end"
ENV{POWER_SUPPLY_NAME}!="usb-charger", GOTO="usb_end"

ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/sbin/usb start"
ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="/usr/sbin/usb stop"
ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/sbin/usb start", RUN+="/usr/bin/killall -USR1 /usr/libexec/gmenu2x"
ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="/usr/sbin/usb stop", RUN+="/usr/bin/killall -USR1 /usr/libexec/gmenu2x"

LABEL="usb_end"

0 comments on commit ccc72c4

Please sign in to comment.