Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try playing video using the command:

omxplayer -o hdmi

sound will not work unless I also include the -r switch.

The only problem with this is when the video is done it leaves a black screen up and I am unable to use the device until restart.

Anyone have any ideas?

share|improve this question
Easiest thing to do is not using the terminal over HDMI but instead log in from another computer using SSH … – filmor Jan 12 '13 at 10:56

Have you uncommented hdmi_drive=2 from /boot/config.txt?

share|improve this answer

I was having the same problem on one of the TV's i'm using for a project (I have a few different models and i'm trying to create a generic image that works on all of them).

As part of the exit sequence if you run tvservice -o && tvservice -p && fbset -depth 8 && fbset -depth 16 it should refresh the power state and wake up the display.

tvservice -o sends the signal to sleep the HDMI device.

tvservice -p brings it back on with preferred settings

fbset -depth 8 && fbset -depth 16 forces a change that brings X back after the sleep.

This also resolved an issue i had with the display looking like garbage after playing a standard definition video (again; only on one of the displays i have been testing against)

In my situation i have an application monitoring for omxplayer to exit which then executes that sequence. You could simply wrap the call to omxplayer or edit the omxplayer script directly.

Note: i found this thread because i was trying to find a solution to audio not working on an experimental branch of omxplayer that supports constant looping and -r fixed me up. so thanks for that. =-)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.