
Loading…
I too have this problem, what should we check/do?
Arch, compiled from git like you. Hotkeys don't work via TTY or SSH. I haven't tried the non-git package however.
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.
Let us know if you find a solution.
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?
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
"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 -...
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.
@skgsergio yaaaaaaaay! It finally worked!
Thanks in advance!
|
|
Sergio Conde Gómez |
Fix DBus issues: popcornmix/omxplayer#59 and popcornmix/omxplayer#97
…
Uses an adapted version of fcarlier fix. |
b22081d
|
|
|
skgsergio |
Fix DBus issues: popcornmix/omxplayer#59 and popcornmix/omxplayer#97
…
Uses an adapted version of fcarlier fix. |
7f93b61
|
I thought this merge solved the problem, but it didn't.
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)
Running your script: http://pastebin.com/2edZbkj8
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:
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:
And then the raspi freezes and I have to force its reboot.
PS.: Running as root returns me the same error.
Are you sure the omxplayer script is correct? My omxplayer script doesn't call bind.
$ grep bind `which omxplayer`
$
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
@skgsergio
The repo omxplayer (script) and the deb omxplayer are different - any reason not to merge them?
@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.
I just messaged the omxplayer-git aur package maintainer to take a look at this thread.
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.
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.
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
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.ttfThe subtitle still doesn't work at all when I pressed m.
Subtitle count: 1, state: off, index: 1, delay: 0
Subtitles are toggled on and off with the 's' key as per 'omxplayer -k'.
I tried that but the subtitle still isn't display in the screen.
And you can toggle subtitles with the 's' or 't' key.
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.