Bug 27480 - /etc/cron.hourly/0anacron fails to detect ac power is on
Summary: /etc/cron.hourly/0anacron fails to detect ac power is on
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Shlomi Fish
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-29 02:32 CET by Dave Hodgins
Modified: 2020-10-29 13:07 CET (History)
1 user (show)

See Also:
Source RPM: cronie-1.5.5-2.mga8.src.rpm
CVE:
Status comment:


Attachments
Patch to add ACAD to list of directories to check. (362 bytes, text/plain)
2020-10-29 02:39 CET, Dave Hodgins
Details

Description Dave Hodgins 2020-10-29 02:32:06 CET
/etc/cron.hourly/0anacron checks for ac power indicator in
/sys/class/power_supply/AC/online or /sys/class/power_supply/ADP{0..9}/online

The laptop in use uses
/sys/class/power_supply/ACAD/online so cron.hourly assumes the laptop is on
battery and never runs cron.daily, weekly, etc.
Comment 1 Dave Hodgins 2020-10-29 02:39:40 CET
Created attachment 11962 [details]
Patch to add ACAD to list of directories to check.
Dave Hodgins 2020-10-29 02:42:57 CET

Assignee: bugsquad => shlomif

Comment 2 Olav Vitters 2020-10-29 13:07:17 CET
Reported at https://github.com/cronie-crond/cronie/issues/69

Seems upstream went a while without a release, the 0anacron file upstream changed meanwhile. It still contains the same bug.

CC: (none) => olav


Note You need to log in before you can comment on or make changes to this bug.