Bug 27480

Summary: /etc/cron.hourly/0anacron fails to detect ac power is on
Product: Mageia Reporter: Dave Hodgins <davidwhodgins>
Component: RPM PackagesAssignee: Shlomi Fish <shlomif>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: olav
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: cronie-1.5.5-2.mga8.src.rpm CVE:
Status comment:
Attachments: Patch to add ACAD to list of directories to check.

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