Re: Unable to access pigpio without sudo.

Wed Jul 26, 2017 7:39 pm

As a follow-up to my own post, I discovered a way to make it work. The USB audio adapter I'm using doesn't work when the calling program has root privilege. The way around this is to give the executable root privilege, but run it as user. To give an executable root privilege:

sudo chown root:root my_program
sudo chmod 4755 my_program

This allows PIGPIO to run as root, but creating threads with pthread that run as user.

The fastest code is none at all 

 

'Raspberry Pi' 카테고리의 다른 글

Installing OpenCV on Raspberry  (0) 2020.11.24
Raspberry wifi  (0) 2020.11.24
Raspberry audio in c  (0) 2020.11.24
Duplicate sdcard  (0) 2020.11.24
Disable removable popup  (0) 2020.11.24
Posted by 굿쏘
,