Added user access for missing wakeup sources

master
Maarten van Gompel 4 years ago
parent f4ba3978c9
commit c1fe2df7d1
  1. 2
      configs/openrc/sxmo-pinephone
  2. 6
      programs/sxmo_screenlock.c

@ -3,4 +3,4 @@
description="Enable user access to pinephone hardware kernel interface"
command="chmod"
command_args="a+rw /sys/module/8723cs/parameters/rtw_scan_interval_thr /sys/devices/platform/backlight/backlight/backlight/brightness /sys/power/state /sys/devices/platform/soc/1f00000.rtc/power/wakeup /sys/power/mem_sleep /sys/bus/usb/drivers/usb/unbind /sys/bus/usb/drivers/usb/bind /sys/class/leds/red:indicator/brightness /sys/class/leds/blue:indicator/brightness /sys/class/leds/green:indicator/brightness /sys/class/leds/white:flash/brightness /dev/rtc0"
command_args="a+rw /sys/module/8723cs/parameters/rtw_scan_interval_thr /sys/devices/platform/backlight/backlight/backlight/brightness /sys/power/state /sys/devices/platform/soc/1f00000.rtc/power/wakeup /sys/power/mem_sleep /sys/bus/usb/drivers/usb/unbind /sys/bus/usb/drivers/usb/bind /sys/class/leds/red:indicator/brightness /sys/class/leds/blue:indicator/brightness /sys/class/leds/green:indicator/brightness /sys/class/leds/white:flash/brightness /dev/rtc0 /sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/power/wakeup /sys/class/wakeup/*"

@ -151,14 +151,14 @@ configuresuspendsettingsandwakeupsources()
"enabled"
);
// Enable IRQ wakeup source (incoming call) 5.8
fprintf(stderr, "Enable 5.8 IRQ wakeup source\n");
// Enable IRQ wakeup source (incoming call) 5.10
fprintf(stderr, "Enable 5.10 IRQ wakeup source\n");
writefile(
"/sys/devices/platform/gpio-keys/power/wakeup",
"enabled"
);
// Enable IRQ wakeup source (incoming call) 5.9
// Enable IRQ wakeup source (incoming call) 5.9 (no longer exists in 5.10)
fprintf(stderr, "Enable 5.9 IRQ wakeup source\n");
writefile(
"/sys/devices/platform/soc/1c28c00.serial/serial1/serial1-0/power/wakeup",

Loading…
Cancel
Save