Racy Puppy 5.2.2 Final, 18 Nov. 2011

Please post any bugs you have found
Message
Author
User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

pdff.diff

#401 Post by Karl Godt »

With partview it turned out to be a technical logical problem assigning the already mounted flag to the right partitions , so no sort problem .

diff with [[:blank:]] reductions :

Code: Select all

--- /usr/local/Partview/pdff.pl.orig	2010-05-10 19:49:28.000000000 +0100
+++ /usr/local/Partview/pdff.pl	2011-12-29 01:49:05.676488379 +0100
@@ -1,8 +1,8 @@
-#!/usr/bin/perl  -w  
+#!/usr/bin/perl  -w
 # pdff.pl Partition Viewer. 2009-10-22 Ecube
 # 2010-04-08 Single window
 # 2010-04-11 Wait message
-# 2010-05-07 Converted to Glade format 
+# 2010-05-07 Converted to Glade format
 #   gtkdialog3 --glade-xml=/tmp/partview.glade  --program=dialog1
 # 2010-05-10 signal handler="exit:Quit" corrected
 #
@@ -17,28 +17,27 @@ if($view_all){
   $title="All Drives";  $winpos=0;
   open(FH,"probepart|") or die "cannot run command probepart\n";
 
-  $i=0;  
+  $i=0;
   while(<FH>){ if(/\/dev\/(sd\w+)\|(\w+)\|/){
     if($2 eq "swap" || $2 eq "none"){next};
     $all[$i]="$1"; $typ[$i++]="$2"; }
   }
   close FH;
- 
+
   open(FH,"mount | grep /dev/ | grep /mnt/ | sort |")  or die "cannot run command mount\n";
 
-  $i=0;  
+  $i=0;
   while(<FH>){ if(/\/dev\/(sd\w+)/){ $mnt[$i++]="$1";} }
   close FH;
-
-  $j=0;
+  for($i=0;$i<@all;$i++){ $kmt[$i]=1 }
+  for($j=0;$j<@mnt;$j++){
+  for($i=0;$i<@all;$i++){
+    if($all[$i] eq $mnt[$j]){ $kmt[$i]=0 }
+	}
+   }
   for($i=0;$i<@all;$i++){
-    $kmt[$i]=1;
-    if(($j < @mnt) && ($all[$i] eq $mnt[$j])){ $kmt[$i]=0; $j++ }
-  }
-
-  for($i=0;$i<@all;$i++){ 
     if($kmt[$i]){
-      $all[$i]=~/\/dev\/(\w+)/; 
+      $all[$i]=~/\/dev\/(\w+)/;
       unless( -e "/mnt/$all[$i]"){ system "mkdir /mnt/$all[$i]\n"}
       system "mount -t $typ[$i]  /dev/$all[$i]  /mnt/$all[$i]\n";
     }
@@ -48,7 +47,7 @@ if($view_all){
 open(FH,"df | sort -r |") or die "cannot run command df -h\n";
 
 if($view_all){
-  for($i=0;$i<@all;$i++){ 
+  for($i=0;$i<@all;$i++){
     if($kmt[$i]){ system "umount /dev/$all[$i]\n"; }
   }
 }

NOTE : THE IMPORTANT PART IS :
- $j=0;
+ for($i=0;$i<@all;$i++){ $kmt[$i]=1 }
+ for($j=0;$j<@mnt;$j++){
+ for($i=0;$i<@all;$i++){
+ if($all[$i] eq $mnt[$j]){ $kmt[$i]=0 }
+ }
+ }

- $kmt[$i]=1;
- if(($j < @mnt) && ($all[$i] eq $mnt[$j])){ $kmt[$i]=0; $j++ }
- }


The original code checks if all@i=mnt@i but the mounts might be not in the all@all order .

My hacked code looks for the mnt@all as many times partitions are mounted .

I have no solution for the rootpartition though . But it does not seem to hurt to mount and unmount it another time @/mnt/$rootpartition .
Maybe some rdev code to filter would do it .

[edit]
Want to mention , that
pdff.pl does not support /dev/hd names for IDE kernels !
[edit]

To debug it i found out to alter
/usr/sbin/partview
like :twisted:
#!/bin/sh
#2010-05-08 ecube

#`/usr/local/Partview/pdff.pl `
#/usr/local/Partview/pdff.pl
#J=`gtkdialog3 --glade-xml=/tmp/partview.glade --program=dialog1`
#if [ "${J:0:3}" = "all" ]; then
yaf-splash -close never -bg orange -placement center -text "Please wait, processing..." &
XPID=$!
#`/usr/local/Partview/pdff.pl -all $XPID > /dev/null`
/usr/local/Partview/pdff.pl -all $XPID
#`gtkdialog3 --glade-xml=/tmp/partview.glade --program=dialog1`
gtkdialog3 --glade-xml=/tmp/partview.glade --program=dialog1
#fi
:mrgreen:
and add several

Code: Select all

print("kmt$i=$kmt[$i] $all[$i]\n");
into /usr/local/Partview/pdff.pl
Last edited by Karl Godt on Sun 01 Jan 2012, 15:39, edited 1 time in total.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

/etc/init.d/10alsa

#402 Post by Karl Godt »

Code: Select all

--- /mnt/+JUMP-9+puppy_racy_5.2.2.sfs/etc/init.d/10alsa	2011-08-23 02:09:00.000000000 +0100
+++ /etc/init.d/10alsa	2011-12-29 12:18:57.046659830 +0100
@@ -20,7 +20,7 @@ case "$1" in
    for I in $(seq 4); do #110111 shinobar: for reliable sound detection on HP Compac nc4010.
     sleep 0.5 #110113 reduce 1 to 0.5. 110216 move up.
     [ -c /dev/mixer ] && break #note, /dev/mixer is deleted in /etc/rc.d/rc.sysinit.
-   done 
+   done
    if [ ! -f /etc/asound.state ];then
     #try and set all levels workable...
     #set_mixers #in functions4puppy4
@@ -59,7 +59,7 @@ set "SB Live Analog/Digital Output Jack"
 set "Audigy Analog/Digital Output Jack" off
 set Speaker 75 % unmute
 EOF
-	
+
    else
     alsactl -f /etc/asound.state restore #from /etc/asound.state.
    fi
@@ -76,10 +76,14 @@ EOF
   # mute master to avoid clicks at unload
   amixer set Master mute >/dev/null 2>&1
   # remove all sound modules
-  lsmod | grep "^snd" | grep -Ev "(snd-page-alloc|snd_page_alloc)" |
+  c=0
+  while [ "`lsmod | grep 'snd_'`" ];do
+  lsmod | grep "^snd" | grep '0 $' | grep -Ev "(snd-page-alloc|snd_page_alloc)" |
   while read line
   do
-     rmmod `echo $line | cut -d ' ' -f 1`
+     modprobe -rv `echo $line | cut -d ' ' -f 1`
+  done
+  c=$((c+1));[ "$c" = '6' ] && break #precaution if neverending loop
   done
   # remove the 2.2 soundcore module (if possible)
   rmmod soundcore 2> /dev/null
NOTE : THE IMPORTANT PART IS :
- lsmod | grep "^snd" | grep -Ev "(snd-page-alloc|snd_page_alloc)" |
+ c=0
+ while [ "`lsmod | grep 'snd_'`" ];do
+ lsmod | grep "^snd" | grep '0 $' | grep -Ev "(snd-page-alloc|snd_page_alloc)" |

while read line
do
- rmmod `echo $line | cut -d ' ' -f 1`
+ modprobe -rv `echo $line | cut -d ' ' -f 1`
+ done
+ c=$((c+1));[ "$c" = '6' ] && break #precaution if neverending loop


The code adjustment runs as long as sound modules are loaded with a precaution break .
modprobe -r is working more effectively because it removes also module dependencies for other modules at once .
I added the -v option for running it in the shell .
It filters out not used modules by grep '0 $' .
Modules in use can not be rmmod as far as i know .
A module not in use by another module can be removed from the running kernel and modprobe -r also removes the module dependencies that now become not in use anymore ,

Lupu has got /usr/[s]bin/alsa script which uses modprobe -r also if called for example by alsawizard .

Until now i had never problems with sound with Puppy .
BUT now it occurs that both 2.6.39.4 and 3.0.7 kernels dont reboot the newest 2007 board by DELL
The system stays in halted mode without even poweroff then .
They both rebooted or poweroff for boards from 2001 and 2003 .
Slacko kernel 2.6.37.6 is the last that actually reboots this board.
I will be working on this .
[edit]
The dells have several entries in

/linux-3.1.6/arch/x86/kernel/reboot.c

like
/* Handle problems with rebooting on Dell Optiplex 745's SFF*/
.callback = set_bios_reboot,
.ident = "Dell OptiPlex 745",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 745"),
},
},
{ /* Handle problems with rebooting on Dell Optiplex 745's DFF*/
.callback = set_bios_reboot,
.ident = "Dell OptiPlex 745",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 745"),
DMI_MATCH(DMI_BOARD_NAME, "0MM599"),
},
},
{ /* Handle problems with rebooting on Dell Optiplex 745 with 0KW626 */
.callback = set_bios_reboot,
.ident = "Dell OptiPlex 745",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 745"),
DMI_MATCH(DMI_BOARD_NAME, "0KW626"),

AND the " reboot=f,w " kernel parameter worked for me to reboot the system .

/* reboot=b[ios] | s[mp] | t[riple] | k[bd] | e[fi] [, [w]arm | [c]old] | p[ci]
warm Don't set the cold reboot flag
cold Set the cold reboot flag
bios Reboot by jumping through the BIOS (only for X86_32)
smp Reboot by executing reset on BSP or other CPU (only for X86_32)
triple Force a triple fault (init)
kbd Use the keyboard controller. cold reset (default)
acpi Use the RESET_REG in the FADT
efi Use efi reset_system runtime service
pci Use the so-called "PCI reset register", CF9
force Avoid anything that could hang.
*/

[/edit]

Cheers !

ferro10n
Posts: 106
Joined: Wed 15 Jun 2011, 20:18
Contact:

#403 Post by ferro10n »

Gnome-mplayer for Wary5 either doesn't work or simply crashes on Racy 5.2.2. I tried VLC for Wary5 and SFS, too. The reason I want to get a new video player is that Mplayer doesn't support full screen in Racy. Any suggestions?
A beginner Puppy Linux user
Intel(R) Celeron(R) CPU 2.13GHz 512MB
LiveCD user

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#404 Post by BarryK »

Lots of fixes! I have been reading this thread, and fixing things. As I have been mostly off-line, I haven't posted to this thread whenever I have fixed any particular problem.

However, fixes are to be found at my blog:

http://bkhome.org/blog/?viewDetailed=02633
http://bkhome.org/blog/?viewDetailed=02632
http://bkhome.org/blog/?viewDetailed=02631
http://bkhome.org/blog/?viewDetailed=02629
http://bkhome.org/blog/?viewDetailed=02628
http://bkhome.org/blog/?viewDetailed=02627
[url]https://bkhome.org/news/[/url]

User avatar
sszindian
Posts: 807
Joined: Sun 25 Apr 2010, 02:14
Location: Pennsylvania U.S.

gmail phone

#405 Post by sszindian »

Didn't Take! See NEXT Post.
Last edited by sszindian on Sun 08 Jan 2012, 02:22, edited 2 times in total.
Cloud Computing For Every Puppy (a .pet)
[url]http://murga-linux.com/puppy/viewtopic.php?t=69192[/url]

User avatar
sszindian
Posts: 807
Joined: Sun 25 Apr 2010, 02:14
Location: Pennsylvania U.S.

gmail phone

#406 Post by sszindian »

Info not posting right here...Go to Puppy Forum #2 and see post in Racy...

http://puppylinux.info/

But we will try once again here......

Surprise....

If you have a gmail account for your email, you have a feature in there called 'Call Phone' (if I remember right, you have to signup for the feature even though it's free)

if you go to: http://tinyurl.com/8479cqm

Download the .pet file:

googletalk-ff.pet

Install it in Racy-5.2.2

You have free live talk from your computer microphone to any local and long-distance phone number in the U.S. and Canada.

Works like a charm and is cyrstal clear, probably better than your phone!

This works for U.S. gmail accounts, how it will work for other parts of the world, you'll have to check that out for yourself.

NOTE: When dialing... a '1' is required for long-distance numbers and the 'area-code' seems to be required for all calls, even local.

Might even work in Slacko, Exprimo, Lupu and others... here again, you won't know unless you try.

>>>---Indian------>
Cloud Computing For Every Puppy (a .pet)
[url]http://murga-linux.com/puppy/viewtopic.php?t=69192[/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

mhwaveedit config file

#407 Post by don570 »

Suggestion for Barry...

I got an idea while looking a Tazoc's Lighthouse 503

He puts a mhwaveedit configuration file in his ISO
so that the first time a user launches mhwaveedit
it will have a wide window and less vertical scroll bars.
It's a nice touch!! :lol:

Here's the file he uses ----> /root/.mhwaveedit/config
Note that there is a line for window geometry

Code: Select all

# mhWaveEdit configuration file.
# Automatically generated by mhWaveEdit 1.4.20
# May be hand edited but extra comments will be removed when the 
# settings are saved.
# Remove this file to restore default settings.

tempfilesFP = true
speedReset = false
viewQuality = 128
timeDisplayScale = 0
varispeedConv = 5
tempDir1 = /root/.mhwaveedit
rollCursor = false
mixerUtility = retrovol
showTimeScale = true
showSpeed = false
showHorizontalZoom = false
playerFallback_BigEndian = false
showVerticalZoom = false
speedSmooth = true
speedConv = 0
soundDriver = auto
soundBufferSize = 65536
timeDisplay = 0
mainwinFront = true
recentFiles = 4
drawImprove = true
varispeed = true
playerFallback_SampleSize = 2
autoPlayMark = false
outputStereo = false
useGeometry = true
outputByteswap = false
ditherPlayback = 0
windowGeometry = 50_50_822_292
diskEditingThreshold = 131072
centerCursor = true
soundLock = false
playerFallback_Signed = true
ditherEditing = 1

________________________________________

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

/etc/services is missing entries for ntp.

#408 Post by npierce »

After being a happy Puppy 4.3.1 user for over two years, I decided to try something new. Trying out Racy 5.2.2, I am pleased to see that the past couple of years have brought many improvements. Racy is looking good!

I did notice, however. that ntpdate (which was included in both Puppy 4.3.1 and Racy 5.2.2) is still not working because of an omission in the /etc/services file.

For details see the following bug report submitted by Minomushi in 2010: ntpdate trouble

I am attaching a copy of /etc/services which is a duplicate of the one included with Racy 5.2.2 except that the missing entries have been added.
Attachments
services.gz
/etc/services with entries for ntp
(957 Bytes) Downloaded 359 times

nobles
Posts: 9
Joined: Wed 12 Dec 2007, 15:55
Location: Winnipeg, Canada

Trouble with Ralink RT2860 Wirless Driver

#409 Post by nobles »

With Racy Puppy 5.2.2, I managed to add the RT2860.bin firmware file for the Ralink RT2860 driver that was missing to the lib/firmware folder but after that I cannot find any wireless networks when scanning, even though there is definetly one that should be able to be found.

Any ideas on how I can make a Ralink RT2860 adapter work with Racy Puppy 5.2.2?

User avatar
sszindian
Posts: 807
Joined: Sun 25 Apr 2010, 02:14
Location: Pennsylvania U.S.

wifi problem

#410 Post by sszindian »

nobles:

You might want to move your question on Racy wifi over to the forum thread below for better results:
http://www.murga-linux.com/puppy/viewtopic.php?t=74819

I still have a problem with rt2800USB but at least it was addressed over there.

>>>---Indian------>
Cloud Computing For Every Puppy (a .pet)
[url]http://murga-linux.com/puppy/viewtopic.php?t=69192[/url]

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

B43 returns in k3.1.8

#411 Post by peebee »

cmccullough wrote:Well, everything but the B43 Broadcom wireless but that's to be expected. I'm getting pretty used to that. Just need to figure out how to get it working under Puppy.

Thanks!
Just tried wuxiandianzi's experiment with k3.1.8 and it looks like B43 support has been fixed in this kernel so there's hope for us B43 users on k3.....
http://murga-linux.com/puppy/viewtopic. ... 527#596527

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#412 Post by jemimah »

This fixes 2 bugs in the PUI.

First if you choose to run gparted the drive selection window shows your drive twice in the drive selection window after you quit gparted.

The second is that the PUI offers a full install to NTFS.

Code: Select all

--- puppyinstaller.orig	2012-01-15 21:21:20.000000000 -0500
+++ puppyinstaller	2012-01-15 21:23:17.000000000 -0500
@@ -406,6 +406,8 @@
 /tmp/dlg1
 [ $? -ne 0 ] && exit
  
+unset SELECTIONS 
+ 
 DRVSEL="`cat /tmp/retval`"
 [ "$DRVSEL" = "" ] && exit
 
@@ -1157,7 +1159,8 @@
 and you may choose to upgrade or totally replace."
   fi
   INSTOPTION="1"
-  if [ ! "$DESTFS" = "vfat" ];then
+  #if [ ! "$DESTFS" = "vfat" ];then
+  if [[  "$DESTFS" =~ "ext.*" ]] ; then
    LANG=C Xdialog --wmclass "gtkdialog2" --left --buttons-style text --title "Puppy Universal Installer" --ok-label "FRUGAL" --cancel-label "FULL" --yesno "You have chosen to install to /dev/$DESTPART, which appears to be an internal
 hard drive ($FINALPMEDIA).
 $PREVPUPMSG 

User avatar
Terryphi
Posts: 761
Joined: Wed 02 Jul 2008, 09:32
Location: West Wales, Britain.

#413 Post by Terryphi »

The French blogger "Gu1" has discovered that versions 1.11 and above of X.org's X Server contain an interesting vulnerability that enables users to gain access to a locked computer.

http://www.h-online.com/security/news/i ... 17864.html

Version 1.11.0 is used in Racy 5.2.2 and Wary 5.2.2.
[b]Classic Opera 12.16 browser SFS package[/b] for Precise, Slacko, Racy, Wary, Lucid, etc available[url=http://terryphillips.org.uk/operasfs.htm]here[/url] :)

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Barry has fixed the B43 problem in k3 puppies

#414 Post by peebee »

Just to report that Barry has identified why b43 drivers / firmware fail to load in k3 puppies

http://bkhome.org/blog/?viewDetailed=02651

and pemasu has created a pet of the fix:

http://murga-linux.com/puppy/viewtopic. ... h&id=51139

and I've tested that it works for my b43 with v13 firmware in

racy 5.2.2
slacko 5.3.1.3
exprimo 5.x.10.3

all with versions of the k3 kernel

cheers and thanks to barry and pemasu
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

Re: /etc/services is missing entries for ntp.

#415 Post by BarryK »

npierce wrote:After being a happy Puppy 4.3.1 user for over two years, I decided to try something new. Trying out Racy 5.2.2, I am pleased to see that the past couple of years have brought many improvements. Racy is looking good!

I did notice, however. that ntpdate (which was included in both Puppy 4.3.1 and Racy 5.2.2) is still not working because of an omission in the /etc/services file.

For details see the following bug report submitted by Minomushi in 2010: ntpdate trouble

I am attaching a copy of /etc/services which is a duplicate of the one included with Racy 5.2.2 except that the missing entries have been added.
Thanks, fixed in Woof, will upload Woof later today.
[url]https://bkhome.org/news/[/url]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#416 Post by BarryK »

jemimah wrote:This fixes 2 bugs in the PUI.

First if you choose to run gparted the drive selection window shows your drive twice in the drive selection window after you quit gparted.

The second is that the PUI offers a full install to NTFS.

Code: Select all

--- puppyinstaller.orig	2012-01-15 21:21:20.000000000 -0500
+++ puppyinstaller	2012-01-15 21:23:17.000000000 -0500
@@ -406,6 +406,8 @@
 /tmp/dlg1
 [ $? -ne 0 ] && exit
  
+unset SELECTIONS 
+ 
 DRVSEL="`cat /tmp/retval`"
 [ "$DRVSEL" = "" ] && exit
 
@@ -1157,7 +1159,8 @@
 and you may choose to upgrade or totally replace."
   fi
   INSTOPTION="1"
-  if [ ! "$DESTFS" = "vfat" ];then
+  #if [ ! "$DESTFS" = "vfat" ];then
+  if [[  "$DESTFS" =~ "ext.*" ]] ; then
    LANG=C Xdialog --wmclass "gtkdialog2" --left --buttons-style text --title "Puppy Universal Installer" --ok-label "FRUGAL" --cancel-label "FULL" --yesno "You have chosen to install to /dev/$DESTPART, which appears to be an internal
 hard drive ($FINALPMEDIA).
 $PREVPUPMSG 
Thanks, I have fixed in Woof, will upload Woof later today.
[url]https://bkhome.org/news/[/url]

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#417 Post by Karl Godt »

will upload Woof later today.
Please consider these 2 :

rc.shutdown :

Code: Select all

M=`mount`
MTD=`echo $M | rev | sed 's§ )§\n)§g'|rev`
echo "$MTD"
This works for me to turn mount output upside down to unmount sfs,iso,partition ...

*

the killzombies: cut that occurs in rc.shutdown

also occurs in

pmount
drives_all
pup_event_frontend_d

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#418 Post by BarryK »

Karl Godt wrote:
will upload Woof later today.
Please consider these 2 :

rc.shutdown :

Code: Select all

M=`mount`
MTD=`echo $M | rev | sed 's§ )§\n)§g'|rev`
echo "$MTD"
This works for me to turn mount output upside down to unmount sfs,iso,partition ...

*

the killzombies: cut that occurs in rc.shutdown

also occurs in

pmount
drives_all
pup_event_frontend_d
karl,
maybe because I haven't yet had my morning cup of coffee, but I don't understand either of these suggestions. Would you mind fleshing them out a bit?
[url]https://bkhome.org/news/[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#419 Post by jemimah »

The synaptics driver needs SHMConfig for the flsynclient calibration to work. I've added it in both xorgwizard and xorgwizard-automatic.

Code: Select all

--- xorgwizard.orig	2012-01-26 14:29:42.000000000 +0800
+++ xorgwizard	2012-01-26 13:16:57.000000000 +0800
@@ -1423,6 +1423,7 @@
   NEW3='Section "InputDevice"\
 	Identifier "Synaptics Mouse"\
 	Driver "synaptics"\
+	Option "SHMConfig" "on"\
 EndSection\
 \
 Section "Monitor" #sectionmonitor0'

Code: Select all

--- xorgwizard-automatic.orig	2012-01-26 14:29:52.000000000 +0800
+++ xorgwizard-automatic	2012-01-26 13:15:55.000000000 +0800
@@ -216,6 +216,7 @@
   NEW3='Section "InputDevice"\
 	Identifier "Synaptics Mouse"\
 	Driver "synaptics"\
+	Option "SHMConfig" "on"\
 EndSection\
 \
 Section "Monitor"'

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#420 Post by Karl Godt »

BarryK wrote:
Karl Godt wrote:
will upload Woof later today.
Please consider these 2 :

rc.shutdown :

Code: Select all

M=`mount`
MTD=`echo $M | rev | sed 's§ )§\n)§g'|rev`
echo "$MTD"
This works for me to turn mount output upside down to unmount sfs,iso,partition ...

*

the killzombies: cut that occurs in rc.shutdown

also occurs in

pmount
drives_all
pup_event_frontend_d
karl,
maybe because I haven't yet had my morning cup of coffee, but I don't understand either of these suggestions. Would you mind fleshing them out a bit?
OK : first , for the mountpoints :

/etc/rc.d/rc.shutdown has got these lines to unmount ~ everything ~
>
MNTDPARTS="`mount`"

#echo
#echo $(gettext "Unmounting stray filesystems:")
echo "Unmounting stray filesystems:"

#091117 110928 if partition mounted, when choose shutdown, pc rebooted. found that param given to fuser must be mount-point, not /dev/*...
STRAYPARTL="`echo "$MNTDPARTS" | grep ' /mnt/' |grep -v -E '/dev/pts|/proc|/sys|tmpfs|rootfs|on / |/dev/root|usbfs|unionfs|aufs|/initrd'`"
STRAYPARTD="`echo "$STRAYPARTL" | cut -f 1 -d ' ' | tr '\n' ' '`"
#111106 do not execute fuser if network share mount (may hang, see http://murga-linux.com/puppy/viewtopic.php?t=73122)...
STRAYPARTandMNT="`echo "$STRAYPARTL" | cut -f 1,3 -d ' ' | tr ' ' '|' | tr '\n' ' '`"
for ONESTRAY in $STRAYPARTandMNT
do
FLAGCIFS="`echo -n ${ONESTRAY} | grep '^//'`"
ONESTRAYMNT="`echo -n ${ONESTRAY} | cut -f 2 -d '|'`"
#echo "`eval_gettext "Unmounting \\\${ONESTRAY}..."`"
echo "Unmounting $ONESTRAY..."
if [ "$FLAGCIFS" = "" ];then
xFUSER="`fuser -m $ONESTRAY 2>/dev/null`"
[ "$xFUSER" != "" ] && fuser -k -m $ONESTRAYMNT 2>/dev/null
fi
killzombies #v3.99
sync
umount -r $ONESTRAY
done
I have mounted many loopdevices to show the problem of nested/encapsulated/interlaced mounts :
/dev/sda11 on /mnt/sda11 type ext2 (rw,relatime,errors=continue)
/dev/loop0 on /mnt/+mnt+sda11+luci_218_2011_10_25.sfs type squashfs (ro,relatime)
/dev/loop1 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+lucisave-MAIN.3fs type ext3 (ro,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop2 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci-218.sfs type squashfs (ro,relatime)
/dev/loop3 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+Gimp_2.7.3_218.sfs type squashfs (ro,relatime)
/dev/loop4 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci_devx_218.sfs type squashfs (ro,relatime)
/dev/loop5 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+ISO+luci-218.iso type iso9660 (ro,relatime)
/dev/sda10 on /mnt/sda10 type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop6 on /mnt/+mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso type iso9660 (ro,relatime)
/dev/loop7 on /mnt/+mnt++mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso+puppy_slacko_5.3.1.sfs type squashfs (ro,relatime)
The problem is the

for ONESTRAY in $STRAYPARTandMNT

would read the list of mounted partitions/directories in the above order and try to unmount

/dev/sda10
before /dev/loop6 existing on /dev/sda10

which would fail because being in use by /dev/loop6

And would try to unmount /dev/loop6 before /dev/loop7 existing inside /dev/loop6

which would fail because being in use by /dev/loop7

Code: Select all

MNTDPARTS="`mount`"
MNTDPARTS=`echo $MNTDPARTS |rev|sed 's# )#\n)#g' |rev`
should revert to
/dev/sda9 on /mnt/sda9 type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/loop7 on /mnt/+mnt++mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso+puppy_slacko_5.3.1.sfs type squashfs (ro,relatime)
/dev/loop6 on /mnt/+mnt+sda10+JUMP-10+slacko-5.3.1-SCSI-MAIN.iso type iso9660 (ro,relatime)
/dev/sda10 on /mnt/sda10 type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop5 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+ISO+luci-218.iso type iso9660 (ro,relatime)
/dev/loop4 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci_devx_218.sfs type squashfs (ro,relatime)
/dev/loop3 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+Gimp_2.7.3_218.sfs type squashfs (ro,relatime)
/dev/loop2 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+luci-218.sfs type squashfs (ro,relatime)
/dev/loop1 on /mnt/+mnt++mnt+sda11+luci_218_2011_10_25.sfs+JUMP-7+lucisave-MAIN.3fs type ext3 (ro,relatime,errors=continue,barrier=0,data=ordered)
/dev/loop0 on /mnt/+mnt+sda11+luci_218_2011_10_25.sfs type squashfs (ro,relatime)
/dev/sda11 on /mnt/sda11 type ext2 (rw,relatime,errors=continue)

none on /proc/bus/usb type usbfs (rw,relatime)
none on /nodev/smackfs type smackfs (rw,relatime)
none on /nodev/mqueue type mqueue (rw,relatime)
none on /nodev/nfsd type nfsd (rw,relatime)
none on /nodev/hugetlbfs type hugetlbfs (rw,relatime)
none on /nodev/ramfs type ramfs (rw,relatime)
none on /nodev/rpc_pipefs type rpc_pipefs (rw,relatime)
none on /nodev/securityfs type securityfs (rw,relatime)
none on /nodev/debugfs type debugfs (rw,relatime)
none on /nodev/binfmt_misc type binfmt_misc (rw,relatime)
none on /nodev/cgroup type cgroup (rw,relatime,freezer,devices,memory,cpuacct,cpu,ns,debug,cpuset)
shmfs on /dev/shm type tmpfs (rw,relatime,size=217284k)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,gid=2,mode=620,ptmxmode=000)
none on /proc type proc (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=501124k,nr_inodes=125281,mode=755)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
rootfs on / type rootfs (rw)
[own kernel with # Device Drivers
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_DEBUG_DEVRES=y
CONFIG_MTD_BLKDEVS=m
# Self-contained MTD device drivers ]

Post Reply