MUT (Media Utility Tool) open testing

Under development: PCMCIA, wireless, etc.
Message
Author
Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#21 Post by Jesse »

Hi Lobster,

When Mut shows you a "close" button for your cdrom, it thinks that the tray is ejected, so mut provides a way to close it.
I'm pretty sure that the cause of thinking that it is open is a bug in the kernel module that I'm asking "where is the tray?", it is saying "the tray is open".
The "No Disk" or "No media" makes sense when the tray is closed, and when mut is told that it is closed, mut shows an "Eject" button.
I don't think any cdrom drive can tell the moment you place a disk on the tray before closing it... :)

Hi Mathiasdm and Rich,

Sorry about accessing your printers :)
Can you please run mut with the mut-debug script, and then send me the generated output log file.

The mut-debug-output.txt file is always next to the mut.tcl program file, i.e. in the same directory.

Lets make mut work for your puppies too :)

Jesse

Mathiasdm
Posts: 100
Joined: Thu 05 May 2005, 07:52

#22 Post by Mathiasdm »

Rich wrote:
Mathiasdm wrote:Yep. When I restarted the computer and opened MUT again, the printer started making noise again. It's an HP Deskjet 695C.
Deskjet 815c does this too.......doesn't print anything, it just initialises, then takes a sheet of paper part way in, then the error light on the printer flashes !
don't know why?
( if it helps with anything, it's a parallel port printer )
That's exactly what mine does too.

Kinda funny, actually :-P
I'll run the debug script as soon as I can (I'm on Windows right now, kinda hard.).

Guest

#23 Post by Guest »

(I'm on Windows right now, kinda hard.).


Isn't there some kind of language censoring on this forum........ :lol:

Mathiasdm
Posts: 100
Joined: Thu 05 May 2005, 07:52

#24 Post by Mathiasdm »

Okay, I've used mut-debug. Here's the output (.txt-files are not allowed as upload-file):


debugging on
'MUT version 0.0.5.rc3' on a 2.4 kernel, bugs, fixes, suggestions, email: Jesse.Liley@gmail.com
Program started
rearrange config 1
rearrange config 2
rearrange config 3
rearrange config 4
rearrange config 5
rearrange delayed 4
rearrange delayed 3
rearrange delayed 2
rearrange delayed 1
rearrange delayed 0
usb_autoscan on
in majorBus__get_list
::majorBus(1) ramdisk
::majorBus(2) fd
::majorBus(3) ide0
::majorBus(7) loop
::majorBus(9) md
::majorBus(22) ide1
open scan time is 0 1000ths of a second, 22 0 52654 hdc
set ::partitions(hdc) = {52.7 Mb} 22 0
open scan time is 0 1000ths of a second, 3 0 78125000 hda
set ::partitions(hda) = {78125.0 Mb} 3 0
open scan time is 0 1000ths of a second, 3 1 48163 hda1
set ::partitions(hda1) = {48.2 Mb} 3 1
open scan time is 0 1000ths of a second, 3 2 74999452 hda2
set ::partitions(hda2) = {74999.5 Mb} 3 2
open scan time is 0 1000ths of a second, 3 3 3076447 hda3
set ::partitions(hda3) = {3076.4 Mb} 3 3
scan these devices...
scan these devices...
devnodes include hda hda1 hda2 hda3 hdc
in diskStats24__get_list
set ::diskStats(hda) 3.0.ide0.disk
set ::diskStats(hda1) 3.1.ide0.part
set ::diskStats(hda2) 3.2.ide0.part
set ::diskStats(hda3) 3.3.ide0.part
set ::diskStats(hdc) 22.0.ide1.cdrom
set ::cdromMedium(hdc) which is device:/dev/hdc|DVD|R&W|1|SW_CLOSE|SW_OPEN|closed|Data|0|1|0d|unknown|
in etc_fstab__get_list
set ::etc_fstab(fd0) = /mnt/floppy
set ::etc_fstab(cdrom) = /mnt/cdrom
set ::etc_fstab(loop0) = /usr
set ::etc_fstab(hdc) = /mnt/dvd
set ::etc_fstab(hdc) = /mnt/cdrom
in mounteds__get_list
::mounteds(/dev/hda3) = /mnt/home|ext3|(rw)
::mounteds(/dev/loop1) = /root|ext2|(rw)
::mounteds(/dev/loop0) = /usr|squashfs|(ro)
::infolist fd0|fd3||unknown||||scan|floppy|
::infolist hda|disk|IC35L090AVV207-0|78125.0 Mb|||||disk|
::infolist hda1|none||48.2 Mb||vfat|DellUtility||part|
::infolist hda2|none||74999.5 Mb||ntfs|||part|
::infolist hda3|none||3076.4 Mb|/mnt/home|ext3|||part|
::infolist hdc|dvdraw|HL-DT-ST CD-RW/DVD-ROM GCC-4480B|52.7 Mb||Data|CDROM|cd_disc_eject,gxine_dvd_play,cd_disk_mount|cdrom|
usb-storage sg ipt_limit ipt_LOG ipt_state iptable_mangle iptable_filter ip_conntrack_irc ip_conntrack_ftp ip_nat_ftp iptable_nat ip_conntrack ip_tables parport_pc parport sr_mod ide-cd cdrom unionfs nls_iso8859-1 ntfs sd_mod usb-uhci ehci-hcd usbcore i810_audio ac97_codec soundcore e100 scsi_mod {} 31
actions(1) = scan 43 21 72 32 fd0
actions(2) = mount 175 59 212 70 hda1
actions(3) = mount 175 78 212 89 hda2
actions(4) = rox 175 97 201 108 hda3
actions(5) = eject 49 142 79 153 hdc
actions(6) = gxinedvd 114 142 171 153 hdc
actions(7) = cdmount 175 142 212 153 hdc
rearrange config 1
rearrange delayed 0
in majorBus__get_list
::majorBus(1) ramdisk
::majorBus(2) fd
::majorBus(3) ide0
::majorBus(7) loop
::majorBus(9) md
::majorBus(22) ide1
open scan time is 0 1000ths of a second, 22 0 52654 hdc
set ::partitions(hdc) = {52.7 Mb} 22 0
open scan time is 0 1000ths of a second, 3 0 78125000 hda
set ::partitions(hda) = {78125.0 Mb} 3 0
open scan time is 0 1000ths of a second, 3 1 48163 hda1
set ::partitions(hda1) = {48.2 Mb} 3 1
open scan time is 0 1000ths of a second, 3 2 74999452 hda2
set ::partitions(hda2) = {74999.5 Mb} 3 2
open scan time is 0 1000ths of a second, 3 3 3076447 hda3
set ::partitions(hda3) = {3076.4 Mb} 3 3
scan these devices...
scan these devices...
devnodes include hda hda1 hda2 hda3 hdc
in diskStats24__get_list
set ::diskStats(hda) 3.0.ide0.disk
set ::diskStats(hda1) 3.1.ide0.part
set ::diskStats(hda2) 3.2.ide0.part
set ::diskStats(hda3) 3.3.ide0.part
set ::diskStats(hdc) 22.0.ide1.cdrom
set ::cdromMedium(hdc) which is device:/dev/hdc|DVD|R&W|1|SW_CLOSE|SW_OPEN|closed|Data|0|1|0d|unknown|
in etc_fstab__get_list
set ::etc_fstab(fd0) = /mnt/floppy
set ::etc_fstab(cdrom) = /mnt/cdrom
set ::etc_fstab(loop0) = /usr
set ::etc_fstab(hdc) = /mnt/dvd
set ::etc_fstab(hdc) = /mnt/cdrom
in mounteds__get_list
::mounteds(/dev/hda3) = /mnt/home|ext3|(rw)
::mounteds(/dev/loop1) = /root|ext2|(rw)
::mounteds(/dev/loop0) = /usr|squashfs|(ro)
::infolist fd0|fd3||unknown||||scan|floppy|
::infolist hda|disk|IC35L090AVV207-0|78125.0 Mb|||||disk|
::infolist hda1|none||48.2 Mb||vfat|DellUtility||part|
::infolist hda2|none||74999.5 Mb||ntfs|||part|
::infolist hda3|none||3076.4 Mb|/mnt/home|ext3|||part|
::infolist hdc|dvdraw|HL-DT-ST CD-RW/DVD-ROM GCC-4480B|52.7 Mb||Data|CDROM|cd_disc_eject,gxine_dvd_play,cd_disk_mount|cdrom|
usb-storage sg ipt_limit ipt_LOG ipt_state iptable_mangle iptable_filter ip_conntrack_irc ip_conntrack_ftp ip_nat_ftp iptable_nat ip_conntrack ip_tables parport_pc parport sr_mod ide-cd cdrom unionfs nls_iso8859-1 ntfs sd_mod usb-uhci ehci-hcd usbcore i810_audio ac97_codec soundcore e100 scsi_mod {} 31
actions(1) = scan 43 21 72 32 fd0
actions(2) = mount 175 59 212 70 hda1
actions(3) = mount 175 78 212 89 hda2
actions(4) = rox 175 97 201 108 hda3
actions(5) = eject 49 142 79 153 hdc
actions(6) = gxinedvd 114 142 171 153 hdc
actions(7) = cdmount 175 142 212 153 hdc

Mathiasdm
Posts: 100
Joined: Thu 05 May 2005, 07:52

#25 Post by Mathiasdm »

bladehunter wrote:
(I'm on Windows right now, kinda hard.).


Isn't there some kind of language censoring on this forum........ :lol:
No comment on that one :wink:

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#26 Post by Jesse »

Hi Mathiasdm,

Your log file looks very healthy, you did have your printer plugged in at the time I hope! :)

Ok, so the fix should be very straight forward, the problem is very likely to be with when Mut loads the Kernel modules, probably just a kernel module that applies to your printer is what is triggering the odd behaviour.

Can you please edit the mut-0.0.5.rc3/bin/load_drivers.sh file, and firstly comment out all the 'modprobe ...' lines, I suspect that the last two in the file might be the offending ones. Try rebooting and running mut with more and more modproble lines in load_drivers.sh uncommented, until you find out which one accesses your printer, and causes the problem.
I've put comments in load_drivers.sh which might help you locate the problem faster.

Please let us know how it goes.

Jesse

Rich
Posts: 278
Joined: Wed 04 May 2005, 19:00
Location: Middlesbrough - UK

#27 Post by Rich »

Commenting out the Iomega Zip drive ( modprobe imm ) fixes this printer problem on my system.

Hope this helps

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#28 Post by Jesse »

Heh, and here I was thinking that was the usb zip disk module... oops!

Does anyone have a usb zip disk they can try Mut with?

Jesse

Guest

#29 Post by Guest »

Running RC3 under puppy 1.0.3.

I get an odd error message: "::img::img(fd0)" can't be found. I can provide more details if needed.

At first I though it was a missing icon path - that I was running MUT from the wrong directory. However, my Puppy system doesn't have a floppy drive either. Missing mount point, perhaps?

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

#30 Post by BarryK »

Puppy 1.0.4 has MUT 0.0.5rc3, renamed to 0.0.5.
The imm module is disabled.

Guest

#31 Post by Guest »

I hope someone is still checking this thread...
how does one get MUT to load two floppy drives?

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#32 Post by Jesse »

Hi,

Floppy disks are a bit archaic on the 2.4 kernel, you can't easily detect them in a nice way. i.e. if they are not there, MUT would lockup for a long period.

To give yourself an access point to the second floppy disk "fd1"
edit the script file /usr/lib/mut-0.0.7b/mut.tcl
about line 363 you will see this:

if {$::majorBusRev(fd) >= 0} {
set ::diskStats(fd0) "$::majorBusRev(fd).0.fd.floppy"
if {$::debug} {puts "set ::diskStats([lindex $line 2]) $::diskStats([lindex $line 2])"}
}


change it to look like this for second floppy drive:

if {$::majorBusRev(fd) >= 0} {
set ::diskStats(fd0) "$::majorBusRev(fd).0.fd.floppy"
if {$::debug} {puts "set ::diskStats(fd0) $::diskStats(fd0)"}
set ::diskStats(fd1) "$::majorBusRev(fd).1.fd.floppy"
if {$::debug} {puts "set ::diskStats(fd1) $::diskStats(fd1)"}
}

Jesse

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

#33 Post by BarryK »

Hi Jesse,
Did you get the p.m. I sent you awhile back ...at least a month ago I think.
Regarding improvements needed to get MUT working properly on puppy2.
Also, one of the bugs applies to puppy1 also -- usb drives formatted as "superfloppies" do not work in MUT.

And another:
I just answered another thread, someone mounted a floppy, and all filenames were truncated to 8.3 format. A msdos floppy can be mounted as vfat to fix this.

HaJo
Posts: 27
Joined: Wed 15 Mar 2006, 00:05
Location: DE

#34 Post by HaJo »

Jesse wrote:Some USB devices take ages to initialise, like 25-30 seconds, during this time MUT can look like it has locked up.
Is there a "working..." message ?

I noticed (in Puppy 1-0-8r1) that MUT has a startup-delay of 4-8 seconds,
from the moment the icon is clicked until the MUT-window appears.
It would be nice to have a faster response (e.g. just an empty window
with a message "scanning devices").

Or maybe the windowmanager should display a "Busy" cursor.
As it is now, it looks as if nothing had happend for several long seconds...
-HaJo

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

#35 Post by BarryK »

I'm getting around that in latest puppy2 by always loading usb-storage driver
at bootup.
There are reasons not to do that at bootup, one is that it slows boot-time, as have
to wait for it to complete, else kernel can crash.
However, I'm now loading it in the background after X has started.

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#36 Post by Jesse »

Hi Barry, Yes I got the PM, and have started looking into it.
The trickiest part is getting it to handle the superfloppies correctly.
I am looking into getting that working right, but I need to brush up on my tcl skills, its been a while :oops:
I hope to have an update for you in April.
I think that MUT only mounts vfat, as 'vfat' is used where 'msdos' would have been identified, MUT identifies a filesystem using its guess_fstype program.

I am shifting home at the moment, and will have a few weeks without internet, so I will likely find some time to get on top of this for you.

Hi HaJo, yes there are a few short delays, but I think they come from identifing cdrom drives, which takes a little time, unfortunately tcl does not appear to be able to offer a way around kernel functions that take several seconds to execute... one day when I rewrite it in C, I can work around that.

Jesse

Post Reply