Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB-C power supply might not be reported #191

Open
rwappler opened this issue Oct 29, 2022 · 0 comments
Open

USB-C power supply might not be reported #191

rwappler opened this issue Oct 29, 2022 · 0 comments

Comments

@rwappler
Copy link

rwappler commented Oct 29, 2022

Describe the bug
I am sitting here on a Thinkpad T14 AMD Gen 2a. The power supply is connected via USB-C. However, kernel does not report it as USB-Device or power delivery. Therefore /sys/class/power_supply/*/online will never be 1. Therefore laptop-mode will always be active.

Fix suggested in #192

To Reproduce
Steps to reproduce the behavior:

  1. Use power supply via USB-C that is not detected by the kernel
  2. run laptop_mode status
  3. laptop-mode will always be active.

Expected behavior

In absence of an AC power supply, the battery status should be used, to determine, whether to activate laptop-mode or not. I.e. activate it based on BATTERY_NOT_DISCHARGING

Screenshots
n/a

Important Information:

  • Distribution: gentoo
  • Linux Kernel: 6.0.3 x86_64
  • Laptop Mode Tools version: 1.74
  • Desktop Environment, if any: kde plasma
  • Relevant System Logs: n/a
  • Laptop Mode Tools verbose logs: n/a

Additional context
Add any other context about the problem here.

rwappler added a commit to rwappler/laptop-mode-tools that referenced this issue Oct 29, 2022
- fixed determination of ON_AC if no AC adapter found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant