[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#794266: shutdown of QNAP TS-41x should work soon



Control: tag 794266 + pending

Hello,

I committed a fix for this problem to the kernel's sid branch and
prepared a backport to jessie that probably will go in soon.
I don't know the plans when these will be uploaded though.

The problem is the following: The rtc can wakeup the machine with an
alarm interrupt. The currently available kernels fail to acknowledge
this interrupt with the result that the respective irq line stays low
and after a shutdown the machine is instantly restarted.

Unfortunately if the bug already triggered the fixed kernel isn't able
to detect this because the flag that signals the irq being active can
only be read once (which is IMHO a hardware design flaw).

To acknowledge the interrupt do the following as root:

	apt install i2c-tools
	echo 0-0030 > /sys/bus/i2c/devices/0-0030/driver/unbind
	i2cget -y 0 0x30 0x80

(The last command probably issues an ugly error message, no need to
panic. A better command would be:

	i2ctransfer -y 0 w1@0x30 0x80

but i2ctransfer isn't available in Debian yet.)

After that a shutdown should be possible and it should not reappear once
you have the new kernel. Until then don't fiddle with the alarm of the
rtc.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature


Reply to: