Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Select X Server Layout at boot time
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Ginko
Guru
Guru


Joined: 01 May 2002
Posts: 371
Location: nearby my linux laptop

PostPosted: Wed Oct 02, 2002 9:36 am    Post subject: Select X Server Layout at boot time Reply with quote

Hi gentooer's,

I have a laptop which I sometimes connect to en external
monitor and use a different resolution than the LCD.

To do so, I setup Xfree with two different Server Layouts
which I can call with the -layout server option of the startx
command. This works OK.

My problem is that I'd like to specify the Server layout
at boot time and I do not use startx but have KDE started
automatically and no .xinitrc or similar on my $HOME.

Can you help :?:

Thanks in advance,
Gianluca
Back to top
View user's profile Send private message
paramthegreat
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2002
Posts: 78

PostPosted: Sat Oct 05, 2002 1:40 am    Post subject: that might not be possible Reply with quote

i am not a guru but i do not think that what you want to accomplish would be possible :( . the only kind of parameters that you can pass when u boot are related to kernel configuration.

however u might be able to do something with the "init" parameters that can be passed on boot through grub. maybe u can write a script and point ur xserver to initialize based on an alternative XF86Config file.
maybe the following website might give u an idea: http://www.torque.net/scsi/SCSI-2.4-HOWTO/bparams.html

i know this is a bit farfetched but maybe it'll help,
happy hacking :)
_________________
Parminder
guptaparminder at yahoo dot com
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Sat Oct 05, 2002 9:50 am    Post subject: Reply with quote

you CAN add more information in grub .. mainly the runlevel :) i never cerated my own runlevel, but it should be possible with that. you can start other scripts during startup, a quick hack would be to write 2 init.d scripts, one does cp XF86Config.normal XF86Config, other does cp XF86Config.laptop XF86Config, and start only one of these in each runlevel :)
Back to top
View user's profile Send private message
Ginko
Guru
Guru


Joined: 01 May 2002
Posts: 371
Location: nearby my linux laptop

PostPosted: Mon Oct 07, 2002 9:19 am    Post subject: Reply with quote

Hi,

I know how to select a different boot profile, this is
no problem (I append "prof=xyz" to the boot command and
look for it in /proc/cmdline from within local.start).
I already do it for changig network parameters depending whether
I am at home or office or wherever.

My question is how can I specify a different Xfree Server Layout
when starting X from boot (not manually which is trivial).
Copying a different XF86Config file would do but it's not
elegant and does not use the Server Layout feature which is there
for this purpose.

Thanks for your help,
Gianluca
Back to top
View user's profile Send private message
mario
Guru
Guru


Joined: 20 Apr 2002
Posts: 400
Location: Mountain View, CA

PostPosted: Mon Oct 07, 2002 1:32 pm    Post subject: take a look at your xdm/gdm/kdm configuration Reply with quote

/etc/X11/xdm/Xservers for example
Back to top
View user's profile Send private message
Ginko
Guru
Guru


Joined: 01 May 2002
Posts: 371
Location: nearby my linux laptop

PostPosted: Mon Oct 07, 2002 1:55 pm    Post subject: Reply with quote

That's exactly.

Thanks a lot,
Gianluca
Back to top
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Tue Oct 08, 2002 1:01 pm    Post subject: Reply with quote

You can add an additional aribtrary param to the kernel upon boot (via grub) and later in the script (e.g: Xservers) check for the value and use the desired layout.

The parameters passed to the kernel are available in /proc/cmdline and you can grep it for the value you want.
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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