Linux Input devices stop working w/refresh rate match enabled
#1
I'm having an issue were all input devices stop functioning on occasion when I have "Adjust display refresh rate to match video" enabled. The input devices include a USB keyboard, PS3 remote, and remote console via NoMachine. Simply restarting XBMC will correct the issue for a short period of time, and at no time do any of the input devices stop functioning outside of XBMC. This is while using Ubuntu 14.04, and XBMC Gotham RC1. Does anyone have any ideas or is this simply a BUG?

Thanks!
Reply
#2
Same problem here. Playing the first video works normally, but upon playing a second video XBMC stops accepting all keyboard inputs.

This appears to be a regression from the previous Beta or some other Ubuntu update, there were no problems with this until RC1.

Workaround: disable refresh rate matching.

Running XBMCBuntu Gotham RC1, Intel Haswell graphics.

Debug Log
Reply
#3
Please provide the output of dmesg and Xorg.0.log when that happens.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
The first video after reboot works normally, but all input stops working when the second video is played. This is reproducible always.

Logs provided:
xbmc.log
dmesg
Xorg.0.log
Reply
#5
Mines is a bit more random as there is no predicable pattern, and has even occurred on the first video played. The logs don't seem to show anything of significance and dmesg doesn't log anything at the time of the failure. I've included logs for two instances, the first without the issue and the second when the input devices stop working:

Xorg.0.log
Code:
[107629.384] (II) intel(0): switch to mode [email protected] on HDMI1 using pipe 0, position (0, 0), rotation normal, reflection none
[107629.694] (II) intel(0): switch to mode [email protected] on HDMI1 using pipe 0, position (0, 0), rotation normal, reflection none
[107638.123] (II) intel(0): switch to mode [email protected] on HDMI1 using pipe 0, position (0, 0), rotation normal, reflection none

syslog
Code:
May  5 18:27:05 xbmc2 kernel: [107590.611773] HDMI: ELD buf size is 0, force 128
May  5 18:27:05 xbmc2 kernel: [107590.611816] HDMI: invalid ELD data byte 0
May  5 18:27:05 xbmc2 kernel: [107590.611856] HDMI: ELD buf size is 0, force 128
May  5 18:27:05 xbmc2 kernel: [107590.611881] HDMI: invalid ELD data byte 0
May  5 18:27:06 xbmc2 kernel: [107590.995696] HDMI: ELD buf size is 0, force 128
May  5 18:27:06 xbmc2 kernel: [107590.995739] HDMI: invalid ELD data byte 0
May  5 18:27:06 xbmc2 kernel: [107590.995780] HDMI: ELD buf size is 0, force 128
May  5 18:27:06 xbmc2 kernel: [107590.995805] HDMI: invalid ELD data byte 0
May  5 18:27:14 xbmc2 kernel: [107599.340539] HDMI: ELD buf size is 0, force 128
May  5 18:27:14 xbmc2 kernel: [107599.340560] HDMI: invalid ELD data byte 0
May  5 18:27:14 xbmc2 kernel: [107599.340599] HDMI: ELD buf size is 0, force 128
May  5 18:27:14 xbmc2 kernel: [107599.340625] HDMI: invalid ELD data byte 0

xbmc.log
Code:
18:27:05 T:140144361154496  NOTICE: DVDPlayer: Opening: smb://10.100.1.5/videos/Movies/Movie/BDMV/index.bdmv
18:27:05 T:140144361154496 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
18:27:05 T:140143105144576  NOTICE: Thread DVDPlayer start, auto delete: false
18:27:05 T:140143105144576  NOTICE: Creating InputStream
18:27:05 T:140143105144576  NOTICE: DVDPlayer: playing a file with menu's
18:27:05 T:140143105144576  NOTICE: Creating Demuxer
18:27:05 T:140143105144576  NOTICE: Opening video stream: 0 source: 256
18:27:05 T:140143105144576  NOTICE: Creating video codec with codec id: 28
18:27:05 T:140143105144576  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
18:27:05 T:140143105144576  NOTICE: Creating video thread
18:27:05 T:140142098511616  NOTICE: Thread DVDPlayerVideo start, auto delete: false
18:27:05 T:140142098511616  NOTICE: running thread: video_thread
18:27:05 T:140143105144576  NOTICE: Opening audio stream: 1 source: 256
18:27:05 T:140143105144576  NOTICE: Finding audio codec for: 86020
18:27:05 T:140143105144576  NOTICE: Creating audio thread
18:27:05 T:140142090118912  NOTICE: Thread DVDPlayerAudio start, auto delete: false
18:27:05 T:140142090118912  NOTICE: running thread: CDVDPlayerAudio::Process()
18:27:05 T:140142090118912  NOTICE: Creating audio stream (codec id: 86020, channels: 6, sample rate: 48000, no pass-through)
18:27:05 T:140144361154496   ERROR: unable to load:/home/xbmc/.xbmc/addons/skin.eminence/1080i/VideoOverlay.xml, Line 0
                                            Failed to open file
18:27:05 T:140142098511616  NOTICE:  fps: 23.976024, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
18:27:05 T:140142098511616  NOTICE: Display resolution ADJUST : HDMI1: 1920x1080 @ 23.98Hz (22) (weight: 0.000)
18:27:05 T:140142081726208  NOTICE: Thread DelayedMessage start, auto delete: true
18:27:05 T:140143824033536  NOTICE: CAEEncoderFFmpeg::Initialize - AC3 encoder ready
18:27:06 T:140144361154496   ERROR: GLX: Same window as before, refreshing context
18:27:06 T:140142090118912   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
18:27:06 T:140144361154496  NOTICE: Using GL_TEXTURE_2D
18:27:06 T:140144361154496  NOTICE: GL: Using VAAPI render method
18:27:06 T:140144361154496  NOTICE: GL: NPOT texture support detected
18:27:06 T:140144361154496  NOTICE: GL: Using GL_ARB_pixel_buffer_object
18:27:11 T:140144361154496  NOTICE: CDVDPlayer::CloseFile()
18:27:11 T:140144361154496  NOTICE: DVDPlayer: waiting for threads to exit
18:27:11 T:140143105144576  NOTICE: CDVDPlayer::OnExit()
18:27:11 T:140143105144576  NOTICE: DVDPlayer: closing audio stream
18:27:11 T:140143105144576  NOTICE: Closing audio stream
18:27:11 T:140143105144576  NOTICE: Waiting for audio thread to exit
18:27:11 T:140142090118912  NOTICE: thread end: CDVDPlayerAudio::OnExit()
18:27:11 T:140143105144576  NOTICE: Closing audio device
18:27:11 T:140143105144576  NOTICE: Deleting audio codec
18:27:11 T:140143105144576  NOTICE: DVDPlayer: closing video stream
18:27:11 T:140143105144576  NOTICE: Closing video stream
18:27:11 T:140143105144576  NOTICE: waiting for video thread to exit
18:27:11 T:140142098511616  NOTICE: thread end: video_thread
18:27:11 T:140143105144576  NOTICE: deleting video codec
18:27:11 T:140143105144576  NOTICE: CDVDPlayer::OnExit() deleting demuxer
18:27:11 T:140143105144576  NOTICE: CDVDPlayer::OnExit() deleting input stream
18:27:11 T:140144361154496  NOTICE: DVDPlayer: finished waiting
18:27:12 T:140144361154496   ERROR: GLX: Same window as before, refreshing context
18:27:12 T:140144361154496  NOTICE: CDVDPlayer::CloseFile()
18:27:12 T:140144361154496  NOTICE: DVDPlayer: waiting for threads to exit
18:27:12 T:140144361154496  NOTICE: DVDPlayer: finished waiting
18:27:12 T:140144361154496  NOTICE: CDVDPlayer::CloseFile()
18:27:12 T:140144361154496  NOTICE: DVDPlayer: waiting for threads to exit
18:27:12 T:140144361154496  NOTICE: DVDPlayer: finished waiting
18:27:14 T:140144361154496  NOTICE: DVDPlayer: Opening: smb://10.100.1.5/videos/Movies/Movie/BDMV/index.bdmv
18:27:14 T:140144361154496 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
18:27:14 T:140143105144576  NOTICE: Thread DVDPlayer start, auto delete: false
18:27:14 T:140143105144576  NOTICE: Creating InputStream
18:27:14 T:140143105144576  NOTICE: DVDPlayer: playing a file with menu's
18:27:14 T:140143105144576  NOTICE: Creating Demuxer
18:27:14 T:140143105144576  NOTICE: Opening video stream: 0 source: 256
18:27:14 T:140143105144576  NOTICE: Creating video codec with codec id: 28
18:27:14 T:140143105144576  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
18:27:14 T:140143105144576  NOTICE: Creating video thread
18:27:14 T:140142073333504  NOTICE: Thread DVDPlayerVideo start, auto delete: false
18:27:14 T:140142073333504  NOTICE: running thread: video_thread
18:27:14 T:140143105144576  NOTICE: Opening audio stream: 1 source: 256
18:27:14 T:140143105144576  NOTICE: Finding audio codec for: 86020
18:27:14 T:140143105144576  NOTICE: Creating audio thread
18:27:14 T:140142064940800  NOTICE: Thread DVDPlayerAudio start, auto delete: false
18:27:14 T:140142064940800  NOTICE: running thread: CDVDPlayerAudio::Process()
18:27:14 T:140142064940800  NOTICE: Creating audio stream (codec id: 86020, channels: 6, sample rate: 48000, no pass-through)
18:27:14 T:140142064940800   ERROR: Process - failed to create audio renderer
18:27:14 T:140144361154496   ERROR: unable to load:/home/xbmc/.xbmc/addons/skin.eminence/1080i/VideoOverlay.xml, Line 0
                                            Failed to open file
18:27:14 T:140142073333504  NOTICE:  fps: 23.976024, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
18:27:14 T:140142073333504  NOTICE: Display resolution ADJUST : HDMI1: 1920x1080 @ 23.98Hz (22) (weight: 0.000)
18:27:14 T:140142056548096  NOTICE: Thread DelayedMessage start, auto delete: true
18:27:14 T:140144361154496   ERROR: GLX: Same window as before, refreshing context
18:27:14 T:140144361154496  NOTICE: Using GL_TEXTURE_2D
18:27:14 T:140144361154496  NOTICE: GL: Using VAAPI render method
18:27:14 T:140144361154496  NOTICE: GL: NPOT texture support detected
18:27:14 T:140144361154496  NOTICE: GL: Using GL_ARB_pixel_buffer_object
18:27:15 T:140142064940800  NOTICE: Creating audio stream (codec id: 86020, channels: 6, sample rate: 48000, no pass-through)
18:27:15 T:140143824033536  NOTICE: CAEEncoderFFmpeg::Initialize - AC3 encoder ready
Reply
#6
Don't cut logfiles. Try again.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
I was able to work around this bug/issue by disabling the display manager (LightDM) and loading xbmc directly via the command line. This also resolved another random issue I noticed with "refresh match" as previously the refresh rate would sometimes switch to 24hz then immediately back to 60hz upon playing a video. I'd like to find a solution that works with the display manager as I don't really want my HTPC's to be XMBC only.
Reply
#8
The solution is Helix. Current master branch and nightlies don't suffer from this issue because we phased out SDL.
Reply

Logout Mark Read Team Forum Stats Members Help
Input devices stop working w/refresh rate match enabled0