Linux Video off center on launch - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Linux Video off center on launch (/showthread.php?tid=133545) |
Video off center on launch - KevBel - 2012-06-09 Hi, I'm running Ubuntu 12.04 plugged into a Philips 32" LED LCD via HDMI with a 1360x768 pixel resolution (had to find the modeline manually... ugh.) The HTPC is powered by a intel G530 and a Gigabyte H61 motherboard. The Ubuntu desktop is working great, no problems at all with the video output. And audio over HDMI worked right out of the box! However... When I launch XBMC though, the output is the correct resolution but it's off-centered pi about 300px to the right and 150px to the bottom... So I can only see the top left part of the XBMC GUI, with black bars to the top and left of the image. If I go into setting and set the resolution to something else (say 1024x768, can't actually see what I'm setting it to...), it'll switch resolutions and appear centered. Then I bring it back to 1360x768 and it's centered and all is well. How can I fix this weird problem? IMAGE HERE ! RE: Video off center on launch - artrafael - 2012-06-09 Does your motherboard have a secondary display output, such as DVI or VGA? If so, try disabling that display in xorg.conf or via the Ubuntu GUI. RE: Video off center on launch - KevBel - 2012-06-09 Yes, the motherboard has a VGA and a DVI output. Nothing is plugged in to them. And as far as I can tell, nothing is enabled other than the HDMI output... The Ubuntu GUI (in System Settings / Displays) only shows the HDMI output. I do not have an xorg.conf file or anything under xorg.conf.d (the folder doesn't even exist). Here's my xrandr output : Code: Screen 0: minimum 320 x 200, current 1360 x 768, maximum 8192 x 8192 RE: Video off center on launch - FernetMenta - 2012-06-09 What happens if you set the mode using xrandr before you start XBMC? RE: Video off center on launch - KevBel - 2012-06-09 Same thing. I just tried setting the display to every single output mode using Code: xrandr --output HDMI3 --mode "1024x768" And each resolution work perfectly fine, except 1360x768... Here's what I setup to get the correct resolution on boot : Code: /usr/share/customVideoSetupHDMI.sh : RE: Video off center on launch - FernetMenta - 2012-06-09 can you post a full xbmc debug log? either xbmc or SDL which opens the window does not see the added mode. can you also post the output of xbmc-xrandr? RE: Video off center on launch - KevBel - 2012-06-09 (2012-06-09, 18:58)FernetMenta Wrote: can you post a full xbmc debug log? either xbmc or SDL which opens the window does not see the added mode. can you also post the output of xbmc-xrandr? Where do I get XBMC's debug log? When / where / how do I run xbmc-xrandr? RE: Video off center on launch - FernetMenta - 2012-06-09 Turn on debugging in system settings: http://wiki.xbmc.org/index.php?title=Log_file The log file is in ~/.xbmc/temp/xbmc.log xbmc-xrandr is in the same directory as xbmc.bin. Just run from a terminal. RE: Video off center on launch - KevBel - 2012-06-14 Here's the log file : http://paste.ubuntu.com/1040134/ I'm pretty sure the relevant bits are : Code: 22:38:49 T:140443400267648 ERROR: Unable to load libcrystalhd.so.3, reason: libcrystalhd.so.3: cannot open shared object file: No such file or directory Code: 22:39:50 T:140443400267648 ERROR: Window Translator: Can't find window tvsettings I'm not able to run xbmc-xrandr... Either it's not there or it's just not finding it... In what folder should it be? RE: Video off center on launch - FernetMenta - 2012-06-14 I need a debug log. Please go to system settings and turn on debugging, then start XBMC again. RE: Video off center on launch - KevBel - 2012-06-15 Ok, turned on debugging (sorry 'bout that!) Here's what I did :
Here's the log file : http://paste.ubuntu.com/1041747/ [Edit: Holy crap there's a LOT of stuff from the scrapers in there! Sorry about that...] Oh, and I found xbmc-xrandr's location in the log file (it's in /usr/lib/xbmc/xbmc-xrandr - but you knew that...), here's the output : Code: <screen id="0" minimum_w="320" minimum_h="200" current_w="1360" current_h="768" maximum_w="8192" maximum_h="8192"> RE: Video off center on launch - FernetMenta - 2012-06-15 Those are the kind of problems why I have ditched SDL and rewritten the interface to X11. With SDL it won't ever work completely correct, we just can try to find some kind of work around. The entries in the log are slightly different to what you said in your first post. The log: - you start XBMC when your desktop resolution is set to 1360x768 - then XBMC sets resolution to user set look-and-feel resolution, in your case 1920x1080. (what happens if you set this to 1360x768?) A big issue is that we currently do not wait until xrandr operation is completed. Would XBMC start ok if you set resolution in gui settings to the same resolution you have set when starting xbmc? RE: Video off center on launch - KevBel - 2012-06-19 (2012-06-15, 09:04)FernetMenta Wrote: The entries in the log are slightly different to what you said in your first post. The log: I currently use XBMC in 1920x1080 as that's the only usable resolution for now, which is why it loads into that resolution. I tried setting it to 1360x768 (it goes off center), accepting the changes and exiting XBMC. This way XBMC loads into the same resolution as the desktop. It still loads off center. I'm at a loss here... I have no idea what to try RE: Video off center on launch - FernetMenta - 2012-06-19 This is just guessing but have you tried adding your modeline to xorg.conf instead of adding it dynamically? RE: Video off center on launch - KevBel - 2012-06-19 (2012-06-19, 21:04)FernetMenta Wrote: This is just guessing but have you tried adding your modeline to xorg.conf instead of adding it dynamically? I don't have a xorg.conf... Is there a way to add stuff dynamically and then generate an xorg.conf file automatically to make the changes permanent? |