Git Product home page Git Product logo

Comments (8)

nekr0z avatar nekr0z commented on July 19, 2024

@aymanbagabas You must have some idea of what the udev rules for the supported models should look like, don't you?

from matebook-applet.

aymanbagabas avatar aymanbagabas commented on July 19, 2024

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 Screenshot from 2019-04-25 11-41-08

from matebook-applet.

nekr0z avatar nekr0z commented on July 19, 2024

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.

nekr0z avatar nekr0z commented on July 19, 2024

I keep getting this error in the applet

Should be fixed now.

from matebook-applet.

nekr0z avatar nekr0z commented on July 19, 2024

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.

wasakakero avatar wasakakero commented on July 19, 2024

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:

image

from matebook-applet.

nekr0z avatar nekr0z commented on July 19, 2024

sudo groupadd --system huawei-wmi instead of sudo 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.

wasakakero avatar wasakakero commented on July 19, 2024

that worked perfectly, thanks!

from matebook-applet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.