profile
viewpoint

aymanbagabas/Huawei-WMI 95

Huawei WMI laptop extras linux driver

aymanbagabas/dotfiles 12

Nothing like ~

aymanbagabas/C8emu 4

A Chip-8 emulator using C++ and SDL2.

aymanbagabas/huawei_ec 3

Missing features of Huawei PC Manager in Linux

aymanbagabas/awesome-freedesktop 2

freedesktop.org menu and desktop files specifications support for the awesome window manager

aymanbagabas/jsminesweeper 2

Minesweeper 💣 using HTML5 canvas and pure JavaScript

aymanbagabas/aymanbagabas.github.io 1

A static website using Jekyll

aymanbagabas/goodix_fp_dump 1

Main repo https://gitlab.collabora.com/ao2/goodix_fp_dump

aymanbagabas/mopidy-mp3quran 1

A Mopidy extension for Mp3Quran (http://www.mp3quran.net/).

aymanbagabas/awesome-revelation 0

Show all clients in all screens in Awesome window manager

PR opened candor/sublimate

Add aggregate functions and more test coverage
+179 -7

0 comment

2 changed files

pr created time in a day

push eventaymanbagabas/sublimate

Max Howell

commit sha ab9dc701a8fb59e1e4d79dde021bd7357b98b62f

Merge pull request #12 from aymanbagabas/master Add missing limit(count:) offset(count:) unique()

view details

Ayman Bagabas

commit sha f9f4181fe204ffbaf7ae10536f9a45d47fb69b93

Add missing aggregate functions https://docs.vapor.codes/4.0/fluent/query/#aggregate

view details

Ayman Bagabas

commit sha 6e012aff2ec769ad9d586899667e915e3fcb5ba0

Add unique, limit, and aggregate funcs coverage

view details

push time in a day

pull request commentcandor/sublimate

Add missing limit(count:) offset(count:) unique()

In general we mirror the underlying Vapor APIs, this changes that. Can you show usage that justifies this?

FluentKit supports these functions plus other stuff like aggregate, chunk, etc https://docs.vapor.codes/4.0/fluent/query/#unique. QueryBuilder.swift: https://github.com/vapor/fluent-kit/blob/master/Sources/FluentKit/Query/Builder/QueryBuilder.swift#L113

aymanbagabas

comment created time in 2 days

PR opened candor/sublimate

Add missing limit(count:) offset(count:) unique()
+18 -0

0 comment

1 changed file

pr created time in 2 days

push eventaymanbagabas/sublimate

Ayman Bagabas

commit sha f667fce337f0b32073fe64a0ac456c3ede0e3419

Add missing limit(count:) offset(count:) unique()

view details

push time in 2 days

fork aymanbagabas/sublimate

A DX improvement layer for Vapor 4

fork in 2 days

push eventaymanbagabas/aymanbagabas.github.io

Ayman Bagabas

commit sha 5490c1762b92f0b29c3724a646d98a396a900d3e

Update top-projects

view details

push time in 4 days

issue closedaymanbagabas/Huawei-WMI

Start and end thresholds getting reset

I'm current using Ubuntu 18.04.4 LTS, and noticed that the values that I set in /sys/class/power_supply/BAT0, in the charge_control_start_threshold and charge_control_end_threshold files, are getting reset to 0 after rebooting my Matebook X Pro a few times. Is there a way to prevent this?

closed time in 4 days

JeffR1992

issue commentaymanbagabas/Huawei-WMI

Start and end thresholds getting reset

Closing due to inactivity.

JeffR1992

comment created time in 4 days

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

Please try https://github.com/aymanbagabas/Huawei-WMI/tree/feat/kbdlight and report the behavior. FYI, I haven't tested it on my machine (I don't have it on me at the moment) so you might encounter kernel panics 🤞

@nekr0z I'd love it if you can test this too. You'd need to load the driver with handle_kbdlight=1 or use the sysfs interface because your device handles this somewhere else, assuming the BIOS, the same goes to my device MACH-WX9. The sysfs interface takes 0, 1, or 2 for off, level 1, level 2 respectively.

german-rios-gonzalez

comment created time in 4 days

push eventaymanbagabas/Huawei-WMI

Ayman Bagabas

commit sha 0089fe8d53069b062055f641a9c30c4e1397dd93

kbdlight quirks and hotkey handle

view details

push time in 4 days

issue commentaymanbagabas/Huawei-WMI

Matebook X Pro 2020

Also, please provide the output of sudo dmidecode

bernimoses

comment created time in 4 days

issue commentaymanbagabas/Huawei-WMI

Matebook X Pro 2020

What desktop environment are you using? You gotta use a modern DE i.e. GNOME, KDE, etc for the mic mute to work, or you have to handle the keyboard event yourself in your DE of choice.

One other thing i noticed: Pressing Fn outputs

atkbd serio0: Unknown key pressed (translated set 2, code 0xf8 on isa0060/serio0).
atkbd serio0: Use 'setkeycodes e078 <keycode>' to make it known.

This has to be part of systems hwdb tables, see 99-Huawei.hwdb, notice KEYBOARD_KEY_f8=fn. However, this only matches evdev:atkbd:dmi:bvn*:bvr*:svnHUAWEI*:pnMACH-WX9:pvr*, should be changed to match both MACH-WX9 and MACHC-WAX9

  1. Function hotkeys work except for keyboard backlight (F3)

Please try https://github.com/aymanbagabas/Huawei-WMI/tree/feat/kbdlight and report back your findings.

bernimoses

comment created time in 4 days

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

@german-rios-gonzalez can you provide a sudo dmidecode for your computer? I need the device's dmi id to match against it in the driver.

german-rios-gonzalez

comment created time in 4 days

create barnchaymanbagabas/Huawei-WMI

branch : feat/kbdlight

created branch time in 4 days

push eventaymanbagabas/Huawei-WMI

Ayman Bagabas

commit sha db49766cac268d637f9cb9ed1366703337ab9695

Add .editorconfig

view details

Ayman Bagabas

commit sha ee39a59fd8cbbd59c109a41e0a297ff79d12e455

Add .vscode settings

view details

push time in 4 days

issue commentaymanbagabas/Huawei-WMI

FAILED message in system boot log about "Huawei WMI Reinstate". charge_thresholds: No such file or directory

It was named that way to match the kernel ABI https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power

RangerNJU

comment created time in 5 days

issue openedjakewmeyer/Brewfile-Generator

Warning: Calling brew cask list is deprecated! Use brew list --cask instead.

Getting a warning when using brewfile

created time in 9 days

pull request commentohmyzsh/ohmyzsh

Fix vi-mode: (control cursor shape, restore visual mode, use visual mode, speed up mode changes)

Can we PLEASE merge this already? It's been more than a year since this PR was opened, and the current vi-mode is broken.

rwe

comment created time in 9 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha be737f7fdbe59e424db85a0a06da8cb7f1b643d5

Add zsh config

view details

push time in 9 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha f23b3734373595b09887b5186d8a3641ac4e0c31

Add zsh config

view details

push time in 9 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha cd28bc867d6176f5a5f2f5001026fe0f85a7a73b

Add zsh config

view details

push time in 9 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha d368d697506e50e8aaea17d4d939fae6258065b8

Add neovim config

view details

push time in 9 days

create barnchaymanbagabas/dotfiles

branch : master

created branch time in 9 days

delete branch aymanbagabas/dotfiles

delete branch : aymanbagabas/dotfiles.repo-sync

delete time in 9 days

delete branch aymanbagabas/dotfiles

delete branch : master

delete time in 9 days

create barnchaymanbagabas/dotfiles

branch : master

created branch time in 9 days

delete branch aymanbagabas/dotfiles

delete branch : master

delete time in 9 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha e7549479e2ba6636565e2a2fe180bd71ea6f4b77

Add neovim config

view details

push time in 9 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha a653677554bd898ead01793f1a21b5b9cf3f23c8

repo sync

view details

Ayman Bagabas

commit sha 0db3d4924867674f10fad3b248f80a4167cb0925

Add neovim config

view details

push time in 9 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha ab996e98a9960850bfcdb338ec1df7bf28c6a683

Add neovim config

view details

push time in 9 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha 0a31dce0847fd81e00de26594036e78ddee3499e

repo sync

view details

push time in 9 days

fork aymanbagabas/neovim

Vim-fork focused on extensibility and usability

https://neovim.io

fork in 10 days

push eventaymanbagabas/Resplash

Ayman Bagabas

commit sha d7ef1637d5b54bb721196fb7a2a71cb1965b0866

Add 1 week and 1 month interval options Issue: https://github.com/b-lam/Resplash/issues/122 Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>

view details

push time in 13 days

PR opened b-lam/Resplash

Add 1 week and 1 month interval options

Issue https://github.com/b-lam/Resplash/issues/122

+34 -0

0 comment

16 changed files

pr created time in 13 days

fork aymanbagabas/Resplash

Unofficial Unsplash Android App

fork in 13 days

issue openedb-lam/Resplash

More auto wallpaper interval options

I want to be able to update my wallpaper every week but the app does not have this option.

created time in 13 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha 503259b1f8018cbf80e5f73ca6a47a9c37f73010

gitconfig

view details

push time in 16 days

push eventaymanbagabas/dotfiles

Ayman Bagabas

commit sha ace6e2ad215fa8ccf0978e3f5b4f79d0f486d71d

update

view details

push time in 16 days

create barnchaymanbagabas/dotfiles

branch : old3

created branch time in 16 days

issue commentaymanbagabas/Huawei-WMI

Is there any support for brightness adjustment?

What DE are you running? Major DEs have their own implementation to handle ACPI events.

ZerdoX-x

comment created time in 25 days

Pull request review commentVSCodeVim/Vim

Add support for smartRelativeLine

           "markdownDescription": "Enable the [ReplaceWithRegister](https://github.com/vim-scripts/ReplaceWithRegister) plugin for Vim.",           "default": false         },+        "vim.smartRelativeLine": {+          "type": "boolean",+          "markdownDescription": "`#editor.lineNumbers#` is determined by the active Vim mode.",

Rebased and updated.

aymanbagabas

comment created time in a month

PullRequestReviewEvent

push eventaymanbagabas/Vim

Ayman Bagabas

commit sha f31b6325877389067effc2f07c7a5dad1fa64656

Add support for smartRelativeLine Related issue: https://github.com/VSCodeVim/Vim/issues/3020

view details

push time in a month

pull request commentVSCodeVim/Vim

Add support for smartRelativeLine

Thanks for the PR! Sorry for not getting to this sooner, I've been quite busy recently.

My only hesitation is a temptation to generalize. Can anyone think of other uses for a setting which would change some config when you switch modes?

Vim has an event system that recognized many events including InsertEnter and InsertLeave which is what we are doing here. I would say the ideal way to generalize this is by emulating the event system that Vim has. Obviously, this is out of the scope of this PR.

aymanbagabas

comment created time in a month

issue commentaymanbagabas/Huawei-WMI

Huawei Matebook D15 AMD R7 from 2020

Could you please provide an acpi dump? Refer to https://01.org/linux-acpi/utilities for more information.

krysopath

comment created time in 2 months

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

I guess that's still good news! It means we can control the keyboard backlight from the software. I'll look more into the timeout duration.

german-rios-gonzalez

comment created time in 2 months

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

@nekr0z can you confirm this is working on your machine?

german-rios-gonzalez

comment created time in 2 months

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

Did the keyboard backlight change?

On Aug 14, 2020, at 12:30 PM, Germán Ríos González notifications@github.com wrote:

My bad, here are the results now

Keyboard backlight level 2 and 0x04:

[german.rios.gonzalez@Huawei-NBL-WAQ9R ~]$ echo 0x040702 | sudo tee /sys/kernel/debug/huawei-wmi/arg 0x040702

[root@Huawei-NBL-WAQ9R ~]# cat /sys/kernel/debug/huawei-wmi/call [{0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}]

[german.rios.gonzalez@Huawei-NBL-WAQ9R ~]$ echo 0x040702 | sudo tee /sys/kernel/debug/huawei-wmi/arg 0x040702 [root@Huawei-NBL-WAQ9R ~]# cat /sys/kernel/debug/huawei-wmi/call [{0x00,0x00,0x00,0x00},{0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}]

Keyboard backlight level 2 and 0x08:

[german.rios.gonzalez@Huawei-NBL-WAQ9R ~]$ echo 0x080702 | sudo tee /sys/kernel/debug/huawei-wmi/arg 0x080702 [root@Huawei-NBL-WAQ9R ~]# cat /sys/kernel/debug/huawei-wmi/call [{0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}]

[german.rios.gonzalez@Huawei-NBL-WAQ9R ~]$ echo 0x080702 | sudo tee /sys/kernel/debug/huawei-wmi/arg 0x080702 [root@Huawei-NBL-WAQ9R ~]# cat /sys/kernel/debug/huawei-wmi/call [{0x00,0x00,0x00,0x00},{0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}]

Keyboard backlight level 2 and 0x10:

[german.rios.gonzalez@Huawei-NBL-WAQ9R ~]$ echo 0x100702 | sudo tee /sys/kernel/debug/huawei-wmi/arg 0x100702 [root@Huawei-NBL-WAQ9R ~]# cat /sys/kernel/debug/huawei-wmi/call [{0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}]

[german.rios.gonzalez@Huawei-NBL-WAQ9R ~]$ echo 0x100702 | sudo tee /sys/kernel/debug/huawei-wmi/arg 0x100702 [root@Huawei-NBL-WAQ9R ~]# cat /sys/kernel/debug/huawei-wmi/call [{0x00,0x00,0x00,0x00},{0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}]

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aymanbagabas/Huawei-WMI/issues/38#issuecomment-674156704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYKJ3HEILA7F7PNA7RRTWDSAVRARANCNFSM4P442EFQ.

german-rios-gonzalez

comment created time in 2 months

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

No, it's gonna be in this form 0x080702

german-rios-gonzalez

comment created time in 2 months

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

Ok, there is a catch, you gotta run each set of commands twice to get a result, otherwise, you'll get 0x01.

german-rios-gonzalez

comment created time in 2 months

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

Hahaa, bingo! I gotta try this in my machine. You can see the changes here in the first and last cases (the second seems odd). Looking at the methods, the available values are 0x04, 0x08, and 0x10.

Could you try these with each value and observe the changes to the keyboard backlight

  • echo 0x[VALUE]0702 | sudo tee /sys/kernel/debug/huawei-wmi/arg
  • sudo cat /sys/kernel/debug/huawei-wmi/call
german-rios-gonzalez

comment created time in 2 months

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

This looks promising, these 2 methods 'looks' like the ones to get/set the keyboard backlight (assuming KBBL stands for KeyBoard BackLight). They appear in the HWMI interface in SSDT5 under 0x0602 and 0x0702.

    Method (GLIV, 1, NotSerialized)
    {
        Name (BUFF, Buffer (0x0100){})
        Name (CONT, Zero)
        Local0 = Arg0
        CreateByteField (BUFF, Zero, STAT)
        CreateByteField (BUFF, One, SURV)
        CreateByteField (BUFF, 0x02, KBBL)
        CONT = Zero
        Acquire (\_SB.PCI0.LPC0.EC0.ECMT, 0x03E8)
        \_SB.PCI0.LPC0.EC0.ECM3 (0xC4)
        While (((CONT != 0x0A) && ((\_SB.PCI0.LPC0.EC0.ECXC & One) == Zero)))
        {
            CONT += One
            Sleep (0x32)
        }

        KBBL = \_SB.PCI0.LPC0.EC0.ECXD
        Release (\_SB.PCI0.LPC0.EC0.ECMT)
        STAT = Zero
        Return (BUFF) /* \GLIV.BUFF */
    }

    Method (SLIV, 1, NotSerialized)
    {
        Name (BUFF, Buffer (0x0100){})
        Local0 = Arg0
        CreateByteField (Arg0, 0x02, KBBV)
        CreateByteField (BUFF, Zero, STAT)
        Acquire (\_SB.PCI0.LPC0.EC0.ECMT, 0x03E8)
        If ((((KBBV == 0x04) || (KBBV == 0x08)) || (KBBV == 0x10)))
        {
            \_SB.PCI0.LPC0.EC0.ECM3 (0xC5)
            \_SB.PCI0.LPC0.EC0.ECD3 (KBBV)
            STAT = Zero
        }
        Else
        {
            STAT = One
        }

        Release (\_SB.PCI0.LPC0.EC0.ECMT)
        Return (BUFF) /* \SLIV.BUFF */
    }

Could you try these commands out and report the output

  • echo 0x000602 | sudo tee /sys/kernel/debug/huawei-wmi/arg
  • sudo cat /sys/kernel/debug/huawei-wmi/arg Cycle through the keyboard backlight levels and run the same commands.
german-rios-gonzalez

comment created time in 2 months

issue commentaymanbagabas/Huawei-WMI

Add keyboard backlight timeout as an option

Interesting! Could you please provide an ACPI dump? https://01.org/linux-acpi/utilities

german-rios-gonzalez

comment created time in 2 months

push eventaymanbagabas/Vim

renovate[bot]

commit sha 50b9a93ecd0196d6b272431063c97bae57451a16

Update dependency mocha to v8.1.0 (#5091) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

renovate[bot]

commit sha 6ecbac83e0d5151b73ce6ff622df872afe27f48a

Update dependency tslint to v6.1.3 (#5096) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

renovate[bot]

commit sha 6e7492e3ab4ff724af7fe60158e14f58cdb2a32b

Update dependency @types/mocha to v8.0.1 (#5099) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

renovate[bot]

commit sha b2772dc527600f2a63e7ffbeeef2a4e5db08dd30

Update dependency ts-loader to v8.0.2 (#5101) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

renovate[bot]

commit sha 3242adecb9c08a351a6f851ae881c98e10158ec2

Update dependency webpack-merge to v5.1.0 (#5107) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

renovate[bot]

commit sha f525b61d25e4f5684597c114c9a71f76ec618eff

Update dependency webpack-merge to v5.1.1 (#5110) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

Jason Fields

commit sha bc5f3e067996441666a18454ae0dc92cdf139b8b

Maintain visual selection after failed movement Fixes #4512

view details

renovate[bot]

commit sha 438d1ffe4641f07b191e4869cff1332c75ae2750

Update dependency mocha to v8.1.1 (#5112) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

Jason Fields

commit sha 6bc75a7560507e1d632f5f2c1fd8266c49b27c6a

Add button to error popup to automatically report issue (with stack trace!) This should hopefully make those mysterious "Failed to handle key" bugs easier to understand and fix, since we'll at least know what the stack looked like.

view details

renovate[bot]

commit sha 178ffb3ef0136659c64799052737a8e2ef70f0ee

Update dependency @types/lodash to v4.14.159 (#5114) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

Jason Fields

commit sha 59b8d3115cb85d0992b920218f0efd9840484874

Enable `--resolveJsonModule` to get type safety on package.json import

view details

Jason Fields

commit sha ff37d589cc668d12a6b23ae04f0b3707917c67e1

Refactor register code by using a Map Even after this commit, our handling of registers is horrendously over-complicated and inconsistent, but this is a definite step in the right direction.

view details

Ayman Bagabas

commit sha 98f379a72b3e4dfcca5a4132a7b4eb481d3c1591

Add support for smartRelativeLine Related issue: https://github.com/VSCodeVim/Vim/issues/3020

view details

push time in 2 months

issue commentForkIssues/Tracker

Error when staging files that contains `/` in their file name

How can I create such a file?

touch newfile∕file Note that this '∕' is different from '/' which has a unicode value of 0x2215.

aymanbagabas

comment created time in 3 months

issue openedForkIssues/Tracker

Error when staging files that contains `/` in their file name

When I try staging a block within a file that contains a / in its file name, I get error: new file dev/null depends on old contents. Works fine if I stage the whole file but not a single block.

image

created time in 3 months

push eventaymanbagabas/Vim

Jason Fields

commit sha ee33f537f6f0c7aa45d9bf2642f8c64a89eb3c7e

Refactor LineRange This fixed a few edge cases. Also some general cleanup of cmd_line. I'd like to do a more significant overhaul of the parsing logic, and this will make that effort a bit easier.

view details

Jason Fields

commit sha 4dcfdbd2c935ffb2fb043b8d3afe33b23fe71478

Better handling of whitespace on command line - Don't trim() the command before parsing & executing it - Ignore whitespace while lexing LineRange Fixes #5039

view details

renovate[bot]

commit sha 88a5566eedaf2c6b69882e9e4c1353a7d5d20abd

Update dependency @types/lodash to v4.14.158 (#5060) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

Jason Fields

commit sha 93e50bfc67a350fe522f6ca8b37ab722c6022867

Fix :d[elete] command - Move the cursor to the start of the line where the deleted range was - Copy the deleted range into the clipboard register when `useSystemClipboard` is enabled

view details

berknam

commit sha 7217d50d69715cc8cafb7ee424d0df0317604fd4

Fix some commands not ignoring whitespace properly (#5061) Some commands have different behavior when called without arguments and weren't considering the cases when called with only whitespace as no arguments.

view details

J.R. Maingat

commit sha 5810f60518d0878388c0b1e13d92010326c9f232

Enable neovim capability for bang command (#5062)

view details

Jason Fields

commit sha 1119d1833b696abc37f2f51e5ad748800359a124

Revert "Remove check for lookbehind support in regex" This reverts commit 1d273ebb334b3f7fbf381c32a609b911e5402858. Turns out we need this check for VSCodeVim in older browsers. Refs #3525

view details

berknam

commit sha 0a5093f4b1da61b66473db61af353f453927d1a4

Fix visual mode not preserving desiredColumn (#5049) When moving horizontally on visual mode the desiredColumn wasn't being kept correctly, because we were updating the desiredColumn after correcting our cursors by shifting the stop to the right so that vscode included our stop on its selection. Fixes #5048

view details

renovate[bot]

commit sha 94b3c684ec708c3d553bb5e0f2478341df4b743d

Update dependency webpack to v4.44.0 (#5074) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

berknam

commit sha 35d06e6780fbde4624081e47ddfc95cd60a1451d

Implement better synchronization of selections (#5015) - Store our selections when calling 'updateView' to be later ignored. - Create a 'ignoreIntermediateSelections' flag that is set when running an action to ignore any selection changes triggered by any step of that action. - When getting a selection change event we first check if it is one of our selections. If it is we ignore it, if it is not we still ignore it if the 'ignoreIntermediateSelections' flag is set or if we have other selections to ignore, because that means this selection slipped in after the end of the action. Otherwise we handle it. - Create new handle for selection changes with kind 'Command'. (this is triggered by editor commands like 'smartSelect.grow' but is also triggered when we set the 'editor.selections' on 'updateView', except this last one will now be ignored) Fixes #1806

view details

Jason Fields

commit sha 3f53243192502f8eb8199fe70a2d9b4903512fc2

Fix `gj` and `gk` in visual mode Our stupid representation of visual selections has bitten our ass once again. Fixes #4544

view details

Jason Fields

commit sha c54465dce242d0cf8f7b9d7e73b6ae59e48bb18e

Single character visual mode should create a selection of that character Fixes #3177

view details

Jason Fields

commit sha c588c2bb12afa1aa7e006d0d5e820987deaf868c

Remove references in README.md to deprecated settings

view details

Kevin

commit sha b68124b6b73d7d74db4f6dc1337eb66b388dd358

Fix cursor position after surround in Visual mode (#5076) Fixes #4869

view details

renovate[bot]

commit sha 8f3d5a5d50a1b3ca17d15429f517d7d40307f75e

Update dependency webpack to v4.44.1 (#5089) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

Ayman Bagabas

commit sha c521c79ee922e4f46b38abebc2075f71a0636192

Merge branch 'master' into feature/smartRelativeLine

view details

push time in 3 months

more