use nanosecond resolution and /var/run for powerbutton handling