mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-30 07:42:23 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
5b4f9bcc12 | ||
|
2218a908ab | ||
|
be6a924f8d | ||
|
34472a5cff |
@@ -8,7 +8,7 @@
|
|||||||
project (
|
project (
|
||||||
'eg25-manager',
|
'eg25-manager',
|
||||||
'c',
|
'c',
|
||||||
version : '0.4.3',
|
version : '0.4.5',
|
||||||
license : 'GPLv3+',
|
license : 'GPLv3+',
|
||||||
meson_version : '>= 0.58.0',
|
meson_version : '>= 0.58.0',
|
||||||
default_options :
|
default_options :
|
||||||
|
@@ -1,4 +1,22 @@
|
|||||||
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/control}="auto"
|
ACTION!="add", GOTO="eg25_end"
|
||||||
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/autosuspend_delay_ms}="3000"
|
SUBSYSTEM!="usb", GOTO="eg25_end"
|
||||||
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/wakeup}="enabled"
|
DRIVERS!="usb", GOTO="eg25_end"
|
||||||
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/persist}="0"
|
ENV{DEVTYPE}!="usb_device", GOTO="eg25_end"
|
||||||
|
|
||||||
|
# Default attributes values
|
||||||
|
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/control}="auto"
|
||||||
|
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/autosuspend_delay_ms}="3000"
|
||||||
|
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/wakeup}="enabled"
|
||||||
|
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/persist}="0"
|
||||||
|
|
||||||
|
# If running the stock firmware, stop processing here
|
||||||
|
ATTRS{serial}!="community_fw", GOTO="eg25_end"
|
||||||
|
|
||||||
|
# power/control needs to be "on" for the community-maintained firmware
|
||||||
|
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/control}="on"
|
||||||
|
|
||||||
|
# Special trick for the PinePhone Pro: set power/persist to 1 *only* with the community FW
|
||||||
|
# We can identify the PPP by looking for the string "pinephone-pro" in the device tree "compatible" property
|
||||||
|
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", PROGRAM=="/bin/grep pine64,pinephone-pro /proc/device-tree/compatible", ATTR{power/persist}="1"
|
||||||
|
|
||||||
|
LABEL="eg25_end"
|
||||||
|
Reference in New Issue
Block a user