Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 16 Apr 2014, 21:11
All times are UTC - 4
 Forum index » Advanced Topics » Hardware
Puppy 5.2.8 with hardware profile selection?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Author Message
huskey

Joined: 25 Aug 2010
Posts: 4

PostPosted: Thu 24 May 2012, 13:14    Post subject:  Puppy 5.2.8 with hardware profile selection?
Subject description: Running the same ver of puppy on various diffent PCs/laptops with minimal/no re-configuration
 

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?
Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Fri 25 May 2012, 12:01    Post subject: New project fort this...puppy_profiles  

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
Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Sun 27 May 2012, 22:53    Post subject: Update...  

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
Back to top
View user's profile Send private message 
huskey

Joined: 25 Aug 2010
Posts: 4

PostPosted: Mon 28 May 2012, 17:08    Post subject:  

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. Very Happy

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
Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Mon 28 May 2012, 22:05    Post subject: First tests...  

First tests...
.
capture1878.png
 Description   
 Filesize   46.44 KB
 Viewed   785 Time(s)

capture1878.png

Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Fri 01 Jun 2012, 18:18    Post subject: Running a program from rc.sysinit get a Seg fault.  

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...
Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Wed 18 Jul 2012, 14:20    Post subject: Development delayed...  

I had a working version, and because of a programming error and not keeping backup I lost some source files on this... Mad

gc
Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Sat 08 Dec 2012, 12:32    Post subject: Re: Development delayed...  

gcav wrote:
I had a working version, and because of a programming error and not keeping backup I lost some source files on this... Mad

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
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 409
Location: Oslo, Norway

PostPosted: Sat 08 Dec 2012, 13:38    Post subject:  

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.
Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Tue 25 Dec 2012, 09:54    Post subject:  PHWP Version 1.0
Subject description: PHWP Version 1.0
 

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
puppy_profiles.zip
Description 
zip

 Download 
Filename  puppy_profiles.zip 
Filesize  136.83 KB 
Downloaded  249 Time(s) 
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2035
Location: Germany

PostPosted: Tue 25 Dec 2012, 12:44    Post subject:  

Code:
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?

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Tue 25 Dec 2012, 14:13    Post subject: HUG version..  

RSH wrote:
Code:
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/
hug.zip
Description 
zip

 Download 
Filename  hug.zip 
Filesize  55.76 KB 
Downloaded  247 Time(s) 
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2035
Location: Germany

PostPosted: Tue 25 Dec 2012, 14:44    Post subject:  

Thanks for the Lib.

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

Question Question Question Question Question

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
gcav

Joined: 25 May 2012
Posts: 18
Location: Ontario

PostPosted: Tue 25 Dec 2012, 14:53    Post subject: What? No ldconfig...  

RSH wrote:
Thanks for the Lib.

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

Question Question Question Question Question


Are you sure you dont have 'ldconfig' ?
What system are you using?

In case of no 'ldconfig'... reboot...
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2035
Location: Germany

PostPosted: Tue 25 Dec 2012, 14:56    Post subject:  

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.

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0730s ][ Queries: 12 (0.0050s) ][ GZIP on ]