Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi | i2c only partially enabled by default #216

Closed
ashthespy opened this issue Apr 6, 2023 · 0 comments · Fixed by #217
Closed

Raspberry Pi | i2c only partially enabled by default #216

ashthespy opened this issue Apr 6, 2023 · 0 comments · Fixed by #217
Assignees
Labels
bug Something isn't working

Comments

@ashthespy
Copy link
Contributor

ashthespy commented Apr 6, 2023

What happened

#196 seems to only partially enable i2c by default

$ i2cdetect -y 1
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory

$ sudo raspi-config nonint get_i2c
0
$ lsmod | grep i2c
i2c_bcm2835            16384  0

What did you expect to happen

You also need to load i2c-dev for the actual devices to show up.

$ modprobe i2c-dev
$ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- 36 -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

How to reproduce

Current Mainsail OS install on a Raspberry pi 4

$ i2cdetect -y 1
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory

Additional information

No response

@ashthespy ashthespy added the bug Something isn't working label Apr 6, 2023
@KwadFan KwadFan self-assigned this Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants