[HOWTO] Reduce resolution while running VNC-Server (better performance)
|
24th Jan, 2014, 07:48 PM
Post: #1
|
|||
|
|||
[HOWTO] Reduce resolution while running VNC-Server (better performance)
Hi XBian-friends,
here's is an instruction/script by me how you can get your RPi to change resolution automatically when starting/stopping the VNC-Server. Why it is needed? It isn't! - But you get a way better performance with lower resolutions if you want to do something in XBMC via VNC. Of course, you can do it even manually, but automating things is just more comfortable. Any disadvantage? As XBMC seems to need a restart after changing the RPi's resolution, XBMC will be restarted whenever you start or stop your VNC-Server. This can be a disadvantage e.g. if you want to connect via VNC, but the server isn't started yet and XBMC is currently scraping or something. But for me, it's not a real disadvantage. If someone knows how to bypass this, just shout! How to: All you have to do is creating following 3 files: /etc/default/vnc-autores Code: ### /etc/default/vnc-autores /etc/init/vnc-autores-controller.conf Code: ### /etc/init/vnc-autores-controller.conf /usr/local/bin/vnc-autores Code: #! /bin/bash and make the last one executable via: Terminal sudo chmod +x /usr/local/bin/vnc-autores Alternatively you can download the files... vnc-autores.zip (Size: 2.68 KB / Downloads: 9) That's it. If you now start the vnc-server service and the automode of vnc-autores is enabled, it will change the resolution before starting and switch it back after stopping. At any time you can also disable/enable the automode without manually editing the config file by calling: Terminal sudo vnc-autores {disable|enable} cheers josch My setup: Software: XBian version: 1.0RC3 | XBMC version: 13.2 (Gotham) | Overclock settings: High Hardware: RPi model: B | Power: DUB-H7 | SD: Tanscend Class 10 | Network: Wireless |
|||
25th Jan, 2014, 02:12 PM
Post: #2
|
|||
|
|||
RE: [HOWTO] Reduce resolution automatically when starting VNC-Server (better performance)
(24th Jan, 2014 07:48 PM)josch Wrote: Any disadvantage? @josch good point (with changing resolution) and even better implementation (using same script and minimum "extra" scripting) just two additions: - try moving pre-start and post-stop to completely new job. the job will start on starting vnc-server (starting means - vnc won't go main exec until all jobs with "starting vnc" are finished). this from simple reason that with updates config files distributed by .deb files are preserving user changes, but binaries, scripts and others not. so once we issue new version, your script updates would be reverted. when you update the start/stop logic and you move user settings outside (for instance /etc/default/vnc), i will add the code to vnc-server distribution deb file (if you allow of course ) Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
26th Jan, 2014, 05:24 AM
Post: #3
|
|||
|
|||
RE: [HOWTO] Reduce resolution automatically when starting VNC-Server (better performance)
Thanks for your feedback!
I will transact your suggestions but it can take some time as I'm very busy the upcoming week. But I'm sure I will find some hours in the next few days/weeks and will report here... josch My setup: Software: XBian version: 1.0RC3 | XBMC version: 13.2 (Gotham) | Overclock settings: High Hardware: RPi model: B | Power: DUB-H7 | SD: Tanscend Class 10 | Network: Wireless |
|||
27th Jan, 2014, 01:42 AM
Post: #4
|
|||
|
|||
RE: [HOWTO] Reduce resolution while running VNC-Server (better performance)
Well, I just did it before the week starts and used some time of my sunday.
I updated the first post and replaced my old instruction.... Hope that's how you meant it. If not, just tell me. There is also no need anymore for setting the resolution settings for normal use. It will get them byself when switching in VNC mode and restore them when switching back. PS: Changed the title too, because there were a failure regarding too long title length while answering. My setup: Software: XBian version: 1.0RC3 | XBMC version: 13.2 (Gotham) | Overclock settings: High Hardware: RPi model: B | Power: DUB-H7 | SD: Tanscend Class 10 | Network: Wireless |
|||
« Next Oldest | Next Newest »
|