embeded/raspberry pi2015. 2. 28. 16:17

라즈베리 openELEC을 설치하면

HDMI로 연결했음에도 불구하고 소리가 나지 않는다 -_-


그래서 검색을 해보니...

hdmi_drive=2로 설정을 하라는데


이리저리 찾아보니.. 부트로더가 아니라 라즈베리 설정에 관련된 파일인 config.txt에 하라고 되어있다.

즉, 커널 인자로 넘기는게 아니란것!


################################################################################

#      This file is part of OpenELEC - http://www.openelec.tv

#      Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)

#      Inspired and partly copied from:

#  http://youresuchageek.blogspot.fr/2012/09/howto-raspberry-pi-openelec-on.html

#

#  OpenELEC is free software: you can redistribute it and/or modify

#  it under the terms of the GNU General Public License as published by

#  the Free Software Foundation, either version 2 of the License, or

#  (at your option) any later version.

#

#  OpenELEC is distributed in the hope that it will be useful,

#  but WITHOUT ANY WARRANTY; without even the implied warranty of

#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

#  GNU General Public License for more details.

#

#  You should have received a copy of the GNU General Public License

#  along with OpenELEC.  If not, see <http://www.gnu.org/licenses/>.

################################################################################

# Bootloader configuration - config.txt

################################################################################


################################################################################

# Memory (System/GPU configuration )

################################################################################


# default GPU memory split (do not change if you do not know what you are doing)

  gpu_mem=128


# SDRAM size based GPU memory split, uncomment and setup to override 'gpu_mem'

  gpu_mem_256=112

  gpu_mem_512=160

  gpu_mem_1024=256


################################################################################

# Overclocking settings

# WARNING: Do not change/enable if you do not know what you are doing!

#          The System may become unstable or you can have data corruption or

#          you can loose your warranty if you set wrong settings

#

# please read: http://elinux.org/RPi_config.txt#Overclocking_configuration

################################################################################


# Overclock mode settings.

#

# default recommended values are: arm_freq | core_freq | sdram_freq | over_voltage

# no overclocking               :    700   |    250    |    400     |      0

# mode 'Modest'                 :    800   |    300    |    400     |      0

# mode 'Medium'                 :    900   |    333    |    450     |      2

# mode 'High'                   :    950   |    450    |    450     |      6

# mode 'Turbo'                  :   1000   |    500    |    500     |      6


# arm_freq=700

# core_freq=250

# sdram_freq=400

# over_voltage=0


# set to 'force_turbo=1' to disable dynamic overclocking (you can lose your warranty!)

  force_turbo=0


# If you have any data corruption using Turbo Mode and overclocking

# try with this setting uncommented

# If this still fails, try to use Medium mode without "over_voltage=2"

# If it ultimately keeps failing, forget about this until it gets fixed

# Use a more conservative mode that will works fine in any cases:

# initial_turbo=30


################################################################################

# Overscan settings

################################################################################


# Make display smaller to stop text spilling off the screen

# see also http://www.raspberrypi.org/phpBB3/viewtopic.php?f=67&t=15700

# overscan_scale=1

# disable_overscan=1


# Adapt overscan values to your needs

# overscan_left=57

# overscan_right=59

# overscan_top=20

# overscan_bottom=20


################################################################################

# various settings see also: http://elinux.org/RPi_config.txt

################################################################################


# Force HDMI even if unplugged or powered off

# hdmi_force_hotplug=1


# Doesn't sent initial active source message.

# Avoids bringing CEC (enabled TV) out of standby and channel switch when

# rebooting.

  hdmi_ignore_cec_init=1


################################################################################

# License keys to enable GPU hardware decoding for various codecs

# to obtain keys visit the shop at http://www.raspberrypi.com

################################################################################


# decode_MPG2=0x00000000

# decode_WVC1=0x00000000

# decode_DTS=0x00000000

# decode_DDP=0x00000000


################################################################################

# End of default configuration

# all values below this line were inserted from config.txt.bk (your old config)

# and can be merged with the above values

################################################################################ 


그래서 hdmi_drive=2 로 설정하고 부팅을 하니

hdmi_drive chooses between HDMI and DVI modes


 hdmi_drive=1 Normal DVI mode (No sound)

 hdmi_drive=2 Normal HDMI mode (Sound will be sent if supported and enabled)


[링크 : http://elinux.org/RPiconfig]


HDMI 모니터에 연결하면 소리도 잘나오고 모두 happy~ 이긴한데!

DVI 모니터에 HDMI to DVI 케이블로 연결하면 화면이 안나온다!!!


아마 DMT 방식이라던가 이런 DVI 모니터에서 지원못하는 방식이라서 그런거 같은데

hdmi_group=0으로 하면 EDID로 받는다고 하니 문제가 있는 모니터가 아니라면 0으로 설정해주면 되지 않으려나?

hdmi_group defines the HDMI type

Not specifying the group, or setting to 0 will use the preferred group reported by the edid.


hdmi_group=1   CEA

hdmi_group=2   DMT


[링크 : http://elinux.org/RPiconfig] 


---

뜬금포 결론

DVI로 해서 처음 소리가 안난건

openELEC에서 audio 출력이 HDMI로 되어있고

라즈베리 OS 설정에서는 DVI로 모드로 되어 있어서 서로 엉긴것 -_-


일단 기본값으로는 DVI 출력에 HDMI 오디오 출력이므로

HDMI-DVI로 쓴다면 openELEC 설정에서 Audio 출력을 HDMI and Analogue 로 설정해주어야 한다.


그리고 HDMI로 사용한다면

hdmi_drive=2로 설정해주면 나머지는 설정할 사항이 없다.


System - Settings


System


Audio output - Audio output device HDMI and Analogue로 설정해주면 DVI 사용시 아날로그 출력이 된다.

[링크 : http://openelec.tv/forum/124-raspberry-pi/74408-problems-with-hdmi-audio-on-openelec-5-0]

Posted by 구차니