elementary / wingpanel-indicator-power

Wingpanel Power Indicator
GNU General Public License v3.0
24 stars 15 forks source link

Phantom Peripherals #82

Open Timecraft opened 6 years ago

Timecraft commented 6 years ago

On 0.4.1 Loki, recently reinstalled the OS on my laptop. The power tab shows a mouse that doesn't exist, not merely unplugged. I have tried plugging a mouse in and unplugging, as well as rebooting the machine. I have tried reinstalling wingpanel and the power indicator, but this "mouse" sticks around. Here is an image to show the issue: wingpanel

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/60593575-phantom-peripherals?utm_campaign=plugin&utm_content=tracker%2F60466177&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F60466177&utm_medium=issues&utm_source=github).
Timecraft commented 5 years ago

I have since updated my laptop to 5.0 "Juno," and this issue does not persist, however a new issue arises: a phantom keyboard. screenshot from 2018-12-19 21-10-20

Timecraft commented 5 years ago

Unsure about this, but based on upower -d, this seems to have relation to issue #90. Here is the output from upower -d:

Device: /org/freedesktop/UPower/devices/line_power_ADP1 native-path: ADP1 power supply: yes updated: Thu 10 Jan 2019 12:37:47 PM EST (337 seconds ago) has history: no has statistics: no line-power warning-level: none online: yes icon-name: 'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: PANASONIC model: AP15O5L serial: 11682 power supply: yes updated: Thu 10 Jan 2019 12:41:47 PM EST (97 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: fully-charged warning-level: none energy: 52.5525 Wh energy-empty: 0 Wh energy-full: 52.5525 Wh energy-full-design: 53.9385 Wh energy-rate: 0 W voltage: 13.178 V percentage: 100% capacity: 97.4304% technology: lithium-ion icon-name: 'battery-full-charged-symbolic'

Device: /org/freedesktop/UPower/devices/keyboard_hid_0003o04F3o2560x0001_battery native-path: hid-0003:04F3:2560.0001-battery model: ELAN Touchscreen power supply: no updated: Thu 10 Jan 2019 12:42:29 PM EST (55 seconds ago) has history: yes has statistics: yes keyboard present: yes rechargeable: yes state: unknown warning-level: none percentage: 0% icon-name: 'battery-missing-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice power supply: yes updated: Thu 10 Jan 2019 12:37:38 PM EST (346 seconds ago) has history: no has statistics: no battery present: yes state: fully-charged warning-level: none energy: 52.5525 Wh energy-full: 52.5525 Wh energy-rate: 0 W percentage: 100% icon-name: 'battery-full-charged-symbolic'

Daemon: daemon-version: 0.99.7 on-battery: no lid-is-closed: no lid-is-present: yes critical-action: PowerOff

kvdz commented 3 years ago

@Timecraft thank you for giving me the upower -d information. this shows that the reference you made #90. is not the same issue. It is a different issue.

But to be sure could you check with the elementary 5.1 fully updated if this issue still exists?

I did notice the data suggest you are using an ELAN Touchscreen. which is a monitor with touch screen. if that is true, and you could unplug the usb cable, only using the video input. what it shows then.

Timecraft commented 3 years ago

I did notice the data suggest you are using an ELAN Touchscreen. which is a monitor with touch screen. if that is true, and you could unplug the usb cable, only using the video input. what it shows then.

Unfortunately, this is not the case. The device in question is an Acer Spin 5.

Timecraft commented 3 years ago

upower -d output on elementary OS 5.1 Hera after a sudo apt-get update and sudo apt-get dist-upgrade:

Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path:          ADP1
  power supply:         yes
  updated:              Tue 23 Mar 2021 06:04:28 PM EDT (355 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              no
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               PANASONIC
  model:                AP15O5L
  serial:               11682
  power supply:         yes
  updated:              Tue 23 Mar 2021 06:08:28 PM EDT (115 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              34.0841 Wh
    energy-empty:        0 Wh
    energy-full:         48.9027 Wh
    energy-full-design:  53.9385 Wh
    energy-rate:         6.3063 W
    voltage:             11.809 V
    time to empty:       5.4 hours
    percentage:          71%
    capacity:            89.636%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'

Device: /org/freedesktop/UPower/devices/keyboard_hid_0003o04F3o2560x0007_battery
  native-path:          hid-0003:04F3:2560.0007-battery
  model:                ELAN Touchscreen
  power supply:         no
  updated:              Tue 23 Mar 2021 06:08:28 PM EDT (115 seconds ago)
  has history:          yes
  has statistics:       yes
  keyboard
    present:             yes
    rechargeable:        yes
    state:               unknown
    warning-level:       none
    percentage:          0%
    icon-name:          'battery-missing-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Tue 23 Mar 2021 06:08:28 PM EDT (115 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       none
    energy:              34.0841 Wh
    energy-full:         48.9027 Wh
    energy-rate:         6.3063 W
    time to empty:       5.4 hours
    percentage:          71%
    icon-name:          'battery-full-symbolic'

Daemon:
  daemon-version:  0.99.7
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: PowerOff
Timecraft commented 3 years ago

I should mention that the indicator does not show a mouse, but it does show a keyboard. A new screenshot from elementary 5.1: image

kvdz commented 3 years ago

@Timecraft Thank you for all the information. The ELAN touchscreen i mentioned shows up because the laptop does have a touch screen. It is indeed weird that is shows up. But not unlogical because the data sees it as a keyboard.

Ideally upstream would filter the touchscreen out, but because they might use simmiair hardware as deteched touchscreens, makes it quite difficult to make that distiction.

@danrabbit i think we can filter out these types of devices because the battery shows unknown state. which is never a good thing to show anyways. what do you think?

andirsun commented 3 years ago

@Timecraft Could you test on elementary os 6.0 beta 2 ?

Timecraft commented 3 years ago

I do not have the beta installed on the device in question, and don't plan on installing it for a while