User Tools

  • (equal to forum credentials)

Site Tools


faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

faq [2014/07/02 12:19]
curlymo
faq [2016/09/10 14:51] (current)
golden-guy Add section on changing default governor
Line 1: Line 1:
-====== ​FAQ ======+This is the Users Wiki FAQ Page. It is intended for users to add their own FAQ to assist other users. 
 +If a user generated FAQ is of sufficient interest to other users it may be moved to the global FAQ at http://​www.xbian.org/​faq/,​
  
-This page contains answers ​and solutions ​to Frequently Asked Questions and/or common issues.+If this happens ​and you need to update ​or report an issue, please post you comments along with the corresponding entry to http://​forum.xbian.org/​thread-2768.html
  
-===== Changing SSH port ===== +===== FAQ ===== 
->//"How do I change the SSH port?"//+==== Change CPU governor policy ==== 
 +Per default, ​//performance//​ governor is active when Kodi is in use (i.e. no screensaver is active). When Kodi is running idle (with screensaver on), xbian switches to //​conservative//​ governor. To change the governor for active use to //​ondemand//,​ append this line to **/etc/default/xbian-module-init-tools**:​
  
-On XBian the SSH daemon runs behind ​//inetd//. That's why you have to change the listening port in ///​etc/​services//​ instead of in ///​etc/​ssh/​sshd_config//​. Alternatively you can configure SSH to start in standalone mode - that way you can still use the ///​etc/​ssh/​sshd_config//​ file to set the port.+//CPUFREQ_GOVERNOR="​ondemand"​//
  
- +Note that if you do not set screensaver, the governor will not fall back to //conservative//, but will instead stick to //performance// or //demand//, depending on your setup.
-=== Changing SSH port when using inetd === +
-Edit ///​etc/​services//​ with your preferred text editor and find the following 2 lines: +
- +
-<​code>​ssh ​       22/​tcp ​               # SSH Remote Login Protocol +
-ssh        22/​udp</​code>​ +
- +
-Then change "//​22//"​ to your desired port. Afterwards restart //inetd// to apply the change: +
-<​code>​$ sudo restart openbsd-inetd</​code>​ +
- +
- +
-=== Changing SSH port when using standalone mode === +
- +
-To enable the standalone mode, remove the line "//​manual//"​ from ///​etc/​init/​ssh-hid.override//​. ​ You can now change the port in ///​etc/​ssh/​sshd_config//​ and then start the service with <​code>​$ sudo start ssh-hid</​code>​ +
- +
- +
- +
- +
- +
-===== Run a script at startup ===== +
- +
->//"​How ​do I get script running automatically at startup?"//​ +
- +
-The easiest way to do sois editing ​the file ///​etc/​rc.local//​. In this file you can put in any command you want to run at startup. There are three important things you have to consider: +
-  * your command must be put before the line //exit(0)// +
-  * by default commands in ///​etc/​rc.local//​ are executed as root +
-  * to keep the command running in the background you have to end the command with an //&// +
- +
-=== Example: === +
-If you want to run the script as user //xbian// and keep the script running in the backgroundyou have to add a line like this: +
- +
-<​code>​su xbian -c "/path/script &"<​/code> +
- +
-before the //exit(0)// line in ///​etc/​rc.local//​.  +
- +
-If you want to run the script as rootadding the part in the quotes (///​path/​script &//) is already enough. \\ +
-If it's a command which shouldn'​t stay running in the background, you have to remove the //&// sign at the end. +
- +
-===== CuBox-I cmdline paramaters ===== +
- +
-Edit the ''/​boot/​boot.src.txt'''​file and run ''/​boot/​mks''​ afterwards. +
- +
- +
-===== CuBox-I HDMI2VGA adapter ===== +
- +
-If you are using one of these adapters, you may need to change the ''/​boot/​boot.src.txt''​ file from: +
-<​code>​ +
-setenv baseconfig ahci_imx.hotplug=1 raid=noautodetect telnet root=/​dev/​mmcblk0p2 video=mxcfb0:​dev=hdmi,​1920x1080M@60,​if=RGB25 rootwait consoleblank=0 selinux=0 nohdparm splash +
-</​code>​ +
-to +
-<​code>​ +
-setenv baseconfig ahci_imx.hotplug=1 raid=noautodetect telnet root=/​dev/​mmcblk0p2 video=mxcfb0:​dev=hdmi,​1280x1024M@60,​if=RGB565 rootwait consoleblank=0 selinux=0 nohdparm splash +
-</​code>​ +
- +
-If you video mode is incorrect, it can result in a reboot loop.+
faq.1404296347.txt.gz · Last modified: 2014/07/02 12:19 by curlymo