<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12904</bug_id>
          
          <creation_ts>2018-08-28 12:42:07 +0000</creation_ts>
          <short_desc>Port panel from apm/acpi to sysfs</short_desc>
          <delta_ts>2026-09-17 15:04:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Sato</product>
          <component>sato</component>
          <version>svn</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS REVIEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>dixitparmar19</cc>
    
    <cc>mshah</cc>
    
    <cc>nayakksanjay</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81446</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-08-28 12:42:07 +0000</bug_when>
    <thetext>libacpi is dead, APM is dead: we should just use sysfs to monitor the battery level as an example.

eg https://blog.sleeplessbeastie.eu/2013/01/02/debian-how-to-monitor-battery-capacity/

A upower backend would be good, but sysfs will work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81447</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-08-28 12:43:32 +0000</bug_when>
    <thetext>https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81448</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-08-28 12:45:30 +0000</bug_when>
    <thetext>Also prior art in upower&apos;s up-device-supply.c in https://cgit.freedesktop.org/upower/tree/src/linux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89892</commentid>
    <comment_count>3</comment_count>
    <who name="">mshah</who>
    <bug_when>2021-04-08 05:02:55 +0000</bug_when>
    <thetext>Hi @ross@burtonini.com

I&apos;m interested and want to work on this bug. But I need little guidance.

Are we planning to remove libacpi from meta/recipes-bsp/ and add upower package in oe-core?

If my understanding is incorrect then please provide some information so I could start.

Thanks,
Milan Shah</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89927</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-04-14 10:13:59 +0000</bug_when>
    <thetext>As the battery applet is already modular, I&apos;d suggest we should start with a new sysfs backend and potentially also add an upower backend too.

But starting with sysfs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90125</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-26 18:45:50 +0000</bug_when>
    <thetext>Assigning to Milan and moving into 3.4. If you need more help getting started just ask! Thanks Milan. ../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90132</commentid>
    <comment_count>6</comment_count>
    <who name="">mshah</who>
    <bug_when>2021-04-27 04:50:55 +0000</bug_when>
    <thetext>Thanks, @Randy MacLeod for assigning it to me and Yes I need some help here.

I understood that we need sysfs support to monitor the battery levels. As I see in kernel-doc (mentioned in the comment) that we have support in the kernel,

* Do I need to add kernel config for core-image-sato which enables them?
or
* Do I need to backport any patch from the newer kernel version to the existing one?
or
* Is that something else that I still don&apos;t know?


Thanks,
Milan Shah</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90136</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-04-27 15:38:36 +0000</bug_when>
    <thetext>Assume that sysfs is supported, as it will be in most builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90150</commentid>
    <comment_count>8</comment_count>
    <who name="">mshah</who>
    <bug_when>2021-04-29 05:26:22 +0000</bug_when>
    <thetext>Another good document to understand power_supply in kernel.

https://www.kernel.org/doc/Documentation/power/power_supply_class.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97125</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:37:28 +0000</bug_when>
    <thetext>Build move to 5.0 -- ../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98508</commentid>
    <comment_count>10</comment_count>
    <who name="K Sanjay Nayak">nayakksanjay</who>
    <bug_when>2024-03-17 15:47:59 +0000</bug_when>
    <thetext>Hi Randy 

Can you please confirm if anything need to be done ?

Thanks
Sanjay :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98517</commentid>
    <comment_count>11</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-03-18 10:30:19 +0000</bug_when>
    <thetext>This still needs to be done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98549</commentid>
    <comment_count>12</comment_count>
    <who name="K Sanjay Nayak">nayakksanjay</who>
    <bug_when>2024-03-21 12:24:18 +0000</bug_when>
    <thetext>Thanks Ross for confirmation i would like to work on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98551</commentid>
    <comment_count>13</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-03-21 12:42:59 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98843</commentid>
    <comment_count>14</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:13:56 +0000</bug_when>
    <thetext>Bulk move of 5.0 medium importance issues to 5.99.
Move to 5.1 if you want to actively work on an issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98871</commentid>
    <comment_count>15</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:23:13 +0000</bug_when>
    <thetext>Move to 5.99 since no one is actively working on this issue.
Move to 5.x if you start on a task, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99744</commentid>
    <comment_count>16</comment_count>
    <who name="Dixit Parmar">dixitparmar19</who>
    <bug_when>2024-09-27 08:36:31 +0000</bug_when>
    <thetext>Hi Ross, Randy,

I have understood the ask thoroughly and would like to work on this. Can this be assigned to me if nobody is working on this actively?

Regards,
Dixit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99745</commentid>
    <comment_count>17</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-09-27 10:32:33 +0000</bug_when>
    <thetext>With pleasure!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99949</commentid>
    <comment_count>18</comment_count>
    <who name="Dixit Parmar">dixitparmar19</who>
    <bug_when>2024-10-21 05:55:33 +0000</bug_when>
    <thetext>Hi Ross,

I have submitted the patches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100099</commentid>
    <comment_count>19</comment_count>
    <who name="Dixit Parmar">dixitparmar19</who>
    <bug_when>2024-11-04 09:44:03 +0000</bug_when>
    <thetext>Hi Ross,
I have submitted the patches for the matchbox-panel-2 changes for the subject. Kindly have a look.

Also, The sysfs mechanism is controlled by the existing compilation option --with-battery=&quot;sysfs&quot; (same as existing acpi option). That change will fall in the recipe file https://layers.openembedded.org/layerindex/recipe/655/
How should we take that change?

Thanks,
Dixit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100520</commentid>
    <comment_count>20</comment_count>
    <who name="Dixit Parmar">dixitparmar19</who>
    <bug_when>2025-01-03 05:13:34 +0000</bug_when>
    <thetext>Submitted final patch for review https://lists.yoctoproject.org/g/yocto-patches/topic/109447061#msg859</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101161</commentid>
    <comment_count>21</comment_count>
    <who name="Dixit Parmar">dixitparmar19</who>
    <bug_when>2025-02-20 09:24:38 +0000</bug_when>
    <thetext>Hi randy.macleod@windriver.com, ross.burton@arm.com,

Kindly review the final patch submitted to the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102201</commentid>
    <comment_count>22</comment_count>
    <who name="Dixit Parmar">dixitparmar19</who>
    <bug_when>2025-06-06 07:48:34 +0000</bug_when>
    <thetext>Hello Randy, Ross,
I would really appreciate reviews on last submitted patch. https://lists.yoctoproject.org/g/yocto-patches/topic/109447061

I am more than excited to get this going as this is my first contribution at YP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105347</commentid>
    <comment_count>23</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-04 16:27:47 +0000</bug_when>
    <thetext>Dixit, 

Ross provided some comments.
You can either fix the issues that he identified and submit a v2 or
reply to that thread and discuss his suggestions.

Ross is on holiday today, fyi.

Let me know if this gets stuck again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105348</commentid>
    <comment_count>24</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-04 16:59:57 +0000</bug_when>
    <thetext>Add Ross since I don&apos;t see Dixit&apos;s commit in:

https://git.yoctoproject.org/matchbox-panel-2/log/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105367</commentid>
    <comment_count>25</comment_count>
    <who name="Dixit Parmar">dixitparmar19</who>
    <bug_when>2026-05-07 06:09:32 +0000</bug_when>
    <thetext>(In reply to Randy MacLeod from comment #24)
&gt; Add Ross since I don&apos;t see Dixit&apos;s commit in:
&gt; 
&gt; https://git.yoctoproject.org/matchbox-panel-2/log/

Hi Randy,

The changes are still in review, the latest patches are of v7 :) - https://lists.yoctoproject.org/g/yocto-patches/message/2178

Will the changes show up in the matchbox-panel-2/log untill it gets reviewed &amp; accepted by Ross?

Thanks,
Dixit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106600</commentid>
    <comment_count>26</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-08-20 15:21:29 +0000</bug_when>
    <thetext>Ross please review the patches early in 6.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106872</commentid>
    <comment_count>27</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-09-17 15:04:00 +0000</bug_when>
    <thetext>Dixit, sorry for the delay, this time Ross promises to follow-up!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>