Author Topic: Why doesn\'t the xmms GUI work on Sharp ROM?  (Read 7330 times)

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Why doesn\'t the xmms GUI work on Sharp ROM?
« on: April 27, 2004, 03:26:07 pm »
Hi,

I\'d dearly like to be able to use xmms-embedded v. 7 on my 5500 with the Sharp 3.13 ROM (actually the Cacko kernel but it\'s essentially 3.13). Version 5 does work, but is buggy, so I\'d like to give 7 a try. I\'ve installed it and all its dependencies and I\'ve done some homework. Here is what I know.

If I click on the xmms icon or run it from the command line, the program begins, but no GUI pops up; it appears to be hung. But, if I start a second terminal,  I can send it commands like \"xmms -p\" and \"xmms -f\" which tell the original xmms to play or fast forward a song, and these work! I can play mp3s and oggs, build a playlist (by hand) and step through it, etc.; I just don\'t get a pretty GUI.

Any ideas or tips? Has anyone tried compiling it specifically for Sharp ROM? I\'m assuming this is an opie vs. qte thing, but perhaps there is some trick to it?

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #1 on: April 27, 2004, 09:40:49 pm »
I have run into this also.  Running as root I get the error \"Qt embedded directory is not owned by user 0\" and it quits. The only way i got it to run is by ssh into zaurus as root and running xmms.  Or by opening  a terminal on the Z and running as root \"ssh localhost\" and then xmms.  It seems like a permissions error somewhere but I am not sure where.
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #2 on: April 28, 2004, 12:59:52 pm »
cmisip -

SWEET! I saw your comments on the shoutcast thread, and have been able to reproduce your results. The fact that it works as root means there is nothing fundamentally weird about the build or the opie/qte issue. So I have hope that an adequate amount of headbanging and permission twiddling will allow me to run it normally as zaurus.

BTW, the GUI glitches that I saw in v 5 don\'t seem to show up in v 7, so now I am even more eager to get v 7 running.

Since v 5 runs as zaurus, I\'ll try to do a permission check between the two versions and see if I can discover anything that way.

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #3 on: April 28, 2004, 03:57:22 pm »
You could just hold your stylus down on its icon and tick the \'Run as root\' box. It probably tries to write/access config files under /home/root
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #4 on: April 28, 2004, 05:31:08 pm »
Quote
You could just hold your stylus down on its icon and tick the \'Run as root\' box. It probably tries to write/access config files under /home/root

Nope - that isn\'t enough. Don\'t know why, but it is something deeper than that.

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #5 on: April 28, 2004, 06:52:28 pm »
I found out that you dont have to do a \"ssh localhost\" at all.  Just do a \"export LOGNAME=root\" as user root and run xmms.  Getting closer.
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #6 on: April 29, 2004, 04:28:11 pm »
Yes, I caught the \"export LOGNAME\" thing from the other thread.

I do have a new data point. I have a little script with the following:

#! /bin/sh
LOGNAME=root
sudo /home/QtPalmtop/bin/xmms

This works reliably when run from a command prompt as user zaurus. I\'ve tickled so many permissions, that I\'m not sure it is sufficient, but it does work. I now compare results when I run this script vs. when I run /home/QtPalmtop/bin/xmms directly (from the command prompt). They both dump the same information to the screen up through loading the playlist, but then the plain \"xmms\" command hangs when trying to start some timer. This is what I see:

Quote
...
Added /usr/mnt.rom/card/Documents/audio/ogg/12_Storms_In_Africa_II.ogg
Playlist loaded
pl set pos flushing
SONGSPLAYED=0
                   ------    this is where it hangs; if I use the script, I then see the following
Creating timer object
Making connections
Starting timer
Initializing done
Starting playing
Setting oss_p_p
...

So I guess there is some timer somewhere that \"zaurus\" isn\'t allowed to touch, but \"root\" is. It doesn\'t seem to be something in /dev (I\'ve changed all the permissions), maybe something in the kernel that qt accesses?

I\'ll keep slogging.

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #7 on: April 29, 2004, 11:04:04 pm »
I too tried a bunch of things but couldn\'t get user zaurus to run with the gui.  I\'m ok with running it as root I just want to be able to run it from the zaurus menu.  How do you map a menu entry to an app or script?
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #8 on: April 30, 2004, 11:48:30 pm »
Ok I figured it out. Runs from the menu now.
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #9 on: May 01, 2004, 01:44:07 am »
Arf. I was just going to proudly announce that I got it all figured out, but you beat me to it by 2 hours :-) The key for me was learning to use \"#! /bin/bash --login\" in my shell script: then the Apps icon started working (as user zaurus). I\'ll post my full set of notes on Monday. Maybe if others are interested, we can craft a HOWTO?

Thanks for your insights, cmisip. I\'m off to enjoy a few tunes :-)

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #10 on: May 01, 2004, 04:23:25 am »
I already have it up on http://cmisip.home.insightbb.com/index.htm
If you wish to add anything, let me know.  Thanks for your insights as well.


Currently listening to some classical music via shoutcast xmms.  
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #11 on: May 04, 2004, 02:27:44 am »
Hey I just did your howto cmisip.  Thanks for your great instructions I now have xmms working!  I had to do a few little extra things to get it working for me so I\'ll say them hear in case anyone else is installing xmms from scratch.

1.  I had to make the directory /usr/local/qt-embedded/lib/fonts before symlinking it.
2.  Run \'ldconfig\' after it\'s all installed but before I started it so xmms would see libxmms.so.1 and probably other libs.
3.  and \'chmod +x xmmsplay.sh\' or a similar command so the script will be executable

These are simple things but they might not be obvious to the newbie.  Hope it helps anyone using cmisip\'s howto.
Now it all works for me so far.  Except there is no taskbar icon for xmms which makes it a pain to get back if it loses focus.

Anyone know how to get it to have a taskbar icon?  Is it something to do with the way it is started?  The script, root?

Thanks again cmisip and mike_r for figuring this out.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

orthogonal

  • Newbie
  • *
  • Posts: 34
    • View Profile
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #12 on: May 04, 2004, 06:29:33 pm »
Can someone explain why it\'s necessary to run xmms as root?
Sharp Zaurus 5600  \"Special ROM\" 1.3   Ambicomm WL1100C CF Wifi  SanDisk 512MB SD

orthogonal

  • Newbie
  • *
  • Posts: 34
    • View Profile
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #13 on: May 04, 2004, 08:08:11 pm »
How do I set a start up directory for xmms? /home/zaurus isn\'t a great place to syartup (mostly because so many programs throw crap into /home/zaurus for lack of any batter idea)

If a .xmms/xmms.m3u exists, xmms will load it on startup and write the current playlsit to it on exit. It will overwrite even if the file is -w; how can I make this file ro -- I\'d like to load teh same playlist regardless of what playist existed at last exit.

Thnaks.
Sharp Zaurus 5600  \"Special ROM\" 1.3   Ambicomm WL1100C CF Wifi  SanDisk 512MB SD

orthogonal

  • Newbie
  • *
  • Posts: 34
    • View Profile
Why doesn\'t the xmms GUI work on Sharp ROM?
« Reply #14 on: May 05, 2004, 03:28:09 pm »
when I was using xmms 0.5 (I guess it\'s actually called 0.00005), I assigned xmms to the \"email\" button, so that pressing the email button started xmms if it wasn\'t already started, and switched to it if it was. Following the directions in cmisip\'s tutorial, I\'ve gotten xmms 0.00007 running, but with the email button assigned to xmms, pressing the button either does nothing or runs xmms without the gui window. The icon will start xmms, but it won\'t switch to an already running instance.

Any idea how to fix this, and parenthetically, why does everything about the zaurus have to be some incredibly difficult?
Sharp Zaurus 5600  \"Special ROM\" 1.3   Ambicomm WL1100C CF Wifi  SanDisk 512MB SD