Linvincible wrote: 
> Hello,
> 
> I finally updated to V1.19
> I used the port GPIO 22 to receive/send a signal to a power board that
> cuts cleanly the power after the pi has shutdown
> 
> Since upgrade to V1.19l, I can't write in /sys/class/gpio/export any
> more :
> 
> tc@piCorePlayer:~$ echo "22" > /sys/class/gpio/export
> sh: write error: Device or resource busy
> 
> But I can't see any process locking that file, and the file is empty:
> 
> tc@piCorePlayer:~$ sudo lsof /var/lib/dpkg/lock |grep export
> tc@piCorePlayer:~$ 
> 
> Any idea why?
> 
> Thanks in advance!

Hi Linvincible,

I don't think we have done anything to change GPIOs. We don't actually
do anything with GPIOs as far as I know.

I'd suggest this code.


Code:
--------------------
    $ sudo sh -c 'echo "22" > /sys/class/gpio/unexport'
  $ sudo sh -c 'echo "22" > /sys/class/gpio/export'
--------------------


regards
Greg


------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to