arturo182 / bbq10pmod_module Goto Github PK
View Code? Open in Web Editor NEWKernel module for the bbq10pmod
Kernel module for the bbq10pmod
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
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
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
.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.