Puppylinux for the OLPC laptops: XOpup

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: OLPC questions

#201 Post by mavrothal »

rrolsbe wrote:
IE.....
1.) How big of SWAP file to use if any.
2.) If it makes sense to reduce the /tmp file size
3.) Binary load times depending where/how they are loaded
RAM loaded sfs/remastered sfs file loop mounted from RAM/Flash device

Before I start testing my different options, Am I correctly understanding how the default operational configuration is working and what modification could be made to improve binary load time?

Thanks Much
Regards, Ron
Ron
I run the XO-1 with 256MB swap the last 4 years and never run out of RAM, so I would think 256MB swap is OK.
I do not think will make a difference if you reduce tmpfs size. If it did would be probably for the worse. But frankly I never tried it
I find that there is not big difference, if any, between having the binaries on the sfS of savefile, because on the sfs they are compressed, so you read faster but you need some time to decompress them.

If you want to test you can try a Racy build that I made some time ago which has seamonkey in the main sfs. Takes quite some time to load...

BTW seamonkey is probably one of the slowest to load. Unless you want the mail and html editor all in one, i find it fairly poor. Google-chrome or Midori are better options
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

sisusbvga

#202 Post by mavrothal »

Here is a pet that hopefully fixes the connection of an external monitor/projector to the XO via a usb2vga adaptor. It also provides a desktop application that can switch to the external monitor without the need to reboot.
Unfortunately, I have no way to test it since I do not have such an adaptor :shock:
So if you use it please report either way.
Attachments
sisusb.pet
usb2vga for the XO (do not use with other puppies)
(7.3 KiB) Downloaded 1077 times
Last edited by mavrothal on Tue 27 Mar 2012, 10:48, edited 1 time in total.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#203 Post by jakfish »

Hi, mavrothal,

Many thanks for your hard work and a great new JWM. Running it on a Lenovo S10-3t touchscreen netbook and 5.3 dpup-exprimo with the 3.1* kernel, frugal install on 8GB usb stick.

The larger title buttons are great. I'm still having trouble with screen rotation, however. I get the full rotation (something that didn't happen with previous JWMs), but the task bar remains in the middle of the screen (as though the screen were still in landscape mode).

I can not replicate this problem in IceWM,which rotates fine, but without the great new titlebar.

Any workarounds to this?

Many thanks,
Jake

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#204 Post by mavrothal »

jakfish wrote: The larger title buttons are great. I'm still having trouble with screen rotation, however. I get the full rotation (something that didn't happen with previous JWMs), but the task bar remains in the middle of the screen (as though the screen were still in landscape mode).
This sounds like an older jwm version. What "jwm -version" reports?

The jwm-2.1.1_2.pet also contains /usr/bin/olpc-rotate and /usr/sbin/olpc-rotate_shell. They should not affect non-XO buids but remove them just in case.
Also make sure that you to not have any other jwm executable but the one in /usr/bin.
Finally run in terminal (or from your rotation script)

Code: Select all

/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin
and see if this fixes it.

If all fails it may have to do with something exprimo specific. You may want to recompile for exprimo (is very simple), or ask Pemasu to do it.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#205 Post by jakfish »

Thank you for such a quick, helpful reply.

I did all your steps, but I'm still getting the failed transition from landscape to portrait, BUT only if the taskbar is set to auto-hide.

If it's set to "false," the rotation is fine.

A hassle, though, to have to keep resetting jwm-tray. Is there a workaround to this, or at least a piece of code that I can put in a script that will change auto-hide back and forth b/w true and false?

At this point, for simplicity, I have two desktop scripts:

xrandr -o left

and

xrandr -o normal

Any commands to add, that might change the taskbar hide/show, and I guess it would have to reset jwm as well?

Again, thank you for such great help,
Jake

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#206 Post by mavrothal »

jakfish wrote: A hassle, though, to have to keep resetting jwm-tray. Is there a workaround to this, or at least a piece of code that I can put in a script that will change auto-hide back and forth b/w true and false?
Try this

Code: Select all

sed -i 's/autohide\="false"/autohide\="true"/' /root/.jwmrc-tray # hide
sed -i 's/autohide\="true"/autohide\="false"/' /root/.jwmrc-tray # show
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#207 Post by jakfish »

Amazing. Those two commands absolutely do the job. Landscape to portrait and back again with the taskbar exactly where it should be.

With the large titlebar buttons and now-successful screen rotation, puppy can work on an S10-3t.

Many, many thanks for your incredibly fast help,
Jake

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#208 Post by jakfish »

mavrothal, one more thing, and it's more aesthetics than anything. While the taskbar (and w/ it, access to all programs) is now properly placed, the actual desktop screen remains in landscape mode.

So a lot of the desktop icons are hidden, as is the conky that lives at the upper right corner of my landscape screen, etc.

It's not a big deal, as long as any needed program is launched *after* a change to portrait.

Do you think that's a xrandr issue or something to do w/ jwm?

Thanks again for your assistance,
Jake

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: sisusbvga

#209 Post by mavrothal »

mavrothal wrote:Here is a pet that hopefully fixes the connection of an external monitor/projector to the XO via a usb2vga adaptor. It also provides a desktop application that can switch to the external monitor without the need to reboot.
Unfortunately, I have no way to test it since I do not have such an adaptor :shock:
So if you use it please report either way.
C'mon people be nice.
If anybody actually used it on an XO, please report
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#210 Post by mavrothal »

jakfish wrote:mavrothal, one more thing, and it's more aesthetics than anything. While the taskbar (and w/ it, access to all programs) is now properly placed, the actual desktop screen remains in landscape mode.

So a lot of the desktop icons are hidden, as is the conky that lives at the upper right corner of my landscape screen, etc.

It's not a big deal, as long as any needed program is launched *after* a change to portrait.

Do you think that's a xrandr issue or something to do w/ jwm?

Thanks again for your assistance,
Jake
Sorry Jake, somehow I missed your post. :oops:
The fixPuppyPin command given above should fix the desktop icons and the background if you have selected the "stretched" option. Doesn't it?
I do not know about conky as I never used it. Check to see if it has any placement options.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#211 Post by jakfish »

Ah, yes, that command helps things considerably and I put it in my portrait rotate script.

My conky and my xhippo launch in predetermined x y coordinates, so they remain off screen, but your command makes all desktop icons visible in portrait.

Thank you again for the help,
Jake

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

JWM 579

#212 Post by mavrothal »

Jake
you may want to try the latest jwm snv 579. Supposingly handles xrandr better.
The pet below is compiled in XOpup and has the bigger buttons too.
Works fine in Lupu 528.005 that I tried it though I did not rotate the screen.
In XOpup-2.2 (Lupu 5.2) rotation works fine.
Attachments
jwm-579_XOpup-1.pet
JWM svn-579 patched for bigger buttons. Works fine in Lupu 5.x too
(73.26 KiB) Downloaded 1068 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#213 Post by jakfish »

Looking forward to trying this. Should I uninstall jwm 2.1 before installing this version?

Jake

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#214 Post by mavrothal »

jakfish wrote:Looking forward to trying this. Should I uninstall jwm 2.1 before installing this version?

Jake
No. But restart X, not just jwm, after you install.
Type "jwm -version" in the terminal to make sure it says "jwm svn 579"
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#215 Post by jakfish »

Hi, mavrothal,

Successfully installed this update over jwm 2.1 on dpup exprimo w/ frugal install.

On hardware of Lenovo S10-3t, I don't find any difference, meaning that jwm 2.1 works pretty good with the S10's touchscreen.

I have, however, abandoned the fixPuppyPin command. While it brings out all my desktop icons in portrait, after returning to landscape, my conky and rainlendar calendar are gone until I reset X. I think this has to do w/ their fixed x and y coordinates.

I've simply moved the icons necessary to portrait mode (Opera, ebooks, etc) to the left-hand of the screen. In portrait, there they are, and without fixPuppyPin, I can have landscape restored to all its splendor w/o X restart.

jwm 2.1, with your nifty commands to reset the autohide taskbar, is very stable going back and forth b/w portrait and landscape.

Jake

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

PPM update

#216 Post by mavrothal »

The XOpup-Lupu PPM has stayed a bit behind so here is a small update.
It does few things.
1) Has the puppy-common and puppy-noarch repositories (downloadpkgs.sh) and the databases
2) Allows you to skip a repo when you update the repos, so you do not to download the ubuntu repos (are frozen anyway by now) every time that you want to update a repo (0setup)
3) Has a bigger search field so you can actually see what you write ;) (pkg_chooser.sh)
4) Most important from the user prospective, allows you to search with (max 3) descriptive terms both the package names and the package descriptions (see picture) so you do not necessarily need to know the package name (findnames.sh).

Version 2 Version 2+ in addition to the above will simultaneously search ALL active databases (the ones showing at the right side of the PPM window at the time) find the pet/package and download it from the respective repo and any dependencies needed (installpreview.sh) !
The down side is you do not know where you download your pet from. If it is from a distribution repo (ubuntu) might be harder to troubleshoot, in case problems appear.
Though starting with v4 you can choose to search one or all active databases


Though build for XOpup, tested OK with Lupu528.005 and I assume previous Lupu versions too.

NOTE: This is NOT a standalone PPM. Only updates some of the files (indicated above)
Attachments
PPM_XOpup-4.pet
Update for the XOpup, Lupu, PPM. Simultaneously checks ALL active databases
(55.25 KiB) Downloaded 1062 times
PPM_XOpup-1.pet
Update for the XOpup, Lupu PPM.
(50.51 KiB) Downloaded 1028 times
image-1.png
Searching for "video player" the ubuntu repo
(90.82 KiB) Downloaded 1844 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#217 Post by musher0 »

Thanks for this modified PPM.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Slacko-5.3.3 for the XO

#218 Post by mavrothal »

If you got "tired" of XOpup you may want to try Slacko-5.3.3_XO :wink:
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
Varmint
Posts: 73
Joined: Fri 27 Apr 2007, 02:40
Location: Ohio, USA
Contact:

Installation

#219 Post by Varmint »

Is there a way to erase that infernal Sugar OS on the built-in flash drive and replace it with Puppy? All I've found so far is how to run Pup from USB sticks, which works great, by the way, but isn't what I was looking for. I'm not really interested in carrying USB sticks around for this to boot with.

I tried to post this query already, but it didn't show up, so I must've goofed (again).

Nice work on the XO-Pup!

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Installation

#220 Post by mavrothal »

Varmint wrote:Is there a way to erase that infernal Sugar OS on the built-in flash drive and replace it with Puppy? All I've found so far is how to run Pup from USB sticks, which works great, by the way, but isn't what I was looking for. I'm not really interested in carrying USB sticks around for this to boot with.
Never tried it but I do not think that the puppy init can handle raw internal NAND of the XO-1.

I have XOpup in an SDcard that is permanently in my XO's SDcard slot.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Post Reply