Page 1 of 1

Puppy 5.2.8 with hardware profile selection?

Posted: Thu 24 May 2012, 17:14
by huskey
For someone who has a number of PCs with differing hardware (audio / video / Network Interface cards) configuration, is there a way to use the same version of Puppy linux and pupsave file on all the devices without little/no re-configuration?

At present, I would have to re-configure the audio + video and Network Interface, each time I boot up puppy on a different computer.

WindowsXP uses the concept of 'Hardware Profile', to achieve something similar, where a hardware profile can be selected at boot time, which loads the correct device/hardware drivers for that profile.

Is anything similar available for Puppy Linux 5.2.8?

New project fort this...puppy_profiles

Posted: Fri 25 May 2012, 16:01
by gcav
This is something I really want and have not been able to find a solution.
I also have Slacko on an 8gb usb stick. I have 4 possible laptops at home where I can use my distro (2 Acers, 2 Toshibas), and my work laptop an HP and also I use VMware.

So with all this comps, running Slacko is good. But;
I would like for Slacko to save the profiles based on the laptop for:
a) Screen resolution (a nuisance really)
b) Soundcard settings
c) CPU frequency scaling
d) Network configuration (I have not had issues on this front...) except
that at work, I need a Proxy setup...
e) Graphics driver settings... (saving xorg.conf)
f) ...anything else...

So, I starte looking at how puppy works and the init scripts.
My first step is going to be to have a prog, determine the machine it is running on by using the MAC address to start with and save all this in a flatfile database.

Next step would be to start saving some information for these machines and figuring out at what step on the init process to override the automatic detection mechanisms....

Create a small bacon interface to save the profiles based on the machine... etc..

I am still writing out the details of this.....

Comments?

gc

Update...

Posted: Mon 28 May 2012, 02:53
by gcav
Well, I started coding this...

2 pieces, a prog that runs on init,
an interface to do some management...

The init code, is recognizing unique pc's based on mac, and storing
them in a flat-file and creating configuration directories...

Now, I am creating an interface to do some management function like
setting what things to back up...(mostly files, configuration info)

gc

Posted: Mon 28 May 2012, 21:08
by huskey
Hi gc,

Your ideas are way more ambitious than what I'd envisaged and should help in seamlessly using Puppy Linux on a number of home PC/laptops. Eagerly awaiting your solution. :D

My rudimentary workaround, to at least start X, is to make backup of the xorg.conf and then copy it to the /etc/X11 directory.

huskey

First tests...

Posted: Tue 29 May 2012, 02:05
by gcav
First tests...
.

Running a program from rc.sysinit get a Seg fault.

Posted: Fri 01 Jun 2012, 22:18
by gcav
I am getting a segmentation fault while executing a program from rc.sysinit... as shown on the bootsysinit log

VERSION UPDATE
LOAD KERNEL MODULES
LOAD HW PROFILES
Segmentation fault <---
LOAD SWAP
MISC. SYSTEM SETUP
WAIT MODULES LOADED

The program runs find on the command shell, and i tried bot static and dynamic objects, no weird libraries are required.

Here is the test code for running the program..
echo "LOAD HW PROFILES"
if [ -e /root/puppy_profiles/phwp ]; then
echo -n "Loading HW Profile..." >/dev/console
/root/puppy_profiles/phwp
status_func 0
fi

Any ideas..?
{edit}
Doe anyone know how to set ulimit at boot?
Probably changing the ulimit -c will enable the creation of a core dump.
{2nd edit}
I managed to get a core dump... btw,,, set ulimit -C before program...

Development delayed...

Posted: Wed 18 Jul 2012, 18:20
by gcav
I had a working version, and because of a programming error and not keeping backup I lost some source files on this... :x

gc

Re: Development delayed...

Posted: Sat 08 Dec 2012, 16:32
by gcav
gcav wrote:I had a working version, and because of a programming error and not keeping backup I lost some source files on this... :x

gc
Between, work, 6/10 year olds, and other demands, I lost track of this.

Is there still interest in this piece of code.

gc

Posted: Sat 08 Dec 2012, 17:38
by tallboy
Oh, yes!
I move my dpup, on a live CD or DVD, between different linux boxes, and have the same irritating initiation rituals each time, and I think a lot of other users also would like to see this .pet finished.
Your own situation, with different setups on a desktop and some other mobile unit, plus a workplace environment that maybe prevent a frugal installation but allow a live CD/DVD/USBstick, should be the same situation that many users meet daily. I am certain that a hardware profile application could be made universal, and included in all puppy future versions, so please keep up the good work!

tallboy

PHWP Version 1.0

Posted: Tue 25 Dec 2012, 13:54
by gcav
Ok, attached is the first version for the Puppy hardware profiles prog.
It is an appdir program, so unzip the file into your root directory.
Then, right-click and select help and read the PDF manual.

I have developed this under Slacko, but I would think that most config file locations are standard. I have tested it under my laptops and it works fine.

Please provide comments and suggestions...



gcl

Posted: Tue 25 Dec 2012, 16:44
by RSH

Code: Select all

Symbol not found in library /usr/lib/hug.so: undefined Symbol: HSLIDER
Which version of hug.so is needed for this?
Where can I get this version?

HUG version..

Posted: Tue 25 Dec 2012, 18:13
by gcav
RSH wrote:

Code: Select all

Symbol not found in library /usr/lib/hug.so: undefined Symbol: HSLIDER
Which version of hug.so is needed for this?
Where can I get this version?
The HUG version is: 0.77

attached is the hug.so
put it under /usr/lib/ and run ldconfig

I would recommend to upgrade to the newest Puppy or download
BaCon at: http://www.basic-converter.org/

Posted: Tue 25 Dec 2012, 18:44
by RSH
Thanks for the Lib.

Code: Select all

sh-4.1# ldconfig
sh: ldconfig: command not found
:?: :?: :?: :?: :?:

What? No ldconfig...

Posted: Tue 25 Dec 2012, 18:53
by gcav
RSH wrote:Thanks for the Lib.

Code: Select all

sh-4.1# ldconfig
sh: ldconfig: command not found
:?: :?: :?: :?: :?:
Are you sure you dont have 'ldconfig' ?
What system are you using?

In case of no 'ldconfig'... reboot...

Posted: Tue 25 Dec 2012, 18:56
by RSH
I do use my LazY Puppy, which is based on Lucid Puppy 528-4.

The only "ldconfig" LazY Puppy has is directory: /var/cache/ldconfig.

Posted: Tue 25 Dec 2012, 20:19
by rcrsn51
In most (all?) Puppies, ldconfig is in the devx.

Posted: Tue 25 Dec 2012, 22:32
by RSH
rcrsn51 wrote:In most (all?) Puppies, ldconfig is in the devx.
Thanks. After loading the devx, it works.

But there was no output after running ldconfig and there is not really a description what it does (the --help info seems to be for experts only). So, can anyone tell me what has been done after running ldconfig in console?

Posted: Tue 25 Dec 2012, 22:52
by pemasu

Code: Select all

ldconfig -v
If you type to the google: "what does ldconfig do"
you get more info, mostly useful, than I can reproduce.

From the folks who have tried it, any feedback.?

Posted: Thu 03 Jan 2013, 22:34
by gcav
From the folks who have tried it, any feedback?

I am planning on adding the network setup and the possibly the modules save and restore next...