Problems with KODI & Linux Mint 21 Vanessa

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Tallguy297
Level 1
Level 1
Posts: 6
Joined: Thu Aug 18, 2022 12:58 am
Location: St. Marys, NSW, Australia
Contact:

Problems with KODI & Linux Mint 21 Vanessa

Post by Tallguy297 »

I have installed KODI using this install script on Linux Minx 21 (Vanessa) edition.

Code: Select all

#!/usr/bin/env bash

echo -e '\ec\033[1;33mInstalling \033[1;34mKODI Media Centre\033[0m'
add-apt-repository -y ppa:team-xbmc/ppa
apt-get -y -qq update >/dev/null
apt-get -y -qq install lightdm >/dev/null
apt-get -y -qq install kodi >/dev/null
apt-get -y -qq install --install-suggests kodi >/dev/null
apt-get -y -qq install kodi-inputstream-adaptive >/dev/null
apt-get -y -qq install libbluray-bdj >/dev/null

## Creating KODI Profile for autoboot (without password)
adduser --disabled-password --disabled-login --gecos "" kodi >/dev/null
usermod -a -G cdrom,audio,video,plugdev,netdev,users,dialout,dip,input kodi >/dev/null
echo [Seat:*]>/etc/lightdm/lightdm.conf
echo autologin-user=kodi>>/etc/lightdm/lightdm.conf
echo autologin-session=kodi>>/etc/lightdm/lightdm.conf

## Keymap settings...
mkdir -p /home/kodi/.kodi/userdata/keymaps
touch /home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '<keymap>'>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '  <global>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '    <keyboard>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <backslash>noop</backslash>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <minus>noop</minus>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <plus>noop</plus>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <equals>noop</equals>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <volume_mute>noop</volume_mute>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <volume_down>noop</volume_down>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <volume_up>noop</volume_up>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <numpadminus>noop</numpadminus>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '      <numpadplus>noop</numpadplus>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '    </keyboard>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '  </global>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml
echo -e '</keymap>'>>/home/kodi/.kodi/userdata/keymaps/keyboard.xml

## Change Audio settings to RAW for Digital Surround...
mkdir -p /home/kodi/.config/pulse
cp -f /etc/pulse/client.conf /home/kodi/.config/pulse
sed -i 's/; autospawn = yes/  autospawn = no/g' /home/kodi/.config/pulse/client.conf
Upon reset my system boots straight into KODI.
I have tried to set up apps like the weather but KODI will not connect to the internet.
I am using a wireless connection.
If I exit out of KODI to boot into Linux Mint using the terminal command I can quite clearly see there is a WiFi connection.

Code: Select all

ifconfig

enp2s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 90:2b:34:a4:bc:b1  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 960  bytes 108823 (108.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 960  bytes 108823 (108.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.5  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::686b:cb3d:5695:d183  prefixlen 64  scopeid 0x20<link>
        ether d0:37:45:7b:c0:25  txqueuelen 1000  (Ethernet)
        RX packets 5298  bytes 1589758 (1.5 MB)
        RX errors 0  dropped 0  overruns 0  frame 4347
        TX packets 1785  bytes 558128 (558.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 18
Sharing files, browsing the internet using Firefox, pinging ip addresses - NO PROBLEM.
Using Prior Linux Mint versions there was absolutely NO problem.

Any ideas??

Thank you...
Last edited by LockBot on Sat Feb 18, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
spamegg
Level 14
Level 14
Posts: 5016
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by spamegg »

Try adding a 10-20 second delay to KODI launch. So you first boot and connect to the Internet, then KODI launches. Maybe that will help?
Tallguy297
Level 1
Level 1
Posts: 6
Joined: Thu Aug 18, 2022 12:58 am
Location: St. Marys, NSW, Australia
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by Tallguy297 »

That is possible if KODI was started as an autostart file, but in this case no.

In this script, KODI is forced to run first by modifying the lightdm.conf file.
More information on this subject can be found here.

Code: Select all

## Creating KODI Profile for autoboot (without password)
adduser --disabled-password --disabled-login --gecos "" kodi >/dev/null
usermod -a -G cdrom,audio,video,plugdev,netdev,users,dialout,dip,input kodi >/dev/null
echo [Seat:*]>/etc/lightdm/lightdm.conf
echo autologin-user=kodi>>/etc/lightdm/lightdm.conf
echo autologin-session=kodi>>/etc/lightdm/lightdm.conf
Staying on topic.
Does anybody know why I would be having internet issues with Linux Mint Vanessa 21 when these issues have not appeared in earlier linux mint versions?

Thank you...
Tallguy297
Level 1
Level 1
Posts: 6
Joined: Thu Aug 18, 2022 12:58 am
Location: St. Marys, NSW, Australia
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by Tallguy297 »

Anybody??
Last edited by Tallguy297 on Tue Aug 30, 2022 7:46 pm, edited 1 time in total.
User avatar
spamegg
Level 14
Level 14
Posts: 5016
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by spamegg »

Great! Mark your top post as [SOLVED], thanks!
Image
Tallguy297
Level 1
Level 1
Posts: 6
Joined: Thu Aug 18, 2022 12:58 am
Location: St. Marys, NSW, Australia
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by Tallguy297 »

Actually I was premature. I did a clean installation of Vanessa 21 today.
The wireless started to work and I was watching a few free to air programs on KODI.
When I reset the PC the wireless was no longer through KODI but working fine on Linux Mint.
I cannot figure out why? (Please refer to previous posts).

Any ideas??

Thank you...
User avatar
spamegg
Level 14
Level 14
Posts: 5016
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by spamegg »

Please share your system info by entering the command inxi -Fxxxmprz into a Terminal and posting its output here.
Tallguy297
Level 1
Level 1
Posts: 6
Joined: Thu Aug 18, 2022 12:58 am
Location: St. Marys, NSW, Australia
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by Tallguy297 »

Output as requested...

Code: Select all

>inxi -Fxxxmprz

System:    Kernel: 5.15.0-46-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 dm: LightDM 1.30.0 
           Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Desktop Mobo: Gigabyte model: F2A75-D3H v: x.x serial: N/A BIOS: American Megatrends v: F5a date: 05/30/2013 
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Touch Keyboard K400 serial: <filter> 
           charge: 100% (should be ignored) rechargeable: yes status: Discharging 
Memory:    RAM: total: 14.83 GiB used: 2.12 GiB (14.3%) 
           Array-1: capacity: 32 GiB note: est. slots: 4 EC: None max module size: 8 GiB note: est. 
           Device-1: Node0_Dimm0 size: 8 GiB speed: 1600 MT/s type: DDR3 detail: synchronous unbuffered (unregistered) 
           bus width: 64 bits total: 64 bits manufacturer: Kingston part-no: 99U5471-039.A serial: <filter> 
           Device-2: Node0_Dimm1 size: 8 GiB speed: 1600 MT/s type: DDR3 detail: synchronous unbuffered (unregistered) 
           bus width: 64 bits total: 64 bits manufacturer: Kingston part-no: 99U5471-050.A serial: <filter> 
           Device-3: Node0_Dimm2 size: No Module Installed 
           Device-4: Node0_Dimm3 size: No Module Installed 
CPU:       Topology: Quad Core model: AMD A10-6800K APU with Radeon HD Graphics bits: 64 type: MCP arch: Piledriver rev: 1 
           L1 cache: 192 KiB L2 cache: 2048 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 32740 
           Speed: 3702 MHz min/max: 2000/4100 MHz boost: enabled Core speeds (MHz): 1: 3702 2: 3205 3: 3178 4: 2904 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Richland [Radeon HD 8670D] driver: radeon v: kernel bus ID: 00:01.0 
           chip ID: 1002:990c 
           Display: server: X.Org 1.20.13 driver: ati,radeon unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD ARUBA (DRM 2.50.0 / 5.15.0-46-generic LLVM 12.0.0) v: 4.3 Mesa 21.2.6 compat-v: 3.1 
           direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Trinity HDMI Audio driver: snd_hda_intel v: kernel bus ID: 00:01.1 
           chip ID: 1002:9902 
           Device-2: Advanced Micro Devices [AMD] FCH Azalia vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 00:14.2 
           chip ID: 1022:780d 
           Device-3: Microsoft LifeCam Cinema type: USB driver: snd-usb-audio,uvcvideo bus ID: 1-4:2 chip ID: 045e:075d 
           Sound Server: ALSA v: k5.15.0-46-generic 
Network:   Device-1: Broadcom and subsidiaries BCM4360 802.11ac Wireless Network Adapter driver: wl v: kernel port: f100 
           bus ID: 01:00.0 chip ID: 14e4:43a0 
           IF: wlp1s0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169 v: kernel 
           port: e000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: enp2s0 state: down mac: <filter> 
Drives:    Local Storage: total: 9.21 TiB used: 2.02 TiB (21.9%) 
           ID-1: /dev/sda vendor: Samsung model: MZNTY128HDHP-000L1 size: 119.24 GiB speed: 6.0 Gb/s serial: <filter> 
           rev: 3L0Q temp: 27 C scheme: MBR 
           ID-2: /dev/sdb vendor: Western Digital model: WD100EFAX-68LHPN0 size: 9.10 TiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 0A83 temp: 31 C scheme: GPT 
Partition: ID-1: / size: 116.81 GiB used: 18.81 GiB (16.1%) fs: ext4 dev: /dev/sda1 
           ID-2: /mnt/shared_media size: 9.10 TiB used: 2.00 TiB (22.0%) fs: ntfs dev: /dev/sdb1 
Sensors:   System Temperatures: cpu: 20.9 C mobo: N/A gpu: radeon temp: 11 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb https://mirror.aarnet.edu.au/pub/linuxmint-packages una main upstream import backport
           2: deb http://mirror.aarnet.edu.au/pub/ubuntu/archive focal main restricted universe multiverse
           3: deb http://mirror.aarnet.edu.au/pub/ubuntu/archive focal-updates main restricted universe multiverse
           4: deb http://mirror.aarnet.edu.au/pub/ubuntu/archive focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/ondrej-apache2-focal.list 
           1: deb http://ppa.launchpad.net/ondrej/apache2/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/ondrej-php-focal.list 
           1: deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/team-xbmc-ppa-focal.list 
           1: deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu focal main
Info:      Processes: 232 Uptime: 5h 21m Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Shell: bash (sudo) 
           v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
User avatar
spamegg
Level 14
Level 14
Posts: 5016
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by spamegg »

I've heard that Broadcom network devices can have issues on Linux but I don't know enough about them. Maybe someone else can help.
Tallguy297
Level 1
Level 1
Posts: 6
Joined: Thu Aug 18, 2022 12:58 am
Location: St. Marys, NSW, Australia
Contact:

Re: Problems with KODI & Linux Mint 21 Vanessa

Post by Tallguy297 »

I decided to reinstall Linux Mint Vanessa Mint 21 from scratch and then KODI.
KODI was working fine for a while until I decided to reboot the PC.
After which KODI was working but no internet connection.
The only way to exit was to Control-Alt-F4 into Linux Mint.

When I physically unplugged the PC from the mains for approx 10 seconds, plugged the power back in, turned the PC on to get back into KODI, everything seemed to working OK. The internet seemed to working OK according to the weather display in the top right hand corner.
However none of my streaming apps would work.

I have been advised that there could be a problem with my wireless card, so I used an Ethernet cable instead hooked directly to my router. SAME RESULT!!

PLEASE NOTE: This problem did not occur with Linux Mint 20.3 Una or versions prior to 20.3, only with this current release 21 Vanessa.

I understand that the apt-key & apt-get-repository functions are now deprecated. Some programs like KODI, Webmin etc. still use this.
Maybe the way I am installing this software is incorrect?

Anybody have any ideas??

Thank you...
Locked

Return to “Software & Applications”