WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] How to restart Xvesa with different resolution  (Read 13244 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: How to restart Xvesa with different resolution
« Reply #15 on: January 27, 2010, 11:18:21 AM »
You can have a menu item, icon, or launch that script some other way. This is linux we're talking about :)

Actkbd isn't needed if you don't want a key/key-combo.
The only barriers that can stop you are the ones you create yourself.

Offline saravanan

  • Jr. Member
  • **
  • Posts: 59
Re: How to restart Xvesa with different resolution
« Reply #16 on: January 27, 2010, 11:27:14 AM »
i opt for an icon rather, how do i do that if i don need actkbd otherwise?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: How to restart Xvesa with different resolution
« Reply #17 on: January 27, 2010, 03:37:11 PM »
See http://tinycorelinux.com/wiki/tiki-index.php?page=iconmenuinfo
http://tinycorelinux.com/wiki/tiki-index.php?page=Creating+Extensions

The recommended way is to create an extension with the icon. Note that for the icon to show a menu item should also be there.
The only barriers that can stop you are the ones you create yourself.

Offline saravanan

  • Jr. Member
  • **
  • Posts: 59
Re: How to restart Xvesa with different resolution
« Reply #18 on: January 28, 2010, 07:24:16 AM »
yes curaga, i learnt about editing the wbar config file, but what is the command that is required to be executed in case of clicking that icon.

ie. for tat icon info as in wbar conf :

i:/usr/local/tce.icons/something.png
t:restartX
c:/usr/local/bin/restartx.sh

In the above case, what should the restartx.sh contain,
if i add, killall Xvesa; wont this kill the child(restartx.sh) also??, so that it may fail to start X again???
If i am wrong, please guide me.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: How to restart Xvesa with different resolution
« Reply #19 on: January 28, 2010, 08:00:27 AM »
I think that since it's not a X process itself, it should continue to run. If not, you can use "nohup" to protect it.
The only barriers that can stop you are the ones you create yourself.

Offline saravanan

  • Jr. Member
  • **
  • Posts: 59
Re: How to restart Xvesa with different resolution
« Reply #20 on: January 28, 2010, 10:04:00 AM »
thanks curaga, with nohup it works fine :)