Bug 913203 - Load i2c-dev module when i2cdetect is executed
Load i2c-dev module when i2cdetect is executed
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: i2c-tools (Show other bugs)
22
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Jaromír Cápík
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks: 914728
  Show dependency treegraph
 
Reported: 2013-02-20 11:16 EST by Evan McNabb
Modified: 2017-03-30 11:50 EDT (History)
7 users (show)

See Also:
Fixed In Version: i2c-tools-3.1.0-15.fc24 i2c-tools-3.1.0-15.fc23 i2c-tools-3.1.0-15.fc22 i2c-tools-3.1.0-15.fc21
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 914728 1071397 (view as bug list)
Environment:
Last Closed: 2015-10-12 20:05:38 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
proposed patch for this issue (3.37 KB, patch)
2014-06-05 03:32 EDT, Michal Minar
no flags Details | Diff
updated patch (6.34 KB, patch)
2014-07-17 05:13 EDT, Michal Minar
no flags Details | Diff

  None (edit)
Description Evan McNabb 2013-02-20 11:16:23 EST
Description of problem:

i2cdetect requires the i2c-dev module be loaded so the appropriate /dev entries are created. This is not done automatically, so when i2cdetect is initially run it gives the false impression that no buses/devices exist:

# i2cdetect -l
# modprobe i2c-dev
# i2cdetect -l
i2c-0	i2c       	i915 gmbus ssc                  	I2C adapter
i2c-1	i2c       	i915 gmbus vga                  	I2C adapter
i2c-2	i2c       	i915 gmbus panel                	I2C adapter
i2c-3	i2c       	i915 gmbus dpc                  	I2C adapter
i2c-4	i2c       	i915 gmbus dpb                  	I2C adapter
i2c-5	i2c       	i915 gmbus dpd                  	I2C adapter
i2c-6	i2c       	DPDDC-C                         	I2C adapter
i2c-7	i2c       	DPDDC-D                         	I2C adapter

Perhaps i2cdetect should do a blind module load? Or at a minimum complain if the device files don't exist (and tell the user to load it). Note, it does complain with some options - but doesn't indicate the solution of the missing module:

# i2cdetect 0
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory

Version-Release number of selected component (if applicable):
i2c-tools-3.1.0-2.fc18.x86_64

How reproducible:
Every time.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Fedora End Of Life 2013-12-21 06:34:10 EST
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.
Comment 2 Fedora End Of Life 2014-02-05 14:20:49 EST
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.
Comment 3 Michal Minar 2014-06-05 03:32:05 EDT
Created attachment 902419 [details]
proposed patch for this issue
Comment 4 Michal Minar 2014-06-05 03:33:18 EDT
Attached is a patch solving this issue.
Comment 5 Michal Minar 2014-07-17 05:13:35 EDT
Created attachment 918644 [details]
updated patch

incorporated improvements proposed by Danielle Constantino
Comment 6 Gerd v. Egidy 2015-01-18 17:28:05 EST
Still unfixed in Fedora 21
Comment 7 Fedora End Of Life 2015-05-29 04:53:59 EDT
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.
Comment 8 Fedora End Of Life 2015-06-29 07:46:28 EDT
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.
Comment 9 Tim Hawkins 2015-10-05 21:36:53 EDT
This bug is still present in Fedora 22, and likely in Fedora 23 too.
Comment 10 Jaromír Cápík 2015-10-08 11:40:50 EDT
It seems that none of the tools from the i2c-tools package can work without the i2c-dev module and therefore we need to take care of the module auto-load. The easiest way how to achieve that is to put the i2c-dev module in the modules-load.d directory and call the modprobe in the %post, so that the module is loaded after the first package installation (I would skip it for updates). Hopefully it won't cause any harm when auto-loaded after each boot.
Comment 11 Fedora Update System 2015-10-08 12:18:42 EDT
i2c-tools-3.1.0-15.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f659daaf1a
Comment 12 Fedora Update System 2015-10-08 12:18:46 EDT
i2c-tools-3.1.0-15.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-e794fee22b
Comment 13 Fedora Update System 2015-10-09 08:51:31 EDT
i2c-tools-3.1.0-15.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update i2c-tools'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b1c8d93987
Comment 14 Fedora Update System 2015-10-09 09:54:27 EDT
i2c-tools-3.1.0-15.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update i2c-tools'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-e794fee22b
Comment 15 Fedora Update System 2015-10-09 09:55:15 EDT
i2c-tools-3.1.0-15.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update i2c-tools'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f659daaf1a
Comment 16 Fedora Update System 2015-10-12 20:05:36 EDT
i2c-tools-3.1.0-15.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 17 Fedora Update System 2015-11-10 18:19:55 EST
i2c-tools-3.1.0-15.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
Comment 18 Fedora Update System 2015-11-11 00:53:18 EST
i2c-tools-3.1.0-15.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.