Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 01:45
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO 2012
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 20 of 27 [398 Posts]   Goto page: Previous 1, 2, 3, ..., 18, 19, 20, 21, 22, ..., 25, 26, 27 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Thu 21 Mar 2013, 20:35    Post subject:  

goingnuts wrote:
jwm-0.21 did have a build-in xload tray-thing beside clock - might be worth looking at that for a start. Can the svg be adapted to gtk1? (it is my impression that svg-support are linked to gtk2 but I might be total wrong)
IIRC as long as you build gdk-pixbuf and then librsvg (the module is in the librsvg package itself instead of gdkpixbuf) I'll have to check.

Re: tray apps ... maybe we are going about this all wrong - how about swallowing a gtkdialog1 app? ... it could monitor network, battery, volume, cpu, temperature, memory, savefile, weather, stock ticker, (this can be set by a single awk script) ... all in one (configurable) applet this would cut resource usage by only using one binary and also speed up loading of gtkdialog (because there is already a hot copy in ram)

That reminds me that I wanted to look into a way to allow running only a single instance of gtkdialog. I think if maybe we set up a pipe and use stdin as the gtkdialog input attached to that pipe it would be do-able from a while loop that just monitors a directory/file for new gtkdialog xml and cat's the new files (out to the pipe and into gtkdialog) ... I'm not sure how many windows gtkdialog1 is able to open simultaneously though (or how if at all) - It probably needs a way to tell the end of that window similar to </window> in gtkdialog2-4

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 2528
Location: Everybody knows this is nowhere...

PostPosted: Fri 22 Mar 2013, 18:39    Post subject:  

Requesting another tray app -- one for volume. alsamixer works -- but I've still got one mute puppy here...
_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Sun 24 Mar 2013, 14:55    Post subject:  

technosaurus: gtkdialog1 can be swallowed by jwm so guess its more or less a question if we can make dynamic changing pixmaps or text to do it.

starhawk: So alsamixer works but does not give you sound or what?

Found an alternative xload-monitor (hot-babe-0.2.2-gtk1+2pets) and did a quick backport to gtk1 to a working state. Thought I better bury it here and not in the "Additional Software"-section...But the coding principle is interesting and could be used with other images - and it is more fun as-is than xload during a kernel-compile... Patch2gtk1 attached.
hot-babe-0.2.2.diff.gz
Description  fake .gz
gz

 Download 
Filename  hot-babe-0.2.2.diff.gz 
Filesize  3.89 KB 
Downloaded  77 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
starhawk

Joined: 22 Nov 2010
Posts: 2528
Location: Everybody knows this is nowhere...

PostPosted: Sun 24 Mar 2013, 15:16    Post subject:  

That's correct -- I can play CDs because that's handled 99% by the CD drive -- it just pipes audio to the computer and the computer dumps it to the speakers. I think.

But any sort of internal playback -- mp3 or wav -- doesn't happen. minimp3 and mpg123 both claim to be playing, but I get no sound whatsoever.

IIRC in mainline Puppies and most Puplets -- there are TWO volume controls. One is ALSA. The other is the volume tray app that doesn't exist in pUPnGO.

I suspect that in my case, the lack of a volume tray app may be causing problems. (I also want to say that I remember mucking around with either original pUPnGO or a very early pUPnGO2012 where we got the volume tray app put in, and suddenly I was able to fix the issue... but I can't remember for sure.)

Perhaps there's a way to simply pull that app from p412 and stuff it into pUPnGO2012? I mean, the pUPnGO2012+ version I'm working with started off at 116mb, so I'm not nearly as concerned about size as you are Wink Speed and size usually go hand-in-hand but I doubt I'd find another Puppy that's nearly this responsive on this system at this size. Heck, Puplite5 is ~79mb and it is nearly painful to use.

_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Sun 24 Mar 2013, 15:27    Post subject:  

Did you try this? Uses same functions as absvolume. What soundcard do you have?
Back to top
View user's profile Send private message Visit poster's website 
starhawk

Joined: 22 Nov 2010
Posts: 2528
Location: Everybody knows this is nowhere...

PostPosted: Sun 24 Mar 2013, 15:52    Post subject:  

Hadn't tried pmvol. I'll check it out shortly.

The CPi D***XT models use the Crystal 4237B ISA-based card. Driver is snd-cs4236.ko.

_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Sun 24 Mar 2013, 16:37    Post subject:  

If you look in /sys/bus/isa/devices - is it mentioned there?
You might want to run alsaconf - it has the possibility to probe non-pnp ISA-cards - cant test if it works but it tries...
Take alsaconf, alsactl, amixer and aplay from P412 and try to run alsaconf. It needs bash and dialog and maybe some additional libraries. I do have a static cut-down version but its too big to post here and as said above I cant test if it really works.
Back to top
View user's profile Send private message Visit poster's website 
starhawk

Joined: 22 Nov 2010
Posts: 2528
Location: Everybody knows this is nowhere...

PostPosted: Sun 24 Mar 2013, 16:40    Post subject:  

Had to install a GTK-1.2 pet to make it work. No probs there, but...

Code:
GLib-WARNING **: getpwuid_r(): failed due to: No such user 0.


So it doesn't show up Sad

_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 2528
Location: Everybody knows this is nowhere...

PostPosted: Sun 24 Mar 2013, 17:01    Post subject:  

A (very) small contribution of my own -- icons for SNS-Retro Wink

Two icons, one 24px and the other 48px.
snsretro48.png
 Description   48px icon for SNS-Retro.
 Filesize   378 Bytes
 Viewed   200 Time(s)

snsretro48.png

snsretro24.png
 Description   24px icon for SNS-Retro.
 Filesize   209 Bytes
 Viewed   196 Time(s)

snsretro24.png


_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Sun 24 Mar 2013, 17:16    Post subject:  

Nice...
Here is a static pmvol which works in pupngo2012 (here...)
Back to top
View user's profile Send private message Visit poster's website 
starhawk

Joined: 22 Nov 2010
Posts: 2528
Location: Everybody knows this is nowhere...

PostPosted: Sun 24 Mar 2013, 18:16    Post subject:  

I think there's something wrong with that driver, or with ALSAmixer. I'm really not sure what's going on -- the ALSA settings aren't persistent between boots, and even when I jack the volume all the way up with pmvol, having maxed out nearly every setting in ALSAmixer, it still doesn't play MP3s.

Very strange.

Maybe the driver's not quite an exact match?

_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sun 24 Mar 2013, 19:20    Post subject:  

if you need to test your sound try

cat ....bark.wav >/dev/dsp
or
cat ...bark.au >/dev/audio

(path is in /usr/share/...? audio or sound or something)

then you can tell if it is mixer problem

I posted one called mmix to the old pupngo thread a long time ago - it is extremely light and works with oss vs. alsa ... worth a try if you may have an old oss only card

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sun 24 Mar 2013, 19:39    Post subject:  

goingnuts wrote:
technosaurus: gtkdialog1 can be swallowed by jwm so guess its more or less a question if we can make dynamic changing pixmaps or text to do it.
I submitted a patch to thunor to add this capability to gtkdialog-trunk, though I made provisions to use only (slower) gio functions for portability rather than using inotify directly. My patch added a watch for all files, but he added an attribute flag to turn on watching and made it work for other widgets as well (anything that gets input from a file). I can look at my early versions of SIT to use inotify for gtkdialog1 since we are pretty much the only users (does anyone know what kernel version added inotify? ... need to know that if you plan on sticking with the older kernel - I am standardizing my current code on linux-3.8 for specific reasons, so its hard to tell) anyhow let me know if anyone is interested in this or has suggestions to make it better for a specific project they have in mind.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 2528
Location: Everybody knows this is nowhere...

PostPosted: Sun 24 Mar 2013, 23:05    Post subject:  

Code:
cat /usr/share/audio/2barks.au > /dev/audio

...makes it bark! Very Happy

Now: why on EARTH would the alsamixer settings not persist across boots? Started when I installed pmvol... I wonder if it has to do with this OSS-only stuff... what is OSS anyways?

_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Mon 25 Mar 2013, 01:38    Post subject:  

the .wav to /dev/dsp didn't though?

I also wanted to point this out:
http://www.newegg.com/Product/Product.aspx?Item=N82E16834760001
($40 netbook)

I ordered one myself and it seems like the perfect little testbox for an arm'ngo experiment. Craig has a zip file with the "firmware" inside as raw files with shell scripts, so it is straight forward to figure out what modules are needed and how to install it to disk ... though the uboot configuration may need further study as it is significantly different from grub, lilo, syslinux and isolinux

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 20 of 27 [398 Posts]   Goto page: Previous 1, 2, 3, ..., 18, 19, 20, 21, 22, ..., 25, 26, 27 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0748s ][ Queries: 13 (0.0106s) ][ GZIP on ]