aymanbagabas / Huawei-WMI

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

Keyboard Backlight Preference is Resetting When Reboot or Shutdown #30

Closed validatedev closed 4 years ago

validatedev commented 4 years ago

Describe the bug I usually disable the keyboard backlight for battery consuming purposes. But after rebooting or shutdown-booting the PC, my keyboard backlight preference resets all time. Huawei Matebook 13 - Ubuntu 18.04.3 LTS.

To Reproduce Steps to reproduce the behavior:

  1. Disable the keyboard backlight
  2. Reboot

Expected behavior Keyboard backlight should retain its value

Desktop (please complete the following information):

No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Lid Switch /dev/input/event1: Power Button /dev/input/event2: Power Button /dev/input/event3: AT Translated Set 2 keyboard /dev/input/event4: Huawei WMI hotkeys /dev/input/event5: Video Bus /dev/input/event6: HDA Intel PCH Headphone Mic /dev/input/event7: HDA Intel PCH HDMI/DP,pcm=10 /dev/input/event8: HDA Intel PCH HDMI/DP,pcm=3 /dev/input/event9: HDA Intel PCH HDMI/DP,pcm=7 /dev/input/event10: HDA Intel PCH HDMI/DP,pcm=8 /dev/input/event11: HDA Intel PCH HDMI/DP,pcm=9 /dev/input/event12: ELAN962C:00 04F3:30D0 Touchpad /dev/input/event13: HD Camera: HD Camera Select the device event number [0-13]: 4 Input driver version is 1.0.1 Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0 Input device name: "Huawei WMI hotkeys" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 113 (KEY_MUTE) Event code 114 (KEY_VOLUMEDOWN) Event code 115 (KEY_VOLUMEUP) Event code 171 (KEY_CONFIG) Event code 224 (KEY_BRIGHTNESSDOWN) Event code 225 (KEY_BRIGHTNESSUP) Event code 238 (KEY_WLAN) Event code 240 (KEY_UNKNOWN) Event code 248 (KEY_MICMUTE) Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Properties: Testing ... (interrupt to exit) Event: time 1577279080.126372, type 4 (EV_MSC), code 4 (MSC_SCAN), value 281 Event: time 1577279080.126372, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 1 Event: time 1577279080.126372, -------------- SYN_REPORT ------------ Event: time 1577279080.126603, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 0 Event: time 1577279080.126603, -------------- SYN_REPORT ------------ Event: time 1577279081.306404, type 4 (EV_MSC), code 4 (MSC_SCAN), value 282 Event: time 1577279081.306404, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 1 Event: time 1577279081.306404, -------------- SYN_REPORT ------------ Event: time 1577279081.306480, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 0 Event: time 1577279081.306480, -------------- SYN_REPORT ------------ Event: time 1577279091.370480, type 4 (EV_MSC), code 4 (MSC_SCAN), value 287 Event: time 1577279091.370480, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 1 Event: time 1577279091.370480, -------------- SYN_REPORT ------------ Event: time 1577279091.370911, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 0 Event: time 1577279091.370911, -------------- SYN_REPORT ------------ Event: time 1577279091.738040, type 4 (EV_MSC), code 4 (MSC_SCAN), value 287 Event: time 1577279091.738040, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 1 Event: time 1577279091.738040, -------------- SYN_REPORT ------------ Event: time 1577279091.738132, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 0 Event: time 1577279091.738132, -------------- SYN_REPORT ------------ Event: time 1577279094.542213, type 4 (EV_MSC), code 4 (MSC_SCAN), value 289 Event: time 1577279094.542213, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1 Event: time 1577279094.542213, -------------- SYN_REPORT ------------ Event: time 1577279094.542308, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0 Event: time 1577279094.542308, -------------- SYN_REPORT ------------ Event: time 1577279095.238368, type 4 (EV_MSC), code 4 (MSC_SCAN), value 289 Event: time 1577279095.238368, type 1 (EV_KEY), code 238 (KEY_WLAN), value 1 Event: time 1577279095.238368, -------------- SYN_REPORT ------------ Event: time 1577279095.238816, type 1 (EV_KEY), code 238 (KEY_WLAN), value 0 Event: time 1577279095.238816, -------------- SYN_REPORT ------------ Event: time 1577279096.242606, type 4 (EV_MSC), code 4 (MSC_SCAN), value 28a Event: time 1577279096.242606, type 1 (EV_KEY), code 171 (KEY_CONFIG), value 1 Event: time 1577279096.242606, -------------- SYN_REPORT ------------ Event: time 1577279096.242850, type 1 (EV_KEY), code 171 (KEY_CONFIG), value 0 Event: time 1577279096.242850, -------------- SYN_REPORT ------------ ^[[2~

validatedev commented 4 years ago

When try to install fix-3.3 again because of the downgrading the kernel: err.txt

There looks like some errors.

aymanbagabas commented 4 years ago

This is because Ubuntu uses signed modules and you're compiling this module out-of-tree. Thus, you're getting SSL errors but has nothing to do with the build, it builds fine and generates huawei-wmi.ko.

validatedev commented 4 years ago

Interestingly, after upgrading the kernel 5.0.2x to 5.0.3x (they are HWE kernels) and apply your v3.3 fix, it recognizes the state. Edit: Sorry, it does not recognize, but not enabled when started so that's good for me.