-
Notifications
You must be signed in to change notification settings - Fork 45
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
ddcutil not working on Raspberry Pi 4 #97
Comments
Are you and user marmaladeseismic the same? Rather a coincidence to
see two posts re the Raspberry Pi on the same day.
Looking at your environment command output, there are no slave addresses
active on /dev/i2c-2, including x50 and x37. This is the case whether
using ddcutil's I2C access, or command i2cdetect. So it would appear to
be an I2C configuration problem. The Raspberry Pi is not a platform I
normally test on - the last time I looked at it in any depth was over a
year ago. A couple questions come to mind, but they're pretty basic.
What happens if you do not use Kodi? Does ddcutil work for you on a Pi 3?
Note that for testing purposes, you can use command i2cdetect. If
i2cdetect does not find slave addresses x50 and x37 on the I2C bus,
there's no point in trying to use ddcutil.
Sorry that I can't be of more help. If you do find a solution please
post it here so that others can see it and I can include it in the
documentation.
Sanford
…On 10/26/19 6:36 PM, fm99 wrote:
ddcutil not working on Raspberry Pi 4
I have tried to use ddcutil (v0.9.2 from default raspian buster repo)
on my new Pi4 - unfortunately without success: When I enter "ddcutil
detect" I get the message "No diplays found".
Since I use Kodi, I must use on the "GL (Fake KMS) OpenGL desktop
driver with fake KMS" (see
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=251645).
I then read the documentation about the Raspberry Pi on
www.ddcutil.com <http://www.ddcutil.com> and played around with the
i2c related dtparam settings. Still no success.
Finally, I downloaded the source code of the latest version of ddcutil
(v0.9.7) and compiled it. That didn't help either.
Please find enclosed my current /boot/config.txt and various ddcutil
diagnostic reports:
*
boot-config.txt
<https://github.com/rockowitz/ddcutil/files/3775326/boot-config.txt>
*
ddcutil detect --verbose.txt
<https://github.com/rockowitz/ddcutil/files/3775327/ddcutil.detect.--verbose.txt>
*
ddcutil environment --verbose.txt
<https://github.com/rockowitz/ddcutil/files/3775328/ddcutil.environment.--verbose.txt>
*
ddcutil interrogate.txt
<https://github.com/rockowitz/ddcutil/files/3775329/ddcutil.interrogate.txt>
Thank you for any help.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#97?email_source=notifications&email_token=ADMGY3VMV2NK355VZM5OFNLQQTA6PA5CNFSM4JFPEK22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUSEP4Q>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMGY3XB7GOFUJGBNZZWNULQQTA6PANCNFSM4JFPEK2Q>.
|
Hi Sanford Thanks for your answer. As for your questions/points:
Update: I found this discussion on the kernel source tree for the Pi: raspberrypi/linux#3152. |
IMHO, this is not a ddcutil problem. I2C on RPI4 is OK in general... The problem with ddcutil on RPI4 is that HDMI DDC/CI (I2C) is not accessible in userspace (/dev/i2c-2) due to completely new HW comparing to RPI3 (RPI4 drivers need to be fixed). As a workaround, you can physically connect HDMI DDC/CI to free i2c bus on RPI4 and control it with ddcutil - details see my post here: raspberrypi/linux#3152. |
Thanks for the detailed report. I'll update the Pi documentation at
www.ddcutil.com/raspberry.
- Sanford
…On 1/1/20 9:53 PM, bangom wrote:
Hi Sanford
Thanks for your answer.
As for your questions/points:
1. "Are you and user marmaladeseismic the same?" => No, I'm not
that other user, it's just a coincidence.
2. "What happens if you do not use Kodi?" => If I configure the
"Original non-GL desktop driver" (i.e. if only one or more I2C
dtparam lines but no GL driver related dtoverlay line is set
in /boot/config.txt), ddcutil doesn't work either ("No diplays
found").
3. "Does ddcutil work for you on a Pi 3?" => I have two Pi 3B+,
one running debian/raspbian 9 (stretch) and one running
debian/raspbian 10 (buster). On both Pis ddcutil runs as
expected, i.e. I can read/change the settings of my monitor
without any problems.
4. "Sorry that I can't be of more help. If you do find a solution
please post it here so that others can see it and I can
include it in the documentation." => That is not a problem. I
was pleased that you reacted so quickly to my request. If I
find a solution, I will describe it as a comment here. Thanks
again for your help!
Update: I found this discussion on the kernel source tree for the
Pi: raspberrypi/linux#3152
<raspberrypi/linux#3152>.
As I understand it, I2C support for the Pi4 is still incomplete at
the moment, so ddcutil cannot be used on a Pi4 for now :-/
IMHO, this is not a ddcutil problem. I2C on RPI4 is OK in general...
The problem with ddcutil on RPI4 is that HDMI DDC/CI (I2C) is not
accessible in userspace (/dev/i2c-2) due to completely new HW
comparing to RPI3 (RPI4 drivers need to be fixed).
As a workaround, you can physically connect HDMI DDC/CI to free i2c
bus on RPI4 and control it with ddcutil - details see my post here:
raspberrypi/linux#3152 <raspberrypi/linux#3152>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97?email_source=notifications&email_token=ADMGY3VISSVAGRRD2XUJDULQ3VJK3A5CNFSM4JFPEK22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH5SMAY#issuecomment-570107395>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMGY3XXTIJNMA2Q5Q3HXH3Q3VJK3ANCNFSM4JFPEK2Q>.
|
Page www.ddcutil.com/raspberry has been updated to reflect this
information.
Thanks again,
- Sanford
…On 1/1/20 9:53 PM, bangom wrote:
Hi Sanford
Thanks for your answer.
As for your questions/points:
1. "Are you and user marmaladeseismic the same?" => No, I'm not
that other user, it's just a coincidence.
2. "What happens if you do not use Kodi?" => If I configure the
"Original non-GL desktop driver" (i.e. if only one or more I2C
dtparam lines but no GL driver related dtoverlay line is set
in /boot/config.txt), ddcutil doesn't work either ("No diplays
found").
3. "Does ddcutil work for you on a Pi 3?" => I have two Pi 3B+,
one running debian/raspbian 9 (stretch) and one running
debian/raspbian 10 (buster). On both Pis ddcutil runs as
expected, i.e. I can read/change the settings of my monitor
without any problems.
4. "Sorry that I can't be of more help. If you do find a solution
please post it here so that others can see it and I can
include it in the documentation." => That is not a problem. I
was pleased that you reacted so quickly to my request. If I
find a solution, I will describe it as a comment here. Thanks
again for your help!
Update: I found this discussion on the kernel source tree for the
Pi: raspberrypi/linux#3152
<raspberrypi/linux#3152>.
As I understand it, I2C support for the Pi4 is still incomplete at
the moment, so ddcutil cannot be used on a Pi4 for now :-/
IMHO, this is not a ddcutil problem. I2C on RPI4 is OK in general...
The problem with ddcutil on RPI4 is that HDMI DDC/CI (I2C) is not
accessible in userspace (/dev/i2c-2) due to completely new HW
comparing to RPI3 (RPI4 drivers need to be fixed).
As a workaround, you can physically connect HDMI DDC/CI to free i2c
bus on RPI4 and control it with ddcutil - details see my post here:
raspberrypi/linux#3152 <raspberrypi/linux#3152>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97?email_source=notifications&email_token=ADMGY3VISSVAGRRD2XUJDULQ3VJK3A5CNFSM4JFPEK22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH5SMAY#issuecomment-570107395>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMGY3XXTIJNMA2Q5Q3HXH3Q3VJK3ANCNFSM4JFPEK2Q>.
|
@rockowitz Hi, Could you please offer your input on this? To my knowledge, kernel 5.10 should have fixed this issue and ddcutil should now be working. However the documentation for ddcutil raspberry still says that it is unavailable for RPI4. I am to assume that this comment is actually correct and the documentation above mentioned is outdated?
Many thanks, |
@robertalexa You are correct. The ddcutil Raspberry Pi documentation is badly out of date. I was not aware that I2C was now working over HDMI on the Pi 4. I've been meaning to put together a Pi 4 for testing, but that's backed up behind a lot of other things (like getting out a new release). If you'd be willing to send me modified content for ddcutil's Pi page, I'll modify the page accordingly. |
@rockowitz at the minute i am stacked, but i am hoping that some time this weekend i will find the time to test this at my end, make note of requirements and after that i will post another reply for the documentation. Leave this with me for a bit |
@rockowitz hey man. Just had a chance to have a play with this and everything is good :) In order for this to work:
Check if everything is working and your monitor is detected:
Find out what commands you can run on your monitor: Hope this is good enough to put on the Documentation page. Offtopic: do you have any experience with controlling screen brightness based on room light using a LDR? Thanks |
Robert, I have updated the ddcutil Raspberry Pi page based on your documentation. Let me know if it looks right to you. I have no direct experience controlling screen brightness using a LDR, but it seems to me there are 3 parts to the question:
|
@rockowitz I have seen the docs earlier today and it looks good :) nice one for updating it! As to the LDR, i know how to achieve it on paper, i am just not sure how often i should be sending updates to a monitor without any risks. If you think about a phone for example, I am sure you know how the screen brightness gradually adjusts when changing the ambient light. It is after this effect that I am after. So to achieve sth as smooth as that, there will be more than one single VCP value involved, probably 1 by 1 for the duration of say 1 second. But I am unsure if there are any risks associated with "flooding" the monitor with such quick successive changes. Anyway, thanks for your input, it is much appreciated :) |
@robertalexa offtopic LDR discussion moved to issue #197 |
I have tried to use ddcutil (v0.9.2 from default raspian buster repo) on my new Pi4 - unfortunately without success: When I enter "ddcutil detect" I get the message "No diplays found".
Since I use Kodi, I must use on the "GL (Fake KMS) OpenGL desktop driver with fake KMS" (see https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=251645).
I then read the documentation about the Raspberry Pi on www.ddcutil.com and played around with the i2c related dtparam settings. Still no success.
Finally, I downloaded the source code of the latest version of ddcutil (v0.9.7) and compiled it. That didn't help either.
Please find enclosed my current /boot/config.txt and various ddcutil diagnostic reports:
boot-config.txt
ddcutil detect --verbose.txt
ddcutil environment --verbose.txt
ddcutil interrogate.txt
Thank you for any help.
The text was updated successfully, but these errors were encountered: