aymanbagabas / Huawei-WMI

Huawei WMI laptop extras linux driver
GNU General Public License v2.0
229 stars 15 forks source link

Charge_control thresholds not found #32

Closed ghost closed 4 years ago

ghost commented 4 years ago

Describe the bug Hi, I have installed Ubuntu 18.04 on my Matebook 13. I followed your instructions and installed the v3.2 driver. However, after installation I cannot find the "sys/class/power_supply/BAT0/chargecontrol{start,end}_threshold or /sys/devices/platform/huawei-wmi/charge_control_thresholds" files for controlling the thresholds. I tried then to upgrade to Ubuntu 19.10 to use the v3.4 driver, but I still cant find the files. I performed the installation using dkms tarball. Could you help me out?

Desktop (please complete the following information):

Maybe I did not understand your installation instructions properly, could you help me out? Thanks.

ghost commented 4 years ago

I saw there was a previous issue similar that was similar to mine, and it was solved by rebooting. However, I have also tried that but it doesnt seem to solve my problem

aymanbagabas commented 4 years ago

There is a bug with DKMS > 2.6 where it doesn't update modules that already exist in the kernel. Please try manual installation.

On Sun, Dec 29, 2019, 7:17 AM RuSern notifications@github.com wrote:

I saw there was a previous issue similar that was similar to mine, and it was solved by rebooting. However, I have also tried that but it doesnt seem to solve my problem

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aymanbagabas/Huawei-WMI/issues/32?email_source=notifications&email_token=AAYKJ3AJQTAIWSOFYTTXYMDQ3CIOBA5CNFSM4KAZITZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHY6DOA#issuecomment-569500088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYKJ3HRIYQQDEIUUFHI4QTQ3CIOBANCNFSM4KAZITZA .

ghost commented 4 years ago

I tried to build it from source using your instructions: git clone https://github.com/aymanbagabas/Huawei-WMI cd Huawei-WMI make

To update use:

sudo cp huawei-wmi.ko /lib/modules/$(uname -r)/updates/ sudo depmod

To install use:

sudo make install

When I ran sudo make install, this is the error message that returned: make -C /lib/modules/5.3.0-24-generic/build/ M=/home/rusern/Huawei-WMI modules_install make[1]: Entering directory '/usr/src/linux-headers-5.3.0-24-generic' INSTALL /home/rusern/Huawei-WMI/huawei-wmi.ko At main.c:160:

aymanbagabas commented 4 years ago

That's a SSL error, shouldn't affect anything. Did you reboot?

On Sun, Dec 29, 2019, 7:47 AM RuSern notifications@github.com wrote:

I tried to build it from source using your instructions: git clone https://github.com/aymanbagabas/Huawei-WMI cd Huawei-WMI make To update use:

sudo cp huawei-wmi.ko /lib/modules/$(uname -r)/updates/ sudo depmod To install use:

sudo make install

When I ran sudo make install, this is the error message that returned: make -C /lib/modules/5.3.0-24-generic/build/ M=/home/rusern/Huawei-WMI modules_install make[1]: Entering directory '/usr/src/linux-headers-5.3.0-24-generic' INSTALL /home/rusern/Huawei-WMI/huawei-wmi.ko At main.c:160:

  • SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
  • SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79 sign-file: certs/signing_key.pem: No such file or directory DEPMOD 5.3.0-24-generic Warning: modules_install: missing 'System.map' file. Skipping depmod. make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-24-generic' depmod -a

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aymanbagabas/Huawei-WMI/issues/32?email_source=notifications&email_token=AAYKJ3BSUSWJN5ICAC4K44TQ3CL7JA5CNFSM4KAZITZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHY6T4Y#issuecomment-569502195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYKJ3CRO772OVLZNWTVEN3Q3CL7JANCNFSM4KAZITZA .

ghost commented 4 years ago

Oh sorry. I rebooted my device, but I still dont see the files in the stated location.

Screenshot from 2019-12-29 20-53-23

Screenshot from 2019-12-29 20-54-01

nekr0z commented 4 years ago

What's the output of lsmod | grep wmi now that you've installed the driver manually and rebooted?

ghost commented 4 years ago

Hi, this is what I got:

lsmod | grep wmi

snd_rawmidi            36864  1 snd_seq_midi
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
mxm_wmi                16384  1 nouveau
snd                    86016  19 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
intel_wmi_thunderbolt    20480  0
wmi_bmof               16384  0
wmi                    32768  4 intel_wmi_thunderbolt,wmi_bmof,mxm_wmi,nouveau
aymanbagabas commented 4 years ago

Hi, this is what I got:

lsmod | grep wmi

snd_rawmidi            36864  1 snd_seq_midi
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
mxm_wmi                16384  1 nouveau
snd                    86016  19 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
intel_wmi_thunderbolt    20480  0
wmi_bmof               16384  0
wmi                    32768  4 intel_wmi_thunderbolt,wmi_bmof,mxm_wmi,nouveau

The driver is clearly not loaded. Closing.