Screen black/freeze when switch to 1080p@50Hz
#1
I have enabled adjust refresh, but when it chooses 1080p@50Hz (with 25/50fps movies) the screen freeze or go black with only the cursor, but Kodi continue to run in background (I can listen movie and gui sound).

This is the kodi.log with debug enabled: https://pastebin.com/UP6GMm1A
This is the xrandr output: https://pastebin.com/f5GjagNL

I think can be related to the two 1920x1080@50Hz display setting found by xrandr.

I don't have /etc/X11/xorg.conf 

note: if I set 1920x1080@50Hz by Ubuntu display setting all works, and I can also start Kodi without issue.

Thanks in advance!
Reply
#2
The video you are playing is not 1080p: 

Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x640 [SAR 1:1 DAR 2:1], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)

I would expect it to be 1280*720 with black bars and top and bottom where we end up with 640 in height. 

And as you seem to use NVidia, I have to say that we don't support nouveau

2020-02-23 21:50:12.796 T:139718299684800  NOTICE: GL_VENDOR = nouveau

Please install proper NVidia drivers and your problem will be gone
Reply
#3
(2020-02-26, 08:46)DaVu Wrote: The video you are playing is not 1080p: 

Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x640 [SAR 1:1 DAR 2:1], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)

I would expect it to be 1280*720 with black bars and top and bottom where we end up with 640 in height. 

And as you seem to use NVidia, I have to say that we don't support nouveau

2020-02-23 21:50:12.796 T:139718299684800  NOTICE: GL_VENDOR = nouveau

Please install proper NVidia drivers and your problem will be gone
Ciao,

 I don't think the resolution 1080p or 720p is related to the issue. I have enabled the option "Adjust Refresh Rate" so the only change done by Kodi is set a refresh rate (available in the white list) that match or is a multiple of the movie fps.

If you prefer, I can post a log with the same issue with a video at 1080p, the important thing is that the fps was 25 or 50...a that point Kodi tries to set 50Hz (1080p because is the only one present in the white list) and the screen go black/freeze.

For clear understand, Kodi can switch without issues:
1080p@[0-9]+HZ => 1080p@(?!50).+Hz

// From all resolution / all refresh => all resolution / all refresh except 50Hz

Kodi can also start with 1080p@50Hz (previously set with SO display settings) and playback any movie at 25/50fps (no Adjust Refresh Rate is act).

For what I see from the log, Kodi use xrandr to change the resolution/refresh:
Code:
INFO: XRANDR: /usr/lib/x86_64-linux-gnu/kodi/kodi-xrandr --screen 0 --output HDMI-1 --mode 0xac

Anyway if this is related to the unsupported nouveau, I cannot do nothing because my NVIDIA card Geforce 330M is no more supported by Official Driver and I should downgrade the Xorg. (I house a Sony Vaio Notebook so change the card is impossible)

Thansks for your support!
Reply
#4
https://www.nvidia.com/Download/driverRe...6163/en-us

Here is the correct driver

The 304.xx drivers are also available by the graphic drivers ppa: https://launchpad.net/~graphics-drivers/...ubuntu/ppa

Not sure if those will work for 19.10. But I would give it a shot.

At least they should still be support by Ubuntu 16.04 which still has support. Maybe those will also work for Ubuntu 18.04. The Ubuntu version you are using is EOL in a few months anyway
Reply
#5
(2020-02-27, 20:02)DaVu Wrote: https://www.nvidia.com/Download/driverRe...6163/en-us

Here is the correct driver

The 304.xx drivers are also available by the graphic drivers ppa: https://launchpad.net/~graphics-drivers/...ubuntu/ppa

Not sure if those will work for 19.10. But I would give it a shot.

At least they should still be support by Ubuntu 16.04 which still has support. Maybe those will also work for Ubuntu 18.04. The Ubuntu version you are using is EOL in a few months anyway

Yeah, as I have written in the previous post is not supported by latest Xorg (ie. Ubuntu 19.04, 19.10)...so I guess I have to downgrade Xorg or more probably the entire Ubuntu.

...if this is the only solution... I'll try to understand why Gnome display settings have no issue with 50Hz and found some possible workaround for Kodi. I guess is not related to driver.

Thanks anyway for your time.

Last chance will be buy a new htpc Smile
Reply
#6
Try follow this guide: 
https://adufray.com/blog/2018/06/02/nvid...-on-bionic

Seems the ppa driver is only patched with the 4.14 patchset. Kernels 4.15+ need an additional patch, and after that the driver will be compatible with up to 4.19 (maybe 4.20, but I KNOW it's broken for 5.0+, I stay on 4.19 since that's a LTS kernel).
If you downgrade your kernel to 4.19, and install the (patched) Nvidia driver directly then that should work, since it is my understanding it also installs the needed Xorg dependencies.
As long as you stay on kernel 4.19, you should even be able to upgrade to 20.04. Note that there might some warnings in dmesg from time to time if you use 4.19 instead of 4.15. You can safely disregard this.

I can confirm this works fine on 18.04, even on an Apple TV 1 (haven't tried 20.04, which is 64bit only).
Reply
#7
Thanks for the information!

...but I have solved adding a custom modelines to my xorg.conf and ignore edid and finally set the preferred to 1080p@50Hz.
In this way I have strip out the duplicated resolution@rate and solve the issue.

p.s. my screen freeze also when I switch from any resolution to 1080p@50Hz with xrandr (cli used by kodi).
So I guess is more a issue related to xrandr or my edid released by monitor
Reply

Logout Mark Read Team Forum Stats Members Help
Screen black/freeze when switch to 1080p@50Hz0