Christian
Ox820: gpio-keys-polled does not provide /dev/input/eventx April 18, 2020 02:34AM |
Christian
Re: Ox820: gpio-keys-polled does not provide /dev/input/eventx April 18, 2020 05:40AM |
Re: Ox820: gpio-keys-polled does not provide /dev/input/eventx April 19, 2020 03:09AM |
Admin Registered: 13 years ago Posts: 18,821 |
Christian
Re: Ox820: gpio-keys-polled does not provide /dev/input/eventx April 19, 2020 08:41AM |
Christian
[Solved] Re: Ox820: gpio-keys-polled does not provide /dev/input/eventx April 30, 2020 12:45PM |
Re: [Solved] Re: Ox820: gpio-keys-polled does not provide /dev/input/eventx April 30, 2020 04:30PM |
Admin Registered: 13 years ago Posts: 18,821 |
Christian
[Solved] Ox820: gpio-keys-polled does not provide /dev/input/eventx May 01, 2020 06:48AM |
#!/bin/bash # # copybtn # # This script is executed by esekeyd daemon when # "Copy-Key"/"KEY_133" gets pressed. # # If button is pressed < 2sec a reboot is executed. # If button is pressed > 2sec a shutdown is executed. # # Make sure that the script will "exit 0" on success or any other # value on error. #unload kernel module "gpio_key_polled" because it locks the gpio line inside chardev gpiochip32/GPIO1 rmmod gpio_keys_polled # switch off blue LED to signalize to the user, that press of copy button has been detected echo none > /sys/class/leds/zyxel:blue:status/trigger # export GPIO1/channel13 to make button status readable by "value" echo 45 > /sys/class/gpio/export # wait for 2 seconds sleep 2 # read current status of copy button after 2 seconds var=$(cat /sys/class/gpio/gpio45/value) if [ "$var" = "1" ]; then # show "reboot" by blue LED performing "Heartbeat" echo heartbeat > /sys/class/leds/zyxel:blue:status/trigger shutdown -r now else # show "shutdown" by red LED "permanent on" echo default-on > /sys/class/leds/zyxel:red:status/trigger shutdown -h now fi exit 0
Re: [Solved] Ox820: gpio-keys-polled does not provide /dev/input/eventx May 01, 2020 05:16PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
https://forum.doozan.com/read.php?2,23630
Key daemon (button control)
Multimedia keyboard daemon for Linux
How to use set up button to reboot or shutdown with Key Daemon (esekeyd)
Re: [Solved] Ox820: gpio-keys-polled does not provide /dev/input/eventx May 11, 2022 01:49PM |
Registered: 2 years ago Posts: 53 |
root@debian:/etc/init.d# rmmod gpio_keys_polled rmmod: ERROR: Module gpio_keys_polled is not currently loaded
Re: [Solved] Ox820: gpio-keys-polled does not provide /dev/input/eventx May 11, 2022 03:20PM |
Admin Registered: 13 years ago Posts: 18,821 |