Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.hardware > #2942 > unrolled thread

cat /sys/bus/i2c/devices/i2c-4/new_device denied

Started byANTant@zimage.com (Ant)
First post2015-12-29 01:55 -0600
Last post2016-01-23 14:08 -0500
Articles 3 — 2 participants

Back to article view | Back to comp.os.linux.hardware


Contents

  cat /sys/bus/i2c/devices/i2c-4/new_device denied ANTant@zimage.com (Ant) - 2015-12-29 01:55 -0600
    Re: cat /sys/bus/i2c/devices/i2c-4/new_device denied ANTant@zimage.com (Ant) - 2016-01-23 12:07 -0600
      Re: cat /sys/bus/i2c/devices/i2c-4/new_device denied Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2016-01-23 14:08 -0500

#2942 — cat /sys/bus/i2c/devices/i2c-4/new_device denied

FromANTant@zimage.com (Ant)
Date2015-12-29 01:55 -0600
Subjectcat /sys/bus/i2c/devices/i2c-4/new_device denied
Message-ID<X8edna_TqqHCoR_LnZ2dnUU7-RmdnZ2d@earthlink.com>
Hello. 

I finally upgraded my Debian's oldstable/Wheezy to stable/Jessie last 
night. I am having problems with my NVIDIA's sensors that used to work:

$ sudo cat /sys/bus/i2c/devices/i2c-4/new_device
cat: /sys/bus/i2c/devices/i2c-4/new_device: Permission denied
$ ls -all /sys/bus/i2c/devices/i2c-4/new_device
--w------- 1 root root 4096 Dec 27 21:13 
/sys/bus/i2c/devices/i2c-4/new_device

How do I make my NVIDIA's sensors command work again in Debian's 
Jessie/stable?

Thank you in advance. :)
-- 
Quote of the Week: "Yeah, what's left of it. I was in the militia -- 
national guard... That's good! Wasn't any war any more than there's war 
between men and ants." --stranger; "And we're eat-able ants. I found 
that out... What will they do with us?" --Pierson from H.G. Wells' The 
War of the Worlds
Note: A fixed width font (Courier, Monospace, etc.) is required to see this signature correctly.
  /\___/\   Ant(Dude) @ http://antfarm.home.dhs.org (Personal Web Site)
 / /\ /\ \                 Ant's Quality Foraged Links: http://aqfl.net
| |o   o| |
   \ _ /    Please nuke ANT if replying by e-mail privately. If credit-
    ( )     ing, then please kindly use Ant nickname and AQFL URL/link.

[toc] | [next] | [standalone]


#3012

FromANTant@zimage.com (Ant)
Date2016-01-23 12:07 -0600
Message-ID<XMidnV8IP6v-XD7LnZ2dnUU7-YX46u6z@earthlink.com>
In reply to#2942
So, no one knows or a way around to make lm_sensors read my old NVIDIA 
video card? :(


In comp.os.linux.hardware Ant <ANTant@zimage.com> wrote:
> Hello. 

> I finally upgraded my Debian's oldstable/Wheezy to stable/Jessie last 
> night. I am having problems with my NVIDIA's sensors that used to work:

> $ sudo cat /sys/bus/i2c/devices/i2c-4/new_device
> cat: /sys/bus/i2c/devices/i2c-4/new_device: Permission denied
> $ ls -all /sys/bus/i2c/devices/i2c-4/new_device
> --w------- 1 root root 4096 Dec 27 21:13 
> /sys/bus/i2c/devices/i2c-4/new_device

> How do I make my NVIDIA's sensors command work again in Debian's 
> Jessie/stable?

> Thank you in advance. :)
-- 
Quote of the Week: "Applied mathematics will always need pure mathematics, just as anteaters will always need ants." --Paul Halmos
Note: A fixed width font (Courier, Monospace, etc.) is required to see this signature correctly.
  /\___/\   Ant(Dude) @ http://antfarm.home.dhs.org (Personal Web Site)
 / /\ /\ \                 Ant's Quality Foraged Links: http://aqfl.net
| |o   o| |
   \ _ /    Please nuke ANT if replying by e-mail privately. If credit-
    ( )     ing, then please kindly use Ant nickname and AQFL URL/link.

[toc] | [prev] | [next] | [standalone]


#3013

FromLew Pitcher <lew.pitcher@digitalfreehold.ca>
Date2016-01-23 14:08 -0500
Message-ID<UcQoy.295301$983.136350@fx06.iad>
In reply to#3012
On Saturday January 23 2016 13:07, in alt.os.linux.debian, "Ant"
<ANTant@zimage.com> wrote:

> So, no one knows or a way around to make lm_sensors read my old NVIDIA
> video card? :(
> 
> 
> In comp.os.linux.hardware Ant <ANTant@zimage.com> wrote:
>> Hello.
> 
>> I finally upgraded my Debian's oldstable/Wheezy to stable/Jessie last
>> night. I am having problems with my NVIDIA's sensors that used to work:
> 
>> $ sudo cat /sys/bus/i2c/devices/i2c-4/new_device
>> cat: /sys/bus/i2c/devices/i2c-4/new_device: Permission denied
>> $ ls -all /sys/bus/i2c/devices/i2c-4/new_device
>> --w------- 1 root root 4096 Dec 27 21:13
>> /sys/bus/i2c/devices/i2c-4/new_device

/sys/bus/i2c/devices/i2c-4/new_device is write-only for a reason; it is the
gateway that a user-space program uses to tell i2c about devices.

,----[https://www.kernel.org/doc/Documentation/i2c/instantiating-devices]
| In general, the kernel should know which I2C devices are connected and
| what addresses they live at. However, in certain cases, it does not, so a
| sysfs interface was added to let the user provide the information. This
| interface is made of 2 attribute files which are created in every I2C bus
| directory: new_device and delete_device. Both files are write only and you
| must write the right parameters to them in order to properly instantiate,
| respectively delete, an I2C device.
| 
| File new_device takes 2 parameters: the name of the I2C device (a string)
| and the address of the I2C device (a number, typically expressed in
| hexadecimal starting with 0x, but can also be expressed in decimal.)
| 
| File delete_device takes a single parameter: the address of the I2C
| device. As no two devices can live at the same address on a given I2C
| segment, the address is sufficient to uniquely identify the device to be
| deleted.
| 
| Example:
| # echo eeprom 0x50 > /sys/bus/i2c/devices/i2c-3/new_device
| 
| While this interface should only be used when in-kernel device declaration
| can't be done, there is a variety of cases where it can be helpful:
| * The I2C driver usually detects devices (method 3 above) but the bus
|   segment your device lives on doesn't have the proper class bit set and
|   thus detection doesn't trigger.
| * The I2C driver usually detects devices, but your device lives at an
|   unexpected address.
| * The I2C driver usually detects devices, but your device is not detected,
|   either because the detection routine is too strict, or because your
|   device is not officially supported yet but you know it is compatible.
| * You are developing a driver on a test board, where you soldered the I2C
|   device yourself.
| 
| This interface is a replacement for the force_* module parameters some I2C
| drivers implement. Being implemented in i2c-core rather than in each
| device driver individually, it is much more efficient, and also has the
| advantage that you do not have to reload the driver to change a setting.
| You can also instantiate the device before the driver is loaded or even
| available, and you don't need to know what driver the device needs.
| 
`----

>> How do I make my NVIDIA's sensors command work again in Debian's 
>> Jessie/stable?

Sorry, but I don't know.

-- 
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.hardware


csiph-web