Hotkeys not working under Arch Linux Arm #97

Closed
rabreu opened this Issue Nov 18, 2013 · 27 comments

Comments

Projects
None yet
6 participants

rabreu commented Nov 18, 2013

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 Nov 18, 2013

Closed

Hotkeys not working under Arch Linux Arm #208

parched commented Nov 19, 2013

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

rabreu commented Nov 19, 2013

@parched Are you running Arch Linux or raspbian?

parched commented Nov 19, 2013

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

parched commented Nov 20, 2013

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 commented Nov 21, 2013

Let us know if you find a solution.

parched commented Nov 22, 2013

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

rabreu commented Nov 22, 2013

"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 commented Nov 22, 2013

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 commented Nov 24, 2013

@skgsergio yaaaaaaaay! It finally worked!

Thanks in advance!

skgsergio pushed a commit to skgsergio/omxplayer that referenced this issue Nov 25, 2013

Fix DBus issues: popcornmix/omxplayer#59 and popcornmix/omxplayer#97
Uses an adapted version of fcarlier fix.

skgsergio added a commit to skgsergio/omxplayer that referenced this issue Nov 25, 2013

Fix DBus issues: popcornmix/omxplayer#59 and popcornmix/omxplayer#97
Uses an adapted version of fcarlier fix.

@rabreu rabreu closed this Dec 1, 2013

@rabreu rabreu reopened this Dec 1, 2013

rabreu commented Dec 1, 2013

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)

rabreu commented Dec 3, 2013

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:

rabreu commented Dec 31, 2013

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.

Owner

popcornmix commented Jan 1, 2014

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

$ grep bind  `which omxplayer`
$

rabreu commented Jan 1, 2014

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
Owner

popcornmix commented Jan 4, 2014

@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.

rabreu commented Jan 4, 2014

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

parched commented Jan 4, 2014

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 commented Jan 4, 2014

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 commented Jan 4, 2014

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 Jan 11, 2014

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment