Off-button reaction time just temporary?

Xiangfu Liu xiangfu at sharism.cc
Mon Aug 22 02:47:50 EDT 2011


Hi

thanks Bas, kyak, Cristian Paul

committed at : http://qi-hw.com/p/openwrt-packages/0ffd3d0

On 08/21/2011 12:25 AM, kyak wrote:
> Make sure to include it in your startup scripts, otherwise it will work only once!
>
> On Sat, 20 Aug 2011, Cristian Paul Peñaranda Rojas wrote:
>
>> I noticed the On button time increase again as usual
>> if you wait some minutes to power on the ben again.
>>
>> Can someone confirm this?
>>
>>
>> On Sat, Aug 20, 2011 at 01:32:40PM +0400, kyak wrote:
>>> Wow, wow, wow!
>>>
>>> Just tried it with "/usr/bin/poke 0x10003024 0".
>>> The reaction to On button is instantanious!!!
>>>
>>> Xiangfu, how about putting this to our start script?
>>> Bas, this is absolutely awesome, thank you!
>>>
>>> On Wed, 17 Aug 2011, Bas Wijnen wrote:
>>>
>>>> Andrea Bolognani schreef op wo 17-08-2011 om 12:17 [+0200]:
>>>>> Hold on a second: either I’m utterly mistaken, or the kernel is still far
>>>>> from being kicked in when the power button is pressed.
>>>>
>>>> That is correct. But the delay is made by the rtc, which can be set up
>>>> when the kernel is running. It will retain its value as long as the rtc
>>>> has power (that is, when you remove the battery, you lose both the
>>>> current time and this setting).
>>>>
>>>>> I always assumed
>>>>> the circuitry needed that delay, and it was not avoidable.
>>>>
>>>> It is avoidable, and I don't see a reason to use it.
>>>>
>>>>> Are you telling me that I’ve been wrong the whole time, and that it is
>>>>> possible to achieve instant—boot making changes to the software only?
>>>>
>>>> Yes. If the kernel sets the rtc register, it will instant-boot from then
>>>> on, until the power on the rtc goes down (which should never happen).
>>>>
>>>> I propose to write the rtc register on every boot, so that even if the
>>>> battery was removed and the setting was lost, it still only results in
>>>> the delay once.
>>>>
>>>> I'm talking about register HWFCR, page 131 of the programmer's manual.
>>>> Writing 0 to this register (0x10003024) will remove the delay.
>>>>
>>>> Thanks,
>>>> Bas
>>>>




More information about the discussion mailing list


interactive