Git Product home page Git Product logo

Comments (5)

supdrewin avatar supdrewin commented on June 3, 2024

The basic functions are good (on/off, status). I don't understand what batterycm-switcher.service does though, as its not running, and starting it just results in an immediate:-

systemd[1]: Started Batterycm-Switcher Function Key Backend Service.
systemd[1]: batterycm-switcher.service: Deactivated successfully.

And yes I do have acpid.service running.

This feature is require enable_receive_funkey to 1, you can change it using batterycm-switcher config.

Also I'm guessing the config_charging_threshold doesn't apply for Lenovo laptops (only for huawei)?

This because the feature is optional, you can enable it by batterycm-switcher auto.
But the batterycm-charger.service is conflict with batterycm-switcher.service and other commands.
If you want to use funtion key and switch command, the first thing is do batterycm-switcher noauto

Sorry for the bad experience, I will add more detailed description to README in the future.

from batterycm-switcher.

ngoonee avatar ngoonee commented on June 3, 2024

Ah okay I overlooked the enable_receive_funkey. My Vantage key on the Legion 5 Pro (Fn+F9) doesn't seem to be detected by xev though, so probably not useful for me.

from batterycm-switcher.

supdrewin avatar supdrewin commented on June 3, 2024

Ah okay I overlooked the enable_receive_funkey. My Vantage key on the Legion 5 Pro (Fn+F9) doesn't seem to be detected by xev though, so probably not useful for me.

You can type acpi_listen -c 1, then press your funtion key, see the output and fill the keymapper_listen_event.

e.g. My ideapad s540:

❯ acpi_listen -c 1
 1F649C73-D9C5- 000000d0 00000000

Then I fill it with:

keymapper_listen_event=" 1F649C73-D9C5- 000000d0 00000000"

from batterycm-switcher.

ngoonee avatar ngoonee commented on June 3, 2024

Ah okay I overlooked the enable_receive_funkey. My Vantage key on the Legion 5 Pro (Fn+F9) doesn't seem to be detected by xev though, so probably not useful for me.

You can type acpi_listen -c 1, then press your funtion key, see the output and fill the keymapper_listen_event.

e.g. My ideapad s540:

❯ acpi_listen -c 1
 1F649C73-D9C5- 000000d0 00000000

Then I fill it with:

keymapper_listen_event=" 1F649C73-D9C5- 000000d0 00000000"

Ah at first I thought it wasn't working then I realised the space in front. For the L5Pro I have it is
keymapper_listen_event=" 1F649C73-D9C5- 000000d0 00000000"

Thanks, this works (even though there's no UI feedback so hard to immediately tell without checking with batterycm_switcher status)

from batterycm-switcher.

supdrewin avatar supdrewin commented on June 3, 2024

Ah okay I overlooked the enable_receive_funkey. My Vantage key on the Legion 5 Pro (Fn+F9) doesn't seem to be detected by xev though, so probably not useful for me.

You can type acpi_listen -c 1, then press your funtion key, see the output and fill the keymapper_listen_event.
e.g. My ideapad s540:

❯ acpi_listen -c 1
 1F649C73-D9C5- 000000d0 00000000

Then I fill it with:

keymapper_listen_event=" 1F649C73-D9C5- 000000d0 00000000"

Ah at first I thought it wasn't working then I realised the space in front. For the L5Pro I have it is keymapper_listen_event=" 1F649C73-D9C5- 000000d0 00000000"

Thanks, this works (even though there's no UI feedback so hard to immediately tell without checking with batterycm_switcher status)

You're welcome, I'm now pool skill with UI feedback, but you can try the voice feedback.

from batterycm-switcher.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.