• 1
  • 334
  • 335
  • 336(current)
  • 337
  • 338
  • 342
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server
You said, that you used the "manual" in the first post - what's broken with this systemd file?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
Just quick info. If some of you have problems with freezing screen while playing videos using AMD Athlon 200GE (or any other Raven Ridge with Vega graphics), you can try kernel and firmware binaries from github M-Bab linux-kernel-amdgpu-binaries that helped me to get rid of this freezing, accompanied with kernel message "amdgpu *ERROR* ring gfx timeout". Even though I was using Ubuntu 18.04 with mainline kernel 5.1.20 with unstable Padoka PPA mesa drivers 19.2, the issue was still there :-(. I tried newest mainline kernel 5.2.x but I couldn't boot with it. Then I tried compiled M-Bab's DEBs with kernel 5.2.x and it saved me a lot of pain :-). You can try it if you have similar problems.
Reply
Hello!

I have Asrock Q1900-ITX motherboard, with 4 GB RAM and 3 x 2 TB HDD and I've put new SSD in, decided that I'm gonna install server 18.04.2, by these instructions. Everything, from installation to final reboot, worked without hiccups. But I get freezes, as I see, randomly. I was just listening to music, and it froze. Before that, I was copying music from older drive to newer, through the File Manager in Kodi, froze after about 30-45 minutes.
Drives have been checked, SMART OK, scan shows no bad sectors.
Everything stops. I can't SSH to machine, Kore disconnects and tries to reconnect. Picture is frozen, there is no sound.

Here are logs, can you see anything there?

dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/p/GYsPQkS5Rj/

DISPLAY=:0 vainfo | pastebinit
http://paste.ubuntu.com/p/PpqgJs87yx/

id | pastebinit
http://paste.ubuntu.com/p/8Sr776brhs/

amixer | pastebinit
http://paste.ubuntu.com/p/pnFxHxgNp5/

Manually added, pastebinit didn't work:

Xorg
https://pastebin.com/RH0jBitj

Kodi Old Log (after reboot)
https://pastebin.com/SUGCW6pm

Kodi log
https://pastebin.com/RNcGYsWP
Reply
Sadly old known bug: 
- Disable all the C-States (Alt 1)
- Get a newer uptodate kernel (Alt 2)

More information: https://bugzilla.kernel.org/show_bug.cgi?id=109051

Apply this manually to 5.3: https://cgit.freedesktop.org/drm-intel/c...5c8c4ffd95 <- seems the best fix I have seen for now, though Alt 1 also works, if you don't care about power consumption.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
(2019-08-01, 20:32)hlloyge Wrote: Hello!

I have Asrock Q1900-ITX motherboard, with 4 GB RAM and 3 x 2 TB HDD and I've put new SSD in, decided that I'm gonna install server 18.04.2, by these instructions. Everything, from installation to final reboot, worked without hiccups. But I get freezes, as I see, randomly. I was just listening to music, and it froze. Before that, I was copying music from older drive to newer, through the File Manager in Kodi, froze after about 30-45 minutes.
Drives have been checked, SMART OK, scan shows no bad sectors.
Everything stops. I can't SSH to machine, Kore disconnects and tries to reconnect. Picture is frozen, there is no sound.

Here are logs, can you see anything there?

dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/p/GYsPQkS5Rj/

DISPLAY=:0 vainfo | pastebinit
http://paste.ubuntu.com/p/PpqgJs87yx/

id | pastebinit
http://paste.ubuntu.com/p/8Sr776brhs/

amixer | pastebinit
http://paste.ubuntu.com/p/pnFxHxgNp5/

Manually added, pastebinit didn't work:

Xorg
https://pastebin.com/RH0jBitj

Kodi Old Log (after reboot)
https://pastebin.com/SUGCW6pm

Kodi log
https://pastebin.com/RNcGYsWP

Welcome to the wonderful world of Bayfail https://bugzilla.kernel.org/show_bug.cgi?id=109051
TLDR: Not a Kodi problem, your cpu is crap. Thank Intel.
Some patches or workarounds from the lengthy link above may help.
This has been known for 3 and a half years now, still not fixed.
Reply
Don't be so pesimistic, they still work on it - see the patch I posted, that's just a very few days old.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
(2019-08-01, 21:28)fritsch Wrote: Sadly old known bug: 
- Disable all the C-States (Alt 1)
- Get a newer uptodate kernel (Alt 2)

More information: https://bugzilla.kernel.org/show_bug.cgi?id=109051

Apply this manually to 5.3: https://cgit.freedesktop.org/drm-intel/c...5c8c4ffd95 <- seems the best fix I have seen for now, though Alt 1 also works, if you don't care about power consumption.
I will try to disable C states, but this has to do something with onboard video card; as I said, I had Kodibuntu until now, and it has been working (almost) flawlessly, only I can't use Kodi 18 with it. Here and there video would freeze, but that was, like 3 times a year. Audio would sometimes go buzzing for every GUI click, also, few times a year. I can live with that.
This has frozen, like, 10 times in two hours. I've exited Kodi application and dropped to CLI to copy my audio archive from old to new disk which I've installed into computer, and that has been runing 4 hours of estimated 11.
So it's either graphic driver's fault, or Kodi as an app. Considering that same app is working on nVidia and ATI cards, drivers.
Tomorrow I will try that C1 state, my knowledge isn't good enough to apply patches. I hope it won't raise CPU temp too high.

Would something like this help?
Zotac GeForce GT 710 1GB PCIE x 1

It can be found cheaply.
Reply
No. Not all.

Add the max cstate and see.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
Hi hlloyge,
i made the same experience with this Q1900 board.
Put this line in your /etc/default/grub:

Code:
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet intel_pstate=disable intel_idle.max_cstate=1"

don't forget a "update-grub"
Asrock J5040 powered by Ubuntu 24.04 and KODI
Reply
(2019-08-03, 16:04)Schenckmeier Wrote: Hi hlloyge,
i made the same experience with this Q1900 board.
Put this line in your /etc/default/grub:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet intel_pstate=disable intel_idle.max_cstate=1"

don't forget a "update-grub" 
OK.
I've added only that max_cstate thingie, and it works well. I was afraid that speedstep won't work, but it works. No freezing in last 48 hours, box is constantly turned on, I've been checking temperatures, everything looks normal... for now.
What does that pstate thingie do? Disables speedstep?
Reply
It disables internal power states. So, yes it will use more power. Speedstep will, as you see, work properly.


If you can, build the above patch. I can do that for you if you need that.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
For the BYT: http://fritsch.fruehberger.net/kernel/bytfix-5.2/ 

Download both files in one directory and install them in one go via:

Code:
sudo dpkg -i linux-image-5.2.1-byt1+_5.2.1-byt1+-10.00.Custom_amd64.deb linux-headers-5.2.1-byt1+_5.2.1-byt1+-10.00.Custom_amd64.deb
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
(2019-08-04, 07:49)fritsch Wrote: It disables internal power states. So, yes it will use more power. Speedstep will, as you see, work properly.


If you can, build the above patch. I can do that for you if you need that.
Thank you very much, but I will wait for official release. It works this way for me, the box doesn't consume much electricity as it is, CPU temperatures are normal, I don't use sleep or standby modes (it is always turned on) anyways.
You've been most helpful. Thank you.

Now, if anyone knows how to make boot screen logos, to cover the boot process logs, I would be grateful.
I've found some in this thread, but it is for older version of Ubuntu, I have 18.04.2, latest LTS.
Reply
Excellent walkthrough, thank you very much, it worked perfectly for me.

The only difficulty I had was getting my mce IR remote to work afterwards and couldn't find the right answer with a search so leaving this here to help others.

lirc is not installed by default with kodi on ubuntu server 18.04, so install it with the following.
Code:
sudo apt-get install lirc lirc-compat-remotes

Once lirc is installed, each keypress on the remote caused multiple repeated actions in kodi. For example, pressing KEY_DOWN once on the remote in the main menu would quickly scroll through every item until it reached the bottom. To fix this, the lircd-uinput service needs to be stopped and disabled to prevent it from starting again at boot.

Code:
sudo systemctl stop lircd-uinput.service
sudo systemctl disable lircd-uinput.service

The official kodi wiki also recommends disabling lircd.socket as kodi should create its own socket, but this wasn't a problem for me so I left it.

When trying to get this to work, I found that installing ir-keytable seemed to cause a conflict and I could only get things working correctly with it removed.
Reply
I've upgraded to 19.10 (eoan). I removed kodi and re-added the nightly ppa. (otherwise instructions followed above as before).

sudo apt-get install kodi

The following packages have unmet dependencies.
 kodi : Depends: kodi-x11 (< 2:19.0+git20200107.0307-e9806a39ab-0eoan.1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

cat team-xbmc-ubuntu-xbmc-nightly-eoan.list 
deb http://ppa.launchpad.net/team-xbmc/xbmc-nightly/ubuntu eoan main

Any ideas on how to fix please? It works if I install the disco version.. workaround for now I guess.

Update: installed stable version without issue on eoan for now.
Reply
  • 1
  • 334
  • 335
  • 336(current)
  • 337
  • 338
  • 342

Logout Mark Read Team Forum Stats Members Help
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server18