重启后
~$ arecord -l
arecord: device_list:270: no soundcards found...
和
$ sudo arecord -l
**** List of CAPTURE Hardware Devices ****
Home directory not accessible: Permission denied
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
如果我这样做
sudo chmod -R a+rw /dev/snd
人们arecord
开始看到没有sudo
.
不幸的是,重启后就没有权限了。
如何让设备默认对普通用户可读?
答案1
我要把自己添加到audio
群组中。这是群主/dev/snd/*