[kodi-rpi 19.2-1] USB not working

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

[kodi-rpi 19.2-1] USB not working

Postby unformatted » Sun Oct 10, 2021 9:49 am

I just installed aarch64 on RPi4, switched kernel to linux-raspsberrypi4 and installed kodi. While I'm in a terminal both keyboard and remote on USB are working. When I start kodi they don't work anymore.
$this->bbcode_second_pass_code('', '
[user@PC19 ~]$ uname -r
5.10.63-18-raspberrypi4-ARCH
')
unformatted
 
Posts: 121
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] USB not working

Postby graysky » Sun Oct 10, 2021 10:13 am

Cannot reproduce here. On aarch64, same kernel, same kodi. USB keyboard works before and after loading. Anything in journalctl, dmesg, or kodi.log (set to debug mode)? If you exit kodi, does the keyboard come back to life? Have you tried different USB ports?
graysky
Developer
 
Posts: 1883
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi 19.2-1] USB not working

Postby unformatted » Sun Oct 10, 2021 10:41 am

I cannot set kodi to debug mode because I have no control. Anyway, I've attached dmesg, journalctl and kodi log. If I quit kodi using ctrl-c then I have keyboard and remote working. I tried all 4 usb ports.
unformatted
 
Posts: 121
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] USB not working

Postby unformatted » Sun Oct 10, 2021 10:46 am

Well, attachments don't work so here's pastebin.

dmesg:
https://pastebin.com/hhhtVUhB

journalctl -p 3 -b:
https://pastebin.com/5WK5DHyQ

kodi.log:
https://pastebin.com/UUXAxL35
unformatted
 
Posts: 121
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] USB not working

Postby graysky » Sun Oct 10, 2021 12:16 pm

$this->bbcode_second_pass_quote('unformatted', 'I')f I quit kodi using ctrl-c then I have keyboard and remote working. I tried all 4 usb ports.

Ah, you're running kodi as your user. It should be noted that running kodi from x11 on RPi4 offers none of the hardware decoding for video. You will need to provision your user like the kodi package does for the kodi user.

https://github.com/graysky2/kodi-standa ... users.conf

Stop x11 and try starting kodi with the systemd service.
graysky
Developer
 
Posts: 1883
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi 19.2-1] USB not working

Postby unformatted » Sun Oct 10, 2021 12:55 pm

Yes I run kodi as my "regular" user using "/usr/bin/kodi-standalone" from the terminal. Actually I use a bash startup script using dialog which gives me a menu with "LXDE" and "Kodi". This way I can start kodi from the menu and when I exit kodi, I'm back in the menu and can start my LXDE desktop session.

Using "sudo systemctl start kodi.service" works but I want to run kodi as my regular user, having .kodi folder in my /home/user folder, not in /root folder.

On my other RPI4 ARMv7 with kodi-rpi 19.1-11 using "/usr/bin/kodistandalone" works. For some reason on AArch64 with linux-raspberrypi4 kernel and kodi-rpi 19.2-1 using "/usr/bin/kodi-standalone" from terminal I cannot control kodi with keyboard or remote anymore.

So can I use "/usr/bin/kodi-standalone" command if I provide my user as you described?

If so, I would have to create "/etc/sysusers.d/sysusers.conf" as follows? I am user and belong to users group.
$this->bbcode_second_pass_code('', '

# override these settings by copying this to /etc/sysusers.d/ and modifying it therein

# Type Name ID GECOS Home directory Shell
g users - -
u user - "Kodi User" /var/lib/kodi

# supplemental groups
m users audio
m users input
m users video
m users disk
m users network
m users optical
m users power
m users storage
m users tty
')
unformatted
 
Posts: 121
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] USB not working

Postby graysky » Sun Oct 10, 2021 2:15 pm

Your regular user needs to be in the supplemental groups. Google usermod or see the Arch wiki. The systemd service is the most secure way to run kodi and It Just Works™
graysky
Developer
 
Posts: 1883
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 12 guests