Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not open /dev/hidraw0 for write but PTT works #558

Open
rubberduck203 opened this issue Jan 10, 2025 · 0 comments
Open

Could not open /dev/hidraw0 for write but PTT works #558

rubberduck203 opened this issue Jan 10, 2025 · 0 comments

Comments

@rubberduck203
Copy link

I get this error message whenever I transmit, but the PTT does trigger and my radio does transmit.

Could not open /dev/hidraw0 for write, errno=13
Type "ls -l /dev/hidraw0" and verify that it has audio group rw similar to this:
    crw-rw---- 1 root audio 247, 0 Oct  6 19:24 /dev/hidraw0
rather than root-only access like this:
    crw------- 1 root root 247, 0 Sep 24 09:40 /dev/hidraw0
ERROR:  PTT for channel 0 has failed.  See User Guide for troubleshooting tips.

This is what I get when I run ls -l. Notice that . that indicates something SELinux that I don't completely understand.

ls -l /dev/hidraw0
crw-rw----. 1 root audio 241, 0 Jan 10 17:05 /dev/hidraw0ls -Z /dev/hidraw0
system_u:object_r:usb_device_t:s0 /dev/hidraw0

Other system information:

My udev rules

cat /etc/udev/rules.d/99-direwolf-cmedia-rules.rules
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0d8c", GROUP="audio", MODE="0660"
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="7388", GROUP="audio", MODE="0660"

cm108 output

cm108
    VID  PID   Product                          Sound                  ADEVICE        ADEVICE            HID [ptt]        
    ---  ---   -------                          -----                  -------        -------            ---------        
**  0d8c 0012  USB Audio Device                 /dev/snd/controlC0                                       /dev/hidraw0
**  0d8c 0012  USB Audio Device                 /dev/snd/pcmC0D0c      plughw:0,0     plughw:Device,0    /dev/hidraw0
**  0d8c 0012  USB Audio Device                 /dev/snd/pcmC0D0p      plughw:0,0     plughw:Device,0    /dev/hidraw0

** = Can use Audio Adapter GPIO for PTT.

My config file (stripped of comments)

#ADEVICE  plughw:1,0
ADEVICE plughw:0,0

CHANNEL 0
MYCALL redacted
MODEM 1200
PTT CM108
AGWPORT 8000
KISSPORT 8001
IGTXLIMIT 6 10

Dire Wolf version 1.7
OS: Fedora


Ultimately doesn't seem like an actual problem because the PTT works and I can TX, but I would want someone to report this kind of thing to me if it was my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant