Now that I think about it, perhaps it would be better to set a variable called RAMLEVEL (round down to the nearest power of 2 in Mb ... for instance 256mb would be ram level this would be useful for recommending defaultapps or hiding apps that outspec the machine in an app-chooser/package-manager.sc0ttman wrote: I do like this idea.. A LOT.. Defo something for pUpnGo or PULP, and I will look into it as well.. This would squeeze out all the extra performance possible on older PCs
Good thinking, hope I can do something with it!
EDIT: Hmmmm, maybe combine the OTF-SFS loader and the RAM-check thing to auto-load any additional SFS files found, if enough RAM... I could move some of the larger apps into a separate SFS, which is only loaded when enough RAM is available..
Akita Linux, Beta 16 ISO
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
scOttman
restartjwm.log appears in /tmp
There are slight differences in the time the refresh takes, but only a second or two, and the main delay is always on 'fixmenus'.
Muted sound:
Bit of a hack, but adding
to ~/Startup/retrovol
does the trick. I'm sure there are better places to put the lines, but it'll do me for now.
(got this from: http://tldp.org/HOWTO/Alsa-sound-7.html)
restartjwm.log appears in /tmp
There are slight differences in the time the refresh takes, but only a second or two, and the main delay is always on 'fixmenus'.
Muted sound:
Bit of a hack, but adding
Code: Select all
amixer set -c 0 Master 70 unmute
amixer set -c 0 PCM 70 unmute
does the trick. I'm sure there are better places to put the lines, but it'll do me for now.
(got this from: http://tldp.org/HOWTO/Alsa-sound-7.html)
Last edited by Keef on Fri 22 Jul 2011, 23:16, edited 1 time in total.
Hi sc0ttman, thanks for working on Opera. I will test it all this weekend. Also, I like the ideas for personalizing the desktop, works for me! As does Akita Linux, as you are right, it is much different than 4.20, but I am beginning to like it as much as 4.20, which is still my favorite. Thanks, Rob
OK cool, thanks very much hope it works OK... I had no problems with Opera, tried facebook, youtube, google, yahoo mail, mashable, and wired news.. Spend about 30-40 mins browsing, no crashes, no issues for me..oligin10 wrote:Hi sc0ttman, thanks for working on Opera. I will test it all this weekend. Also, I like the ideas for personalizing the desktop, works for me! As does Akita Linux, as you are right, it is much different than 4.20, but I am beginning to like it as much as 4.20, which is still my favorite. Thanks, Rob
Keef, I have attempted to make the "Refresh Desktop" as fast as possible.
I also did the same with a few other scripts,
here are the changes I have made since uploading that Alpha7 ISO..
x updated PPM, now scalable, updated .mo files (en, fr)
x changed from htop to lxtask in jwm apps menu (~/.jwmrc-apps)
x updated livepackages files to make the columns widths shorter in PPM
x fixed /usr/sbin/create_jwmrc_drives.sh - all icons should now be correct again
x update VLC-GTK
- kill vlc_nogui as well as vlc
- pass fullscreen setting onto vlc-gtk-btns, so it know whether or not to resize playback window on first load
- disabled fullscreen by default
x updated VLC-GTK-BTNS (the on screen controls)
- less time skipped with each SKIP button press (now only 1min)
- hides toggle subtitle button for newer VLC (controls changed)
- only run resize_playback function if not fullscreen at startup
- run resize_playback twice - required for large res files
- updated tooltips
x updated toggle-rox-desktop
- uses sed on the .jwmrc file in /root now *as well*, to update wallpaper settings
- now only needs "jwm -restart", not "restartjwm"
x updated restartjwm, rc.services, .xinitrc, toggle-rox-desktop, startups, fixmenus, pup_event_frontend_d, pup_event_backend_d,
- all now use ash (and LANG=C, where possible).. and are now faster
I have yet to run the 'time' command on the changes, compared to the old files, but it is definitely quicker! the "Refresh Desktop" command is not about 3 seconds quicker, down to about 4 seconds, on my 1gz sempron.
I still want it faster, of course, but I think that is about the limit.
Unless someone knows how to make these scripts faster
Last edited by sc0ttman on Sat 23 Jul 2011, 13:29, edited 3 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
YOU da man! Nice, I'll add it somewhere appropriate...Keef wrote:scOttman
restartjwm.log appears in /tmp
There are slight differences in the time the refresh takes, but only a second or two, and the main delay is always on 'fixmenus'.
Muted sound:
Bit of a hack, but addingto ~/Startup/retrovolCode: Select all
amixer set -c 0 Master 70 unmute amixer set -c 0 PCM 70 unmute
does the trick. I'm sure there are better places to put the lines, but it'll do me for now.
(got this from: http://tldp.org/HOWTO/Alsa-sound-7.html)
Cheers for that.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
puplite alpha7, update 001
here's a pet with most of the stuff I have updated since uploading the alpha7 ISO ...
(not including opera package updates, of course)
Install when not using a save file!!, boot with pfix=ram
Includes:
- all the stuff I did since, plus Keefs amixer fix thing in .xinitrc
EDIT: Adding the amixer commands into xinitrc makes my volume go up to 100% on PCM and MASTER ..
Distorting the sound quite badly..
Must find a way to check if muted, then apply the fix!
EDIT 2: Is this relevant? Would knowing the value (1 or 0) help? or maybe
EDIT 3:
The above may or may not be relevant, but I changed the values from 70 to 30 (master) and 21 (pcm), as amixer sees 31 and over as 100%.. This seems to work fine for me (not included in update-001).
Testers, please :
- Test audio volumes, good info in /proc/asound
- Test the speed of desktop switching and desktop refresh!
- Don't be as dumb as me, and think it through first...
Run the command:
then install the update-001.pet and run it again! I didn't, before remastering!
...But I can test in an older Puplite, will reboot it soon..
(not including opera package updates, of course)
Install when not using a save file!!, boot with pfix=ram
Includes:
- all the stuff I did since, plus Keefs amixer fix thing in .xinitrc
EDIT: Adding the amixer commands into xinitrc makes my volume go up to 100% on PCM and MASTER ..
Distorting the sound quite badly..
Must find a way to check if muted, then apply the fix!
EDIT 2: Is this relevant? Would knowing the value (1 or 0) help?
Code: Select all
cat /proc/asound/pcm
Code: Select all
cat /proc/asound/card1/pcm0
The above may or may not be relevant, but I changed the values from 70 to 30 (master) and 21 (pcm), as amixer sees 31 and over as 100%.. This seems to work fine for me (not included in update-001).
Testers, please :
- Test audio volumes, good info in /proc/asound
- Test the speed of desktop switching and desktop refresh!
- Don't be as dumb as me, and think it through first...
Run the command:
Code: Select all
time restartjwm
...But I can test in an older Puplite, will reboot it soon..
- Attachments
-
- puplite_alpha7_update-001.pet
- (73.11 KiB) Downloaded 323 times
Last edited by sc0ttman on Sat 23 Jul 2011, 18:02, edited 8 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Re: speeding up refresh
One way would be to parse all of the .desktop files for the necessary info into a file similar to the pet packages list, and maybe drop a timestamp so only new entries need to be parsed. ( I once did this parsing for a gtkdialog program that showed each program in its own categorized notebook tab.... )
Ideally this file should be generated/updated via installpkgs.sh so that the menu generator can be a single awk command.
Ex. (untested b/c I am posting from my Droid)
Category¦name¦description¦icon¦executable....
grep $some_category file ¦awk -f "¦" {print ... $2.....$5.....}
One way would be to parse all of the .desktop files for the necessary info into a file similar to the pet packages list, and maybe drop a timestamp so only new entries need to be parsed. ( I once did this parsing for a gtkdialog program that showed each program in its own categorized notebook tab.... )
Ideally this file should be generated/updated via installpkgs.sh so that the menu generator can be a single awk command.
Ex. (untested b/c I am posting from my Droid)
Category¦name¦description¦icon¦executable....
grep $some_category file ¦awk -f "¦" {print ... $2.....$5.....}
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
Isn't the actual "/usr/sbin/fixmenus" script mostly unchanged in all puppies?? Cos if fixmenus is the same across many puppies, or at least the JWM part, then it might be worth doing.. Not got my head round the code quite yet, though.technosaurus wrote:Re: speeding up refresh
One way would be to parse all of the .desktop files for the necessary info into a file similar to the pet packages list, and maybe drop a timestamp so only new entries need to be parsed.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Yes it is mostly the same, but the code for building the menus from .desktop files is the slow part iirc. (each file takes ~.02s) ... it may require modifying the templates too... personally I would have all the templates as variables in the fixmenus script.sc0ttman wrote:Isn't the actual "/usr/sbin/fixmenus" script mostly unchanged in all puppies?? Cos if fixmenus is the same across many puppies, or at least the JWM part, then it might be worth doing.. Not got my head round the code quite yet, though.technosaurus wrote:Re: speeding up refresh
One way would be to parse all of the .desktop files for the necessary info into a file similar to the pet packages list, and maybe drop a timestamp so only new entries need to be parsed.
BTW bashbox has a utility called time2 that gives finer grained results than time by using the difference between date before and after.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
I applied the update pet.
Got the barks after running alsaconf to load the module.
Ran retrovol and sound was on about 70%. After a reboot it was up to 100%.
Volume info looks to be in /etc/asound.state. I kept a copy when it was on 100%. Lowered it to around 70% then ran to save the settings. Ran Xfdiff-cut on the two files (renamed one of them of course), and the values changed as below:
Edit: when muted, the value is 0 of course.
There is the alsafix.pet for Lucid which aims to fix the same problem, but it won't work on Puplite (I gave it a hopeful shot...).
See here
The script in the pet is a bit beyond me to see if it can be adapted. Actually any script over about 5 lines long brings on a glazed look.
Got the barks after running alsaconf to load the module.
Ran retrovol and sound was on about 70%. After a reboot it was up to 100%.
Volume info looks to be in /etc/asound.state. I kept a copy when it was on 100%. Lowered it to around 70% then ran
Code: Select all
#alsactl store
Code: Select all
name 'Master Playback Switch'
value true
}
control.2 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -4650
comment.dbmax 0
iface MIXER
name 'Master Playback Volume'
value.0 23
value.1 23
}
Code: Select all
control.2 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -4650
comment.dbmax 0
iface MIXER
name 'Master Playback Volume'
value.0 13
value.1 13
}
Edit: when muted, the value is 0 of course.
There is the alsafix.pet for Lucid which aims to fix the same problem, but it won't work on Puplite (I gave it a hopeful shot...).
See here
The script in the pet is a bit beyond me to see if it can be adapted. Actually any script over about 5 lines long brings on a glazed look.
Thanks for the info again, Keef, I will update the file in /etc/asound.state,Keef wrote:I applied the update pet.
Got the barks after running alsaconf to load the module.
Ran retrovol and sound was on about 70%. After a reboot it was up to 100%.
Volume info looks to be in /etc/asound.state. I kept a copy when it was on 100%. Lowered it to around 70% then ranto save the settings.Code: Select all
#alsactl store
or add one there, if it's not already there (I've yet to check it all out)..
Just for you info, I think I will continue to use the following in ~./xinitrc.
I hope this does not conflict with the settings in /etc..
Any thoughts?
Code: Select all
amixer set -c 0 Master 30 unmute
amixer set -c 0 PCM 21 unmute
So, the above code should enable PCM at 70% and master at 100%,
which is as loud I can get across PCs, without distortion.
I think I may also need to add another line, to control the CENTER speaker as well, to cover laptops as well. But I am not sure.
Hope that all makes sense.
EDIT: This may also be relevant: http://murga-linux.com/puppy/viewtopic. ... 623#546623
Last edited by sc0ttman on Sun 24 Jul 2011, 12:00, edited 1 time in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
Maybe I could start a thread about "improving fixmenus",technosaurus wrote:the code for building the menus from .desktop files is the slow part iirc. (each file takes ~.02s) ... it may require modifying the templates too... personally I would have all the templates as variables in the fixmenus script.
just like the "improving snapmerge" thread...
Great, I will have a look. Yet to get onto checking out bashbox,BTW bashbox has a utility called time2 that gives finer grained results than time by using the difference between date before and after.
but I look forward to it, hope I can use it to replace lots of other code snippets and functions used elsewhere.. I already noticed FFConvert 1.1-devel, and will start making the wrapper "/usr/bin/ffconvert" containing "exec bashbox ffconvert".. Is that the right way to do it?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Flash problems
Hi Scott, just wanted to give you a quick update. All my testing is from live cd, running in ram. Booted cd, wif connection, installed Opera from browser install, ran update.pet (definitely made my sound much louder), installed flash 10.pet using your flash installer. Went to insideline.com, went to video sub section, still complains needs Adobe flash 9 or newer. Flash does not show up in installed .pets. After installing flash 10.1rc pet from forum, flash works fine. Also, is cups already installed? Had to install cups to do printer setup. Also, puppizard has 2 menu entries. Went to PPM, saw new Wary repository. Thanks again, Rob
Edit 1: Sound works upon boot, but having problems with not seeing sound button in jwm tray.
Edit 1: Sound works upon boot, but having problems with not seeing sound button in jwm tray.
Re: Flash problems
Hi oligin10,oligin10 wrote:Hi Scott, just wanted to give you a quick update. All my testing is from live cd, running in ram. Booted cd, wif connection, installed Opera from browser install, ran update.pet (definitely made my sound much louder), installed flash 10.pet using your flash installer. Went to insideline.com, went to video sub section, still complains needs Adobe flash 9 or newer. Flash does not show up in installed .pets. After installing flash 10.1rc pet from forum, flash works fine. Also, is cups already installed? Had to install cups to do printer setup. Also, puppizard has 2 menu entries. Went to PPM, saw new Wary repository. Thanks again, Rob
Edit 1: Sound works upon boot, but having problems with not seeing sound button in jwm tray.
Glad wifi is working, which tool did you use to connect?
And yeah.. The menu needs a lot of cleaning up, puppizard and more!
It is one of the last jobs I will do.
Hmm, I will test Opera on that site as well.. The Flash installer downloads the latest from the Adobe site, and unpacks it to /usr/lib/mozilla/plugins .. At least is should (always works for me)..
And no, cups it not installed by default, there is an all-one-one printing SFS file that you can download ... It is here: http://eminima.org/puplite/ .. I do not use printing if I can help it, am am a real CUPS noob, so cannot offer much help with printing.. But I do know the CUPS package in the printing SFS is the one from the pup4 repo which actually works..
The retrovol audio mixer will not appear in the tray by default, it must be enabled first. Go to Menu->System->Startups and enable it from there. Then restart X. It will then load up in the tray every time X starts..
Also, the Wary repo is not done yet, it's not showing the actual Wary5 repo, when it does, most pets will end with 'w5' ... It will be the main repo, but there will not any way of checking which are already installed.. Care will need to be taken.
Thanks again for testing, it's a real help, makes life much easier for me!
cheers
Last edited by sc0ttman on Sun 24 Jul 2011, 18:52, edited 3 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
OK cheers, that was my first thought, but thought I'd check.technosaurus wrote:You don't even need a wrapper, just make a symlink of the same name as the function to bashbox.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
I think I've found a cleaner solution to retaining sound settings.
I've put into rc.local
and into rc.shutdown. Not sure if it matters where, but I placed it after the comment block around line 645.
This has been retaining any volume changes so far. Tested from a clean install without the update pet. Gleaned various bits of info from a forum search and then applied a bit of trial and error. I don't actually understand what I'm doing half the time
I've put
Code: Select all
alsactrl restore
and
Code: Select all
alsactrl store
This has been retaining any volume changes so far. Tested from a clean install without the update pet. Gleaned various bits of info from a forum search and then applied a bit of trial and error. I don't actually understand what I'm doing half the time
Errr... I get 'command not found' .. I don't seem to have alsactrl installed.. Are you sure you have?Keef wrote:I think I've found a cleaner solution to retaining sound settings.
I've putinto rc.localCode: Select all
alsactrl restore
andinto rc.shutdown. Not sure if it matters where, but I placed it after the comment block around line 645.Code: Select all
alsactrl store
This has been retaining any volume changes so far. Tested from a clean install without the update pet. Gleaned various bits of info from a forum search and then applied a bit of trial and error. I don't actually understand what I'm doing half the time
EDIT... I have alsactl .. that must be it, right?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
Still helping me learn!Keef wrote:Talk about proving a point...
typo - should be alsactl
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]