How can I make UPower and the power subsystem recognize that the power supply is plugged in?Power management...

Can a person refuse a presidential pardon?

Please help me understand the following solution

When does coming up with an idea constitute sufficient contribution for authorship?

1 0 1 0 1 0 1 0 1 0 1

Manipulating a general length function

I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

Can pricing be copyrighted?

What are the advantages of using `make` for small projects?

Using loops to create tables

Is there any differences between “gucken” and “schauen”?

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

Unwarranted claim of higher degree of accuracy in zircon geochronology

Knowing when to use pictures over words

Cat is tipping over bed-side lamps during the night

Program that converts a number to a letter of the alphabet

How do you funnel food off a cutting board?

Using only 1s, make 29 with the minimum number of digits

A flower in a hexagon

What formula could mimic the following curve?

What is better: yes / no radio, or simple checkbox?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Avoiding morning and evening handshakes

Can a hotel cancel a confirmed reservation?

Slow moving projectiles from a hand-held weapon - how do they reach the target?



How can I make UPower and the power subsystem recognize that the power supply is plugged in?


Power management does not recognize removal of power supply!Laptop drains of quickly with batteryBattery life starts at 2:30 hrs (99%), but less than 1 minute later is only 1:30 hrs (99%)1 hour of battery life lost in 10 secondsIdeapad 100s - can I change the battery info?upower show energy-full-design: 0 Wh on new battery after full dischargeLenovoIdeapad s400 Ubuntu 17.04 battery and Acpi issueBattery not charging but detectedHow can I lock CPU frequency in Ubuntu 16.04?How can I configure Ubuntu to only use the power supply on my workstation?













0















I'm using Xfce4, and it has the xfce4-power-manager for visual cues and upower as one of the core support packages (and I see an /usr/lib/upower/upowerd running in ps aux output). Besides that there's also pm-utils installed, and in the logs I see it's active. I'm not sure if that can stir any water, I definitely list it here for completeness.



The machine is an Acer Predator Helios 500 PH517-61-R0GX (AMD Ryzen). The exact same installation (literally the same SSD stick) was in an ASUS ROG Strix GL702ZC (also an AMD Ryzen laptop but with a Ryzen 1700 instead of a Ryzen 2700). I didn't have this type of problem with the ASUS.



# upower -d
Device: /org/freedesktop/UPower/devices/line_power_ACAD
native-path: ACAD
power supply: yes
updated: Sat 02 Mar 2019 10:08:52 PM PST (2442 seconds ago)
has history: no
has statistics: no
line-power
online: no

Device: /org/freedesktop/UPower/devices/battery_BAT1
native-path: BAT1
vendor: PANASONIC
model: AP17C5P
serial: 1409
power supply: yes
updated: Sat 02 Mar 2019 10:49:28 PM PST (6 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
energy: 73.1346 Wh
energy-empty: 0 Wh
energy-full: 74.074 Wh
energy-full-design: 74.074 Wh
energy-rate: 0 W
voltage: 17.374 V
percentage: 98%
capacity: 100%
technology: lithium-ion

Daemon:
daemon-version: 0.9.23
can-suspend: yes
can-hibernate: no
on-battery: yes
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
is-docked: yes


Notice above the power supply online: no and the batter state: discharge, although as I'm writing this the situation is the opposite: the AC adapter is plugged in and the battery should be fully charged. That's also the practice, since if the battery was really discharging, I'd be out of power in about 1.5 hours.



Now UPower may get its info from the subsystems. I see this:



# cat /sys/class/power_supply/ACAD/online 
0
# cat /sys/class/power_supply/BAT1/status
Discharging


Even if I try to enforce the CPU frequency governor to be performance, the CPUs are muffled:



# cat /proc/cpuinfo | grep MHz
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000
cpu MHz : 548.000


Actually this may not even be possible, because I thought the minimum is 1.5 GHz, but the system is surely sluggish sometimes.



I've tried to use acpi_osi=Linux kernel boot parameter, but that doesn't seem to change the situation.



It's super interesting that in the dmesg I see an interesting thing, it looks like that during early boot the ACPI subsystem detects that the AC adapter is indeed plugged in:



[    0.882383] ACPI: AC Adapter [ACAD] (on-line)
[ 0.882416] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[ 0.882420] ACPI: Power Button [PWRB]
[ 0.882446] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
[ 0.882449] ACPI: Sleep Button [SLPB]
[ 0.882468] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
[ 0.882472] ACPI: Lid Switch [LID]
[ 0.882491] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[ 0.882500] ACPI: Power Button [PWRF]
[ 0.882552] ACPI: Video Device [DGPU] (multi-head: yes rom: no post: no)
[ 0.882745] acpi device:2a: registered as cooling_device0


(complete dmesg: https://pastebin.com/x4QRbSCR)



I don't know when things turn around? What causes that boot-time proper on-line detection to screw up?



# uname -a
Linux asus 4.20.13 #2 SMP Sat Mar 2 17:03:50 PST 2019 x86_64 GNU/Linux








share



























    0















    I'm using Xfce4, and it has the xfce4-power-manager for visual cues and upower as one of the core support packages (and I see an /usr/lib/upower/upowerd running in ps aux output). Besides that there's also pm-utils installed, and in the logs I see it's active. I'm not sure if that can stir any water, I definitely list it here for completeness.



    The machine is an Acer Predator Helios 500 PH517-61-R0GX (AMD Ryzen). The exact same installation (literally the same SSD stick) was in an ASUS ROG Strix GL702ZC (also an AMD Ryzen laptop but with a Ryzen 1700 instead of a Ryzen 2700). I didn't have this type of problem with the ASUS.



    # upower -d
    Device: /org/freedesktop/UPower/devices/line_power_ACAD
    native-path: ACAD
    power supply: yes
    updated: Sat 02 Mar 2019 10:08:52 PM PST (2442 seconds ago)
    has history: no
    has statistics: no
    line-power
    online: no

    Device: /org/freedesktop/UPower/devices/battery_BAT1
    native-path: BAT1
    vendor: PANASONIC
    model: AP17C5P
    serial: 1409
    power supply: yes
    updated: Sat 02 Mar 2019 10:49:28 PM PST (6 seconds ago)
    has history: yes
    has statistics: yes
    battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 73.1346 Wh
    energy-empty: 0 Wh
    energy-full: 74.074 Wh
    energy-full-design: 74.074 Wh
    energy-rate: 0 W
    voltage: 17.374 V
    percentage: 98%
    capacity: 100%
    technology: lithium-ion

    Daemon:
    daemon-version: 0.9.23
    can-suspend: yes
    can-hibernate: no
    on-battery: yes
    on-low-battery: no
    lid-is-closed: no
    lid-is-present: yes
    is-docked: yes


    Notice above the power supply online: no and the batter state: discharge, although as I'm writing this the situation is the opposite: the AC adapter is plugged in and the battery should be fully charged. That's also the practice, since if the battery was really discharging, I'd be out of power in about 1.5 hours.



    Now UPower may get its info from the subsystems. I see this:



    # cat /sys/class/power_supply/ACAD/online 
    0
    # cat /sys/class/power_supply/BAT1/status
    Discharging


    Even if I try to enforce the CPU frequency governor to be performance, the CPUs are muffled:



    # cat /proc/cpuinfo | grep MHz
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000
    cpu MHz : 548.000


    Actually this may not even be possible, because I thought the minimum is 1.5 GHz, but the system is surely sluggish sometimes.



    I've tried to use acpi_osi=Linux kernel boot parameter, but that doesn't seem to change the situation.



    It's super interesting that in the dmesg I see an interesting thing, it looks like that during early boot the ACPI subsystem detects that the AC adapter is indeed plugged in:



    [    0.882383] ACPI: AC Adapter [ACAD] (on-line)
    [ 0.882416] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
    [ 0.882420] ACPI: Power Button [PWRB]
    [ 0.882446] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
    [ 0.882449] ACPI: Sleep Button [SLPB]
    [ 0.882468] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
    [ 0.882472] ACPI: Lid Switch [LID]
    [ 0.882491] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
    [ 0.882500] ACPI: Power Button [PWRF]
    [ 0.882552] ACPI: Video Device [DGPU] (multi-head: yes rom: no post: no)
    [ 0.882745] acpi device:2a: registered as cooling_device0


    (complete dmesg: https://pastebin.com/x4QRbSCR)



    I don't know when things turn around? What causes that boot-time proper on-line detection to screw up?



    # uname -a
    Linux asus 4.20.13 #2 SMP Sat Mar 2 17:03:50 PST 2019 x86_64 GNU/Linux








    share

























      0












      0








      0








      I'm using Xfce4, and it has the xfce4-power-manager for visual cues and upower as one of the core support packages (and I see an /usr/lib/upower/upowerd running in ps aux output). Besides that there's also pm-utils installed, and in the logs I see it's active. I'm not sure if that can stir any water, I definitely list it here for completeness.



      The machine is an Acer Predator Helios 500 PH517-61-R0GX (AMD Ryzen). The exact same installation (literally the same SSD stick) was in an ASUS ROG Strix GL702ZC (also an AMD Ryzen laptop but with a Ryzen 1700 instead of a Ryzen 2700). I didn't have this type of problem with the ASUS.



      # upower -d
      Device: /org/freedesktop/UPower/devices/line_power_ACAD
      native-path: ACAD
      power supply: yes
      updated: Sat 02 Mar 2019 10:08:52 PM PST (2442 seconds ago)
      has history: no
      has statistics: no
      line-power
      online: no

      Device: /org/freedesktop/UPower/devices/battery_BAT1
      native-path: BAT1
      vendor: PANASONIC
      model: AP17C5P
      serial: 1409
      power supply: yes
      updated: Sat 02 Mar 2019 10:49:28 PM PST (6 seconds ago)
      has history: yes
      has statistics: yes
      battery
      present: yes
      rechargeable: yes
      state: discharging
      energy: 73.1346 Wh
      energy-empty: 0 Wh
      energy-full: 74.074 Wh
      energy-full-design: 74.074 Wh
      energy-rate: 0 W
      voltage: 17.374 V
      percentage: 98%
      capacity: 100%
      technology: lithium-ion

      Daemon:
      daemon-version: 0.9.23
      can-suspend: yes
      can-hibernate: no
      on-battery: yes
      on-low-battery: no
      lid-is-closed: no
      lid-is-present: yes
      is-docked: yes


      Notice above the power supply online: no and the batter state: discharge, although as I'm writing this the situation is the opposite: the AC adapter is plugged in and the battery should be fully charged. That's also the practice, since if the battery was really discharging, I'd be out of power in about 1.5 hours.



      Now UPower may get its info from the subsystems. I see this:



      # cat /sys/class/power_supply/ACAD/online 
      0
      # cat /sys/class/power_supply/BAT1/status
      Discharging


      Even if I try to enforce the CPU frequency governor to be performance, the CPUs are muffled:



      # cat /proc/cpuinfo | grep MHz
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000


      Actually this may not even be possible, because I thought the minimum is 1.5 GHz, but the system is surely sluggish sometimes.



      I've tried to use acpi_osi=Linux kernel boot parameter, but that doesn't seem to change the situation.



      It's super interesting that in the dmesg I see an interesting thing, it looks like that during early boot the ACPI subsystem detects that the AC adapter is indeed plugged in:



      [    0.882383] ACPI: AC Adapter [ACAD] (on-line)
      [ 0.882416] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
      [ 0.882420] ACPI: Power Button [PWRB]
      [ 0.882446] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
      [ 0.882449] ACPI: Sleep Button [SLPB]
      [ 0.882468] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
      [ 0.882472] ACPI: Lid Switch [LID]
      [ 0.882491] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
      [ 0.882500] ACPI: Power Button [PWRF]
      [ 0.882552] ACPI: Video Device [DGPU] (multi-head: yes rom: no post: no)
      [ 0.882745] acpi device:2a: registered as cooling_device0


      (complete dmesg: https://pastebin.com/x4QRbSCR)



      I don't know when things turn around? What causes that boot-time proper on-line detection to screw up?



      # uname -a
      Linux asus 4.20.13 #2 SMP Sat Mar 2 17:03:50 PST 2019 x86_64 GNU/Linux








      share














      I'm using Xfce4, and it has the xfce4-power-manager for visual cues and upower as one of the core support packages (and I see an /usr/lib/upower/upowerd running in ps aux output). Besides that there's also pm-utils installed, and in the logs I see it's active. I'm not sure if that can stir any water, I definitely list it here for completeness.



      The machine is an Acer Predator Helios 500 PH517-61-R0GX (AMD Ryzen). The exact same installation (literally the same SSD stick) was in an ASUS ROG Strix GL702ZC (also an AMD Ryzen laptop but with a Ryzen 1700 instead of a Ryzen 2700). I didn't have this type of problem with the ASUS.



      # upower -d
      Device: /org/freedesktop/UPower/devices/line_power_ACAD
      native-path: ACAD
      power supply: yes
      updated: Sat 02 Mar 2019 10:08:52 PM PST (2442 seconds ago)
      has history: no
      has statistics: no
      line-power
      online: no

      Device: /org/freedesktop/UPower/devices/battery_BAT1
      native-path: BAT1
      vendor: PANASONIC
      model: AP17C5P
      serial: 1409
      power supply: yes
      updated: Sat 02 Mar 2019 10:49:28 PM PST (6 seconds ago)
      has history: yes
      has statistics: yes
      battery
      present: yes
      rechargeable: yes
      state: discharging
      energy: 73.1346 Wh
      energy-empty: 0 Wh
      energy-full: 74.074 Wh
      energy-full-design: 74.074 Wh
      energy-rate: 0 W
      voltage: 17.374 V
      percentage: 98%
      capacity: 100%
      technology: lithium-ion

      Daemon:
      daemon-version: 0.9.23
      can-suspend: yes
      can-hibernate: no
      on-battery: yes
      on-low-battery: no
      lid-is-closed: no
      lid-is-present: yes
      is-docked: yes


      Notice above the power supply online: no and the batter state: discharge, although as I'm writing this the situation is the opposite: the AC adapter is plugged in and the battery should be fully charged. That's also the practice, since if the battery was really discharging, I'd be out of power in about 1.5 hours.



      Now UPower may get its info from the subsystems. I see this:



      # cat /sys/class/power_supply/ACAD/online 
      0
      # cat /sys/class/power_supply/BAT1/status
      Discharging


      Even if I try to enforce the CPU frequency governor to be performance, the CPUs are muffled:



      # cat /proc/cpuinfo | grep MHz
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000
      cpu MHz : 548.000


      Actually this may not even be possible, because I thought the minimum is 1.5 GHz, but the system is surely sluggish sometimes.



      I've tried to use acpi_osi=Linux kernel boot parameter, but that doesn't seem to change the situation.



      It's super interesting that in the dmesg I see an interesting thing, it looks like that during early boot the ACPI subsystem detects that the AC adapter is indeed plugged in:



      [    0.882383] ACPI: AC Adapter [ACAD] (on-line)
      [ 0.882416] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
      [ 0.882420] ACPI: Power Button [PWRB]
      [ 0.882446] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
      [ 0.882449] ACPI: Sleep Button [SLPB]
      [ 0.882468] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
      [ 0.882472] ACPI: Lid Switch [LID]
      [ 0.882491] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
      [ 0.882500] ACPI: Power Button [PWRF]
      [ 0.882552] ACPI: Video Device [DGPU] (multi-head: yes rom: no post: no)
      [ 0.882745] acpi device:2a: registered as cooling_device0


      (complete dmesg: https://pastebin.com/x4QRbSCR)



      I don't know when things turn around? What causes that boot-time proper on-line detection to screw up?



      # uname -a
      Linux asus 4.20.13 #2 SMP Sat Mar 2 17:03:50 PST 2019 x86_64 GNU/Linux






      power-management battery pm-utils amd-ryzen





      share












      share










      share



      share










      asked 2 mins ago









      Csaba TothCsaba Toth

      3971618




      3971618






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122662%2fhow-can-i-make-upower-and-the-power-subsystem-recognize-that-the-power-supply-is%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122662%2fhow-can-i-make-upower-and-the-power-subsystem-recognize-that-the-power-supply-is%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...