I2C Permissions

Ever tried running a python script as a cron job or as an snmp script that involves I2C access only to get 

Error (13) Permission denied

There are two fixes one temporary and one permanent.

-Temporary
sudo chmod a+rw /dev/i2c-0 for older RPIs
or
sudo chmod a+rw /dev/i2c-1 for newer RPIs (>= B+)

This is however lost after reboot so you might consider the following method

-Permanent
edit /lib/udev/rules.d/60-i2c-tools.rules
and change the i2c line to

KERNEL==”i2c-0″ , GROUP=”i2c”, MODE=”0660″
KERNEL==”i2c-[1-9]*”, GROUP=”i2c”, MODE=”0666″

Reboot and you are ok

37 Trackbacks / Pingbacks

  1. tamoxifen prices
  2. can buy ventolin online
  3. clonidine patch cheap
  4. allegra tablet use
  5. justspin casino online casino real money
  6. real money slot casino
  7. casino websites win real money
  8. icd 10 cialis
  9. 40mg cialis coupon
  10. 75 mg of viagra
  11. when does cialis 5 mg go off patent
  12. walgreens cialis 5mg cost
  13. best buy for cialis 5 mg
  14. prednisone online
  15. buy tizanidine online no prescription
  16. benadryl pills for mosquito bites
  17. buy promethazine 2023
  18. generic bupropion
  19. hydrochlorothiazide 2023
  20. lisinopril prices
  21. diclofenac natrium cf tablet msr 50mg
  22. fluoxetine online
  23. glyburide metformin sale
  24. online casino real money indiana
  25. online casino slot machines real money
  26. real money casino site
  27. online casino real money america
  28. claritin gel tablets
  29. buy generic flonase online
  30. methotrexate
  31. buy nitrofurantoin
  32. mail order zyrtec
  33. clonidine buy online
  34. will able buy generic lipitor
  35. cialis cutting 20mg quarter
  36. tadalafil 20 mg tablet price
  37. generic for cialis 20mg daily

Leave a Reply

Your email address will not be published.


*