Tiny Core Base > TCB Q&A Forum
[Solved] How to restart Xvesa with different resolution
curaga:
Restart X for the changes to take effect - "exit to command line" from the menu, and "startx".
saravanan:
--- Quote from: curaga on January 26, 2010, 10:27:57 AM ---Restart X for the changes to take effect - "exit to command line" from the menu, and "startx".
--- End quote ---
Yes it worked curaga, but i just need to change to 800x600 resolution with a single shot, without requiring the user to select the resolution.
Need it on a single click or that may invoke a script/command that will kill the existing GUI and start the X again with new resolution.
if i kill x while being inside x, it will kill the script too.
How to tackle this ?
gutmensch:
you could for example use the extension actkbd.
it runs as a daemon by user root in the background and listens for keyboard shortcuts. when pressed, he could invoke a script like
#!/bin/sh
killall Xvesa
DISPLAY=:0 su -c 'startx' tc
the acpi(d) feature in /etc/acpi/events and so on may be used as well.
saravanan:
--- Quote from: gutmensch on January 26, 2010, 12:15:52 PM ---you could for example use the extension actkbd.
it runs as a daemon by user root in the background and listens for keyboard shortcuts. when pressed, he could invoke a script like
#!/bin/sh
killall Xvesa
DISPLAY=:0 su -c 'startx' tc
the acpi(d) feature in /etc/acpi/events and so on may be used as well.
--- End quote ---
1000 points for gutmensch, thanks :)
saravanan:
still i find a problem, when i kill Xveas and restart it by running the command present in .xsession and changing the resolution param like,
Xvesa blah blah 800x600x32 blah blah
starts X, buit there is no background , i can just see the wbar fine and there is no window theme like the proper window border that is used to be there before.
or how to use startx(what does startx command trigger??) and give startx a 800x600 resolution parameter????
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version