Active Topics

 


Reply
Thread Tools
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#971
@ Addison, did you get this working?
Sorry. No.

This is what I did after starting the log file.

Power button
Audio Lock Feature
(no music played)
Zoom in
Zoom out
Full Screen x 2
Power button
Center D-Pad
Fired up Xmms and pressed play in the app.
Minimized Xmms
Power button
Audio Lock Feature
(music played for about 4 seconds then it started the song again)
Zoom in
Zoom out
Full Screen
(no changes in the song, it just kept playing)

And yeah, I have a full playlist, the keys stopped working.

Also, the times when the Zoom in and out keys do work, it's now bringing up the Playlist on the screen for some reason.

I don't remember it ever doing this before.

This is exactly when I have for the settings.

Code:
- launch LC_MESSAGES=C LANG=C xmms ; sleep 2 ; xmmsctrl main 0 play_list 1 play
plus exec xmmsctrl next
minus exec xmmsctrl previous
fullscreen exec xmmsctrl pause
asui-debug-20111221-164052-r2.zip
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#972
Originally Posted by Addison View Post
Code:
- launch LC_MESSAGES=C LANG=C xmms ; sleep 2 ; xmmsctrl main 0 play_list 1 play
Couple problems.

1) Put an & after xmms "... LANG=C xmms& ; ..." otherwise the sleep and xmmsctrl probably won't be run until you close xmms. You need to do this but it isn't your current problem, #2 is.

2) Put the commands inside a file called "xmms" in the /etc/asui-audio-lock-profiles directory. Full filename will be "/etc/asui-audio-lock-profiles/xmms". Then restart ASUI or run asui reload_ap and you should see "xmms" on the audio lock button when you single tap it. Long press should now activate that profile.

The debug log will say that it found the xmms audio lock profile, which it doesn't say. It will also list each command, which it also doesn't. This means you don't have any non-hidden files inside the audio lock profile directory. Hidden files begin with a period and ASUI will ignore them.
 

The Following User Says Thank You to auouymous For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#973
I have

/etc/asui-audio-lock-profiles/Xmms

Everything you just said is what I already had when running the debug crap for you.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#974
Wait, I'm confused now...

I do or don't need any hidden files in that folder?

Because Xmms is all that's in there.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#975
Anyway,

Code:
- launch LC_MESSAGES=C LANG=C xmms& ; sleep 2 ; xmmsctrl main 0 play_list 1 play
Still doesn't play Xmms at launch.

If it's already running though, it works pretty good.

Adding the & seemed to stop the playlist from popping up on the screen.

But yeah, for some reason, your script poops out, usually under 30 seconds, and all the keys become unresponsive.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#976
Sorry for spam posting buddy. *lol*


Anyway, in that one Quickswitch script that will always change tracks while using the tablet, this is how I launch Xmms.

(sleep 2; xmmsctrl launch main 0 play) &
LC_MESSAGES=C
LANG=C
xmms

This does make it so a song immediately begins to play.

Hope that helps.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#977
Originally Posted by Addison View Post
I have

/etc/asui-audio-lock-profiles/Xmms

Everything you just said is what I already had when running the debug crap for you.
Does the audio lock button say "Xmms" on it? Are you long pressing the audio lock button to activate audio lock and does it lock and blank your screen?

The debug log is telling me that both of those questions are a no.

When the audio lock button is drawn it will scan that directory and add each profile to the button. Tapping the button will cycle through profiles, displaying the name of the current profile on the button. Long pressing the button will load the profile and lock and blank the screen.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#978
Does the audio lock button say "Xmms" on it? Are you long pressing the audio lock button to activate audio lock and does it lock and blank your screen?
Yes. Yes. And Yes.

 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#979
Originally Posted by Addison View Post
Yes. Yes. And Yes.
I know the debug binary you have is the latest but it showed that the audio lock button had never been drawn or pressed. It also shows that you didn't tap any buttons or widgets during the test (no click button/widget messages). Did you send the correct log file?

Here is a sample of my log file and what yours should look like but doesn't. I've added a couple more log messages so run asui dd ; asui id again and make sure the log file is the newest and has these messages in it. And re-install the test binary immediately after as this debug binary has experimental alarmd code that hasn't been tested.

Button is drawn:
[2] [2.308202] found audio lock profile: "xmms"
[2] [2.308202] found audio lock profile: "panucci"

Long tap button to load profile:
[2] [12.783400] click button: *audio [down]
[2] [12.783400] click button: *audio [motion]
[2] [13.847503] click button: *audio [hold]
[2] [14.269625] click button: *audio [LONG]
[2] [14.269625] loading audio lock profile...
[2] [14.269625] audio lock: LAUNCH "su - user -c 'xmmsctrl launch play play_list 1'&"
[2] [14.269625] audio lock: PLUS bound to EXEC "su - user -c 'xmmsctrl next'&"
[2] [14.269625] audio lock: MINUS bound to EXEC "su - user -c 'xmmsctrl previous'&"
[2] [14.269625] audio lock: FULLSCREEN bound to EXEC "su - user -c 'xmmsctrl pause'&"
[2] [14.269625] activating "xmms" audio lock profile...

Tap button to cycle profile:
[2] [58.688170] click button: *audio [down]
[2] [58.801334] click button: *audio [SHORT]
[2] [58.801334] cycle audio lock profile
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#980
Okay.

I'll send another one in about 30 minutes.
 
Reply

Tags
bada blows, bada rox


 
Forum Jump


All times are GMT. The time now is 02:06.