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/08/20 23:10]
Vegar Add info about serial console on cubox-i
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. +
- +
-==== 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=RGB24 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,​1280x720@60,​if=RGB565 rootwait consoleblank=0 selinux=0 nohdparm splash +
-</​code>​ +
- +
-If you video mode is incorrect, it can result in a reboot loop. +
- +
-==== Enable serial console ==== +
-To enable the serial console, add ''​console=ttymxc0,​115200''​ to the command line, after ''​setenv baseconfig''​. The third line in /​boot/​boot.src.txt should look something like this: +
-<​code>​ +
-setenv baseconfig console=ttymxc0,​115200 coherent_pool=1M rw ahci_imx.hotplug=1 raid=noautodetect telnet root=/​dev/​mmcblk0p2 video=mxcfb0:​dev=hdmi,​1920x1080M@60,​if=RGB24 rootwait consoleblank=0 selinux=0 nohdparm splash dmfc=3 +
-</​code>​ +
-Run /boot/mks to activate the change. +
- +
-To enable a terminal ​on the serial console, copy the file ''/​etc/​init/​tty1.conf''​ to ''/​etc/​init/​tty3.conf''​. Edit the last line in the new file, replace tty1 with ttymxc0, and 38400 with 115200. It should look like this: +
-<​code>​ +
-exec /sbin/getty -8 115200 ttymxc0"​ +
-</​code>​+
faq.1408569046.txt.gz · Last modified: 2014/08/20 23:10 by Vegar