Bringing the Woof-CE template for Dpup Wheezy up to date

Please post any bugs you have found
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#41 Post by musher0 »

Many thanks, jlst.

I haven't tested your script on the actual Pooch prototype yet, but at this point only
on a Wheezy-3.5.2.8.

Can I suggest a few touch-ups?
* In the "Report" section, maybe add an ampersand at the end of the geany
command so geany doesn't close when we close the originating terminal.
* The same modules are showing for the net connection and the sound (on this
pup; report attached below).
* Author and date your script? :) You deserve it!

Wooo, we're getting nicely ahead thanks to your improvements.
(Nicely written code, BTW.)

Now for a test on "The Pooch"... TWYL.

@gcmartin:
Thanks for your test and the report.

~~~~~~~~~~~~~
============================
ETHERNET
============================
via technologies, inc. vt6102 [rhine-ii] (rev 74)
via

via-rhine
via-velocity
via-ircc

============================
SOUND
============================
via technologies, inc. vt8233/a/8235/8237 ac97 audio controller (rev 50)
via

via-rhine
via-velocity
via-ircc
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

jlst

#42 Post by jlst »

Hahaha you're right, I fixed it. That actually only affects the report. Ok geany is backgrounded. When the script is stable enough I think i'll rename it
Last edited by jlst on Wed 27 Jan 2016, 15:43, edited 1 time in total.

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

#43 Post by musher0 »

Thanks again, jlst.

Works great in the actual Wheezy Pooch, I just tested it.

Can I offer this launcher to be put in /root/Startup?
Because the wizards still need to be activated at boot, except now of course,
they have something to "chew on" (I mean: your script has done the set-up).

Code: Select all

#!/bin/sh
# /root/Startup/autosetup_net+snd.sh
####
if [ ! -f /tmp/Ready ];then # If no flag, we set up.
	 setup_ethernet_alsa -auto
	 alsawizard
	 sns 
	 echo Ready > /tmp/Ready
else # If the flag is up, we skip the above and play something to prove it's up.
	aplay /usr/share/audio/2barks.au # or whatever 
#   mplayer some.mp3 &>/dev/nul &
fi
Feel free to improve. TWYL.

~~~~~~~~~~
(The following notes have nothing to do with your script, but are linked to
the subject.) There's also:
1) the matter of the alsawizard offering two cards that are the same (on my
machine at least).
I have to find again Geoffrey's script / improvement concerning this.

2) if we go directly to < aplay some.wav > for ex., it will play but the retrovol
configuration will appear blank. I saw a utility on thw web once that does an
automatic config of the alsa mixer. Find / use that too.

##
3) Barry's "simple network set-up" (aka "sns") works but not the other one --
check what's happening. BTW, how about jemimah's Frisbee? Not everyone
likes the "sns".
~~~~~~~~~~

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

jlst

#44 Post by jlst »

I added another switch: -detect

./setup_ethernet_alsa -detect

This will produce a more complete 'report', but it's a little "intrusive"

It first attemps to leave wired network and sound unusable

Then loads all matching modules one by one and configures sound and network each time
If after loading a module network or sound works then that module is added to the report

This can be used to store logs for many mainboards and find common patterns to use in the more 'discrete' and efficient -auto2
Last edited by jlst on Thu 28 Jan 2016, 17:24, edited 1 time in total.

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

#45 Post by musher0 »

Good work, jlst!

At this end, I found and adapted Geoffrey's Multiple-Sound-Card-Wizard (MSCW)
to a "1stboot" situation, so it executes only the necessary part of itself.
(Geoffrey's original. My edit is attached.)

I also discovered that if you don't load retrovol at startup, sound still works, the
config is still available later, but it saves some RAM, and the MSCW is less
verbose: it just displays the little panel of the sound card, and does not show the
alsa/retrovol config.

I also downloaded frisbee-1.34. (I think this is a new download site for Puppy
stuff.) Frisbee works fantastic on the tail of your script. No adaptation needed.

Finally, I'm including the touch-ups to my Startup script for my critics. ;)

Let's keep this up!

~~~~~~~~~~~~~~~~~

Code: Select all

#!/bin/sh
# /root/Startup/autosetup_net+snd.sh # 2nd take.
# (c) musher0, 27 janv. 2016. LGPL3
####
if [ ! -f /tmp/Ready ];then
	setup_ethernet_alsa -auto
	[ -L /usr/bin/MltplSndCrdWzrd-m0 ] && Multiple-Sound-Card-Wizard 1stboot || alsawizard # Let's use Geoffrey's update to advantage.
	[ -e /usr/local/bin/frisbee ] || sns # Dougal's one not working; needs the old gtkdialog.
	echo Ready > /tmp/Ready
else
	aplay /usr/share/audio/2barks.au # or whatever 
#   mplayer some.mp3 &>/dev/nul
fi
Attachments
Multiple-Sound-Card-Wizard.zip
This one has my &quot;1stboot&quot; edit.
(1.66 KiB) Downloaded 171 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gcmartin

#46 Post by gcmartin »

I also discovered that if you don't load retrovol at startup, sound still works, the
config is still available later, but it saves some RAM, and the MSCW is less
verbose: it just displays the little panel of the sound card, and does not show the
alsa/retrovol config.
Not being critical, but we are entering our 2nd decade of PCs have 10-100 times more RAM than PUPPY needs. This is a one-time utility to test and resolve a boot-time issue on first desktop use. IMHO, RAM should be the very least of concerns as there is so much of it available. This is not a request for inefficiency, rather, the prize is completing those missing elements for the distro.

You 2 are moving this level of discovery along nicely.

Thanks for what you are doing. Dont forget, at some point the opening post may need to change to point to where this utility will reside and its title to reflect what is available.

THANKS muchly for this. I am all too sure others, too, will benefit.

gcmartin

#47 Post by gcmartin »

I bit off of this thread's need for just sound and ethernet, but, may be useful, I saw this from @JamesBond on another thread.

3 of the most common complaints over the years on PUP distro starts;
  • LAN adapters
  • Sound adapters
  • Video adapters
Thought its suggestion might be useful as things progress, here.

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

#48 Post by musher0 »

Hi, gc.

You're right. RAM is now plentiful, so the RAM argument means nothing. Old
habits die hard.

Another argument, meaningful, this one. In this case, if we load retrovol at startup,
it triggers a step automatically in Geoffrey's script and the retrovol panel shows up.
If the user has configured the alsa sound levels once before, it's all populated
nicely and the user has nothing to do. Panel pops up for no reason and distracts
from a focused boot. User may get confused. So we do not load retrovol at boot.

~~~~~~~~
#2. Thanks for the pointer to the video-card thread. We'll get to that eventually.

At this point, The Pooch stops at the xwin position, even if the pfix=nox parameter
is not set on the boot line. Barry did this on purpose for this Wheezy variant
because of horror stories choosing the video driver. (He explains at this point of
the woof process.)

As for me, a) I don't want to change anything on the xorgwizard side unless it's
absolutely foolproof; b) my test machines are mostly old 32-bits, so I couldn't test
widely enough; c) I don't know enough about video drivers.

"If in doubt, do nothing," as the saying goes.

Maybe jlst's technique could be applied to video as well. But the problem is not
exactly the same because the default driver kicks in. So, it would be more like an
optimization.

Calling any video cards experts reading this! ;)

~~~~~~~~~~~~
Another important upgrade in my mind is going to glibc at least 2.19, the version
number Debian Jessie is at. This because Debian Wheezy is nearing end of
support. Otherwise, the ppm becomes meaningless: users would have to compile
any new or updated software against Wheezy's current eglibc 2.13.

I booted dejan555's beautiful dpup-4.87yesterday and although it's based on old
Debian-Lenny-level software and the kernel is # 2.30.5, dejan managed to boost
its glibc to version 2.20! How did he do it? I must ask him.

The packages dejan used are on the meownplanet site, but it's not responding
at this time. Probably russoodle has not finished repairing it.

I don't suppose it could be as easy and simple as plucking all C lib related
material off dejan's 4.87 and copying it to this Wheezy.

Opinions and users' reports on this subject are welcome. Thanks in advance.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

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

#49 Post by musher0 »

Hello all.

Just a word to let you know that I just updated my message above to include some URLs
related to dejan555's dpup-4.87.

I'm writing this because no line appears at the bottom of the message above stating the
date and time of my edit. (It usually does.)

Flash? Is the forum not in full swing today?

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

jlst

#50 Post by jlst »

I added more code that I'm yet to test so I wont explain it now.

However before continuing I need some feedback.

musher0, gcmartin, can you please paste here what you see after running this command in the weezy pup:

./setup-netsound -detect
Last edited by jlst on Fri 29 Jan 2016, 03:33, edited 2 times in total.

jlst

#51 Post by jlst »

Code: Select all

Dpup Wheezy 3.5.2.9
Linux: 3.12.3-dpup i686

============================
         ETHERNET
============================
 via technologies, inc. vt6102 [rhine-ii] (rev 74)
via-rhine
via-velocity
via-ircc

============================
           SOUND
============================
 via technologies, inc. vt8233/a/8235/8237 ac97 audio controller (rev 50)
snd-hda-codec-via
snd-via82xx-modem
snd-via82xx

============================
           DETECT
============================
ethernet: via-rhine
sound   : snd-via82xx

============================
           EXTRA
============================
# dmidecode 2.11
SMBIOS 2.3 present.

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
	Manufacturer: KOB
	Product Name: KOBP4M266A
	Version: 1.0
	Serial Number: 00000000

00:00.0 Host bridge: VIA Technologies, Inc. P4M266 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
00:10.0 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: S3 Inc. VT8375 [ProSavage8 KM266/KL266]

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

#52 Post by musher0 »

Got that, jlst.

I'll do the test as soon as I can. I'm in the middle of something at the moment,
and not on our experimental Wheezy Pooch.

Mid-evening ok? (It's 14:35 here as I'm writing this.)

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

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

#53 Post by musher0 »

Actually...
Dpup Wheezy 3.5.2.9
Linux: 3.12.3-dpup i686

============================
ETHERNET
============================
via technologies, inc. vt6102 [rhine-ii] (rev 74)
via-rhine
via-velocity
via-ircc

============================
SOUND
============================
via technologies, inc. vt8233/a/8235/8237 ac97 audio controller (rev 50)
snd-hda-codec-via
snd-via82xx-modem
snd-via82xx

============================
DETECT
============================
ethernet: via-rhine
sound : snd-via82xx

============================
EXTRA
============================
# dmidecode 2.11
SMBIOS 2.3 present.

Handle 0x0003, DMI type 2, 8 bytes
Base Board Information
Manufacturer: ASUSTek Computer INC.
Product Name: A7V400-MX
Version: 1.03
Serial Number: 123456789000

00:00.0 Host bridge: VIA Technologies, Inc. VT8378 [KM400/A] Chipset Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237/VX700 PCI Bridge
00:09.0 Mass storage controller: Promise Technology, Inc. PDC40775 (SATA 300 TX2plus) (rev 02)
00:10.0 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV350 AR [Radeon 9600]
01:00.1 Display controller: Advanced Micro Devices [AMD] nee ATI RV350 AR [Radeon 9600] (Secondary)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gcmartin

#54 Post by gcmartin »

I may not be using this app correctly. My result appears different from the prior posts. Guidance requested to help.

I could not remember which PC I reported from originally, so a took down one of my PCs and rebooted, pristine, @Musher0's ISO he provided me.

Results from extraction to /root/my-applications/bin, making executable, and opening a terminal to execute:

Code: Select all

# ./setup-netsound

=======================================

Your ETHERNET hardware:
  marvell technology group ltd. 88e8056 pci-e gigabit ethernet controller (rev 12)

These are the corresponding kernel modules:
1) mvmdio
2) skge
3) sky2
4) marvell

Select the most likely from the list above: 4
modprobe marvell
route: SIOCADDRT: File exists
Waiting for interfaces to initialize...
ifconfig: eth0: error fetching interface information: Device not found

=======================================

Your SOUND hardware:

  nvidia corporation mcp61 high definition audio (rev a2)

These are the corresponding kernel modules:

Select the most likely from the list above:
#
Since this is a text app, how does one select the SOUND kernel module? I just hit the Enter-key and the script ended at prompt.
Hope this is helpful

jlst

#55 Post by jlst »

gcmartin, type ./setup-netsound -detect

Netbook Toshiba NB100
Dpup Wheezy 3.5.2.9
Linux 3.12.3-dpup i686

============================
ETHERNET
============================
realtek semiconductor co., ltd. rtl8101e/rtl8102e pci express fast ethernet controller (rev 02)
8139cp
8139too
atp
r8169
realtek

============================
SOUND
============================
intel corporation nm10/ich7 family high definition audio controller (rev 02)
snd-hda-intel
snd-intel8x0
snd-intel8x0m

============================
DETECT
============================
ethernet: r8169
sound : snd-hda-intel

============================
EXTRA
============================
# dmidecode 2.11
SMBIOS 2.4 present.

Handle 0x0002, DMI type 2, 16 bytes
Base Board Information
Manufacturer: TOSHIBA
Product Name: Portable PC
Version: Base Board Version
Serial Number: Base Board Serial Number
Asset Tag: Base Board Asset Tag
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: Base Board Chassis Location
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0

00:00.0 Host bridge: Intel Corporation Mobile 945GSE Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GSE Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 02)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
02:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)

gcmartin

#56 Post by gcmartin »

Thanks!
Console log and Generated report is below. Please note that the files are text files. Remove the ".fake.gz" extension to open in editors.
Attachments
setup-netsound-2.log.fake.gz
The console log showing command results and newly acquire eth0
(2.95 KiB) Downloaded 140 times
setup-netsound.report.txt.fake.gz
The generated report file
(2.4 KiB) Downloaded 156 times

jlst

#57 Post by jlst »

Uhmm this looks like the first challenge.

cgmartin, type this:

Code: Select all

lsmod | grep snd 
And paste here the output, I'd like to know what sound module is loaded

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

#58 Post by musher0 »

Hello all.

I have got a new iso ready, technically, but...

FYI: Bug related to this project presented separately here in the hope of
getting some pointers.

BFN.
Last edited by musher0 on Fri 29 Jan 2016, 00:29, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

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

#59 Post by musher0 »

Present look of "The Pooch": (Please see attached.)

Also very nice:
Image
Attachments
What_it_looks_like_at_this_point_2016-01-28(1).jpg
(38.07 KiB) Downloaded 185 times
What_it_looks_like_at_this_point_2016-01-28(2).jpg
(41.12 KiB) Downloaded 219 times
Last edited by musher0 on Fri 29 Jan 2016, 02:40, edited 2 times in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gcmartin

#60 Post by gcmartin »

Delivery to @JLST's earlier request.
Attachments
setup-netsound-3.log.fake.gz
Console log referring to the request.
(2.71 KiB) Downloaded 161 times

Post Reply