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

#21 Post by mavrothal »

01micko wrote:mavrothal and others who want to try

I have vastly simplified the 'airplane mode' to just 1 script, it works fine on xo-1 and no reason it wont on xo-1.5. It is based on tempestuous' and jemimah's work just flipping the switch in /sys/class/rfkill/rfkill0/state
Works fine on the XO-1.5 too :D
However, you need to incorporate the trick with moving /etc/powerd/postresume.d/reconnect.sh out and in of postresume.d folder because otherwise the XO will reconnect after a suspend cycle (rather common in an airplane :D ) and will not reconnect after suspend if you leave it out when exiting airplane mode.
eg

Code: Select all

if [[ $WIFISTATE = 1 ]];then 
   ifconfig eth0 down 
   echo 0 > /sys/class/rfkill/rfkill0/state 
   mv /etc/powerd/postresumse.d/reconnect.sh /etc/powerd
   Xdialog --timeout 5 --msgbox "Wireless conectivity is off" 0 0 0 
      else Xdialog --timeout 5 --msgbox "Your wireless conectivity is already off"  0 0 0 
fi
and

Code: Select all

if [[ $WIFISTATE = 0 ]];then 
   echo 1 > /sys/class/rfkill/rfkill0/state 
   mv /etc/powerd/reconnect.sh /etc/powerd/postresume.d
   sleep 1 
   ifconfig eth0 up 2>/dev/null 
   sleep 1 
   /usr/local/apps/Connect/AppRun --connect &
== [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

New power applet

#22 Post by mavrothal »

01micko made a new tray battery monitor for the XO that accurately (and colorfully :D ) reports XO battery level, while clicking on the tray icon gives you a full battery report.
But then went to sleep.... :D

So here is a pet (and its source code) that will remove the old battery monitor and start the new one. The last (stale) icon of the old battery monitor will stay there till reboot or till you right-click on it and quit it.

If you want the old monitor back remove /root/Startup/powerapplet_xo and install the bat_widget-0.2.pet

Please test and report what you think about it.
Attachments
powerapplet_xo-0.1src.tar.gz
(5.34 KiB) Downloaded 1420 times
powerapplet_xo-0.1.pet
(3.71 KiB) Downloaded 1427 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] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#23 Post by 01micko »

mavrothal wrote:01micko made a new tray battery monitor for the XO that accurately (and colorfully :D ) reports XO battery level, while clicking on the tray icon gives you a full battery report.
But then went to sleep.... :D
Erm.. are you referring to me or the battery monitor ??? ( :wink: :lol: )

I am assuming me!

____________________________________

One problem, may or may not be due to the new battery widget.. retrovol is not loading :( ... there is an error in /tmp/xerrs.log ..

Code: Select all

retrovol: hcontrol.c:573: snd_snd_hctl_load: Assertion 'hctl->count  ==  0' failed. 
Cannot read file: /root/retrovolrc 
Using defaults...
/usr/sbin/delayedrun: line 160: 3086 Aborted  retrovol -hide ${BGOPT} 
Good thing though, not much else in /tmp/xerrs.log
Cheers
Puppy Linux Blog - contact me for access

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

#24 Post by mavrothal »

01micko wrote:
One problem, may or may not be due to the new battery widget.. retrovol is not loading :( ... there is an error in /tmp/xerrs.log ..

Code: Select all

retrovol: hcontrol.c:573: snd_snd_hctl_load: Assertion 'hctl->count  ==  0' failed. 
Cannot read file: /root/retrovolrc 
Using defaults...
/usr/sbin/delayedrun: line 160: 3086 Aborted  retrovol -hide ${BGOPT} 
Good thing though, not much else in /tmp/xerrs.log
Cheers
Retrovol looks fine on my end.
I'll try few more installations in different setups to see if I get any problems.
== [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] ==

rrolsbe
Posts: 185
Joined: Wed 15 Nov 2006, 21:53

Looks like powerapp pet broke my sound also

#25 Post by rrolsbe »

Looks like my sound is broke after installing the powerapp pet. I removed the pet package but the sound did NOT return.

I might have to remove my pupsave and start over to undo the sound problem?

Regards, Ron

01micko wrote:
mavrothal wrote:01micko made a new tray battery monitor for the XO that accurately (and colorfully :D ) reports XO battery level, while clicking on the tray icon gives you a full battery report.
But then went to sleep.... :D
Erm.. are you referring to me or the battery monitor ??? ( :wink: :lol: )

I am assuming me!

____________________________________

One problem, may or may not be due to the new battery widget.. retrovol is not loading :( ... there is an error in /tmp/xerrs.log ..

Code: Select all

retrovol: hcontrol.c:573: snd_snd_hctl_load: Assertion 'hctl->count  ==  0' failed. 
Cannot read file: /root/retrovolrc 
Using defaults...
/usr/sbin/delayedrun: line 160: 3086 Aborted  retrovol -hide ${BGOPT} 
Good thing though, not much else in /tmp/xerrs.log
Cheers

rrolsbe
Posts: 185
Joined: Wed 15 Nov 2006, 21:53

USB interface bit rate appears to be to SLOW for some videos

#26 Post by rrolsbe »

I put the same videos on an SDHC card and they play fine using mplayer with the recommended commands for low end hardware shown in the mplayer terminal. I did NOT have to use the skip frame option.

Seems like the USB data rate should be fast enough but maybe it is an issue of the processor working harder/getting interupted and not the data rate? Maybe SDHC uses DMA?

The MP4 video is 50 Min long and is around 350MB in size.
Giving 7MB/Min or 116KBytes/sec (Way slower than 6MB/sec)


Now if I could find a way to interface my SATA II SSD to the faster SDHC interface or find an SDHC/USB interface (the reverse of the normal USB/SDHC)? <- I know fat chance... Guess I will need to look for a compatible 32GB SDHC card. I am open to recommended brands to purchase.

Regards, Ron

http://wiki.laptop.org/go/SD_and_USB_FL ... erformance

I am surprised at the write speeds for the SDHC cards at the above link. My guess is, after the device fills all the available NAND pages, the write speed will be MUCH slower (about 10X slower)? Of course, the read speeds should not degrade much and that what counts for video playback.

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

Re: Looks like powerapp pet broke my sound also

#27 Post by mavrothal »

rrolsbe wrote:Looks like my sound is broke after installing the powerapp pet. I removed the pet package but the sound did NOT return.
Ron, Mick
I can not reproduce this problem.
I have tried etx3 formatted SDcard and USB and saving to the entire partition and an ext3 formatted USB with saving to an etx2 formatted lupusave file (this was done from scratch). Presence or absence of swap tested too.
Sound/retrovol was always fine.

Anything special about your setup? Any other modifications to the tray?

What "alsa reload" and "alsactl init" report if issued in terminal?
How does your /etc/asound.state file looks like?
Is it a retrovol or an alsa issue?

-----------------------------------------------------
rrolsbe wrote:I am surprised at the write speeds for the SDHC cards at the above link. My guess is, after the device fills all the available NAND pages, the write speed will be MUCH slower (about 10X slower)?
Ron,
The numbers given there are real! but they are for the XO-1.5...
Unfortunately the "good SDcard" is a total russian roulette on the XO. Brand or product number does not mean much either! Is mostly how the card controller cooperates with the XO and these are changed without much info

I had luck with Transcend crads. A-data was a disaster and Kingston was almost OK on the XO-1.5 but gave me something like 0.5MB/sec write speeds on the XO-1. :evil:
However a previous Kingston, same card theoretically, was superb on the XO-1.
OLPC recommends SunDisk cards. I only had an old 1GB class 2 from a camera and was no good.

If you really wand to put down the money for a 32MB card a) make sure you have an alternative use for it :wink: b) try a SunDisk class 6 or a transcend

However, my best recomendation is try some from your friends, you find a good one keep it and buy them a new one :D

Unfortunately the very handy card test of the OFW - the one used for the tests in your link - is currently available only for the XO-1.5 firmware (should be in the next XO-1 firmware release)
But you can use "iozone" to test read/write speeds. There is an rpm for it, that works on Fedora but also on XOpup.
Incidentally, the iozone test gave me the same results as the OFW test within a 10% difference.
== [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] ==

rrolsbe
Posts: 185
Joined: Wed 15 Nov 2006, 21:53

Sound problem

#28 Post by rrolsbe »

Ron, Mick
I can not reproduce this problem.
I have tried etx3 formatted SDcard and USB and saving to the entire partition and an ext3 formatted USB with saving to an etx2 formatted lupusave file (this was done from scratch). Presence or absence of swap tested too.
Sound/retrovol was always fine.
You have already tried my setup -- booting from USB ext2 RC3 with ext2 lupusave.2fs file using pup.swp file.

When I went from RC1 to RC3, I tried to use my pupsave.2fs from RC1. Everything worked except the sound. (Not knowing what caused the loss of sound) I recreated a new pupsave.2fs to fix the sound. Any reason why the pupsave.2fs from RC1 would not work with RC3 (Same kernel,correct)? NOTE: I had this issue prior to installing the powerapp.pet and loosing the sound.
Anything special about your setup? Any other modifications to the tray?
Nothing else modified in the tray.
What "alsa reload" and "alsactl init" report if issued in terminal?
How does your /etc/asound.state file looks like?
Is it a retrovol or an alsa issue?


Might not get a chance to try the above until Saturday.

Regards, Ron

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

#29 Post by mavrothal »

Ron,
sound is probably the most unstable part of XOpup. Even in Fedora needs some workaround to work properly.
My best guess is that has to do with device configuration, but is not clear to me how they get messed up at times.

I would suggest to just try (re)installing udev from the ubuntu main repository through the puppy package manager. Just udev151(+), not any dependencies. Reboot and see if this brings sound back.
== [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
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#30 Post by 01micko »

:D Some good news ..

The new powerapplet_xo ssems to work just fine if it is incorporated in the lupu-511.sfs, I respun the sfs, deleting all the old stuff in ~/Startup and /usr/local/bat_widget (um, sorry if dir is wrong, I'm kind of like Jeff out of the Wiggles :wink: ) and adding ONLY the powerapplet_xo exec to ~/Startup. No alsa problems :D (oh, yes it was alsa :lol: :roll: ).
NOTE: I tested with loading an sfs after creating the save file, and also with connecting my 3G modem, (which was a cinch by the way :wink: , although, 'arplane' mode needs to be on or else mesh wants to take control of the wifi device, not a problem on xo-1.5)

If anyone wants I can upload the sfs.

However, there is still some kind of problem.. installing dotpets and even sfs can cause issues (in xo-1), which I can work around but the average kid will have no idea. I need to dig a bit deeper into that one :wink: . Unfortunately, they are those stupid 'intermittent' problems.. sometimes they occur, sometimes not.. the hardest ones to debug :cry: . Oh, well, we try anyway. 8) .

Cheers
Puppy Linux Blog - contact me for access

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

#31 Post by mavrothal »

01micko wrote:and also with connecting my 3G modem, (which was a cinch by the way :wink:
Anything more on that "cinch" ? May not be so trivial to everyone :shock: :D
01micko wrote:However, there is still some kind of problem.. installing dotpets and even sfs can cause issues (in xo-1)
That would be with your custom sfs or the original?
== [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
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#32 Post by 01micko »

Anything more on that "cinch" ? May not be so trivial to everyone
Ah yes, a 'howto' help file is needed, and not just for the olpc. There needs to be a a database in place with instructions for certain modems. While some like mine are very easy to set up, others can be a little more difficult.
That would be with your custom sfs or the original?
Both the same, seems it may be related to which usb dongle I use, so not really a 'bug', will know more on the week end, less sleepy then :D

Cheers
Puppy Linux Blog - contact me for access

rrolsbe
Posts: 185
Joined: Wed 15 Nov 2006, 21:53

Report back on sound

#33 Post by rrolsbe »

I would suggest to just try (re)installing udev from the ubuntu main repository through the puppy package manager. Just udev151(+), not any dependencies. Reboot and see if this brings sound back.
Tried did not work. Though I had power pet removed. I had to remove the power pet several times before the package manager did not list it as installed; likewise, had to install the udev151-12 several time before it was shown as installed. I rebooted each time after adding or removing but the packages did not install/uninstall properly?


BTW, "alsactl init" -- Reported no sound device

Regards, Ron

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

powerapplet

#34 Post by mavrothal »

Ron, Mick
do you by any chance installed a package after you installed the powerapplet pet, and then the sound disappeared on next reboot??? Did you see 2 battery monitors at any point???

I think that the problem is that the pinstall.sh script re-runs every time you install a package. Since the the commands now spit errors (no files to remove no processes to kill) it hangs and on reboot the hanged processes corrupt the file system!!!

Is a wild guess but is this the case? Did you install another package after the powerapplet and before the sound issue?

BTW how do you remove (automatically) the pinstall.sh after installation
== [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
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#35 Post by 01micko »

I didn't install the pet at all, I had it installed manually.

Also what rrslobe describes is similar behaviour to what I have seen with installing/uninstalling pets, even before powerapplet_xo existed, and yes, pinstalls seem to be the culprit.

Cheers
Puppy Linux Blog - contact me for access

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

#36 Post by mavrothal »

01micko wrote:I didn't install the pet at all, I had it installed manually.

Also what rrslobe describes is similar behaviour to what I have seen with installing/uninstalling pets, even before powerapplet_xo existed, and yes, pinstalls seem to be the culprit.

Cheers
Let me get this straight because I'm a bit lost and looks to me there are more than one issues with the powerapplet(pet).

1) Manual installation of powerapplet gave you the sound problem without installing the pet. (BTW I'm still to see the sound problem)
2) When installing the pet and the pinstall.sh is left behind you get additional problems with the puppy package manager

Is that what you are saying? or is the pinstall.sh the only problem? And if it is how do you autoremove the damn thing since PPM does not appear to do it automatically (adding "rm /pinstall.sh" at the bottom of the script does not work for me)
== [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] ==

Lerc
Posts: 4
Joined: Wed 29 Sep 2010, 10:39

#37 Post by Lerc »

I seem to have broken the shutdown.

It doesn't turn off. I get

olpc-switchd segfault at 0 ip b7767714 bfba807c error 4 in libc-2.11.1.so

Which I'm guessing is the powering-off failing horribly.

Other issues I've noticed. Using an external mouse doesn't trigger as a unblank worthy event. Which means you can be doing stuff and the screen goes dim. Not a showstopper, a tap on the touchpad and you're all ok.

Automatic network connection doesn't work. I'm not 100% sure it is supposed to, but I get the impression from the dialogs that it should restore connection on reboot.

And on the other front, I have been looking at where to plug in some bits.

In UDE I try to keep the users home directory relatively empty with the main things being Apps,Library,Downloads, and Stash
Apps for applications.
Library for unchanging media (pdfs,videos,music etc)
Stash for user created content
Downloads for acquired content.

For UDE on puppy I have elected to make a ~/Home(distinct from $HOME). I'll probably set up $UDE_HOME so that if people think it's a really bad idea it can be changed.

I'm going through the puppy apps and making ROX Wrappers as well as the ones I've customised for UDE.

mplayer -fs tv://
works (has a bug which causes a delay, but that has always been the case for me)

I have a tiny script for taking photos using mplayer that stores them in Stash/Photos/`date "+%d %B %Y"`/ It's a workable camera program.

I've also attached a font that may be useful. I built this because bitmap font rendering on the XO is so much faster, but all of the bitmap fonts I had encountered were way too small for the XO screen. This one is 21 pixels. Makes for a much nicer terminal.

more to come.
Attachments
pcterm.pcf.gz
Large monospaced Bitmap font
(4.5 KiB) Downloaded 1425 times

User avatar
Fox7777
Posts: 132
Joined: Fri 27 May 2005, 22:02
Location: Lacey, WA
Contact:

Howto for XOPup is needed

#38 Post by Fox7777 »

We have tried to boot XOPup on the OLPC several times with no success. The last attempt was with XOpup-1.0_RC3 using variations of boot /usb/disk:\boot\olpx.fth , etc. Puppy Linux 5.0 is also on the same usb. Is that a problem? A clearly spelled out howto for this would really help. Thanks.

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

Re: Howto for XOPup is needed

#39 Post by mavrothal »

Fox7777 wrote:We have tried to boot XOPup on the OLPC several times with no success. The last attempt was with XOpup-1.0_RC3 using variations of boot /usb/disk:\boot\olpx.fth , etc. Puppy Linux 5.0 is also on the same usb. Is that a problem? A clearly spelled out howto for this would really help. Thanks.
Yes, having another puppy is a problem. And that's pretty much the only problem I know of!

The how to is simple.
Expand the tarball at the root of the first partition (if multi volume) of any usb or SDcard that does not have Grub, puppyfiles (including the invisible aufs folders .wh..wh.....) or a "boot" folder and boot. Grub and boot is just to be safe.

Having said that, my preferred setup is on an ext3 formated SDcard with a swap partition and saving to the entire partition. Is much more stable albeit not as fast as saving to a file.
== [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

#40 Post by mavrothal »

Lerc wrote:I seem to have broken the shutdown.

It doesn't turn off. I get

olpc-switchd segfault at 0 ip b7767714 bfba807c error 4 in libc-2.11.1.so

Which I'm guessing is the powering-off failing horribly.

Other issues I've noticed. Using an external mouse doesn't trigger as a unblank worthy event. Which means you can be doing stuff and the screen goes dim. Not a showstopper, a tap on the touchpad and you're all ok.

Automatic network connection doesn't work. I'm not 100% sure it is supposed to, but I get the impression from the dialogs that it should restore connection on reboot.
All these issues are in the "known issues 3" of the announcement. Eg the filesystem got corrupted during suspend.
The waking up from en external USB device is a limitation of the poewerd power management software when used with the non-hal version of olpc-kbdhim, as the one in XOpup.
And on the other front, I have been looking at where to plug in some bits.

In UDE I try to keep the users home directory relatively empty with the main things being Apps,Library,Downloads, and Stash
Apps for applications.
Library for unchanging media (pdfs,videos,music etc)
Stash for user created content
Downloads for acquired content.

For UDE on puppy I have elected to make a ~/Home(distinct from $HOME). I'll probably set up $UDE_HOME so that if people think it's a really bad idea it can be changed.

I'm going through the puppy apps and making ROX Wrappers as well as the ones I've customised for UDE.

mplayer -fs tv://
works (has a bug which causes a delay, but that has always been the case for me)

I have a tiny script for taking photos using mplayer that stores them in Stash/Photos/`date "+%d %B %Y"`/ It's a workable camera program.

I've also attached a font that may be useful. I built this because bitmap font rendering on the XO is so much faster, but all of the bitmap fonts I had encountered were way too small for the XO screen. This one is 21 pixels. Makes for a much nicer terminal.

more to come.
Wow! sounds very nice. are you posting these?
== [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