Minor prob, possibly only cosmetic.After upgrading from RC4.1 to RC5, and the status page includes an error related to retrieving the fan speed:"cat: can't open '/tmp/sys/fan1_input': No such file or directory expr: syntax error sh: bad number sh: bad number sh: bad number"I shelled in, and altered the symlink in /tmp/sys to point instead to /sys/class/hwmon/hwmon0/device/fan1_inputAnd it cures the display problem. (the change was the additional directory, '/device/', in the path.)
[root@DNS-323]# ls -l /tmp/sys/total 0lrwxrwxrwx 1 root root 34 Jan 1 1970 fan1_input -> /sys/class/hwmon/hwmon0/fan1_inputlrwxrwxrwx 1 root root 26 Jan 1 1970 left_led -> /sys/class/leds/left:amberlrwxrwxrwx 1 root root 26 Jan 1 1970 power_led -> /sys/class/leds/power:bluelrwxrwxrwx 1 root root 28 Jan 1 1970 pwm1 -> /sys/class/hwmon/hwmon0/pwm1lrwxrwxrwx 1 root root 27 Jan 1 1970 right_led -> /sys/class/leds/right:amberlrwxrwxrwx 1 root root 35 Jan 1 1970 temp1_input -> /sys/class/hwmon/hwmon1/temp1_input
Editing /etc/init.d/rcS to correct the creation of the symlink seemed right, but the edit didn't stick (and I don't know where the root filesystem is actually persisted).
Thanks for your prompt and helpful reply.It is reproducible. The other symlinks in /tmp/sys appear to be valid (though pwm1 does not appear to be a link - perhaps its a hardlink).
for i in /tmp/sys/*; do realpath $i; done
/sys/devices/platform/mv64xxx_i2c.0/i2c-0/0-003e/hwmon/hwmon0/fan1_input/sys/devices/platform/leds-gpio/leds/left:amber/sys/devices/platform/leds-gpio/leds/power:blue/sys/devices/platform/mv64xxx_i2c.0/i2c-0/0-003e/hwmon/hwmon0/pwm1/sys/devices/platform/leds-gpio/leds/right:amber/sys/devices/platform/mv64xxx_i2c.0/i2c-0/0-0048/hwmon/hwmon1/temp1_input
for i in pwm1 temp1_input fan1_input; do
find /sys/class/ -follow -maxdepth 4 -name $i
done
/sys/class/hwmon/hwmon0/pwm1/sys/class/hwmon/hwmon1/temp1_input/sys/class/hwmon/hwmon0/fan1_input
Any reason why I can't just remount as rw and edit (on whatever persistent storage it's kept in) the line in the original /etc/init.d/rcS which seems to be responsible for creating the errant link?
/rootmnt/dev/loop0 on /rootmnt/ro type squashfs (ro,relatime)
[root@DNS-323]# aufs.sh -laufs on / type aufs (rw,relatime,si=8a97908e) # /, root, this is how it looks to users/mnt/sda4/Alt-F=rw # latter modifications go to here, on disk, but latter on the boot process/rootmnt/rw=rw # early modifications go to here, in memory/rootmnt/ro=rr # flash memory, read-only at the lower branch
#!/bin/sh# Script to execute as the root user at boot time.# You can loose your data or make the system inaccessible# if using the wrong commands. You have been warned!exec >> /var/log/user.log 2>&1
case "$1" instart)echo "Starting $0"ln -sf /sys/class/hwmon/hwmon0/device/fan1_input /tmp/sys/fan1_input # create the correct symlink
rm /tmp/sys/pwm1ln -sf /sys/class/hwmon/hwmon0/device/pwm1 /tmp/sys/pwm1
rcsysctrl restart # restart sysctrl, in case it has stopped itself because of the missing file.;;
stop)echo "Stopping $0";;esac
and do see that one of them currently points through a path named for the 323 model, but that one does seem to contain a valid value (3000).From rcS it appears that /tmp/sys/pwm1 is being created by the 'touch' (after both if's fail) or by the 'echo 127...' near line 235. I re-created it as a link to /sys/class/hwmon/hwmon0/device/pwm1, but then it behaves as if read-only, so my fan speed never changes.
--
You received this message because you are subscribed to a topic in the Google Groups "Alt-F" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alt-f/EFlFvezbT1w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
Hi, my box is DNS-323 C1Fan speed only displaying percentage "%"
cat: can't open '/tmp/sys/fan1_input': No such file or directory expr: syntax error sh: bad number sh: bad number sh: bad number
[root@box]# ls -l /tmp/sys/
total 4
lrwxrwxrwx 1 root root 34 Jan 1 1970 fan1_input -> /sys/class/hwmon/hwmon1/fan1_input
lrwxrwxrwx 1 root root 26 Jan 1 1970 left_led -> /sys/class/leds/left:amber
lrwxrwxrwx 1 root root 26 Jan 1 1970 power_led -> /sys/class/leds/power:blue
-rw-r--r-- 1 root root 4 Jun 30 14:45 pwm1
lrwxrwxrwx 1 root root 27 Jan 1 1970 right_led -> /sys/class/leds/right:amber
lrwxrwxrwx 1 root root 35 Jan 1 1970 temp1_input -> /sys/class/hwmon/hwmon1/temp1_input
[root@box]# for i in /tmp/sys/*; do realpath $i; done
realpath: /tmp/sys/fan1_input: No such file or directory
/sys/devices/platform/leds-gpio/leds/left:amber
/sys/devices/platform/leds-gpio/leds/power:blue
/tmp/sys/pwm1
/sys/devices/platform/leds-gpio/leds/right:amber
/sys/devices/platform/mv64xxx_i2c.0/i2c-0/0-0048/hwmon/hwmon1/temp1_input
[root@box]#
Is there any fix? or should I downgrade to RC4.
for i in pwm1 temp1_input fan1_input; do
find /sys/class/ -follow -maxdepth 4 -name $i
done
Thanks
On Wed, Jun 29, 2016 at 10:11 AM, Gary Dobbins wrote:
Mine appeared entirely normal after the upgrade, with the exception of the fan speed (zero) on the status page, and a text warning above it which I quoted in the OP.Sorry your upgrade didn't fare as well. I'm so grateful for Alt-F, else this box would just be wasting away as landfill.
On Tue, Jun 28, 2016 at 10:31 PM, Wayno wrote:
Gary,
I don't meet to hijack your thread but João Cardoso told me to refer to it since he thinks my issue is related. I also have a 321 but after upgrading to RC5 (from RC4) my status page is blank. Did you also experience this? Seems like you were just missing some of the items per your OP. Also, did you do anything aside from just simply flashing the updated firmware like clearing all settings, etc? Not sure why my unit would be behaving differently from yours. Thanks!
On Sunday, June 26, 2016 at 2:04:26 PM UTC-4, Gary Dobbins wrote:At this point, the user patch script reads as follows, and all three temp/speed/pwm links seem to work as intended.#!/bin/sh# Script to execute as the root user at boot time.# You can loose your data or make the system inaccessible# if using the wrong commands. You have been warned!exec >> /var/log/user.log 2>&1case "$1" instart)echo "Starting $0"ln -sf /sys/class/hwmon/hwmon0/device/fan1_input /tmp/sys/fan1_input # create the correct symlinkrm /tmp/sys/pwm1ln -sf /sys/class/hwmon/hwmon0/device/pwm1 /tmp/sys/pwm1rcsysctrl restart # restart sysctrl, in case it has stopped itself because of the missing file.;;stop)echo "Stopping $0";;esac
--
You received this message because you are subscribed to a topic in the Google Groups "Alt-F" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alt-f/EFlFvezbT1w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--Gary Dobbins
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
--ZerO13th
--
You received this message because you are subscribed to a topic in the Google Groups "Alt-F" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alt-f/EFlFvezbT1w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
Gary's patch did resolved the issue (Thanks Gary), but I need to run the patch manually after every reboot.
If you can reproduce the issue consistently after a reboot, the only cure is to fix that in the user boot script, Services->User, user, Configure, and to specify a script resident on disk, such as /mnt/sda4/userboot.sh that fixes the issue.Use the Edit button to have a skeleton script that you can modify, then Submit. Something like:
user custom script seems doesn't work.[root@box]# ls -la /usr/www/cgi-bin/fix-fan
Gary's patch did resolved the issue (Thanks Gary), but I need to run the patch manually after every reboot.
/sys/class/hwmon/hwmon0/device/fan1_input
/sys/class/hwmon/hwmon0/device/pwm1
/sys/class/hwmon/hwmon1/device/temp1_input
Dear All,I'm running RC5 on a 320L and the status page doesn't show anything about fan and temperature.
I too have a DNS-323
rcsysctrl stop
for i in fan1_input temp1_input pwm1; do j=$(find /sys/class/ -follow -maxdepth 4 -name $i) if test -n "$j"; then ln -sf $j /tmp/sys/$i else echo 0 > /tmp/sys/$i fidone
rcsysctrl start
ls -l /tmp/sys/
(and 325, but that works great with RC5), and am having the issue with the fan speed not working. I tried Gary's startup fix, but it didn't fix it. I still get the following error:cat: can't open '/tmp/sys/fan1_input': No such file or directory expr: syntax error sh: bad number sh: bad number sh: bad number
What am I doing wrong here?
On Monday, 24 October 2016 08:43:39 UTC+1, Thomas FRANCAIS wrote:Dear All,I'm running RC5 on a 320L and the status page doesn't show anything about fan and temperature.Please read the "data corruption on RC5" topic and apply the fix.
Referring to João answer I've tried to look at /sys/class/hwmon/ folder but it is empty. How can I fill it or which folder should I use instead ?
/ # ls -l /tmp/sys/total 12-rw-r--r-- 1 root root 5 Oct 25 19:11 fan1_inputlrwxrwxrwx 1 root root 33 Jan 1 1970 left_led -> /sys/class/leds/dns320l:red:sata0lrwxrwxrwx 1 root root 28 Jan 1 1970 power_button -> /sys/class/gpio/gpio29/valuedrwxr-xr-x 2 root root 80 Jan 1 1970 power_led-rw-r--r-- 1 root root 4 Oct 25 19:10 pwm1lrwxrwxrwx 1 root root 33 Jan 1 1970 right_led -> /sys/class/leds/dns320l:red:sata1-rw-r--r-- 1 root root 6 Oct 25 19:11 temp1_inputlrwxrwxrwx 1 root root 32 Jan 1 1970 usb2_led -> /sys/class/leds/dns320l:blue:usblrwxrwxrwx 1 root root 34 Jan 1 1970 usb_led -> /sys/class/leds/dns320l:orange:usb
Regards,Thomas