Linux [SOLVED]Permanent adjustment of resolution with XBMCbuntu [Haswel chip] - 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 [SOLVED]Permanent adjustment of resolution with XBMCbuntu [Haswel chip] (/showthread.php?tid=196917) Pages:
1
2
|
[SOLVED]Permanent adjustment of resolution with XBMCbuntu [Haswel chip] - orduek - 2014-06-03 I'm using XBMCbuntu 13 (i.e. Ubuntu 14.04). I have an Intel integrated card (HD4600). I'm connected to a 1366x768 Metz 26" TV using an HDMI cable. I'm able to get good resolution using xrandr commands (I didn't have to make a new mode a good one was already there). I actually created a little script that first do: export DISPLAY=:0 and the xrandr --output and the relevant mode. BUT: whenever I restart the computer I need to run the script again, the settings are not saved. I can add the script to rc.local but think its not the best way. How can I change it? RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - nickr - 2014-06-04 You could try rc.local but that only works when the computer is booted, not each time X is started. Try $HOME/autostart RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - negge - 2014-06-04 I do it in the script that starts XBMC. RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - orduek - 2014-06-05 in XBMCbuntu where is the script that starts xbmc? RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - negge - 2014-06-05 Should be /usr/bin/xbmc-standalone RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - orduek - 2014-06-06 So I tried adding the xrandr lines to /usr/bin/xbmc-standalone but it didn't work. It seems like I have to wait until XBMC is fully loaded before I can run the command to change resolution. After XBMC is up, if I run my script (export DISPLAY=:0 xrandr -- etc.) the resolution changes. Any ideas on how I can make something like that? RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - astropolak - 2014-06-08 put this in the /etc/rc.local sh -c "sleep 5;export DISPLAY=:0 xrandr -- xxxxxxxxxxxx" & Re: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - nickr - 2014-06-08 You don't need export in that line. RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - orduek - 2014-06-08 It not working. I started with the above (sleep 5) and went to sleep 30 but it still doesn't work. RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - astropolak - 2014-06-08 OK, try this: su xbmc -c "sleep 30;DISPLAY=:0 xrandr -q" >/tmp/rc.local.out 2>&1 & Once you see output in /tmp/rc.local.out you can change the xrandr command string to suit ... RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - orduek - 2014-06-08 (2014-06-08, 11:21)astropolak Wrote: OK, try this: Should I put that in rc.local instead of the command you previously showed? RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - orduek - 2014-06-08 OK. I did put it in rc.local (with my username instead of xbmc. output says every xrandr output is disconnected. I know that this is what I get before xbmc starts up. Another thing: If I run the xrandr command from another tty in the same computer (as opposed to run it through ssh while xbmc is on) I get the same "disconnected" error. RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - astropolak - 2014-06-09 This is what I did in earlier iterations of Gotham to fix brightness problems, xbmc is the user under which the XBMC runs,.. su xbmc -c 'sleep 4;xrandr -d :0 --output HDMI1 --set "Broadcast RGB" "Limited 16:235"' And this is what I get when the receiver is not powered on (HDMI cable disconnected): root@xbmc:/etc# su xbmc -c 'sleep 4;xrandr -d :0 -q' Screen 0: minimum 320 x 200, current 320 x 200, maximum 32767 x 32767 VGA1 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - orduek - 2014-06-09 I don't know why I get this message sometimes as my TV is connected directly to the computer via HDMI. I think its associated to my problem. Sometimes the OS doesn't recognize the connection or something like that. RE: Permanent adjustment of resolution with XBMCbuntu [Hussel chip] - nickr - 2014-06-09 Have you tried another HDMI cable? |