Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

What does the systemd service file do? #3

Open
ngoonee opened this issue Oct 15, 2021 · 5 comments
Open

What does the systemd service file do? #3

ngoonee opened this issue Oct 15, 2021 · 5 comments
Labels
question Further information is requested

Comments

@ngoonee
Copy link

ngoonee commented Oct 15, 2021

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.

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

@supdrewin
Copy link
Owner

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.

@supdrewin supdrewin added the question Further information is requested label Oct 15, 2021
@ngoonee
Copy link
Author

ngoonee commented Oct 15, 2021

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.

@supdrewin
Copy link
Owner

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"

@ngoonee
Copy link
Author

ngoonee commented Oct 15, 2021

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)

@supdrewin
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants