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

Cannot read from AMD Chips #16

Closed
Candunc opened this issue Jun 16, 2013 · 3 comments
Closed

Cannot read from AMD Chips #16

Candunc opened this issue Jun 16, 2013 · 3 comments

Comments

@Candunc
Copy link

Candunc commented Jun 16, 2013

Compiled for Ubuntu Server 12.04, the default shows 40 C, while the built in /sys/bus/pci/drivers/k8temp/0000:00:18.3/temp1_input doesn't seem to be supported.

I made sure to change it to /sys/bus/pci/drivers/k8temp/0000:00:18.3/temp1_input to keep it from crashing, however it doesn't read the temps:

Cannot read sensor data at /sys/bus/pci/drivers/k8temp/0000:00:18.3/temp1_input: open /sys/bus/pci/drivers/k8temp/0000:00:18.3/temp1_input: no such file or directory.

Using the command 'cat /sys/bus/pci/drivers/k8temp/0000:00:18.3/temp1_input' from the command line works, what could be the problem?

@jondot
Copy link
Owner

jondot commented Jun 17, 2013

Hi there,
If you use Groundcontrol outside of a Raspberry Pi, then you might hit unexpected issues. I'm not familiar with this sensor to great depth, but what you can verify is that it is readable in a "file-like" fasion from Groundcontrol (check permissions), by trying a cat your-file.
The result should be something like 47345 to indicate 47.345 centigrade.
Hope this helps

@Candunc
Copy link
Author

Candunc commented Jun 17, 2013

Thanks, no idea what the main issue was but this is easily fixed by creating an alias to the file.
The workaround is simply using the command sudo ln -s /sys/bus/pci/drivers/k8temp/0000:00:18.3/temp1_input ~/temp for example, then Groundcontrol will read it properly after you change the file location to /home/[username]/temp

@jondot
Copy link
Owner

jondot commented Jun 17, 2013

yep sorry I had that in my mind but eventually it didn't jump into writing 👍

@jondot jondot closed this as completed Aug 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants