Drawing for text and string fails using X server(xsun) xlib

Hi all,
I have sparc system and Iam using xsun on solaris 10 and ps -ef | grep
-i xsun gives this:
/usr/openwin/bin/Xsun :0 nkeyboard nmouse -dev vfb -dev vfb screen 0
1028x102
Now I am trying to use XDrawString and XDrawText for simple one
character drawing but to no avail as these calls don't generate
anything. All line generation and bitmap are rendered correctly on the
virtual frame buffer to generate a tiff file.
The same set of calls are working great on sun 2.6.
What can be the problem? I can't seem to find any solution to that?
////////////////////// These calls fail completely returnig
0 ////////////////////////////////////
CR_CHAR Temp[2];
Temp[1] = 0;
Temp[0] = textString;
int rt = XDrawString(_CRDisplay, *pagePixmap, CRGC, xPos, yPos, Temp,
1);
XTextItem item;
item.chars = Temp;
item.nchars = 1;
item.delta = 0;
item.font = 0;
int rt = XDrawText(_CRDisplay, *pagePixmap, CRGC, xPos, yPos, &item,
1);
Regards,
RUI

Partial Solution Found
I used the method below to boot single-user from GRUB.
<URL:http://docs.sun.com/app/docs/doc/817-1985/>
Solaris 10 System Administrator Collection >>
System Administration Guide: Basic Administration >>
11. x86: GRUB Based Booting (Tasks) >>
x86: Booting a System in the GRUB Based Boot Environment >>
x86: How to Boot a System to Run Level S (Single-User Level)
Now I can login as root in single-user level.
I installed NVIDIA-Solaris-x86-169.12.run driver file successfully.
I used the /usr/X11/bin/xorgconfig command to create a basic xorg.conf
file. After reboot it locked up when I tried to start the graphics login.
From what I have read I need to use kdmconfig to change from Xsun
server to Xorg server but when I try to run the command kdmconfig I
get the message kdmconfig not found.
New Questions:
1. Where is kdmconfig located and how do I start kdmconfig?
2. Is there some other method to change from Xsun server to Xorg server?
3. In single-user level what command do I use to startx?
Thanks in advance,
Ken

Similar Messages

  • Search file for text and delete the found text.  How?

    I need to know how to search a file for text and delete the found text. I think grep will let you do this but not sure of the syntax.

    Hi Dmcrory,
       In addition to what Camelot and nobody loopback point out, one must also consider the fact that UNIX text tools are largely line based. You also fail to tell us for what kind of text you are searching. If you are looking for multiple words, there's a very good chance of finding the expression wrapped onto different lines. With hyphenation, even single words can wrap to multiple lines. Tools that search line-by-line will miss these unless you use multiline techniques.
       Multiline substitutions require that you write "read-ahead" code for the command line tool that you're using and that you take that into account in the substitution. Given how you want the results to be printed out, you may also want to preserve any newlines found in the match, which is even more difficult. That could bring up the subject of line endings but that's a completely different topic.
       I apologize if this sounds discouraging. Multiline searches aren't needed that often and in most of those cases, exceptions can be dealt with by hand. I just didn't want you to get surprised by it. To give you an idea of how easy basic substitution is, have a look at Tom Christiansen's Cultured Perl: One-liners 102 and One-liners 101. Both have some "in-place" substitution examples.
    Gary
    ~~~~
       MIT:
          The Georgia Tech of the North

  • Recently the sound on my Iphone 4 for texts, and email alerts started working intermittently.  I have upgraded to the latest software and the Apple store even replaced the phone but safe issues

    Recently the sound on my Iphone 4 for texts, and email alerts started working intermittently.  I have upgraded to the latest software and the Apple store even replaced the phone but safe issues

    For each mail account, along with designating a primary SMTP server, you should be able to just turn off any and all other SMTP servers you have listed.  In that case, if there is a problem with comcast, the message send should just fail.
    Also make sure your comcast smtp settings are correct (port, likely 587 but might be something else for comcast, whether you should be suing SSL or not, do you need authentication or not).
    You might find the comcast forums useful for getting the settings right - I found this:
    http://forums.comcast.com/t5/E-Mail-and-Xfinity-Connect-Help/iphone-email/m-p/66 1151?view=by_date_ascending#M131151
    The second poster notes, SSL should be on, authentication should be "password" and you should be using port 995

  • Different Ringtone Notifications for Text and Email

    I would like to assign different ringtone notifications for texting and email, and if possible, different ringtones for each of my two email accounts.  I need to see texts immediately, but not emails.  Am picking up the phone 50 times a day so I don't miss a text, critical to my work. Could do this on Bb Storm, but can't figure out on Incredible.  At a minimum, I would like to shutoff notification for email, and just get pinged for texts.  Thanks!!

    valniemiec wrote:
    I would like to assign different ringtone notifications for texting and email, and if possible, different ringtones for each of my two email accounts.  I need to see texts immediately, but not emails.  Am picking up the phone 50 times a day so I don't miss a text, critical to my work. Could do this on Bb Storm, but can't figure out on Incredible.  At a minimum, I would like to shutoff notification for email, and just get pinged for texts.  Thanks!!
    Well, 
    The default notification tone that you set in the Settings->Sound is for the default tone in the generic e-mail account and all other notifications.  If you use the Gmail client, you can set your own personal ringtone in it's settings (Menu->Settings).  In the messaging Application you can also set a custom notification sound from there as well (Menu->Settings)
    As for different e-mail accounts using the same e-mail application, I don't think that is possible with the in stock app...tho I am not totally sure I haven't use it like that before.
    Hope that helps!

  • After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?

    After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?
    I have tried to convert the pdf to Word instead but same difficulty with numbers: look like numbers but not usable for calculations

    Excel has a 'text to numbers' function, I would use that.
    Convert text to numbers. Microsoft Excel.

  • How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    Hello Arthur,
    Thank you for the reply.
    You were correct that deleting the app and reinstalling it was the only thing to make it work but unfortunately I lost all the documents I made, even though they were backed up to iCloud before i deleted the app. At the same time as deleting pages I had to delete keynote and numbers too, so I've lost all the documents in them too.
    The mb of data which was assigned to each programme in iCloud has reduced, so. I guess they are gone for good. Is there any other way to reaccess them?
    Not your fault but I am a bit fed up the the iPad. I have lost work that I've done and have no other copy apart from what was in iCloud, as I don't have a printer and couldn't email them too myself as I couldn't get into the programme and  i've also got episodes of tv series I purchased that I can't download and albums that are half downloaded with songs missing, so I feel a bit swindled out of time and money and am going back to DVD ,  pen and paper and CDs .
    Instead of using iCloud I guess the only way to make sure I don't loose any more documents it to email them to myself each time I save them on the iPad. Is there anything else you could suggest please?
    I don't have any other apple products apart from iPods, so I can't access the iCloud on anything else can I?
    Thanks
    Amanda

  • My ringer is no longer working for text and email notifications. Only working for phone calls. I have gone through all the settings to see where something is off. Not finding anything. I have tried changing the tone and it just vibrates on everything.

    My ringer is no longer working for text and email notifications. Only working for phone calls. I have gone through all the settings to see where something is off. Not finding anything. I have tried changing the tone and it just vibrates on everything.

    Ok so I happened to figure it out while on the phone to apple support. Even though the guy was very nice, I think I knew more than him! He was explaining very basic resolution principles I played about. I had the second option in displays resolution. All I did was unplug the HDMI cable, click on 'best for display' then plugged the HDMI in and my resolution on the normal monitor changed to the normal blue, then went black momentarily and then changed to a strange resolution but another window appeared that said SONY BRAVIA HDMI at the top! Hey presto! Don't know why it didn't do it yesterday - I probably left the HDMI cable in or something! Oh well. Problem solved!

  • I have to use microsoft office 2007 and 2003 for windows and I'm using a macbook pro, How i can get the on mac?

    I have to use microsoft office 2007 and 2003 for windows and I'm using a macbook pro, How i can get the on mac?

    You can either use Office for Mac 2011 or use Boot Camp to run Windows or use a VM, such as Parallels Desktop to run Windows. Running Windows, you'd be able to use MS Office for Windows.
    Clinton

  • I have downloaded MAMP for Mac and want to use it for working with Wordpress. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    I have downloaded MAMP for Mac and want to use it for working with Wordpress. I'm on an Imac with Maverick OS 10.9. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    It depends on how you installed it. You have to shutdown the MySQL service first. If you used the standard, but obsolete Startup Item, you can do that with the Startup Item. If you created a launchd script, you can do it with launchctl. Once MySQL is no longer running, you can delete the Startup Item or launchd script and the rest of MySQL.

  •   I don't have an sd card and I have to pay for texting and I have 59 pictures

      I don't have an sd card and I have to pay for texting and I have 59 pictures

    Which phone and can it be plugged into a PC?

  • When will you make an IPad YouTube app. There is one for iPhone and when you use it for the iPad the quality is bad since you have to zoom in. Please fix

    When will you make an IPad YouTube app. There is one for iPhone and when you use it for the iPad the quality is bad since you have to zoom in. Please fix

    If you lost sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the control center if you are running iOS 7. Swipe up from the bottom of the screen to get to control center . Tap on the bell icon and system sounds will return.
    If you are running iOS 5 or iOS 6, the system sound control is in the task bar at the bottom. Double tap the home button and swipe all the way to the right in the task bar to get to the speaker icon on the left side. Tap on that and the sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock can be accessed in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • When I run ical on my mac I get the error:   The server responded with an error. The request for account "Yahoo!" failed. The server responded with "504" to operation CalDAVAccountRefreshQueueableOperation.

    When I run ical on my mac I get the error:  
    The server responded with an error.
    The request for account “Yahoo!” failed.
    The server responded with
    “504”
    to operation CalDAVAccountRefreshQueueableOperation.
    I hit "go online" and almost immediately I get the same message again.  Any ideas?

    I am tired of how Yahoo has gotten worse and worse. It is the ONLY account I get problems with DAILY (even after removing and re-adding). AOL will act up once in a while not taking a saved password but accepting it when OK is clicked.... But Yahoo is always responding with such errors.... Today's calendar error is:
    The request (CalDAVAccountRefreshQueueableOperation) for account “Yahoo” failed.

  • Read data from MDM For Lookup and Flat table using MDM ABAP API

    Hi,
    I have requriment to read data from MDM from FLAT and Lookup table using MDM ABAP API. My design  is like this ,
    I have one ITEMS (Main table in MDM) and inside that i have one Lookup flat table ITEM_TYPE , my requriment is to read Item number and its related Item type.
    From ABAP.
    Please help if any body has any idea.
    Regards,
    Shyam

    HI Guys,
    I found my solution by myself. Below is the solution , hope this will help others:-
    Retrieve data from MDM  using MDM ABAP API.
    Step- 1. Create structure in SAP with the same name as that of MDM field code for MDM Main table.
    Step-2. Create another structure in SAP having all  lookup fields of MDM , fieldname in ECC must be same as that of MDM field
    code.
    Step-3.Create structure in SAP for  individual lookup field(Single Field only)   with the same name as MDM Field code.
    Step-4.
    DATA: IT_QUERY            TYPE STANDARD TABLE OF MDM_QUERY,  "MDM_QUERY_TABLE,
          WA_QUERY            TYPE  MDM_QUERY,
          WA_CDT_TEXT         TYPE  MDM_CDT_TEXT,
          IT_RESULT_SET_KEY   TYPE  MDM_SEARCH_RESULT_TABLE,
          WA_RESULT_SET_KEY   TYPE  MDM_SEARCH_RESULT,
          WA_STRING           TYPE  STRING.
    DATA:<Internal table> TYPE STANDARD TABLE OF <SAP Str Having all LOOKup Fields>    
    DATA: :<Internal table>TYPE STANDARD TABLE OF <SAP Str one LOOKup field>,
         <Workarea> LIKE LINE OF :<Internal table>.
    *PASS LOGICAL OBJECT NAME.
    V_LOG_OBJECT_NAME = 'Logical object name defined in Customization'.
    Define logon language, country & region for server
    WA_LANGUAGE-LANGUAGE = 'eng'.
    WA_LANGUAGE-COUNTRY = 'US'.
    WA_LANGUAGE-REGION = 'USA'.
    TRY.
        CREATE OBJECT LR_API
          EXPORTING
            IV_LOG_OBJECT_NAME = V_LOG_OBJECT_NAME.
    ENDTRY.
    CONNECT to repository. Apply particular logon language info
    CALL METHOD LR_API->MO_ACCESSOR->CONNECT
      EXPORTING
        IS_REPOSITORY_LANGUAGE = WA_LANGUAGE.
    *NOW PASS ITEM NO AND GET KEY FROM MDM.
    CLEAR WA_QUERY.
    WA_QUERY-PARAMETER_CODE  = <MDM FIELD CODE>. "Field code
    WA_QUERY-OPERATOR        = 'EQ'. "Contains
    WA_QUERY-DIMENSION_TYPE  = 1. "Field search
    WA_QUERY-CONSTRAINT_TYPE = 8. "Text search
    WA_STRING                = <Field Value>.
    GET REFERENCE OF WA_STRING INTO WA_QUERY-VALUE_LOW.
    APPEND WA_QUERY TO IT_QUERY.
    CLEAR WA_QUERY.
    *PASS ITEM NUMBER AND GET RELATED KEY FROM MDM.
    TRY.
        CALL METHOD LR_API->MO_CORE_SERVICE->QUERY
          EXPORTING
            IV_OBJECT_TYPE_CODE = <MDM Main Table>
            IT_QUERY            = IT_QUERY
          IMPORTING
            ET_RESULT_SET       = IT_RESULT_SET_KEY.
      CATCH CX_MDM_COMMUNICATION_FAILURE .
      CATCH CX_MDM_KERNEL .
      CATCH CX_MDM_NOT_SUPPORTED .
      CATCH CX_MDM_USAGE_ERROR .
      CATCH CX_MDM_PROVIDER .
      CATCH CX_MDM_SERVER_RC_CODE .
    ENDTRY.
    Pass record id into keys.
    LOOP AT IT_RESULT_SET_KEY INTO WA_RESULT_SET_KEY.
      WA_KEYS = WA_RESULT_SET_KEY-RECORD_IDS.
    ENDLOOP.
    WA_RESULT_SET_DEFINITION-FIELD_NAME = <Look field name>.
    APPEND WA_RESULT_SET_DEFINITION TO IT_RESULT_SET_DEFINITION.
    CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE
      EXPORTING
        IV_OBJECT_TYPE_CODE      = <MDM Main Table>
        IT_RESULT_SET_DEFINITION = IT_RESULT_SET_DEFINITION
        IT_KEYS                  = WA_KEYS
      IMPORTING
        ET_RESULT_SET            = IT_RESULT_SET.
    LOOP AT IT_RESULT_SET INTO
            WA_RESULT_SET.
    *PASS KEYS INTO MAIN TABLE TO GET Structure for FALT or Look up Table
      TRY.
          CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
            EXPORTING
              IV_OBJECT_TYPE_CODE = <MDM Main Table>
              IT_KEYS             = WA_KEYS
            IMPORTING
              ET_DDIC_STRUCTURE =<SAP Strct having all Look up fileds of MDM>         
      ENDTRY.
      LOOP AT <SAP Strct having all Look up fileds of MDM> INTO <Work area>.
        CLEAR WA_KEYS.
        APPEND <Work area>-field name TO WA_KEYS.
        CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
          EXPORTING
            IV_OBJECT_TYPE_CODE = <MDM Lookup table name>
            IT_KEYS             = WA_KEYS
          IMPORTING
            ET_DDIC_STRUCTURE   = <Single Structure in SAP For Lookup field>.
        READ TABLE <Single Structure in SAP For Lookup field>. INTO <Work Area> INDEX 1.
    Here you can get the value of realted lookup fields associated with main table data.
      ENDLOOP.
    ENDLOOP.
    LR_API->MO_ACCESSOR->DISCONNECT( ).
    Edited by: Shyam Babu Sah on Nov 24, 2009 4:52 AM

  • Create URL Document for text only string (Not XML)

    I want to query a http page that return only a string of text. The response is not formatted with XML. Is it possible to read the value of “parameter1” containing “4321” from the Contact Center Express script?
    Response (pure text):
    parameter1=4321&parameter2=1234

    Getting the response body of an HTTP GET request is as easy as:
    Set my_string = URL[http://my-server.local/]
    Now, if the response body is formatted as a query string:  key1=value1&key2=value2, you will need to further process your results.
    You can feel free to search the web for "java query string" to see if there's code out there you like, otherwise, here's one way to do it in UCCX.
    /* This Set step makes the HTTP GET request to the web server and stores the response body in the String */
    Set my_string = URL[http://my-server.local/]
    /* This Do step takes any size query parameter and turns it into a HashMap */
    /* E.g., From this: key1=value1&key2=value2; to this: map[key1] = value1, map[key2] = value2 */
    Do {
        String[] pairs = my_string.split("&");
        int i = 0;
        int j = pairs.length;
        for (; i < j; i++) {
            my_map.put(pairs[i].split("=")[0], pairs[i].split("=")[1]);
    }/* This If step checks the existance of a specific key, and if it exists, we get the value for use in our script */If (my_map.containsKey("key1"))     True          /* The specified key is in the map, set account_number to its value */          Set account_number = (String) my_map.get("key1");     False          /* The specified key is not in the map */
    I hope that makes sense and helps you.  Ask questions if you need more help.  Good luck.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • How do I connect Airport Extreme and Time Capsule to my new iMac so that AE is used for network and TC only used for Time Machine backup?

    I didn't realize that Time Capsule will only support the print function of a wireless multifunction printer.  So I want to use Extreme for my network to have full use of my printer and use TC as the Time machine backup only.  How to I make the connections?

    Thanks for your response and this is getting complicated but I just purchased a new iMac as well as the Airport TC.  I've had the Airport Extreme for a year or so.  The Airport Extreme worked perfectly with my old iMac wirelessly and I had all functions of my printer with no problems.  I was expecting the same with the TC.  But the instruction that came with TC say to connect the printer to the TC via USB...which I did.  And the print function worked perfectly but nothing else.  In researching I discovered that when wired that way the TC only supports the print function...not scan or fax or anything else.  I tried going wireless since my AE worked perfectly via wireless but I got no printer functions at all that way.  But I'm wondering also if I tried that during a time I was having other issues...I had to delete and re-add my printer which solved some other problems.  I may try that again...and see if I can get all print functions with just the TC connected
    As far as connecting both your AirPort Extreme and Time Capsule on your network, we're not clear on exactly how you want to do this.  Will the AirPort Extreme connect to your modem using an Ethernet cable and the Time Capsule connect to the AirPort Extreme using an Ethernet cable?.......or......do you want the Time Capsule to connect to the network using wireless?
    Well... first of all I would like not to have to use the AE at all...I would prefer using just my TC for network, all print functions and Time Machine backup if that's possible. My printer will not accept Ethernet connections (Canon MX512).
    After failing at getting this to work, I decided I would try to use my AE for net and print functions and just use my TC for Time Machine backup.  I tried several different connection configurations with no success until finally I connected cable modem to my AE via Ethernet and went wireless with the AE and printer. but connected the AE to the TC via Ethernet and amazingly everything worked like a charm (for a while) and I was patting myself on the back for being so smart.  But now I find that the connection only lasts for a short time.  If I leave it for a while the TC goes invisible...or at least I see a message saying the Ethernet is unplugged...but it is not... and I lose internet connection even though I have a green light on my AE. So now I'm at a loss. I don't know why I keep losing network signal and why my system thinks the Ethernet is unplugged.
    So... after all this...I figured I wasn't so smart after all and I must have things wired incorrectly.
    So... it sounds like you are saying I should go back and try again to get my new TC to work as I want it to via wireless instead of connecting via USB...is that correct?  Could you tell me exactly how I should wire my equipment from cable modem to AE and/or TC to achieve net capability, full functions of my printer and Time Machine backup...
    Thanks...

Maybe you are looking for

  • Regarding migration of oracle from 7.3.4 to 8.1.7

    Hi, We are migrating our product. Sun Solaris 2.6 to version 8 Oralce database 7.3.4 to 8.1.7 Pro * C 1.6 to 8.1.7 PL/SQL 1.0 to 8.1.7 Forms 3 to 6i. I want to know what are the problems we will face and what are all the existing bugs. Also i heard t

  • Unable to Connect to Database from Forms/Reports 6i

    I can't find anything wrong with my TNSNAMES.ORA file, yet I can't connect to my database through forms or reports. The errors I keep getting is TNS-12154 and TNS-12203. Please advise. Thanks in advance. E

  • ORA-06553: PLS-801: internal error [hshuid:LU invalid]

    DBA refreshed database B from database A (both 64-bit). Database C (also 64-bit) had a link to database B. DBA claims to have rebuilt the link from C to B, but queries now result in: SQL> select housing_pkg.f_housing_dep_amt@btest(12540, '200808', 'H

  • Siri too quiet.  I'm having issues with Siri.

    The majority of the time it is working perfectly well. Sometimes understanding me and sometimes not - which is fine as it develops and I get more used to it. But every once in a while the Siri response is whispered. You can barely hear the reply unle

  • Safari Hanging with OS X upgrade.

    I have a imac mid 2007 2.4GHz Intel Core 2 Duo with 4GB of Ram. I recently upgraded this to OS X Lion and have been experiencing Hangs with my Safari that require a hard boot restart. This seems to happen after the machine has been running for a peri