Tiny Core Base > TCB Q&A Forum

[Solved] How to restart Xvesa with different resolution

<< < (3/5) > >>

gutmensch:
Xvesa is just the X server, there are other programs running as well like the window manager, mouse_config, etc.

Boot tinycore normally, open a terminal, do "$ ps aux" and look what processes are running. By chance there are some, which you have to kill too, otherwise the whole thing doesn't work, cos he restarts Xvesa but e.g. the window manager is still running and doesn't start again  when .xsession is called.

saravanan:
Thanks gutmensch, but is there any way to kill all processes started by .xsession and then to run another duplicated.xsession script with just the resolution parameter edited?

gutmensch:
it doesn't need duplication.. you can edit the .xsession file in place with a command like

sed -i -e 's/800x600/1024x768/' /home/tc/.xsession

which you could call before the restart of Xvesa.

for killing all child processes of .xsession you'll have to do something like here: http://www.unix.com/unix-dummies-questions-answers/5245-script-kill-all-child-process-given-pid.html

curaga:
X apps die when X dies. Possibly startx has to be executed from /home/tc for everything to work:
DISPLAY=:0 su -c ' cd /home/tc; startx' tc

saravanan:
Nice trick gutmensch, and curaga :)
Thank you,

But rather than invoking this as a key combination triggered event, is there any other way to call the actkbd and run the config file specified?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version