Giter Site home page Giter Site logo

bbq10pmod_module's People

Contributors

arturo182 avatar berkutta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bbq10pmod_module's Issues

module not working

Running dmesg, I see this:

[   325.256608] bbq10pmod 1-001f: bbq10pmod_read_reg failed, reg: 3, error: -121
[   325.256651] bbq10pmod 1-001f: bbq10pmod_irq_handler: failed to read KEY: -121

Communication kernel module <-> keyboard

Setup:

Issue:

It looks like the kernel module <-> keyboard communicates sort of but not correctly. The dmesg output looks ok but I'm e.g. unable to set the brightness via sudo su -c "echo 255 > /sys/class/backlight/bbq10pmod/brightness. It get's dark after kernel module initialization and keeps dark until resetting the keyboard.

dmesg output:

[    8.249265] i2c /dev entries driver
[    8.337603] bbq10pmod: loading out-of-tree module taints kernel.
[...]
[   16.524469] bbq10pmod_probe version: 0x02
[   16.536031] input: bbq10pmod as /devices/platform/soc/20804000.i2c/i2c-1/1-001f/input/input0

Assumption:

It looks like the keyboard software can't handle setting the register address in one write and setting the register value in another write. Capture on the top works and capture on the bottom not. Capture on the top is done via sudo i2cset -y 1 0x1f 0x85 0xFF and capture on the bottom via sudo su -c "echo 255 > /sys/class/backlight/bbq10pmod/brightness.

image

I got it working with the following hack. Not sure if I should to a PR. It breaks potential writes with multiple bytes:
berkutta@ae8c561

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.