*Solved* Appliction to switch between running X Servers

Hi all
I am looking for a command application, which allows me to switch between running X Servers. Similar to ctrl+alt+Fx. I do need this, because I need the source how this is done.
THX
Last edited by ying (2011-08-30 20:36:31)

karol wrote:
Shark wrote:
You can use "chvt" commnd. For example, command:
chvt 4
will switch to console 4
Not exactly, I get
[karol@black ~]$ chvt 4
chvt: VT_ACTIVATE: Operation not permitted
when running inside X. OP wants to switch between running X servers, not VTs.
If you are inside X, then you have to do:
sudo chvt 4
Running X servers can be switched via chvt. For me to change from display 0 to display 1 i just do "chvt 8" as root.
Last edited by Shark (2011-08-30 14:14:54)

Similar Messages

  • [SOLVED] Delay when switching between ttys

    When I switch between tt2 - tt6 right after boot, I experience a delay of about 7 seconds
    before I am presented with the respective login prompt.
    During that time, I only get a blinking cursor in the upper left corner.
    Note that I experience the delay for each tty, but only for the first time that I switch.
    After that, switching is instantaneous.
    It doesn't matter whether I am logged in on tty1 or not.
    This problems seems to be relatively new.
    Kernel mode setting is enabled.
    Last edited by Aton (2013-04-12 12:14:19)

    Okay, I have found the problem.
    Seems that I hadn't correctly enabled [email protected].
    Journalctl:
    systemd[1]: Job sys-subsystem-net-devices-multi-user.device/start timed out.
    systemd[1]: Timed out waiting for device sys-subsystem-net-devices-multi-user.device.
    systemd[1]: Dependency failed for Automatic wireless network connection using netctl profiles.
    This somehow caused the problem.
    Whenever I switched ttys before those events, I would get the 7 second delay.
    After that, everything was normal.
    After correctly configuring netctl, the problem is gone.

  • Double-tapping to switch between or clear running apps is not working with iPhone 4s.

    when I double tap to close out or switch between running functions, it does nothing ever since yesterday. I have the most current update since last week and the home button works for all other purposes so it's not broken. Now my battery is draining because I cannot shut off running apps. Please help!

    Hi Kate,
    Welcome to Apple Support Communities.
    It sounds like you’re running into a multitasking issue that’s preventing you from switching between apps or forcing them to quit. Try restarting your iPhone, as shown in the article linked below.
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    If that doesn’t do it, you can always try restoring the iPhone to factory settings too.
    Use iTunes to restore your iOS device to factory settings - Apple Support
    Cheers,
    -Jason 

  • Switching between license servers

    Hello,
    We have two SBO 8.81 installations on two different servers in same network.
    Each server has own licence manager running. 
    SBO clients are installed on the client PCs.
    Client PC's are accessing these servers directly.
    No terminal service client (WTS or Citrix) platform exist.
    In this case, from a client PC, how can I switch between different companies installed on different servers? Do I need to stop licence manager on server1 so that licence manager on server2 is the only licence server running and clients can switch to that server? "Chose Company" screen on client is remembering the last licence server. I can not change entry on "the field "Current server".
    Please share your ideas if you have any.
    Thanks in advance,
    Savas Ertugrul

    Hi,
    In addition to Gordon's comment, the main purpose is to have no intervention in stopping the license server.
    If you want to connect to the Server 1 you can connect through LAN directly and
    if you want to connect to Server 2 you connect through Terminal Service in this way it will avoid confusing
    and manual connection.
    Better yet use Terminal Service for both license server.
    THanks.
    Clint

  • [Solved] Netcfg switches between interfaces

    Hello,
    I switched to netcfg, to get a pure systemd install.
    How ever, sometimes the netcfg can't bring up the interface even though it used that interface before.
    It's like netcfg are switching between what interface it can use. Sometimes it's eth0 other times eth1.
    So when I boot and don't have any network connection, I change the config files to use the other interface (ex. eth1) and netcfg can connect.
    How can this be?
    configs:
    /etc/network.d/mynetwork
    CONNECTION='ethernet'
    DESCRIPTION='A basic static ethernet connection using iproute'
    INTERFACE='eth1'
    IP='static'
    ADDR='192.168.1.3'
    #ROUTES=('192.168.0.0/24 via 192.168.1.2')
    GATEWAY='192.168.1.1'
    DNS=('dns1', 'dns2)
    ## For IPv6 autoconfiguration
    #IP6=stateless
    ## For IPv6 static address configuration
    #IP6='static'
    #ADDR6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
    #ROUTES6=('abcd::1234')
    #GATEWAY6='1234:0:123::abcd'
    /etc/conf.d/netcfg
    # Enable these netcfg profiles at boot time.
    # - prefix an entry with a '@' to background its startup
    # - set to 'last' to restore the profiles running at the last shutdown
    # - set to 'menu' to present a menu (requires the dialog package)
    # Network profiles are found in /etc/network.d
    NETWORKS=(mynetwork)
    # Specify the name of your wired interface for net-auto-wired
    WIRED_INTERFACE="eth1"
    # Specify the name of your wireless interface for net-auto-wireless
    #WIRELESS_INTERFACE="wlan0"
    # Array of profiles that may be started by net-auto-wireless.
    # When not specified, all wireless profiles are considered.
    #AUTO_PROFILES=("profile1" "profile2")
    Last edited by KLIM (2012-12-06 14:22:23)

    Did you checked for netcfg.service is enabled (systemd) ?
    BTW, I see a missing single quote on DNS line : DNS=('dns1', 'dns2)
    You may check these forum posts :
    "[SOLVED] Netcfg.service always failing." @ https://bbs.archlinux.org/viewtopic.php?id=148079
    "Systemd and Netcfg" @ https://bbs.archlinux.org/viewtopic.php?id=151662
    "netcfg/systemd not bringing up eth0 (static profile)" @ https://bbs.archlinux.org/viewtopic.php?id=147300
    "[SOLVED] netcfg fails at boot" @ https://bbs.archlinux.org/viewtopic.php?pid=1200518
    And this wiki entry about netcfg @ https://wiki.archlinux.org/index.php/Netcfg

  • Is it possible to connect an older Power Mac (running OS 10.5.8) to an iMac running 10.9.5. I want to share the monitor, keyboard and mouse and switch between the two computers.

    Is it possible to connect an older Power Mac (running OS 10.5.8) to an iMac running 10.9.5. I want to share the monitor, keyboard and mouse and switch between the two computers.

    as far as I know then the target display mode is not an option with such an old mac

  • I want to switch between 2 open apps using only 1 step, i.e. touch once, tap once, push once, swipe once, etc. Can I do this with a 4s running 6.1.3?

    I want to switch between 2 open apps using only 1 step, i.e. touch once, tap once, push once, swipe once, etc. Can I do this with a 4s running 6.1.3?

    No.  2 steps if the app is already open, double tap the home button and then tap on the app.

  • [solved] [gnome] Switching between windows: now grouped per program?

    I have a question how I can change the behavior in Gnome regarding open windows for programs & switching between those windows.
    OpenBox & LXDE - every instance of a program has its own icon.
    If I have Chromium running in two windows, and LXTerminal in an other window I have 3 icons.
    With ALT + TAB I can switch between all windows.
    Gnome: every program has its own icon, no matter how many instances / windows are open
    If I have Chromium running in two windows, and LXTerminal in an other window I have 2 icons: one for Chromium and one for LXTerminal.
    With ALT + TAB I can switch only between the two programs.
    The icon for Chromium has a downwards-arrow, and if you wait some time, you can choose between the two Chromium screens.
    How can I configure Gnome to have icons for every open window instance, and not grouped per program?
    I prefer to use ALT + TAB to switch between all open windows (an not only between the open programs).
    Last edited by pe7er (2012-08-01 11:52:44)

    Thanks for your fast response!
    I haven't worked with Gnome Extensions before (I used to have Gnome 2 on my Debian machine), so I had to find my way regarding how to install:
    After registration at https://extensions.gnome.org/ I logged in & browsed to the extension that you recommend and just used the switch to switch it on.
    It works great! Thanks!

  • Switching between different run-time menu programati​cally

    Hi All
     I am planning to build a Bilingual program…….am just doing trial and errors in changing all captions and run-time menu s programmatically with a single button click……….Here my logic is working fine for all captions and graphs also…………..but I could not change the run-time menu……….i am unable to switch between different run-time menus……………
    Here I am sending the program am working on………..please have a look on this, and suggest me something………….hope my problem get resolved.
    Thanks
    Anil Punnam
    Attachments:
    Caption_program.ZIP ‏31 KB

    Hi Anil,
    I'm guessing you're using 7.1?  When I first ran your program in 8.0, it worked perfectly and switched back and forth perfectly.  However, I tried it in 7.1 and saw some bad behavior.  The customer run time menu was not updated in the menu bar.  It looks to me like the run time menu is changing, but the front panel is not updating.  After pressing one of your front panel buttons to change the run-time menu back and forth, if you click on the file menu it should update, although this can lead to some funny looking menus since "affiche" is longer than "file" and you can still see the remnants of the old menu.  Try this and let me know if this is indeed the behavior you are seeing (check out the attached pic).  I thinkt hat R&D already had a report on this, and that is why it is fixed in 8.0.
    Megan B.
    National Instruments
    Attachments:
    RTM.JPG ‏34 KB

  • Music pauses on my iPhone 5C when switching between apps or when receiving alerts/notifications sometimes (not always) and I have to manually restart the song. I'm running the latest 7.0.1 software. It's a bit annoying.

    Music pauses on my iPhone 5C when switching between apps or when receiving alerts/notifications sometimes (not always) and I have to manually restart the song. I'm running the latest 7.0.1 software. It's a bit annoying.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • [RESOLVED] Can't switch between TTYs when GDM is running.

    Hello, I have a strange problem because I can't think of why it would happen...
    If I boot up without GDM starting (ie: runlevel 3), I can switch between TTYs with Ctrl+Alt+Fx perfectly well, however if I then start GDM (or boot into runlevel 5 so it starts automatically), I no longer have this ability. Any idea why?
    Last edited by Barrucadu (2008-04-24 14:37:07)

    I think this has nothing to do with gdm, it's a problem with X. Last time I had this it was because X didn't properly interpret my keyboard settings - so try to comment out any specific Xkb* stuff in /etc/X11/xorg.conf and try to restart X.
    On the other hand, it might be something else - then I don't know.

  • Mid-2012 RMBPro 10.9.4: Is it possible to switch between graphic cards?  Activity monitor shows the high perf card always active even through no running apps need it.

    How does one switch between graphics cards on a RMB Pro that has both a regular and high performance card installed?

    There's no control built into OS X to manually switch between them (that I know of). But in your Energy Saver preferences, there is setting called Automatic Graphics Switching that will either keep the discrete GPU on all the time, or automatically switch it off when not in use. Do you already have this preference turned on?
    It might keep the high performance graphics card on if it's plugged into AC power, since there is no battery life penalty in that case.

  • KDE 4.2: Taskbar widget to switch between desktop 1-4 [SOLVED]

    While I was messing around with my taskbar widgets, I accidentally removed the one that lets you switch between desktop 1-4 with a mouse click. It's usually found to the very right of the kickoff launcher on a default KDE install. I can still switch desktops with the keyboard, but I liked it being there and can't find it in the "add widgets" menu. I was using default KDE 4.2.1 when this happened, but I've since switched to KDEMod. Anyone know how I can get this back?
    Last edited by Command Line Fu (2009-03-24 15:15:55)

    Command Line Fu wrote:While I was messing around with my taskbar widgets, I accidentally removed the one that lets you switch between desktop 1-4 with a mouse click. It's usually found to the very right of the kickoff launcher on a default KDE install. I can still switch desktops with the keyboard, but I liked it being there and can't find it in the "add widgets" menu. I was using default KDE 4.2.1 when this happened, but I've since switched to KDEMod. Anyone know how I can get this back?
    It's name is pager on the add widgets menu...Try to check it again..:)

  • 7344 servo motion switching between open and closed loop operation

    I have a custom end-of-line test system presently using a 4-axis 7344 servo controller to perform various functional tests on small, brushed DC motors. The system is programmed in C/C++ and uses flex motion functions to control the motor during testing. Motors are coupled to external encoder feedback and third party PWM drives running in closed-loop torque mode from an analog command signal. The system uses all four motion axis channels on the 7344 board to independently and asynchronously test up to four production motors at a time.
    In closed-loop mode, the system runs without issue, satisfying the battery of testing protocols executed by this system. I now have a request to add additional test functionality to the system. This testing must be run in open loop mode. Specifically, I need to use my +/- 10v analog output command to my torque drive to send different DAC output levels to the connected motor.drive while monitoring response.
    I do not believe the flex motion library or 7344 controller includes functions to easily switch between open and closed loop mode without sending a new drive configuration. I am also under the impression that I cannot reconfigure one (or more) servo controller axis channels without disabling the entire drive. As my system runs each axis channel in an asynchronous manner, any requirement to shutdown all drives each time I change modes is an unworkable solution.
    I am open to all ideas that will allow asynchronous operation of my 4 motor testing stations. If the only solution is to add a second 7344 controller and mechanical relays to switch the drive and motor wiring between two separately configured servo channels, so be it. I just want to explore any available avenue before I place a price tag on this new system requirement.
    Bob

    Jochen,
    Thank you for the quick response. The 7344 board does an excellent job running my manufacturing motor assemblies through a custom end-of-line tester in closed loop mode. A portion of the performance history and test result couples the motor through a mechanical load and external shaft. The shaft is in contact with a linear encoder that closes my servo loop.
    My new manufacturing requirement is to also sample/document how the small DC motor behaves in open loop operation. Your solution is exactly what I need to perform the additional functional tests on the product I am manufacturing. I see no reason why this cannot work. I was originally concerned that I would need to reinitialize the 7344 board after changing axis configuration. Initialization is a global event and impacts all four channels on the 7344 board.
    Using flex_config_axis() to change axis configuration on a single channel without disturbing other potentially running axis channels will solve my concern. It will be several weeks before I can return to the manufacturing facility where the 7344-based testing machine is located. I will update this thread once I verify a successful result.
    Bob

  • How to make my applicatio​n programmat​ically switch between English and Russian

    Greetings from Colorado...
    My application needs to be switchable between English and Russian.  Future languages to add are Spanish and Chinese.  The user selects a language
    from a control before starting the program and then the program changes the Captions, Boolean Texts, Graph Labels, and Enum Type Strings to the
    chosen language.  For Russian, this requires a different set of characters.  I have made substantial progress by:
    Control Panels>Region and Language>Keyboards and Languages>Change Keyboards added Russian>Keyboard>Russian on my development
    computer.
    In the LabVIEW.ini file, I added UseUnicode=TRUE (thanks to a suggestion found in this forum)
    Made property nodes for controls and used properties such as Interpret As Unicode (True for Russian, False for English), Text, Font Name, Font Size, etc.
    I have used fonts Arial and Arial CYR for Russian and MS Sans Serif for English
    Set the keyboard for Russian and enter Cyrillic characters into text constants that are set for Arial or Arial CYR font.  Sometimes one works and
    sometimes the other works.  As long as I set the font name in the property node the same way the text went into the text constant, it generally
    works.  I wish I could understand why one works sometimes and the other works other times!
    I have had trouble with the Boolean Text going off-center when changing fonts and languages and it seems that by setting the Lock Text In Center
    property to False and then True again, it seems to work.  Often changing Boolean texts between short and long texts causes some of the long text
    to be non-displayed; I have remedied this by explicitly setting the width of the Boolean text in a property node.
    Often, the Russian text appears as gibberish with strange right-angle characters, :s, =s, and tiny numbers.  I have been able to remedy this on my
    development computer by ensuring that the text constant on the block diagram has the same size as the caption is supposed to have.  This
    is not necessary for normal programming in English, but it seems to help here.  But it doesn't always solve the problem.
    Sometimes the English text appears as Chinese gibberish in an Enum Type selection list or in a graph label.  On my development computer,
    it seems that making the text the last property to change helps here.
    By changing the sequences of assignments to a single property node with a long list of properties, I have been able to make some of these
    controls to switch between languages without gibberish showing up.
    A few hours ago, I had the Russian strings in the Enum Type control working, except that when selecting from the available items, only the first
    word of the Russian string was displayed.  Two of the items start with the same word, so the user can't distinguish them.  
    At that time the English strings were appearing as Chinese gibberish while the list during the selection process displayed in English.  As soon
    as I changed the selection, future attempts to change the selection gave Chinese gibberish during the selection process, too.  But this was only
    a problem in the executable version; the source-code version worked fine.
    In an attempt to get rid of the Chinese gibberish, I made new constants and retyped the items into them.  This worked!  But then, the Russian
    stopped working and gave gibberish angles and tiny numbers, even though I didn't touch any of the code that sets the properties in Russian mode.
    After trying a few sequences of setting the properties for the graph X label on page 2 of my tab control, this label started working correctly for both
    languages.  But the text of that label comes through on page 1 of the tab control, partly obscured by other controls on that page.  After the
    program runs a few more seconds, these shadows disappear.
    Most times I restart LabVIEW, I get an error message saying there was a crash due to fontmgr.cpp, line 7494.  But there actually wasn't a crash.
    My computer has Windows 7 64-bit.  Deployment Computer has Windows 7 32-bit.  LabVIEW version is 8.5.  
    I have probably 50 or 100 more controls and indicators to change to language programmability and figuring out all this stuff for each one is
    terribly time-consuming and there is no assurance that all of them will ever work.  
    At this point, I'm hoping that I am on an entirely wrong path and someone will send me a clue to get me on a path that is more predictable.
    Thanks in advance to all who post ideas!
    Cheers
    Halden 

    Hi All,
    I've made a lot of progress on this translation, but it's been really hard.  There are lots of weird things going on that must be logical because they're in a computer, but I can't figure out what the logic is.  When changing a font on a caption using the front panel, it sometimes changes the font on the caption and sometimes doesn't although the indicator always indicates the new font.  Removing the first character of the unicode font string being sent to the caption seems to help...huh?  Anyway, tabs still can't change language programmatically, and niether can ring controls (some kinds will take the new list of strings, but when selecting, they only display the first word of the string!).  Boolean text can be reprogrammed, but only if the boolean text is set to be the same for both true and false states.  When reprogramming captions on a non-displayed page of a multi-page tab-controlled user interface, the new text appears on the current page until I change pages back and forth.  What a pain!
    Sooo, NI....does LabVIEW 2011 have support for unicode fonts?  Or, is there anything else in the new control style that will support programmatic language changing?
    Halden 

Maybe you are looking for