Comments (8)
@aymanbagabas You must have some idea of what the udev rules for the supported models should look like, don't you?
from matebook-applet.
You could use this rule
SUBSYSTEM=="platform", DRIVER=="huawei-wmi", ACTION=="add", RUN+="/bin/chgrp wheel %S/%p/charge_thresholds", RUN+="/bin/chmod g=u %S/%p/charge_thresholds", RUN+="/bin/chgrp wheel %S/%p/fn_lock_state", RUN+="/bin/chmod g=u %S/%p/fn_lock_state"
%S
is the sysfs path and %p
is the driver path under sysfs.
Got it working, great job!
I keep getting this error in the applet
from matebook-applet.
I see.. It's getting 0-0 value from the driver, and since on MateBook 13 there's not supposed to be 0-0 (off is 0-100), it interprets is as error. I will fix that. Should be working otherwise, setting various thresholds and such.
from matebook-applet.
I keep getting this error in the applet
Should be fixed now.
from matebook-applet.
The issue itself is fixed in 1.2.0, closing. Feel free to contact me or open a new one if you see strange behaviour.
from matebook-applet.
I just followed the instructions in the readme but when I executed the driver it warned me that the driver was readable but not writeable.
I also had to do some changes to the way I added the group and my user to the group, possibly related as to why it didn't work.
sudo groupadd --system huawei-wmi
instead of sudo addgroup --system huawei-wmi
sudo adduser -g YOUR_USERNAME huawei-wmi
instead of sudo adduser YOUR_USERNAME huawei-wmi
edit: just wondering if this is normal:
from matebook-applet.
sudo groupadd --system huawei-wmi
instead ofsudo addgroup --system huawei-wmi
Fedora, right? No simple ways there... ;-)
sudo adduser -g YOUR_USERNAME huawei-wmi
That looks like a big mistake. This command created a new user huawei-wmi
and assigned it to group YOUR_USERNAME
(instead of huawei-wmi
as it would have done by default.
What you should have done was:
usermod -a -G huawei-wmi YOUR_USERNAME
I'll update the readme.
from matebook-applet.
that worked perfectly, thanks!
from matebook-applet.
Related Issues (20)
- ERROR: neither a support version of huawei-wmi driver or any of the required scripts are properly installed HOT 5
- [linux 5.5] Driver interface is readable but not writeable. HOT 5
- Fedora HOT 6
- Driver interface is readable but not writeable. HOT 2
- Error setting thresholds on Matebook 14 2020 AMD HOT 22
- Applet Icon HOT 2
- applet not able to change battery settings on matebook-2020 (intel i7) HOT 2
- BP thresholds don't make sense: min 0%, max 0% HOT 8
- Support MacOS HOT 97
- Migrate to the Ayatana (App)Indicator(s) for newer Debian versions HOT 8
- Every time restart, the settings are invalid @Matebook 2020(R5) HOT 4
- error while loading shared libraries: libayatana-appindicator3.so.1 on Fedora 34 HOT 4
- Cannot run last applet on Archlinux HOT 4
- KDE Plasma system tray applet HOT 7
- How is the battery protection different from generic limits? HOT 8
- Unable to locate package matebook-applet HOT 2
- cannot find module providing package embed HOT 2
- Функционал по ограничению порогов заряда/разряда батареи не работает HOT 4
- This application for Windows HOT 1
- Error setting thresholds on Matebook 16 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matebook-applet.