Ticket #214 (closed defect: fixed)
Opened 7 months ago
Last modified 5 months ago
/sys/class/power_supply/* is not supported
Reported by: | www.google.com/profiles/filmor | Owned by: | roy |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | rc | Version: | 0.5 |
Keywords: | Cc: |
Description
I disabled /proc/acpi because I have no use for it anymore, but openrc's on_ac_power-script does not support the newer /sys interface.
I don't really understand the script, (especially not the fiddling with return values which only produces
return: can only `return' from a function or sourced script
for me on bash-4), but what one basically has to do is to check if any of /sys/class/power_supply/ADP*/online is "1".
Attachments
Change History
Changed 5 months ago by mgorny.openid.pl
- attachment openrc-on_ac_power-sysfs.diff added
comment:1 Changed 5 months ago by roy.marples.name
- Status changed from new to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.
The patch to support sysfs power_supply interface