Sunday, March 10, 2013

Useful SSH commands for checking OpenElec settings

Check current TV (HDMI Mode) Settings


1. Connect to OpenElec with SSH
2. Enter the following commands
cd ..
cd bin
tvservice -s
3. A status message is generated, similar to:

state 0x12001a [HDMI CEA (19) RGB lim 16:9], 1280x720 @ 50Hz, progressive

These settings can be used to force OpenElec into these same settings (for example when not connected to display). The document at this location describes how to do this. The data in the status message can be used as follows:

HDMI (describes HMDI of DVI modus) goes into variable hdmi_drive
CEA (or DMT) goes into the variable hdmi_group
(19) (description of HDMI mode) goes into variable hdmi_mode
RGB lim (description of pixel encoding) goes into variable hdmi_pixel_encoding
16:9 (the aspect ratio) goes into variable sdtv_aspect

Checking MPG2 License


1. Connect to OpenElec with SSH
2. Enter the following commands
vcgencmd codec_enabled MPG2
3. A status message is generated, similar to:

MPG2=enabled


Current Processor settings


1. Connect to OpenElec with SSH
2. Enter the following commands
cat /proc/cpuinfo
3. A status message is generated, similar to:

Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 898.66
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 000f
Serial : 0000000000000000


Current Hostname settings


1. Connect to OpenElec with SSH
2. Enter the following commands
hostname
3. The hostname is displayed:
OPENELEC

The hostname can be changed by editing the NET_HOSTNAME entry in the file Userdata/addon_data/os.openelec.settings/settings.xml