Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Thoughts on hwmon symlink targets changing on reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 111
Location: above the flames and the ashes

PostPosted: Sat Mar 30, 2013 1:57 am    Post subject: Thoughts on hwmon symlink targets changing on reboot Reply with quote

Quite a bit in google on this topic but no hard fixes. Basically, the assignments of various hwmon symlinks change on each reboot. This causes fancontrol as well as my own little temp script to file as a result. For example:

Code:
% ls /sys/class/hwmon/ -al
total 0
drwxr-xr-x  2 root root 0 Mar 29 21:48 .
drwxr-xr-x 38 root root 0 Mar 29 21:48 ..
lrwxrwxrwx  1 root root 0 Mar 29 21:48 hwmon0 -> ../../devices/virtual/hwmon/hwmon0
lrwxrwxrwx  1 root root 0 Mar 29 21:48 hwmon1 -> ../../devices/platform/eeepc-wmi/hwmon/hwmon1
lrwxrwxrwx  1 root root 0 Mar 29 21:48 hwmon2 -> ../../devices/platform/coretemp.0/hwmon/hwmon2
lrwxrwxrwx  1 root root 0 Mar 29 21:48 hwmon3 -> ../../devices/platform/nct6775.656/hwmon/hwmon3


Here you see that coretemp.0 is #2 and nct6775 is #3. Upon a reboot they shifted:

Code:
% ls /sys/class/hwmon/ -al
total 0
drwxr-xr-x  2 root root 0 Mar 29 21:50 .
drwxr-xr-x 38 root root 0 Mar 29 21:50 ..
lrwxrwxrwx  1 root root 0 Mar 29 21:50 hwmon0 -> ../../devices/virtual/hwmon/hwmon0
lrwxrwxrwx  1 root root 0 Mar 29 21:50 hwmon1 -> ../../devices/platform/coretemp.0/hwmon/hwmon1
lrwxrwxrwx  1 root root 0 Mar 29 21:50 hwmon2 -> ../../devices/platform/eeepc-wmi/hwmon/hwmon2
lrwxrwxrwx  1 root root 0 Mar 29 21:50 hwmon3 -> ../../devices/platform/nct6775.656/hwmon/hwmon3


Now... coretemp.0 is #1 and nct6775 is #3.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum