thank you Igor!
much appreciated !
Now I get the following error
bash: echo: write error: Device or resource busy
I read that I have to unbind it with:
cd /sys/bus/platform/drivers/ XXX-gpio ; echo XXX-gpio >unbind
but which is our XXX name file for the volume control?
thanks!
EDIT (Solved):
(gpio-46 is USER1/Volume up and gpio-47 is USER2/Volume down, to confirm: cat /sys/kernel/debug/gpio)
here is what I did
cd /sys/bus/platform/drivers/gpio-keys
echo gpio-keys > unbind
echo 46 > /sys/class/gpio/export
with
cat /sys/class/gpio/gpio46/value
we get the value