Permission issues on RPi

Need help? Ask here and someone will help
PMK
Posts: 15
Joined: Wed Oct 18, 2017 2:13 pm

Permission issues on RPi

Post by PMK »

I'd like to use my good old Logitech Formula Force EX (Product ID: 963357-0914 , Link, red PC-Wheel, 12 buttons, two pedals) to my PS4 via Gimx 6.9.1 "Stretch" on a RPi3 running Raspbian Stretch.

I've installed everything using this tutorial and tried some of the hints posted here.

Despite many attempts I still have problems with the permissions.

Code: Select all

libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
seems to be fixed but

Code: Select all

linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
still causes headache... :?

It would be great if one of you could check what needs to be done to make it work.
Thanks a lot in advance!



Here you will find some more detailed information from my console:

Code: Select all

pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'


[size=150]pi@raspberrypi:~ $ sudo rpi-update 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f[/size]
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13403  100 13403    0     0  66734      0 --:--:-- --:--:-- --:--:-- 67015
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 4.9.41-v7+
This update bumps to rpi-4.1.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=113753
##############################################################
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    242      0 --:--:-- --:--:-- --:--:--   242
100 49.4M    0 49.4M    0     0   957k      0 --:--:--  0:00:52 --:--:--  583k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.1.21+
 *** depmod 4.1.21-v7+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f
 *** A reboot is needed to activate the new firmware
pi@raspberrypi:~ $ sudo reboot

pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
^C
pi@raspberrypi:~ $  libusb_open failed with error: Access denied (insufficient permissions) libusb_open failed with error: Access denied (insufficient permissions) libusb_open failed with error: Access denied (insufficient permissions)^C

pi@raspberrypi:/lib/udev/rules.d $ sudo nano 50-udev-default.rules
pi@raspberrypi:/lib/udev/rules.d $ [size=150]sudo chmod 666 /dev/uhi[/size]d
pi@raspberrypi:/lib/udev/rules.d $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)^C
pi@raspberrypi:/lib/udev/rules.d $ gimx-launcher
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
/usr/bin/xdg-open: 709: /usr/bin/xdg-open: : Permission denied


pi@raspberrypi:/lib/udev/rules.d $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
pi@raspberrypi:/lib/udev/rules.d $ sudo reboot

pi@raspberrypi:~ $ sudo gimx-launcher
PuTTY X11 proxy: Unsupported authorisation protocol
20:32:45: Error: Unable to initialize GTK+, is DISPLAY set properly?
pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
[size=150]linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung[/size]
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
[size=150]/usr/bin/xdg-open: 709: /usr/bin/xdg-open: : Permission denied[/size]

-bash: udo: Kommando nicht gefunden.
pi@raspberrypi:~ $ sudo chmod 666 /dev/uhid
pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
pi@raspberrypi:~ $ gimx-launcher
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
pi@raspberrypi:~ $ gimx-launcher
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)

(gimx-config:1660): Gtk-WARNING **: Attempting to store changes into `/home/pi/.local/share/recently-used.xbel', but failed: Datei »/home/pi/.local/share/recently-used.xbel.6UG97Y« konnte nicht angelegt werden: Datei oder Verzeichnis nicht gefunden

(gimx-config:1660): Gtk-WARNING **: Attempting to set the permissions of `/home/pi/.local/share/recently-used.xbel', but failed: Datei oder Verzeichnis nicht gefunden
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)

(gimx-config:1742): Gtk-WARNING **: Attempting to store changes into `/home/pi/.local/share/recently-used.xbel', but failed: Datei »/home/pi/.local/share/recently-used.xbel.KJFG8Y« konnte nicht angelegt werden: Datei oder Verzeichnis nicht gefunden

(gimx-config:1742): Gtk-WARNING **: Attempting to set the permissions of `/home/pi/.local/share/recently-used.xbel', but failed: Datei oder Verzeichnis nicht gefunden
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
pi@raspberrypi:~ $ sudo shutdown

pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
^C
pi@raspberrypi:~ $ sudo chmod 666 /dev/uhid
pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ cd /lib/udev
pi@raspberrypi:/lib/udev $ cd rules.d
pi@raspberrypi:/lib/udev/rules.d $ sudo nano 50-udev-default.rules
pi@raspberrypi:/lib/udev/rules.d $ sudo rpi-update 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Your firmware is already up to date
pi@raspberrypi:/lib/udev/rules.d $ sudo service triggerhappy stop
pi@raspberrypi:/lib/udev/rules.d $ sudo update-rc.d triggerhappy disable
pi@raspberrypi:/lib/udev/rules.d $ sudo nano /etc/systemd/system/gimx.service
pi@raspberrypi:/lib/udev/rules.d $ sudo systemctl daemon-reload

pi@raspberrypi:/lib/udev/rules.d $ sudo systemctl enable gimx && sudo systemctl start gimx
Created symlink /etc/systemd/system/multi-user.target.wants/gimx.service → /etc/systemd/system/gimx.service.
pi@raspberrypi:/lib/udev/rules.d $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
libusb/gusbhid.c:524 claim_device: libusb_claim_interface failed with error: Resource busy
^C
pi@raspberrypi:/lib/udev/rules.d $ sudo reboot

pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
^C
pi@raspberrypi:~ $ sudo chmod 666 /dev/uhid
pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
^C
pi@raspberrypi:~ $ sudo su
root@raspberrypi:/home/pi# groupadd -f input
root@raspberrypi:/home/pi# echo "KERNEL==\"event*\", NAME=\"input/%k\", MODE:=\"660\", GROUP=\"input\"" > /etc/udev/rules.d/99-gimx-input.rules
root@raspberrypi:/home/pi# echo "KERNEL==\"js*\", NAME=\"input/%k\", MODE:=\"664\", GROUP=\"input\"" >> /etc/udev/rules.d/99-gimx-input.rules
root@raspberrypi:/home/pi# chgrp -f input /dev/input/event* /dev/input/js*
root@raspberrypi:/home/pi# chmod -f g+rw /dev/input/event* /dev/input/js*chmod -f g+rw /dev/input/event* /dev/input/js*
root@raspberrypi:/home/pi# chgrp input /usr/bin/gimx-config /usr/bin/gimx-fpsconfig /usr/bin/gimx-launcher
root@raspberrypi:/home/pi# chmod g+s /usr/bin/gimx-config /usr/bin/gimx-fpsconfig /usr/bin/gimx-launcher
root@raspberrypi:/home/pi# exit
exit
pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung


pi@raspberrypi:~ $ linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
-bash: linux/uhidasync.c:249: Datei oder Verzeichnis nicht gefunden
pi@raspberrypi:~ $ uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
guhid_create01:01:05:00:00
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Permission issues on RPi

Post by Matlo »

You can safely ignore these messages for gimx-launcher.
GIMX creator
PMK
Posts: 15
Joined: Wed Oct 18, 2017 2:13 pm

Re: Permission issues on RPi

Post by PMK »

I'd love to. But everytime I press the "Auto-detect" button in the config editor, the editor window freezes with the auto-detect button pressed.
Could this issue be related to the "insufficient permissions" error message?

The notification that the controller was not found is a minor problem but but I'm worried about the immediate freeze on auto-detect.
The wheel is powered and connected as well as the powered off DS4.
Image
Image
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Permission issues on RPi

Post by Matlo »

Error message says "Resource is busy". This very likely refers to your wheel. Another app must be using it.
GIMX creator
PMK
Posts: 15
Joined: Wed Oct 18, 2017 2:13 pm

Re: Permission issues on RPi

Post by PMK »

Could this be another instance of GIMX? For example, if I start GIMX according to the tutorial automatically at boot and also via SSH (to get the UI via Putty)?
And could this be the reason for the freeze when I try to auto-detect the device in the configuration editor?

What I can help to simplify your troubleshooting, for which I thank you very much.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Permission issues on RPi

Post by Matlo »

Absolutely. You should kill it to have appropriate access to devices. It is not a valid use case to use the config editors while gimx is running.
GIMX creator
PMK
Posts: 15
Joined: Wed Oct 18, 2017 2:13 pm

Re: Permission issues on RPi

Post by PMK »

Sounds plausible. :)

I would prefer to disable autostart of GIMX.
Is that's the right way to do?

Code: Select all

sudo systemctl disable gimx
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Permission issues on RPi

Post by Matlo »

Yes, this will disable it if it is run as a service. Maybe you also need to stop the service (replace 'disable' with 'stop').
GIMX creator
PMK
Posts: 15
Joined: Wed Oct 18, 2017 2:13 pm

Re: Permission issues on RPi

Post by PMK »

We are getting closer:

Code: Select all

pi@raspberrypi:~ $ sudo systemctl stop gimx
pi@raspberrypi:~ $ gimx-launcher
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-i                                                                        so10646-1'
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-i                                                                        so10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
linux/uhidasync.c:249 guhid_create: open failed with error: Keine Berechtigung
^C
but when I do this:

Code: Select all

pi@raspberrypi:~ $ sudo chmod 666 /dev/uhid
I can finally capture the button-press within the config editor:

Code: Select all

pi@raspberrypi:~ $ gimx-launcher
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)

(gimx-config:687): Gtk-WARNING **: Attempting to store changes into `/home/pi/.l                                                                        ocal/share/recently-used.xbel', but failed: Datei »/home/pi/.local/share/recentl                                                                        y-used.xbel.OOZJ8Y« konnte nicht angelegt werden: Datei oder Verzeichnis nicht g                                                                        efunden

(gimx-config:687): Gtk-WARNING **: Attempting to set the permissions of `/home/p                                                                        i/.local/share/recently-used.xbel', but failed: Datei oder Verzeichnis nicht gef                                                                        unden
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-i                                                                        so10646-1'
native mode is already enabled for HID device 01:01:05:00:00 (PID=c294)
^C
PMK
Posts: 15
Joined: Wed Oct 18, 2017 2:13 pm

Re: Permission issues on RPi

Post by PMK »

After tweaking my configuration (my "EX" wheel was detected as "RX"), I can say that everything works like a charm.

Not sure why "chmod 666 /dev/uhid" changed anything because I did it yesterday already.

Thanks for your great support and GIMX.
Post Reply