Puppy 5.2.8 with hardware profile selection?

What works, and doesn't, for you. Be specific, and please include Puppy version.
Post Reply
Message
Author
huskey
Posts: 4
Joined: Wed 25 Aug 2010, 23:43

Puppy 5.2.8 with hardware profile selection?

#1 Post 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?

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

New project fort this...puppy_profiles

#2 Post 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

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

Update...

#3 Post 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

huskey
Posts: 4
Joined: Wed 25 Aug 2010, 23:43

#4 Post 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

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

First tests...

#5 Post by gcav »

First tests...
.
Attachments
capture1878.png
(46.44 KiB) Downloaded 1083 times

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

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

#6 Post 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...

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

Development delayed...

#7 Post 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

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

Re: Development delayed...

#8 Post 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

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#9 Post 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
True freedom is a live Puppy on a multisession CD/DVD.

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

PHWP Version 1.0

#10 Post 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
Attachments
puppy_profiles.zip
(136.83 KiB) Downloaded 441 times

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#11 Post 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?
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

HUG version..

#12 Post 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/
Attachments
hug.zip
(55.76 KiB) Downloaded 451 times

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#13 Post by RSH »

Thanks for the Lib.

Code: Select all

sh-4.1# ldconfig
sh: ldconfig: command not found
:?: :?: :?: :?: :?:
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

What? No ldconfig...

#14 Post 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...

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#15 Post 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.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post by rcrsn51 »

In most (all?) Puppies, ldconfig is in the devx.

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#17 Post 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?
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#18 Post 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.

User avatar
gcav
Posts: 104
Joined: Fri 25 May 2012, 04:12
Location: Ontario

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

#19 Post 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...

Post Reply