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 [2015/02/20 19:19]
iridium [Changing SSH port]
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
  
-The main stream ​FAQ can be found http://www.xbian.org/faq/+===== FAQ ===== 
 +==== 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//​ governorTo change the governor for active use to //ondemand//, append this line to **/​etc/​default/​xbian-module-init-tools**:​
  
 +//​CPUFREQ_GOVERNOR="​ondemand"//​
  
-===== Run a script at startup ===== +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.
- +
->//"​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,​1280x720M@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.1424456381.txt.gz · Last modified: 2015/02/20 19:19 by iridium