Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Hotkeys not working under Arch Linux Arm #97

Closed
rabreu opened this Issue · 27 comments

6 participants

@rabreu

I've been trying to use omxplayer (git package) under Arch Linux Arm, but omxplayer seems not to listen any keyboard commands.
Also, dbus is started. It used to work when I used the non-git package, even if it had some audio problems.

Edit: I switched to the git package because the non-git package had some problems with audio (some little noises). The noises are solved on the git package.

@popcornmix popcornmix referenced this issue in huceke/omxplayer
Closed

Hotkeys not working under Arch Linux Arm #208

@parched

I too have this problem, what should we check/do?

@rabreu

@parched Are you running Arch Linux or raspbian?

@parched

Arch, compiled from git like you. Hotkeys don't work via TTY or SSH. I haven't tried the non-git package however.

@parched

I think it is something to do with the arch patched Makefile, it doesn't link against dbus by the looks. I will have a proper look into it tomorrow and see if I can fix it.

@rabreu

Let us know if you find a solution.

@parched

Ok, I just didn't have dbus started, the AUR start script lacks the lines
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval $(dbus-launch --sh-syntax)
fi
Works fine now. Is dbus definitely started? Does
echo $DBUS_SESSION_BUS_ADDRESS
return something?

@skgsergio

If it's building without dbus problems then it should work. Maybe as @parched noticed its that omxplayer isn't listening dbus or isn't aware of its existence.

As you are building from git you are not using my wrapper script I made for the Raspbian version, maybe you should give it a try. Replace omxplayer script for this one and see if it works: https://gist.github.com/skgsergio/6825354

@rabreu

"echo $DBUS_SESSION_BUS_ADDRESS" returns nothing.

It's weird, because systemctl says it's running:

$ systemctl status dbus
dbus.service - D-Bus System Message Bus
Loaded: loaded (/usr/lib/systemd/system/dbus.service; static)
Active: active (running) since Fri 2013-11-22 10:08:05 UTC; 45s ago
Main PID: 1167 (dbus-daemon)
CGroup: /system.slice/dbus.service
`-1167 /usr/bin/dbus-daemon --system --address=systemd: --nofork -...

@parched

Hmm that is strange, well you are out of my realm of knowledge now so I can't help you sorry. What I said about the arch makefile not linking dbus was wrong BTW, it was just in a different order so I missed it, would've failed to compile anyway.

@rabreu

@skgsergio yaaaaaaaay! It finally worked!

Thanks in advance!

@skgsergio skgsergio referenced this issue from a commit in skgsergio/omxplayer
Sergio Conde Gómez Fix DBus issues: popcornmix/omxplayer#59 and popcornmix/omxplayer#97
Uses an adapted version of fcarlier fix.
b22081d
@skgsergio skgsergio referenced this issue from a commit in skgsergio/omxplayer
@skgsergio skgsergio Fix DBus issues: popcornmix/omxplayer#59 and popcornmix/omxplayer#97
Uses an adapted version of fcarlier fix.
7f93b61
@rabreu rabreu closed this
@rabreu rabreu reopened this
@rabreu

I thought this merge solved the problem, but it didn't.

@skgsergio

It should fix it if applying the fix in my previous comment worked :/

Can you exec sh -x /path/to/omxplayer and paste me the output? (preferably in pastebin.com)

@rabreu

Running your script: http://pastebin.com/2edZbkj8

@skgsergio

The issue was fixed in 7f93b61 but I found your problem.

Your problem is that the omxplayer-git AUR package has its own launcher script so you are not using the one in this git repository.

You have two options:

@rabreu

Ok, sorry for the long delay.

I tried downloading the omxplayer script manually and overwriting the actual one but I've got an even more weird error:

http://dpaste.com/1530605/

And then the raspi freezes and I have to force its reboot.

PS.: Running as root returns me the same error.

@popcornmix
Owner

Are you sure the omxplayer script is correct? My omxplayer script doesn't call bind.

$ grep bind  `which omxplayer`
$
@rabreu

I'm using this one:

https://raw.github.com/popcornmix/omxplayer/master/omxplayer

I think it's the line:

echo 0 > /sys/class/vtconsole/vtcon1/bind
@popcornmix
Owner

@skgsergio
The repo omxplayer (script) and the deb omxplayer are different - any reason not to merge them?

@skgsergio

@popcornmix Because my script has two warnings that are for raspbian, anyway I can rewrite them to be generic and make a pull request. Anyway the ArchLinux package installs his script so the repo script is not used there.

@rabreu

I just messaged the omxplayer-git aur package maintainer to take a look at this thread.

@parched

The reason the AUR version has a different start up script is because of the different font directory. Would the normal version use /usr/share/fonts/TTF/FreeSans.ttf ? If it does then there should be no need for the change. If it doesn't it would be better to patch the source in the PKGBUILD than provide a different launch script I think.

@rabreu

I had to install the package ttf-freefont and create symbolic links for solving this issue:

$ ls -l /usr/share/fonts/truetype/freefont/            
total 0
lrwxrwxrwx 1 root root 33 Nov 13 20:11 FreeSans.ttf -> /usr/share/fonts/TTF/FreeSans.ttf
lrwxrwxrwx 1 root root 40 Nov 13 20:16 FreeSansOblique.ttf -> /usr/share/fonts/TTF/FreeSansOblique.ttf

Omxplayer-git package doesn't have ttf-freefont as a dep.

@parched

It's an optdepend, we should add this to the build()
sed -i "s,truetype/freefont,TTF,g" omxplayer.cpp
then we can use skgsergio's script

@rabreu rabreu closed this
@pickfire

I am using the omxplayer-git from Arch but even after

$ ls -l /usr/share/fonts/truetype/freefont/
total 0
lrwxrwxrwx 1 root root 33 Oct 28 15:12 FreeSans.ttf -> /usr/share/fonts/TTF/FreeSans.ttf
lrwxrwxrwx 1 root root 40 Oct 28 15:12 FreeSansOblique.ttf -> /usr/share/fonts/TTF/FreeSansOblique.ttf

The subtitle still doesn't work at all when I pressed m.

Subtitle count: 1, state: off, index: 1, delay: 0
@exidyboy

Subtitles are toggled on and off with the 's' key as per 'omxplayer -k'.

@pickfire

I tried that but the subtitle still isn't display in the screen.
And you can toggle subtitles with the 's' or 't' key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.