WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: dtoverlay not working  (Read 2054 times)

Offline wesley1

  • Newbie
  • *
  • Posts: 5
dtoverlay not working
« on: August 06, 2020, 01:46:58 AM »
Hi, I wasn't able to get dtoverlay to work in tinycore. Although the same modification to the config.txt file works in raspbian.

This is what I am trying to add
dtoverlay=gpio-shutdown

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1267
Re: dtoverlay not working
« Reply #1 on: August 06, 2020, 07:56:14 AM »
That overlay does nothing without something monitoring the kernel events.

If you read this,
https://github.com/raspberrypi/linux/blob/8ae5f3e1ecf0c41cb788d90c048a10c27e8aaa02/arch/arm/boot/dts/overlays/README#L860

You will notice it only generates keyboard event.  Almost none of the commands Listed in that help doc will work under piCore, you will have to make a variant of the udev rule to call a shutdown script, or just make a little program to monitor kernel keyboard events.