Implementing Program into simple GUI

I have completed a program that will show the inventory one at a time. I am using Netbeans and i have generated two JFrames. One that will be the welcome screen with a start button to show the first item...And the second one to have a textbox with a Next button to act as the enter button for my previous program. I have created the format for both JFrames, I dont know where to start implementing the completed program into a simple screen that will go through each item....not asking for a solution but if there is any suggestions on where to put what...I have created buttons on each JFrame and set it to action..Please help and thank you....
package inventory;
import java.util.*;
public class Main //main class
   // main method
   public static void main( String args[] )
      double total = 0.0;
      Product inventory[]; // This is the array variable
       Scanner input = new Scanner(System.in);
      inventory = new Product[ 5 ];
      inventory [ 0 ] = new Product( "Apple", 1, 200, 1.00 );
      inventory [ 1 ] = new Product( "Banana", 2, 100, 2.00 );
      inventory [ 2 ] = new Product( "Pear", 3, 50, 3.00 );
      inventory [ 3 ] = new Product( "Pinapple", 4, 60, 4.00 );
      inventory [ 4 ] = new Product( "Orange", 5, 150, 5.00 );
       //needed to have a sort method call here BLG
       sortItems(inventory);
      for (int counter = 0; counter < 5; counter++)
         System.out.printf(inventory[counter].toString()); //way to print out
           //added two lines to get one-by-one BLG
           System.out.println("Please press enter to see the next item...");
           input.nextLine();
      } // end for
       total = getTotalValue(inventory); //added BLG
      System.out.printf( "The total value of the inventory is: $%.2f\n\n", total );
   } // end main method
   public static double getTotalValue(Product Items[])
          double totalValue = 0.0;
          for (Product myItem : Items)
               totalValue += myItem.getValue();     
          return totalValue;
     //sort the items by name  added BLG
     public static void sortItems(Product Items[])
          for(int i=0;i < Items.length; i++)
               Product myProduct = Items;
               int j;
               for (j = i - 1; j >= 0 && Items[j].getproductName().compareTo(myProduct.getproductName()) > 0; j--)
                    //compare the current item to the last item name
                    Items[j+1] = Items[j];
               Items[j+1] = myProduct;
} // end class mainpackage inventory;
public class Product{
public String name; //Declares product name
public int id; //Declares product ID
public int amount; //Declares number of Units
public double cost; //Declares cost of each unit
public Product( String name, int id, int unit, double cost ){ //Creates a constructor for Product class
this.name = name;
this.id = id;
this.amount = unit;
this.cost = cost;
public Product( double priceUnit )//Seprate constructor for the restock class
this.cost = priceUnit;
Product inventory[] = new Product [ 3 ];
public void setProduct ( String theproductIn ){
name = theproductIn;
public void setId ( int itemNumberIn ){
id = ( ( itemNumberIn > 0 ) ? itemNumberIn :0 );
public void setAmount ( int unitsIn ){
amount = ( ( unitsIn > 0 )?unitsIn:0 );
public void setCost ( double priceUnitIn ){  
cost = ( ( priceUnitIn > 0.0 )?priceUnitIn:0.0 );
public String getproductName(){
return ( name );
public int getId(){
return ( id );
public int getAmount(){
return ( amount );
public double getCost(){
return ( cost );
public double getValue(){
return ( amount * cost );
public String toString (){     
String formatString = "Product Name : %s\n";
formatString += "Id Number : %d\n";
formatString += "Number of units on hand : %d\n";
formatString += "Price of each unit : $%.2f\n";
formatString += "Value of total units in stock : $%.2f\n";
return (String.format ( formatString, name, id, amount, cost, getValue()));

package inventory;
public class restock extends Product
        private double reStockingFee;
     public restock(double cost, double reStockingFee,double getValue) {
       super(getValue*1.05);
       this.reStockingFee = reStockingFee;
     public double getCost() {
         return super.getCost() + reStockingFee;
     public String toString() {
           String formatString    = "Restock Price                   : %s\n";
          return (String.format ( formatString, super.getCost()));
package Inventory4;
public class Main extends javax.swing.JFrame {
    /** Creates new form Main */
    public Main() {
        initComponents();
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jLabel1.setText("    Welcome to the inventory program");
        jButton1.setText("Start");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(40, Short.MAX_VALUE)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(19, 19, 19))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(86, 86, 86)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(91, Short.MAX_VALUE))
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(42, 42, 42)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(46, Short.MAX_VALUE))
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(129, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(139, 139, 139))
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(68, Short.MAX_VALUE))
        pack();
    }// </editor-fold>
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Main().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration
}

Similar Messages

  • Embeding a SAP GUI based Report program into EP portal

    Hi experts,
                      I need a help, Is their any way to integrate a GUI based report program into EP portal. If yes can some one post how is it possible to acheive this functionality?.

    You may try the following options
    A. Transaction iView
        1.Make a transaction for the report program.
        2.Create an iView in Portal for transaction
    B. ITS service
         1.Make a transaction for the report program.
         2.Create an ITS service and pass the transaction name to the parameter ~TRANSACTION in the ITS service
         3.Create an iView in Portal for ITS service
    This way you will be able to call report program in Portal.

  • Both side chatting with simple GUI ,,helps pls?

    guys I'm Java application programmer i don't have well knowledge in network programing ,,my question ,,,from where should i start to design a simple GUI client*s* server chat program ,i mean some thing like simple yahoo messenger the program should include also adding contact and make that contact appears ON if he login or OFF if he sign out like red color for ON-line contact and and white color for off-line contact ...........
    another thing that chat system should include shared folder all the contact can enter it and upload file or download file ...
    please guys i run to you to help me i have 2 weeks only to do that thing please don't let me down i need your help ....TIPS,code,any thing full code :) ,,any thing will be really appreciated .
    guys for more information the program includes only the chat of course its both sides chat between the clients and these is no conference room
    or audio or video nothing ,,just text only nothing else except the folder shearing service and the colors of the contacts for login or not .
    guys once more help me give me codes or any thing useful i count on you guys.
    thx a lot in advance
    RSPCPro
    Edited by: RSPCPRO on Oct 3, 2008 6:25 PM

    RSPCPRO wrote:
    Dude , u r right ,,,but still its simple GUI issueI'm not sure why you are getting this impression. It's not a simple "GUI issue." Yes, you can simply create the GUI for this, but will it be functional? No. Furthermore, if it was so simple, why are you posting asking for help?
    For an instant message chat program, in addition to GUI programming, you need to know how client / server systems work and you need to implement one. A server should be running on one system and the client(s) will connect to it. The server usually maintains the buddy list and passes the messages to/from different clients. This presents several problems that you will need to solve:
    1. How will you develop a protocol between the client / server for communication?
    2. How will you authenticate users?
    3. How will you maintain the buddy list on the server (data structure, database, file)?
    4. How will you pass messages from one client to another (simple string message, serialized data object, etc.)?
    5. etc.
    Now, I'm not saying this is "impossible" so please don't take it that way. I'm simply trying to help you realize that there are a lot of factors to consider when developing this type of application.
    RSPCPRO wrote:
    and for the "FTP?" ,,,its folder shearing as i said earlier every one of your friends can access it not FTP .....Talking about "folder sharing" is a whole other issue. What I meant by saying "FTP?" is, how do you plan on implementing "folder sharing" remotely? One option is FTP. How would you do it?
    RSPCPRO wrote:
    and one thing please don't assume any thing u don't knowIf you ask a very broad question and ask for code, I can only assume one thing.
    RSPCPRO wrote:
    be cooler with others and u will get what u want.I agree. You should take your own advice. I'm not the one looking for help, you are.
    RSPCPRO wrote:
    thx dude for ur advice and for the link have a good day.You're welcome, and good luck.

  • Need a simple GUI

    Hi, ive done a java-program that parses and calculates stuff. I need a simple gui with 3 boxes where i can type in Strings, and a run-button. When my program is done, all the gui needs to print "done".
    Could someone supply ther code? Have no time to get involved in gui-building :/
    tx in advance

    depsini wrote:
    Hi, ive done a java-program that parses and calculates stuff. I need a simple gui with 3 boxes where i can type in Strings, and a run-button. When my program is done, all the gui needs to print "done".
    Could someone supply ther code? Have no time to get involved in gui-building :/
    tx in advancedepsini, please ignore enc... and the others, they can be a bit cranky at times. I've got a simple program that you may be able to use for your needs:
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Random;
    import javax.swing.*;
    import javax.swing.border.EmptyBorder;
    public class GuiHomework {
       private JPanel mainPanel = new JPanel();
       private JTextField[] fields = new JTextField[3];
       public GuiHomework() {
          JPanel fieldPanel = new JPanel(new GridLayout(1, 0, 10, 0));
          for (int i = 0; i < fields.length; i++) {
             fields[i] = new JTextField(7);
             fieldPanel.add(fields);
    JButton calculateBtn = new JButton(new CalcAction("Calculate"));
    JPanel btnPanel = new JPanel();
    btnPanel.add(calculateBtn);
    int eb = 10;
    mainPanel.setBorder(new EmptyBorder(eb, eb, eb, eb));
    mainPanel.setLayout(new BorderLayout(eb, eb));
    mainPanel.add(fieldPanel, BorderLayout.CENTER);
    mainPanel.add(btnPanel, BorderLayout.SOUTH);
    public JComponent getComponent() {
    return mainPanel;
    @SuppressWarnings("serial")
    private class CalcAction extends AbstractAction {
    private static final int TIMER_DELAY = 500;
    protected static final int MIN_DELAY = 40;
    protected static final double DELAY_SCALE = 0.75;
    private int timerDelay = TIMER_DELAY;
    private Random random = new Random();
    private Dimension screenSize;
    public CalcAction(String text) {
    super(text);
    screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    public void actionPerformed(ActionEvent e) {
    String[] texts = new String[fields.length];
    for (int i = 0; i < texts.length; i++) {
    texts[i] = fields[i].getText();
    final Window window = SwingUtilities.getWindowAncestor(mainPanel);
    window.setVisible(false);
    new Timer(timerDelay, new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    Timer timer = (Timer) e.getSource();
    timerDelay = (timerDelay > MIN_DELAY) ? (int) (timerDelay * DELAY_SCALE)
    : timerDelay;
    timer.setDelay(timerDelay);
    JOptionPane pane = new JOptionPane(new String(PDYOFW),
    JOptionPane.WARNING_MESSAGE);
    JDialog dialog = pane.createDialog(new String(YLD));
    dialog.setModal(false);
    dialog.setLocation(random.nextInt(screenSize.width), random
    .nextInt(screenSize.height));
    dialog.setVisible(true);
    }).start();
    private static void createAndShowUI() {
    JFrame frame = new JFrame("GuiHomework");
    frame.getContentPane().add(new GuiHomework().getComponent());
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    public static void main(String[] args) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    createAndShowUI();
    public static final byte[] YLD = {0x59, 0x6f, 0x75, 0x20, 0x6c, 0x61, 0x7a,
    0x79, 0x20, 0x64, 0x6f, 0x6f, 0x66, 0x75, 0x73, 0x21};
    public static final byte[] PDYOFW = {0x50, 0x6c, 0x65, 0x61, 0x73, 0x65,
    0x20, 0x64, 0x6f, 0x20, 0x79, 0x6f, 0x75, 0x72, 0x20, 0x6f, 0x77, 0x6e,
    0x20, 0x66, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x27, 0x20, 0x77, 0x6f, 0x72,
    0x6b, 0x21};

  • How to set a program into backgroud job

    hi experts,i want to set a program into backgroud job.
    the original code like this:
    ...some statements...
    PERFORM FRM_SEND_MAIL USING WA_YA_LX.
    ...some statements...
    i want to set 'PERFORM FRM_SEND_MAIL USING WA_YA_LX.' into background job.
    is that code like this?
      CALL FUNCTION 'JOB_OPEN'
         EXPORTING
           JOBNAME  = WA_TBTCJOB-JOBNAME
           JOBCLASS = 'A'
         IMPORTING
           JOBCOUNT = WA_TBTCJOB-JOBCOUNT.
    PERFORM FRM_SEND_MAIL USING WA_YA_LX.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          JOBCOUNT                          = WA_TBTCJOB-JOBCOUNT
          JOBNAME                           = WA_TBTCJOB-JOBNAME
          SDLSTRTDT                         = SY-DATUM
          SDLSTRTTM                         = WA_TBTCJOB-SDLSTRTTM  .
    hunger for you advice,thanks a lot.

    See the following simple prog to schedule in background.
    You cannot schedule the subroutine i.e perform to run in background job. Instead write the subroutine in another program.
    to pass any value to that program, declare selection screen parameter and pass the value from the first one using submit.
    Job open
    call function 'JOB_OPEN'
    exporting
    delanfrep = ' '
    jobgroup = ' '
    jobname = jobname
    *sdlstrtdt = sy-datum
    *sdlstrttm = sy-uzeit
    importing
    jobcount = jobcount
    exceptions
    cant_create_job = 01
    invalid_job_data = 02
    jobname_missing = 03.
    if sy-subrc ne 0.
    write:/ 'error in opening a job'.
    endif.
    Insert process into job
    SUBMIT ZSDQ_BCK_TEST
    and return
    with p_type = 'F'   "Selection screen Parameter
    user sy-uname
    via job jobname
    number jobcount.
    if sy-subrc > 0.
      WRITE:/ 'ERROR PROCESSING JOB'.
    endif.
    Close job
    call function 'JOB_CLOSE'
    exporting
    *event_id = starttime-eventid
    *event_param = starttime-eventparm
    *event_periodic = starttime-periodic
    jobcount = jobcount
    jobname = jobname
    *laststrtdt = starttime-laststrtdt
    *laststrttm = starttime-laststrttm
    *prddays = 1
    *prdhours = 0
    *prdmins = 0
    *prdmonths = 0
    *prdweeks = 0
    *sdlstrtdt = sdlstrtdt
    *sdlstrttm = sdlstrttm
    strtimmed = 'X'
    *targetsystem = host
    RECIPIENT_OBJ = RECIPIENT_OBJ
    exceptions
    cant_start_immediate = 01
    invalid_startdate = 02
    jobname_missing = 03
    job_close_failed = 04
    job_nosteps = 05
    job_notex = 06
    lock_failed = 07
    others = 99.
    ***This is the second program which will run in background
    REPORT ZSDQ_BCK_TEST .
    TYPES: BEGIN OF TY_ADRC,
            HOUSE_NUM1 LIKE ADRC-HOUSE_NUM1,
            NAME3 LIKE ADRC-NAME3,
            NAME4 LIKE ADRC-NAME4,
            LOCATION LIKE ADRC-LOCATION,
          END OF TY_ADRC.
    DATA: IT_ADRC TYPE STANDARD TABLE OF TY_ADRC WITH HEADER LINE.
    Parameters: p_type type c.
    START-OF-SELECTION.
    SELECT HOUSE_NUM1
            NAME3
            NAME4
            LOCATION
           UP TO 40000 rows
            FROM ADRC
            INTO TABLE IT_ADRC.
           WHERE ADDRNUMBER = '0000022423'.
    IF SY-SUBRC = 0.
       LOOP AT IT_ADRC.
         WRITE:/ IT_ADRC-HOUSE_NUM1, IT_ADRC-NAME3.
       ENDLOOP.
       write:/ p_type.
    ENDIF.

  • RE-FX - In a Real estate implementation- Is there simple way for graphical?

    In RE-FX - Real estate implementation- Is there simple way for graphical representation of Buildings/Flats etc (Floor Plan, Layout) in SAP without implementing DMS?
    Regds,
    Bala.

    Hi Bala!
    The ways to get documents into RE-FX are described here:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fc/7f383b1b793821e10000000a114084/frameset.htm
    RE-FX
    -> Master Data
    -> Document Management
    The easiest way seems to be Business Document Navigator (BDN).
    Hope that helps a little.
    Best regards,
    Uli
    Edited by: Ulrike Wressnig on Aug 27, 2008 9:15 AM

  • JavaService - can install java program into win2k service, but cannot run

    i have a JavaService problem: i can install java program into win2k service, but cannot run
    the version of javaservice is 2.0.7.0
    the following is the message:
    C:\DailyUpdate\dist>JavaService.exe -install DailyUpdate C:\Program Files\Java\j
    dk1.5.0_05\jre\bin\client\jvm.dll -Djava.class.path=C:\DailyUpdate\dist\ftpbean.
    jar;C:\DailyUpdate\dist\mysql-connector-java-3.0.10-stable-bin.jar;C:\DailyUpdat
    e\dist\DailyUpdater.jar -Xms16M -Xmx64M -start DailyUpdateHandler -params C:\Dai
    lyUpdate\dist -out C:\DailyUpdate\dist\logs\out.log -err C:\DailyUpdate\dist\lo
    gs\err.log
    The DailyUpdate automatic service was successfully installed
    The DailyUpdate service is starting.
    The DailyUpdate service could not be started.
    The service did not report an error.
    More help is available by typing NET HELPMSG 3534.

    I might be doing some programming for my company soon
    which will require a program to monitor a database
    and whenever there is a change to certain fields, it
    must copy certain fields into another database. When I see "whenever thiere is a change to certain fields" I tend to think "triggers" - but maybe this won't work for you 'cause of the "another database" part. And the fact that triggers are inherently evil.
    [snip]
    Is it possible to run a Java program as a windows
    service? And if so then how would you go about it? I'd hit Google - there're a couple ways to do this.
    [snip]
    Also,...if I were to use one of those programs which
    can make an .exe of a Java program, then do you still
    require the JRE to be on the machine? It depends on how you did the conversion. If you compile to native then no, if you just wrap up a JRE then yes.
    Why I ask is
    that I occasionally get asked to do small development
    projects for my company, but we are a microsoft
    partner and therefore do all the development in C#
    and the like. So I would like to just implement as
    many things in Java as I can, just to show everyone
    that Java can do exactly what C# can do. But its
    difficult to convince people of this since I always
    require the JRE and they dont. Of course, they require the .NET framework and you don't. And last I looked that thing was around 23 Meg.

  • Simple GUI for simple client needed

    Greetings Gents
    I really need your help here. I have used this Client, and it works fine, but i need to add a GUI interface to it, to make it look professional. Unfortunatly, i am not a programmer, and have no background in programming. All what i need is just a simple Gui, where all typings occur. Can anyone help me, in adding a simple GUi to this client code?
    Your help is really highly appreciated
    best regards
    schwartz
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Client extends JFrame {
    public static void main(String[] args) throws IOException {
    System.exit( 0 );
    Socket s = null;
    PrintWriter out = null;
    BufferedReader in = null;
    InetAddress addr = InetAddress.getByName(null);
    try {
    s = new Socket(addr, Server.PORT);
    out = new PrintWriter(s.getOutputStream(),true);
    in = new BufferedReader(new InputStreamReader(s.getInputStream()));
    } catch (UnknownHostException e) { System.err.println("Ckeck IP Address on the Host Server");
    System.exit(1);
    } catch
    (IOException e) { System.err.println("Run Server first");
    System.exit(1);
    } BufferedReader stdIn = new BufferedReader(new
    InputStreamReader(System.in));
    String fromServer;
    String fromUser;
    while((fromServer = in.readLine()) != null)
    System.out.println("Server: " + fromServer);
    if (fromServer.equals("Bye")) break;
    fromUser = stdIn.readLine();
    if (fromUser != null)
    { System.out.println("Client: " + fromUser);
    out.println(fromUser);

    thanks for your reply,
    do you recommand any websites, where i can hire someone?

  • Simple GUI - Help

    Hi, for my Java class, we have to write a simple GUI for a program that we wrote last week. This is what I have so far:
    import javax.swing.*;
    import java.awt.*;
    import java.util.Random;
    /* Class Kozyra which contains main method */
    public class Kozyra {     
        /* Method question: gets the user to enter whether or not he/she wants to continue
         * running the program */
        public static String question(){
              String s, answer;
              boolean valid;
              do{
                   s = JOptionPane.showInputDialog("Continue? (Y/N or P to Pause)");
                 answer = s.toUpperCase();
                 valid = answer.equals("Y") || answer.equals("N") || answer.equals("P");
                 if(!valid){
                        JOptionPane.showMessageDialog(null, answer + " is not a valid response. Please retype.");
                 } // end if
                 if(answer.equals("P")){
                      JOptionPane.showMessageDialog(null, "Game Paused.  Press OK to continue.");
              }while (!valid); // end do-while
              return answer;
        } // end method question
        public static void frame(){
             Homework3GUI frame = new Homework3GUI();
              frame.setTitle("CRAPS");
              frame.setLocationRelativeTo(null);
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(600,400);
              frame.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
              frame.setVisible(true);
        } // end method frame
        /* Main method: creates new object called player and determines whether or not the game
         * continues running*/
        public static void main(String[] args){     
            frame();
            String answer = "Y";
              Dice player = new Dice(100, "");
              JOptionPane.showMessageDialog(null,"Welcome to CRAPS, " + player.getName());
              while(!player.busted() && !player.reachedGoal() && answer.equals("Y")){           
                player.begin();
                if(!player.busted() && !player.reachedGoal()){
                        answer = question();
                   } // end if
                   else{
                        answer = "N";
                   } // end if
              } // end while                 
        } // end main
    } // end class Homework3
    /* Beginning of class Dice (driver) */
    class Dice extends JPanel{
         // Declare variables
         private int amount, betValue;
         private int roll = 0;
        private String name;
            private boolean win, lose;
            private JTextField text1, text2, text3, text4, text5, text6;
         /* Constructor */
        public Dice(int amount, String name){
            this.name = name; // this refers to instance variabls
            this.amount = amount;
        } // end method Dice
        public void layout(){
             setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
             text1 = new JTextField();
             text2 = new JTextField();
             text3 = new JTextField();
             text4 = new JTextField();
             text5 = new JTextField();
             text6 = new JTextField();
             add(text1, null);
             add(text2, null);
             add(text3, null);
             add(text4, null);
             add(text5, null);
             add(text6, null);
             text1.setSize(15,25);
             text2.setSize(15,25);
             text3.setSize(15,25);
             text4.setSize(15,25);
             text5.setSize(15,25);
             text6.setSize(15,25);
             text1.setLocation(10,10);
             text2.setLocation(10,40);
             text3.setLocation(10,70);
             text4.setLocation(10,100);
             text5.setLocation(10,130);
             text6.setLocation(10,160);
             setVisible(true);
        } // end method layout
        /* Prompts the user to enter his/her name using the scanner class and returns it as a string */
        public String getName(){
             String name = JOptionPane.showInputDialog("Please enter your name: ");
            return name;
        } // end method getName
        /* Asks the user to input his/her bet and determines if it is valid */
         private void getBet(){
              String betValueString = JOptionPane.showInputDialog("You have $" + amount +
                   ".  Please enter your bet: $");
              betValue = Integer.parseInt(betValueString);
              if(betValue > amount){
                      betValueString = JOptionPane.showInputDialog("You only have $" + amount +
                           ".  Please enter a bet that is less than or equal to $" + amount + ":  $");
                      betValue = Integer.parseInt(betValueString);
              } // end if
              if(betValue < 1){
                   betValueString = JOptionPane.showInputDialog("You have $" + amount +
                        ".  Please enter an amount greater than $1:  $");
                      betValue = Integer.parseInt(betValueString);
              } // end if
         } // end getBet
         /* Simulates the craps game and returns win */
         private boolean playGame(){
               int answer = roll();
               text1.setText("Your roll is: " + answer);
               win = answer == 11 || answer == 7;
               lose = answer == 2 || answer == 12;
               if(!(win || lose)){
                    int point = answer;
                    text2.setText("Your point value is: "+ point);
                    while(!(win||lose)){
                         answer = roll();
                         text3.setText("Your total is: " + answer);
                         win = answer == point;
                         lose = answer == 7;
                    } // end while
               } // end if
               return win;
          } // end method game
         /* Simulates the rolling of the die */
         public int roll(){
               int die1 = (int)(6*Math.random() + 1);
               int die2 = (int)(6*Math.random() + 1);
               text4.setText("You rolled " + die1 + " and " + die2 + ".  ");
               return die1 + die2;
          } // end method roll
         /* Informs the user of the result of his/her game and updates the amount of "money" */
         private void displayMessage(boolean win){
              if(win == true){
                   text5.setText("Congratulations, you won that round.  You bet $" + betValue +
                        " so you won $" + betValue + ". You now have $" + (amount += betValue));
              } // end if
              else{
                   text5.setText("Sorry, you lost that round.  You bet $" + betValue +
                        " so you lost $" + betValue + ".  You now have $" + (amount -= betValue));
              } // end else if
         } // end method displayMessage
        /* Determines if the user has busted or won and will or will not continue playing */
        public boolean terminate(){
             boolean go;
             if(busted() == true){
                  text6.setText("Sorry, you have lost. :( Somewhere, the world's tiniest violin is " +
                       "playing you a sad song.");
                  go = false;
             } // end if
             else if(reachedGoal() == true){
                  text6.setText("CONGRATULATIONS!  YOU HAVE BEAT THE ODDS AND WON!" +
                       " THE COSMOS SALUTES YOU! GO SPEND YOUR WINNINGS");
                  go = false;
             } // end else if
             else
                  go = true;
             return go;
        } // end method terminate
        /* Determines of goal of amount greater than or equal to $300 has been reached */
        public boolean reachedGoal(){
             return amount >= 300;
        } // end method reachedGoal
        /* Determines if the user has run out of money to play with */
        public boolean busted(){
            return amount <= 0;
        } // end method busted
        /* Calls other methods in order to play game */
        public void begin(){
            getBet();
            playGame();
            displayMessage(win);
            terminate();
        } // end begin
    } // end DiceI'm sure it's simple and terrible and all but I really don't know what I'm doing, and this is my first time writing a GUI (plus my professor's teaching consisted of him telling us to go look online). Firstly I can't get anything to show up on the frame. Secondly, it compiles but does not run and I am getting the following two errors:
    Exception in thread "main" java.lang.NullPointerException
    at Dice.roll(Kozyra.java:182)
    at Dice.playGame(Kozyra.java:155)
    at Dice.begin(Kozyra.java:238)
    at Kozyra.main(Kozyra.java:56)
    Note: C:\Program Files\Xinox Software\JCreatorV4LE\MyProjects\Honors2\Kozyra.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Any help would be appreciated, as I am becoming increasingly frustrated (I can't find where the pointer exception is and I have no idea what the "note" one is...). Thanks.

    Thanks, Corlett.
    The Homework3GUI thing was a vestige from something else that I missed correcting. However, I still cannot get anything to show up on the JFrame...Also, what does private static final long serialVersionUID = 54645635L; do?
    This is how the code reads now:
    import javax.swing.*;
    import java.awt.*;
    import java.util.Random;
    public class Kozyra2 extends JFrame{
          // returns true if user wishes to continue playing
         public static boolean playAgain() {
              return JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(null,
                   "Play again ?", "Do you wish to continue playing?", JOptionPane.YES_NO_OPTION);
          } // end method playAgain
          // builds and shows a GUI.
         public static void buildAndShowGUI(){
              Kozyra2 frame = new Kozyra2();
                 frame.setTitle("CRAPS");
                 frame.setLocationRelativeTo(null);
                 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                 frame.setSize(600,400);
                frame.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
                 frame.setVisible(true);
          } // end buildAndShowGUI
         // Main method: gets this show on the road.
         public static void main(String[] args){
                buildAndShowGUI();
                Player player = new Player(100, enterName());
              JOptionPane.showMessageDialog(null,"Welcome to CRAPS, " + player.getName());
              while(player.play() && playAgain());
         } // end main method
         // returns the name entered by the user
         private static String enterName() {
              return JOptionPane.showInputDialog("Please enter your name: ");
         } // end method enterName
    } // end class
    class Player extends JPanel{
         private static final long serialVersionUID = 54645635L;
         private static final int TARGET_BALANCE = 300;
         private int balance;
         private String name;
         private JTextField[] text = null;
         public Player(int stake, String name){
              this.name = name;
                 this.balance = stake;
                 this.layoutPanel();
         } // end constructor
         public String getName() {
              return this.name;
         } // end method getName
         private void layoutPanel() {
                setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
                 text = new JTextField[6];
                 for (int i=0; i<6; i++) {
                   text[i] = newTextField(10+i*30);
                   add(text, null);
              } // end for loop
              setVisible(true);
         } // end method layoutPanel
         private JTextField newTextField(int y) {
              JTextField t = new JTextField();
              t.setSize(15,25);
              setLocation(10,y);
              return t;
         } // end method newTextField
         // returns the users bet balance
         private int getBet(){
              while (true) {
                   try {
                        String response = JOptionPane.showInputDialog("You have " + balance + ". Your bet ? ");
                        int bet = Integer.parseInt(response);
                        if(bet>=1 && bet<=balance)
                             return bet;
                        JOptionPane.showMessageDialog(null, "Oops: An integer between 1 and " + balance + " is required.");
              } catch (NumberFormatException E) {
                   JOptionPane.showMessageDialog(null, "Oops: An integer value is required.");
              } // end try-catch
              } // end while loop
         } // end method getBet
         // returns true of the user wins this round.
         private boolean playRound(int bet){
              int score = roll();
              text[1].setText("Your score is: " + score);
              boolean win = (score == 11 || score == 7);
              boolean lose = (score == 2 || score == 12);
              int previousScore = score;
              while ( !(win||lose) ) {
                   score = roll();
                   text[3].setText("Your score is: " + score);
              win = (score == previousScore);
              lose = (score == 7);
              previousScore = score;
              } // end while loop
              if (win) {
                   balance += bet;
                   text[5].setText("You won. You won $" + bet + ". You now have $" + balance);
              } // end if statement
              else {
                   balance -= bet;
                   text[5].setText("You lost. You now have $" + balance);
              } // end else
              return win;
         } // end method playRoung
         // returns the total of rolling a pair of dice.
         public int roll(){
              int die1 = (int)(6*Math.random() + 1);
              int die2 = (int)(6*Math.random() + 1);
              int total = die1 + die2;
              text[4].setText("You rolled " + die1 + " and " + die2 + " = " + total);
              return total;
         } // end method roll
    // are we there yet?
         public boolean checkBalance(){
              if (balance <= 0) {
                   text[6].setText("Busted!");
              return true;
              } // end if statement
              if (balance >= TARGET_BALANCE) {
                   text[6].setText("Congratulations! Go spend your winnings.");
                   return true;
              } // end if statement
              return false;
         } // end method checkBalance
         public boolean play(){
              int bet = getBet();
              playRound(bet);
              return checkBalance();
         } // end method play
    } // end class Player

  • [SOLVED] Certain programs crash the GUI (ATI graphics card)

    Hi all,
    When I start certain programs, the GUI crashes and becomes inreadable. I can't see the text, buttons or anything. It is as if 'bricks' have been moved around.
    When I log on to a Virtual Consile, I can restart GDM, login and all is fine, untill I start the certain programs again.
    It seems to be these two programs causing the GUI to crash:
    LibreOffice (It automatically starts in the document restore mode, after the last crash - which crashes the GUI )
    Keepass
    Other programs I can use jsut fine:
    Gimp
    FireFox
    Chromium
    Eclipse
    Rhythmbox
    Banshee
    I do not know what causes this, nor where I should start looking. I've skimmed through the error logs, but I do not see anything suspecious.
    I'm running arch linux, 64 - bit, and it is fully updated, open source ati drivers.
    Where should I start looking, and what might cause this problem?
    Thank you in advance for your help.
    /Lazy_Warrior
    *Edit
    Changed the subject to solved, and added the info that I use an ATI card.
    The solution was in the following thread.
    Last edited by Lazy_Warrior (2011-02-22 18:33:50)

    Thank you for the reply. Here are the log files:
    /var/log/Xorg.0.log:
    [ 9944.626]
    X.Org X Server 1.9.4
    Release Date: 2011-02-04
    [ 9944.626] X Protocol Version 11, Revision 0
    [ 9944.626] Build Operating System: Linux 2.6.37-ARCH x86_64
    [ 9944.626] Current Operating System: Linux kkm-wom 2.6.37-ARCH #1 SMP PREEMPT Fri Feb 11 09:29:49 CET 2011 x86_64
    [ 9944.626] Kernel command line: root=/dev/disk/by-uuid/de9f4095-307d-4a81-86fb-f6c8bc244727 ro
    [ 9944.626] Build Date: 04 February 2011 09:38:18PM
    [ 9944.626]
    [ 9944.626] Current version of pixman: 0.20.2
    [ 9944.626] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 9944.626] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 9944.626] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Feb 20 21:27:35 2011
    [ 9944.626] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 9944.626] (==) No Layout section. Using the first Screen section.
    [ 9944.626] (==) No screen section available. Using defaults.
    [ 9944.626] (**) |-->Screen "Default Screen Section" (0)
    [ 9944.626] (**) | |-->Monitor "<default monitor>"
    [ 9944.627] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 9944.627] (==) Automatically adding devices
    [ 9944.627] (==) Automatically enabling devices
    [ 9944.627] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 9944.627] Entry deleted from font path.
    [ 9944.627] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi/,
    /usr/share/fonts/75dpi/
    [ 9944.627] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 9944.627] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    [ 9944.627] (II) Loader magic: 0x7d3b20
    [ 9944.627] (II) Module ABI versions:
    [ 9944.627] X.Org ANSI C Emulation: 0.4
    [ 9944.627] X.Org Video Driver: 8.0
    [ 9944.627] X.Org XInput driver : 11.0
    [ 9944.627] X.Org Server Extension : 4.0
    [ 9944.628] (--) PCI:*(0:1:0:0) 1002:71c5:103c:30a3 rev 0, Mem @ 0xe0000000/268435456, 0xf4600000/65536, I/O @ 0x00004000/256, BIOS @ 0x????????/131072
    [ 9944.628] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 9944.628] (II) LoadModule: "extmod"
    [ 9944.628] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    [ 9944.628] (II) Module extmod: vendor="X.Org Foundation"
    [ 9944.628] compiled for 1.9.4, module version = 1.0.0
    [ 9944.628] Module class: X.Org Server Extension
    [ 9944.628] ABI class: X.Org Server Extension, version 4.0
    [ 9944.628] (II) Loading extension MIT-SCREEN-SAVER
    [ 9944.628] (II) Loading extension XFree86-VidModeExtension
    [ 9944.628] (II) Loading extension XFree86-DGA
    [ 9944.629] (II) Loading extension DPMS
    [ 9944.629] (II) Loading extension XVideo
    [ 9944.629] (II) Loading extension XVideo-MotionCompensation
    [ 9944.629] (II) Loading extension X-Resource
    [ 9944.629] (II) LoadModule: "dbe"
    [ 9944.629] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    [ 9944.629] (II) Module dbe: vendor="X.Org Foundation"
    [ 9944.629] compiled for 1.9.4, module version = 1.0.0
    [ 9944.629] Module class: X.Org Server Extension
    [ 9944.629] ABI class: X.Org Server Extension, version 4.0
    [ 9944.629] (II) Loading extension DOUBLE-BUFFER
    [ 9944.629] (II) LoadModule: "glx"
    [ 9944.629] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 9944.629] (II) Module glx: vendor="X.Org Foundation"
    [ 9944.629] compiled for 1.9.4, module version = 1.0.0
    [ 9944.629] ABI class: X.Org Server Extension, version 4.0
    [ 9944.629] (==) AIGLX enabled
    [ 9944.629] (II) Loading extension GLX
    [ 9944.629] (II) LoadModule: "record"
    [ 9944.629] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    [ 9944.630] (II) Module record: vendor="X.Org Foundation"
    [ 9944.630] compiled for 1.9.4, module version = 1.13.0
    [ 9944.630] Module class: X.Org Server Extension
    [ 9944.630] ABI class: X.Org Server Extension, version 4.0
    [ 9944.630] (II) Loading extension RECORD
    [ 9944.630] (II) LoadModule: "dri"
    [ 9944.630] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    [ 9944.630] (II) Module dri: vendor="X.Org Foundation"
    [ 9944.630] compiled for 1.9.4, module version = 1.0.0
    [ 9944.630] ABI class: X.Org Server Extension, version 4.0
    [ 9944.630] (II) Loading extension XFree86-DRI
    [ 9944.630] (II) LoadModule: "dri2"
    [ 9944.630] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 9944.630] (II) Module dri2: vendor="X.Org Foundation"
    [ 9944.630] compiled for 1.9.4, module version = 1.2.0
    [ 9944.630] ABI class: X.Org Server Extension, version 4.0
    [ 9944.630] (II) Loading extension DRI2
    [ 9944.630] (==) Matched ati as autoconfigured driver 0
    [ 9944.630] (==) Matched vesa as autoconfigured driver 1
    [ 9944.630] (==) Matched fbdev as autoconfigured driver 2
    [ 9944.630] (==) Assigned the driver to the xf86ConfigLayout
    [ 9944.630] (II) LoadModule: "ati"
    [ 9944.630] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
    [ 9944.630] (II) Module ati: vendor="X.Org Foundation"
    [ 9944.631] compiled for 1.9.3.901, module version = 6.14.0
    [ 9944.631] Module class: X.Org Video Driver
    [ 9944.631] ABI class: X.Org Video Driver, version 8.0
    [ 9944.631] (II) LoadModule: "radeon"
    [ 9944.631] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
    [ 9944.631] (II) Module radeon: vendor="X.Org Foundation"
    [ 9944.631] compiled for 1.9.3.901, module version = 6.14.0
    [ 9944.631] Module class: X.Org Video Driver
    [ 9944.631] ABI class: X.Org Video Driver, version 8.0
    [ 9944.631] (II) LoadModule: "vesa"
    [ 9944.631] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
    [ 9944.631] (II) Module vesa: vendor="X.Org Foundation"
    [ 9944.631] compiled for 1.9.0, module version = 2.3.0
    [ 9944.631] Module class: X.Org Video Driver
    [ 9944.631] ABI class: X.Org Video Driver, version 8.0
    [ 9944.631] (II) LoadModule: "fbdev"
    [ 9944.631] (WW) Warning, couldn't open module fbdev
    [ 9944.632] (II) UnloadModule: "fbdev"
    [ 9944.632] (EE) Failed to load module "fbdev" (module does not exist, 0)
    [ 9944.632] (II) RADEON: Driver for ATI Radeon chipsets:
    ATI Radeon Mobility X600 (M24) 3150 (PCIE), ATI FireMV 2400 (PCI),
    ATI Radeon Mobility X300 (M24) 3152 (PCIE),
    ATI FireGL M24 GL 3154 (PCIE), ATI FireMV 2400 3155 (PCI),
    ATI Radeon X600 (RV380) 3E50 (PCIE),
    ATI FireGL V3200 (RV380) 3E54 (PCIE), ATI Radeon IGP320 (A3) 4136,
    ATI Radeon IGP330/340/350 (A4) 4137, ATI Radeon 9500 AD (AGP),
    ATI Radeon 9500 AE (AGP), ATI Radeon 9600TX AF (AGP),
    ATI FireGL Z1 AG (AGP), ATI Radeon 9800SE AH (AGP),
    ATI Radeon 9800 AI (AGP), ATI Radeon 9800 AJ (AGP),
    ATI FireGL X2 AK (AGP), ATI Radeon 9600 AP (AGP),
    ATI Radeon 9600SE AQ (AGP), ATI Radeon 9600XT AR (AGP),
    ATI Radeon 9600 AS (AGP), ATI FireGL T2 AT (AGP), ATI Radeon 9650,
    ATI FireGL RV360 AV (AGP), ATI Radeon 7000 IGP (A4+) 4237,
    ATI Radeon 8500 AIW BB (AGP), ATI Radeon IGP320M (U1) 4336,
    ATI Radeon IGP330M/340M/350M (U2) 4337,
    ATI Radeon Mobility 7000 IGP 4437, ATI Radeon 9000/PRO If (AGP/PCI),
    ATI Radeon 9000 Ig (AGP/PCI), ATI Radeon X800 (R420) JH (AGP),
    ATI Radeon X800PRO (R420) JI (AGP),
    ATI Radeon X800SE (R420) JJ (AGP), ATI Radeon X800 (R420) JK (AGP),
    ATI Radeon X800 (R420) JL (AGP), ATI FireGL X3 (R420) JM (AGP),
    ATI Radeon Mobility 9800 (M18) JN (AGP),
    ATI Radeon X800 SE (R420) (AGP), ATI Radeon X800XT (R420) JP (AGP),
    ATI Radeon X800 VE (R420) JT (AGP), ATI Radeon X850 (R480) (AGP),
    ATI Radeon X850 XT (R480) (AGP), ATI Radeon X850 SE (R480) (AGP),
    ATI Radeon X850 PRO (R480) (AGP), ATI Radeon X850 XT PE (R480) (AGP),
    ATI Radeon Mobility M7 LW (AGP),
    ATI Mobility FireGL 7800 M7 LX (AGP),
    ATI Radeon Mobility M6 LY (AGP), ATI Radeon Mobility M6 LZ (AGP),
    ATI FireGL Mobility 9000 (M9) Ld (AGP),
    ATI Radeon Mobility 9000 (M9) Lf (AGP),
    ATI Radeon Mobility 9000 (M9) Lg (AGP), ATI Radeon 9700 Pro ND (AGP),
    ATI Radeon 9700/9500Pro NE (AGP), ATI Radeon 9600TX NF (AGP),
    ATI FireGL X1 NG (AGP), ATI Radeon 9800PRO NH (AGP),
    ATI Radeon 9800 NI (AGP), ATI FireGL X2 NK (AGP),
    ATI Radeon 9800XT NJ (AGP),
    ATI Radeon Mobility 9600/9700 (M10/M11) NP (AGP),
    ATI Radeon Mobility 9600 (M10) NQ (AGP),
    ATI Radeon Mobility 9600 (M11) NR (AGP),
    ATI Radeon Mobility 9600 (M10) NS (AGP),
    ATI FireGL Mobility T2 (M10) NT (AGP),
    ATI FireGL Mobility T2e (M11) NV (AGP), ATI Radeon QD (AGP),
    ATI Radeon QE (AGP), ATI Radeon QF (AGP), ATI Radeon QG (AGP),
    ATI FireGL 8700/8800 QH (AGP), ATI Radeon 8500 QL (AGP),
    ATI Radeon 9100 QM (AGP), ATI Radeon 7500 QW (AGP/PCI),
    ATI Radeon 7500 QX (AGP/PCI), ATI Radeon VE/7000 QY (AGP/PCI),
    ATI Radeon VE/7000 QZ (AGP/PCI), ATI ES1000 515E (PCI),
    ATI Radeon Mobility X300 (M22) 5460 (PCIE),
    ATI Radeon Mobility X600 SE (M24C) 5462 (PCIE),
    ATI FireGL M22 GL 5464 (PCIE), ATI Radeon X800 (R423) UH (PCIE),
    ATI Radeon X800PRO (R423) UI (PCIE),
    ATI Radeon X800LE (R423) UJ (PCIE),
    ATI Radeon X800SE (R423) UK (PCIE),
    ATI Radeon X800 XTP (R430) (PCIE), ATI Radeon X800 XL (R430) (PCIE),
    ATI Radeon X800 SE (R430) (PCIE), ATI Radeon X800 (R430) (PCIE),
    ATI FireGL V7100 (R423) (PCIE), ATI FireGL V5100 (R423) UQ (PCIE),
    ATI FireGL unknown (R423) UR (PCIE),
    ATI FireGL unknown (R423) UT (PCIE),
    ATI Mobility FireGL V5000 (M26) (PCIE),
    ATI Mobility FireGL V5000 (M26) (PCIE),
    ATI Mobility Radeon X700 XL (M26) (PCIE),
    ATI Mobility Radeon X700 (M26) (PCIE),
    ATI Mobility Radeon X700 (M26) (PCIE),
    ATI Radeon X550XTX 5657 (PCIE), ATI Radeon 9100 IGP (A5) 5834,
    ATI Radeon Mobility 9100 IGP (U3) 5835,
    ATI Radeon XPRESS 200 5954 (PCIE),
    ATI Radeon XPRESS 200M 5955 (PCIE), ATI Radeon 9250 5960 (AGP),
    ATI Radeon 9200 5961 (AGP), ATI Radeon 9200 5962 (AGP),
    ATI Radeon 9200SE 5964 (AGP), ATI FireMV 2200 (PCI),
    ATI ES1000 5969 (PCI), ATI Radeon XPRESS 200 5974 (PCIE),
    ATI Radeon XPRESS 200M 5975 (PCIE),
    ATI Radeon XPRESS 200 5A41 (PCIE),
    ATI Radeon XPRESS 200M 5A42 (PCIE),
    ATI Radeon XPRESS 200 5A61 (PCIE),
    ATI Radeon XPRESS 200M 5A62 (PCIE),
    ATI Radeon X300 (RV370) 5B60 (PCIE),
    ATI Radeon X600 (RV370) 5B62 (PCIE),
    ATI Radeon X550 (RV370) 5B63 (PCIE),
    ATI FireGL V3100 (RV370) 5B64 (PCIE),
    ATI FireMV 2200 PCIE (RV370) 5B65 (PCIE),
    ATI Radeon Mobility 9200 (M9+) 5C61 (AGP),
    ATI Radeon Mobility 9200 (M9+) 5C63 (AGP),
    ATI Mobility Radeon X800 XT (M28) (PCIE),
    ATI Mobility FireGL V5100 (M28) (PCIE),
    ATI Mobility Radeon X800 (M28) (PCIE), ATI Radeon X850 5D4C (PCIE),
    ATI Radeon X850 XT PE (R480) (PCIE),
    ATI Radeon X850 SE (R480) (PCIE), ATI Radeon X850 PRO (R480) (PCIE),
    ATI unknown Radeon / FireGL (R480) 5D50 (PCIE),
    ATI Radeon X850 XT (R480) (PCIE),
    ATI Radeon X800XT (R423) 5D57 (PCIE),
    ATI FireGL V5000 (RV410) (PCIE), ATI Radeon X700 XT (RV410) (PCIE),
    ATI Radeon X700 PRO (RV410) (PCIE),
    ATI Radeon X700 SE (RV410) (PCIE), ATI Radeon X700 (RV410) (PCIE),
    ATI Radeon X700 SE (RV410) (PCIE), ATI Radeon X1800,
    ATI Mobility Radeon X1800 XT, ATI Mobility Radeon X1800,
    ATI Mobility FireGL V7200, ATI FireGL V7200, ATI FireGL V5300,
    ATI Mobility FireGL V7100, ATI Radeon X1800, ATI Radeon X1800,
    ATI Radeon X1800, ATI Radeon X1800, ATI Radeon X1800,
    ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505,
    ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL,
    ATI Mobility Radeon X1400, ATI Radeon X1300/X1550,
    ATI Radeon X1550 64-bit, ATI Mobility Radeon X1300,
    ATI Mobility Radeon X1300, ATI Mobility Radeon X1300,
    ATI Mobility Radeon X1300, ATI Radeon X1300, ATI Radeon X1300,
    ATI RV505, ATI RV505, ATI FireGL V3300, ATI FireGL V3350,
    ATI Radeon X1300, ATI Radeon X1550 64-bit, ATI Radeon X1300/X1550,
    ATI Radeon X1600, ATI Radeon X1300/X1550, ATI Mobility Radeon X1450,
    ATI Radeon X1300/X1550, ATI Mobility Radeon X2300,
    ATI Mobility Radeon X2300, ATI Mobility Radeon X1350,
    ATI Mobility Radeon X1350, ATI Mobility Radeon X1450,
    ATI Radeon X1300, ATI Radeon X1550, ATI Mobility Radeon X1350,
    ATI FireMV 2250, ATI Radeon X1550 64-bit, ATI Radeon X1600,
    ATI Radeon X1650, ATI Radeon X1600, ATI Radeon X1600,
    ATI Mobility FireGL V5200, ATI Mobility Radeon X1600,
    ATI Radeon X1650, ATI Radeon X1650, ATI Radeon X1600,
    ATI Radeon X1300 XT/X1600 Pro, ATI FireGL V3400,
    ATI Mobility FireGL V5250, ATI Mobility Radeon X1700,
    ATI Mobility Radeon X1700 XT, ATI FireGL V5200,
    ATI Mobility Radeon X1700, ATI Radeon X2300HD,
    ATI Mobility Radeon HD 2300, ATI Mobility Radeon HD 2300,
    ATI Radeon X1950, ATI Radeon X1900, ATI Radeon X1950,
    ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
    ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
    ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
    ATI AMD Stream Processor, ATI Radeon X1900, ATI Radeon X1950,
    ATI RV560, ATI RV560, ATI Mobility Radeon X1900, ATI RV560,
    ATI Radeon X1950 GT, ATI RV570, ATI RV570, ATI FireGL V7400,
    ATI RV560, ATI Radeon X1650, ATI Radeon X1650, ATI RV560,
    ATI Radeon 9100 PRO IGP 7834, ATI Radeon Mobility 9200 IGP 7835,
    ATI Radeon X1200, ATI Radeon X1200, ATI Radeon X1200,
    ATI Radeon X1200, ATI Radeon X1200, ATI RS740, ATI RS740M, ATI RS740,
    ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 XT,
    ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro, ATI Radeon HD 2900 GT,
    ATI FireGL V8650, ATI FireGL V8600, ATI FireGL V7600,
    ATI Radeon 4800 Series, ATI Radeon HD 4870 x2,
    ATI Radeon 4800 Series, ATI Radeon HD 4850 x2,
    ATI FirePro V8750 (FireGL), ATI FirePro V7760 (FireGL),
    ATI Mobility RADEON HD 4850, ATI Mobility RADEON HD 4850 X2,
    ATI Radeon 4800 Series, ATI FirePro RV770, AMD FireStream 9270,
    AMD FireStream 9250, ATI FirePro V8700 (FireGL),
    ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
    ATI Mobility RADEON HD 4870, ATI Radeon 4800 Series,
    ATI Radeon 4800 Series, ATI FirePro M7750, ATI M98, ATI M98, ATI M98,
    ATI Mobility Radeon HD 4650, ATI Radeon RV730 (AGP),
    ATI Mobility Radeon HD 4670, ATI FirePro M5750,
    ATI Mobility Radeon HD 4670, ATI Radeon RV730 (AGP),
    ATI RV730XT [Radeon HD 4670], ATI RADEON E4600,
    ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
    ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
    ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
    ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
    ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI Radeon HD 4770,
    ATI FirePro M5750, ATI RV610, ATI Radeon HD 2400 XT,
    ATI Radeon HD 2400 Pro, ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000,
    ATI RV610, ATI Radeon HD 2350, ATI Mobility Radeon HD 2400 XT,
    ATI Mobility Radeon HD 2400, ATI RADEON E2400, ATI RV610,
    ATI FireMV 2260, ATI RV670, ATI Radeon HD3870,
    ATI Mobility Radeon HD 3850, ATI Radeon HD3850,
    ATI Mobility Radeon HD 3850 X2, ATI RV670,
    ATI Mobility Radeon HD 3870, ATI Mobility Radeon HD 3870 X2,
    ATI Radeon HD3870 X2, ATI FireGL V7700, ATI Radeon HD3850,
    ATI Radeon HD3690, AMD Firestream 9170, ATI Radeon HD 4550,
    ATI Radeon RV710, ATI Radeon RV710, ATI Radeon RV710,
    ATI Radeon HD 4350, ATI Mobility Radeon 4300 Series,
    ATI Mobility Radeon 4500 Series, ATI Mobility Radeon 4500 Series,
    ATI FirePro RG220, ATI Mobility Radeon 4330, ATI RV630,
    ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT,
    ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP,
    ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630,
    ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600,
    ATI FireGL V3600, ATI Radeon HD 2600 LE,
    ATI Mobility FireGL Graphics Processor, ATI Radeon HD 3470,
    ATI Mobility Radeon HD 3430, ATI Mobility Radeon HD 3400 Series,
    ATI Radeon HD 3450, ATI Radeon HD 3450, ATI Radeon HD 3430,
    ATI Radeon HD 3450, ATI FirePro V3700, ATI FireMV 2450,
    ATI FireMV 2260, ATI FireMV 2260, ATI Radeon HD 3600 Series,
    ATI Radeon HD 3650 AGP, ATI Radeon HD 3600 PRO,
    ATI Radeon HD 3600 XT, ATI Radeon HD 3600 PRO,
    ATI Mobility Radeon HD 3650, ATI Mobility Radeon HD 3670,
    ATI Mobility FireGL V5700, ATI Mobility FireGL V5725,
    ATI Radeon HD 3200 Graphics, ATI Radeon 3100 Graphics,
    ATI Radeon HD 3200 Graphics, ATI Radeon 3100 Graphics,
    ATI Radeon HD 3300 Graphics, ATI Radeon HD 3200 Graphics,
    ATI Radeon 3000 Graphics, ATI Radeon HD 4200, ATI Radeon 4100,
    ATI Mobility Radeon HD 4200, ATI Mobility Radeon 4100,
    ATI Radeon HD 4290, ATI Radeon HD 4250, AMD Radeon HD 6310 Graphics,
    AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics,
    AMD Radeon HD 6250 Graphics, CYPRESS,
    ATI FirePro (FireGL) Graphics Adapter,
    ATI FirePro (FireGL) Graphics Adapter,
    ATI FirePro (FireGL) Graphics Adapter, AMD Firestream 9370,
    AMD Firestream 9350, ATI Radeon HD 5800 Series,
    ATI Radeon HD 5800 Series, ATI Radeon HD 5800 Series,
    ATI Radeon HD 5900 Series, ATI Radeon HD 5900 Series,
    ATI Mobility Radeon HD 5800 Series,
    ATI Mobility Radeon HD 5800 Series,
    ATI FirePro (FireGL) Graphics Adapter,
    ATI FirePro (FireGL) Graphics Adapter,
    ATI Mobility Radeon HD 5800 Series, ATI Radeon HD 5700 Series,
    ATI Radeon HD 5700 Series, ATI Radeon HD 5700 Series,
    ATI Mobility Radeon HD 5000 Series,
    ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon HD 5570,
    ATI FirePro (FireGL) Graphics Adapter,
    ATI FirePro (FireGL) Graphics Adapter, ATI Radeon HD 5670,
    ATI Radeon HD 5570, ATI Radeon HD 5500 Series, REDWOOD,
    ATI Mobility Radeon HD 5000 Series,
    ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon Graphics,
    ATI Mobility Radeon Graphics, CEDAR,
    ATI FirePro (FireGL) Graphics Adapter,
    ATI FirePro (FireGL) Graphics Adapter, ATI FirePro 2270, CEDAR,
    ATI Radeon HD 5450, CEDAR, AMD Radeon HD 6900M Series,
    Mobility Radeon HD 6000 Series, BARTS, BARTS,
    Mobility Radeon HD 6000 Series, Mobility Radeon HD 6000 Series,
    BARTS, BARTS, BARTS, BARTS, AMD Radeon HD 6800 Series,
    AMD Radeon HD 6800 Series, TURKS, TURKS, TURKS, TURKS, TURKS, TURKS,
    TURKS, TURKS, TURKS, TURKS, TURKS, TURKS, TURKS, CAICOS, CAICOS,
    CAICOS, CAICOS, CAICOS, CAICOS, CAICOS, CAICOS, CAICOS, CAICOS,
    CAICOS
    [ 9944.639] (II) VESA: driver for VESA chipsets: vesa
    [ 9944.639] (++) using VT number 8
    [ 9944.645] (II) [KMS] Kernel modesetting enabled.
    [ 9944.645] (WW) Falling back to old probe method for vesa
    [ 9944.645] (II) RADEON(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
    [ 9944.645] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
    [ 9944.646] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
    [ 9944.646] (==) RADEON(0): Default visual is TrueColor
    [ 9944.646] (==) RADEON(0): RGB weight 888
    [ 9944.646] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
    [ 9944.646] (--) RADEON(0): Chipset: "ATI Mobility Radeon X1600" (ChipID = 0x71c5)
    [ 9944.646] (II) RADEON(0): PCIE card detected
    [ 9944.646] drmOpenDevice: node name is /dev/dri/card0
    [ 9944.646] drmOpenDevice: open result is 8, (OK)
    [ 9944.646] drmOpenByBusid: Searching for BusID pci:0000:01:00.0
    [ 9944.646] drmOpenDevice: node name is /dev/dri/card0
    [ 9944.646] drmOpenDevice: open result is 8, (OK)
    [ 9944.646] drmOpenByBusid: drmOpenMinor returns 8
    [ 9944.646] drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
    [ 9944.646] (II) RADEON(0): KMS Color Tiling: enabled
    [ 9944.646] (II) RADEON(0): SwapBuffers wait for vsync: enabled
    [ 9944.686] (II) RADEON(0): Output VGA-0 has no monitor section
    [ 9944.686] (II) RADEON(0): Output LVDS has no monitor section
    [ 9944.726] (II) RADEON(0): Output S-video has no monitor section
    [ 9944.730] (II) RADEON(0): Output DVI-0 has no monitor section
    [ 9944.769] (II) RADEON(0): EDID for output VGA-0
    [ 9944.769] (II) RADEON(0): EDID for output LVDS
    [ 9944.769] (II) RADEON(0): Manufacturer: CMO Model: 1520 Serial#: 0
    [ 9944.769] (II) RADEON(0): Year: 1990 Week: 0
    [ 9944.769] (II) RADEON(0): EDID Version: 1.3
    [ 9944.769] (II) RADEON(0): Digital Display Input
    [ 9944.769] (II) RADEON(0): Max Image Size [cm]: horiz.: 33 vert.: 20
    [ 9944.769] (II) RADEON(0): Gamma: 2.20
    [ 9944.769] (II) RADEON(0): No DPMS capabilities specified
    [ 9944.769] (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    [ 9944.769] (II) RADEON(0): First detailed timing is preferred mode
    [ 9944.769] (II) RADEON(0): redX: 0.626 redY: 0.354 greenX: 0.294 greenY: 0.589
    [ 9944.769] (II) RADEON(0): blueX: 0.144 blueY: 0.097 whiteX: 0.309 whiteY: 0.329
    [ 9944.769] (II) RADEON(0): Manufacturer's mask: 0
    [ 9944.769] (II) RADEON(0): Supported detailed timing:
    [ 9944.769] (II) RADEON(0): clock: 119.0 MHz Image Size: 331 x 207 mm
    [ 9944.769] (II) RADEON(0): h_active: 1680 h_sync: 1728 h_sync_end 1760 h_blank_end 1840 h_border: 0
    [ 9944.769] (II) RADEON(0): v_active: 1050 v_sync: 1053 v_sync_end 1059 v_blanking: 1080 v_border: 0
    [ 9944.769] (II) RADEON(0): N154Z1-L01
    [ 9944.769] (II) RADEON(0): CMO
    [ 9944.769] (II) RADEON(0): N154Z1-L01
    [ 9944.769] (II) RADEON(0): EDID (in hex):
    [ 9944.769] (II) RADEON(0): 00ffffffffffff000daf201500000000
    [ 9944.769] (II) RADEON(0): 00000103802114780a77f1a05a4b9624
    [ 9944.769] (II) RADEON(0): 184f5400000001010101010101010101
    [ 9944.769] (II) RADEON(0): 0101010101017c2e90a0601a1e403020
    [ 9944.769] (II) RADEON(0): 36004bcf10000018000000fe004e3135
    [ 9944.770] (II) RADEON(0): 345a312d4c30310a2020000000fe0043
    [ 9944.770] (II) RADEON(0): 4d4f0a202020202020202020000000fe
    [ 9944.770] (II) RADEON(0): 004e3135345a312d4c30310a202000fd
    [ 9944.770] (II) RADEON(0): Printing probed modes for output LVDS
    [ 9944.770] (II) RADEON(0): Modeline "1680x1050"x59.9 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1400x1050"x60.0 121.75 1400 1488 1632 1864 1050 1053 1057 1089 -hsync +vsync (65.3 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1280x1024"x59.9 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync (63.7 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1440x900"x59.9 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync (55.9 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1280x960"x59.9 101.25 1280 1360 1488 1696 960 963 967 996 -hsync +vsync (59.7 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1280x854"x59.9 89.25 1280 1352 1480 1680 854 857 867 887 -hsync +vsync (53.1 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1280x800"x59.8 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync (49.7 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1280x720"x59.9 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync (44.8 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1152x768"x59.8 71.75 1152 1216 1328 1504 768 771 781 798 -hsync +vsync (47.7 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "1024x768"x59.9 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync (47.8 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "800x600"x59.9 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync (37.4 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "848x480"x59.7 31.50 848 872 952 1056 480 483 493 500 -hsync +vsync (29.8 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "720x480"x59.7 26.75 720 744 808 896 480 483 493 500 -hsync +vsync (29.9 kHz)
    [ 9944.770] (II) RADEON(0): Modeline "640x480"x59.4 23.75 640 664 720 800 480 483 487 500 -hsync +vsync (29.7 kHz)
    [ 9944.809] (II) RADEON(0): EDID for output S-video
    [ 9944.813] (II) RADEON(0): EDID for output DVI-0
    [ 9944.813] (II) RADEON(0): Output VGA-0 disconnected
    [ 9944.813] (II) RADEON(0): Output LVDS connected
    [ 9944.813] (II) RADEON(0): Output S-video disconnected
    [ 9944.813] (II) RADEON(0): Output DVI-0 disconnected
    [ 9944.813] (II) RADEON(0): Using exact sizes for initial modes
    [ 9944.813] (II) RADEON(0): Output LVDS using initial mode 1680x1050
    [ 9944.813] (II) RADEON(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
    [ 9944.813] (II) RADEON(0): mem size init: gart size :1fdff000 vram size: s:10000000 visible:f8d4000
    [ 9944.813] (II) RADEON(0): EXA: Driver will allow EXA pixmaps in VRAM
    [ 9944.813] (==) RADEON(0): DPI set to (96, 96)
    [ 9944.813] (II) Loading sub module "fb"
    [ 9944.813] (II) LoadModule: "fb"
    [ 9944.813] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 9944.813] (II) Module fb: vendor="X.Org Foundation"
    [ 9944.813] compiled for 1.9.4, module version = 1.0.0
    [ 9944.813] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 9944.813] (II) Loading sub module "ramdac"
    [ 9944.814] (II) LoadModule: "ramdac"
    [ 9944.814] (II) Module "ramdac" already built-in
    [ 9944.814] (II) Loading sub module "exa"
    [ 9944.814] (II) LoadModule: "exa"
    [ 9944.814] (II) Loading /usr/lib/xorg/modules/libexa.so
    [ 9944.814] (II) Module exa: vendor="X.Org Foundation"
    [ 9944.814] compiled for 1.9.4, module version = 2.5.0
    [ 9944.814] ABI class: X.Org Video Driver, version 8.0
    [ 9944.814] (II) UnloadModule: "vesa"
    [ 9944.814] (II) Unloading /usr/lib/xorg/modules/drivers/vesa_drv.so
    [ 9944.814] (--) Depth 24 pixmap format is 32 bpp
    [ 9944.814] (II) RADEON(0): [DRI2] Setup complete
    [ 9944.814] (II) RADEON(0): [DRI2] DRI driver: r300
    [ 9944.814] (II) RADEON(0): Front buffer size: 7128K
    [ 9944.814] (II) RADEON(0): VRAM usage limit set to 222904K
    [ 9944.814] (==) RADEON(0): Backing store disabled
    [ 9944.814] (II) RADEON(0): Direct rendering enabled
    [ 9944.814] (II) RADEON(0): Render acceleration enabled for R300/R400/R500 type cards.
    [ 9944.814] (II) RADEON(0): Setting EXA maxPitchBytes
    [ 9944.814] (II) EXA(0): Driver allocated offscreen pixmaps
    [ 9944.814] (II) EXA(0): Driver registered support for the following operations:
    [ 9944.814] (II) Solid
    [ 9944.814] (II) Copy
    [ 9944.814] (II) Composite (RENDER acceleration)
    [ 9944.814] (II) UploadToScreen
    [ 9944.814] (II) DownloadFromScreen
    [ 9944.814] (II) RADEON(0): Acceleration enabled
    [ 9944.814] (==) RADEON(0): DPMS enabled
    [ 9944.814] (==) RADEON(0): Silken mouse enabled
    [ 9944.814] (II) RADEON(0): Set up textured video
    [ 9944.815] (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
    [ 9944.815] (--) RandR disabled
    [ 9944.815] (II) Initializing built-in extension Generic Event Extension
    [ 9944.815] (II) Initializing built-in extension SHAPE
    [ 9944.815] (II) Initializing built-in extension MIT-SHM
    [ 9944.815] (II) Initializing built-in extension XInputExtension
    [ 9944.815] (II) Initializing built-in extension XTEST
    [ 9944.815] (II) Initializing built-in extension BIG-REQUESTS
    [ 9944.815] (II) Initializing built-in extension SYNC
    [ 9944.815] (II) Initializing built-in extension XKEYBOARD
    [ 9944.815] (II) Initializing built-in extension XC-MISC
    [ 9944.815] (II) Initializing built-in extension SECURITY
    [ 9944.815] (II) Initializing built-in extension XINERAMA
    [ 9944.815] (II) Initializing built-in extension XFIXES
    [ 9944.815] (II) Initializing built-in extension RENDER
    [ 9944.815] (II) Initializing built-in extension RANDR
    [ 9944.815] (II) Initializing built-in extension COMPOSITE
    [ 9944.815] (II) Initializing built-in extension DAMAGE
    [ 9944.824] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    [ 9944.824] (II) AIGLX: enabled GLX_INTEL_swap_event
    [ 9944.824] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
    [ 9944.824] (II) AIGLX: enabled GLX_SGI_make_current_read
    [ 9944.824] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
    [ 9944.825] (II) AIGLX: Loaded and initialized /usr/lib/xorg/modules/dri/r300_dri.so
    [ 9944.825] (II) GLX: Initialized DRI2 GL provider for screen 0
    [ 9944.825] (II) RADEON(0): Setting screen physical size to 444 x 277
    [ 9944.949] (II) config/udev: Adding input device Power Button (/dev/input/event3)
    [ 9944.949] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 9944.949] (II) LoadModule: "evdev"
    [ 9944.950] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 9944.950] (II) Module evdev: vendor="X.Org Foundation"
    [ 9944.950] compiled for 1.9.4, module version = 2.6.0
    [ 9944.950] Module class: X.Org XInput Driver
    [ 9944.950] ABI class: X.Org XInput driver, version 11.0
    [ 9944.950] (**) Power Button: always reports core events
    [ 9944.950] (**) Power Button: Device: "/dev/input/event3"
    [ 9944.959] (--) Power Button: Found keys
    [ 9944.959] (II) Power Button: Configuring as keyboard
    [ 9944.959] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    [ 9944.959] (**) Option "xkb_rules" "evdev"
    [ 9944.959] (**) Option "xkb_model" "evdev"
    [ 9944.959] (**) Option "xkb_layout" "dk"
    [ 9944.988] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
    [ 9944.988] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 9944.988] (**) Video Bus: always reports core events
    [ 9944.988] (**) Video Bus: Device: "/dev/input/event5"
    [ 9944.995] (--) Video Bus: Found keys
    [ 9944.995] (II) Video Bus: Configuring as keyboard
    [ 9944.995] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
    [ 9944.995] (**) Option "xkb_rules" "evdev"
    [ 9944.995] (**) Option "xkb_model" "evdev"
    [ 9944.995] (**) Option "xkb_layout" "dk"
    [ 9945.000] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
    [ 9945.000] (II) No input driver/identifier specified (ignoring)
    [ 9945.001] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
    [ 9945.001] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
    [ 9945.001] (**) Sleep Button: always reports core events
    [ 9945.001] (**) Sleep Button: Device: "/dev/input/event1"
    [ 9945.009] (--) Sleep Button: Found keys
    [ 9945.009] (II) Sleep Button: Configuring as keyboard
    [ 9945.009] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD)
    [ 9945.009] (**) Option "xkb_rules" "evdev"
    [ 9945.009] (**) Option "xkb_model" "evdev"
    [ 9945.009] (**) Option "xkb_layout" "dk"
    [ 9945.011] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event9)
    [ 9945.011] (II) No input driver/identifier specified (ignoring)
    [ 9945.019] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 9945.019] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    [ 9945.019] (**) AT Translated Set 2 keyboard: always reports core events
    [ 9945.019] (**) AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    [ 9945.039] (--) AT Translated Set 2 keyboard: Found keys
    [ 9945.039] (II) AT Translated Set 2 keyboard: Configuring as keyboard
    [ 9945.039] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
    [ 9945.039] (**) Option "xkb_rules" "evdev"
    [ 9945.039] (**) Option "xkb_model" "evdev"
    [ 9945.039] (**) Option "xkb_layout" "dk"
    [ 9945.040] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event8)
    [ 9945.040] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
    [ 9945.040] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
    [ 9945.040] (II) LoadModule: "synaptics"
    [ 9945.040] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    [ 9945.040] (II) Module synaptics: vendor="X.Org Foundation"
    [ 9945.040] compiled for 1.9.2, module version = 1.3.0
    [ 9945.040] Module class: X.Org XInput Driver
    [ 9945.040] ABI class: X.Org XInput driver, version 11.0
    [ 9945.040] (II) Synaptics touchpad driver version 1.3.0
    [ 9945.040] (**) Option "Device" "/dev/input/event8"
    [ 9945.162] (--) SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5472
    [ 9945.162] (--) SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4448
    [ 9945.162] (--) SynPS/2 Synaptics TouchPad: pressure range 0 - 255
    [ 9945.162] (--) SynPS/2 Synaptics TouchPad: finger width range 0 - 15
    [ 9945.162] (--) SynPS/2 Synaptics TouchPad: buttons: left right middle double triple
    [ 9945.162] (**) Option "TapButton1" "1"
    [ 9945.162] (**) Option "TapButton2" "2"
    [ 9945.162] (**) Option "TapButton3" "3"
    [ 9945.269] (--) SynPS/2 Synaptics TouchPad: touchpad found
    [ 9945.269] (**) SynPS/2 Synaptics TouchPad: always reports core events
    [ 9945.322] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD)
    [ 9945.322] (**) SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
    [ 9945.322] (**) SynPS/2 Synaptics TouchPad: MaxSpeed is now 1.75
    [ 9945.322] (**) SynPS/2 Synaptics TouchPad: AccelFactor is now 0.040
    [ 9945.322] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
    [ 9945.322] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
    [ 9945.322] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
    [ 9945.322] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
    [ 9945.402] (--) SynPS/2 Synaptics TouchPad: touchpad found
    [ 9945.402] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
    [ 9945.402] (II) No input driver/identifier specified (ignoring)
    [ 9945.403] (II) config/udev: Adding input device PS/2 Generic Mouse (/dev/input/event10)
    [ 9945.403] (**) PS/2 Generic Mouse: Applying InputClass "evdev pointer catchall"
    [ 9945.403] (**) PS/2 Generic Mouse: always reports core events
    [ 9945.403] (**) PS/2 Generic Mouse: Device: "/dev/input/event10"
    [ 9945.429] (--) PS/2 Generic Mouse: Found 3 mouse buttons
    [ 9945.429] (--) PS/2 Generic Mouse: Found relative axes
    [ 9945.429] (--) PS/2 Generic Mouse: Found x and y relative axes
    [ 9945.429] (II) PS/2 Generic Mouse: Configuring as mouse
    [ 9945.429] (**) PS/2 Generic Mouse: YAxisMapping: buttons 4 and 5
    [ 9945.429] (**) PS/2 Generic Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 9945.429] (II) XINPUT: Adding extended input device "PS/2 Generic Mouse" (type: MOUSE)
    [ 9945.429] (**) PS/2 Generic Mouse: (accel) keeping acceleration scheme 1
    [ 9945.429] (**) PS/2 Generic Mouse: (accel) acceleration profile 0
    [ 9945.429] (**) PS/2 Generic Mouse: (accel) acceleration factor: 2.000
    [ 9945.429] (**) PS/2 Generic Mouse: (accel) acceleration threshold: 4
    [ 9945.429] (II) PS/2 Generic Mouse: initialized for relative axes.
    [ 9945.429] (II) config/udev: Adding input device PS/2 Generic Mouse (/dev/input/mouse1)
    [ 9945.429] (II) No input driver/identifier specified (ignoring)
    [ 9945.430] (II) config/udev: Adding input device ST LIS3LV02DL Accelerometer (/dev/input/event6)
    [ 9945.430] (II) No input driver/identifier specified (ignoring)
    [ 9945.430] (II) config/udev: Adding input device ST LIS3LV02DL Accelerometer (/dev/input/js0)
    [ 9945.430] (II) No input driver/identifier specified (ignoring)
    [ 9945.430] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
    [ 9945.430] (II) No input driver/identifier specified (ignoring)
    [ 9945.432] (II) config/udev: Adding input device HP WMI hotkeys (/dev/input/event7)
    [ 9945.432] (**) HP WMI hotkeys: Applying InputClass "evdev keyboard catchall"
    [ 9945.432] (**) HP WMI hotkeys: always reports core events
    [ 9945.432] (**) HP WMI hotkeys: Device: "/dev/input/event7"
    [ 9945.455] (--) HP WMI hotkeys: Found keys
    [ 9945.455] (II) HP WMI hotkeys: Configuring as keyboard
    [ 9945.455] (II) XINPUT: Adding extended input device "HP WMI hotkeys" (type: KEYBOARD)
    [ 9945.455] (**) Option "xkb_rules" "evdev"
    [ 9945.455] (**) Option "xkb_model" "evdev"
    [ 9945.455] (**) Option "xkb_layout" "dk"
    [ 9945.686] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9945.686] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9945.686] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9945.772] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9945.772] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9945.772] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9945.859] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9945.859] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9945.859] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9945.946] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9945.946] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9945.946] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9951.719] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9951.719] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9951.719] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9951.806] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9951.806] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9951.806] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9951.892] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9951.892] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9951.892] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9951.979] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9951.979] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9951.979] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    [ 9952.629] (II) RADEON(0): EDID vendor "CMO", prod id 5408
    [ 9952.629] (II) RADEON(0): Printing DDC gathered Modelines:
    [ 9952.629] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 -hsync -vsync (64.7 kHz)
    ~/.xsession-errors:
    /etc/gdm/Xsession: Beginning session setup...
    /etc/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- gnome-session
    gnome-session[10384]: EggSMClient-WARNING: Invalid Version string '0.9.4' in /home/kkm/.config/autostart/Tilda.desktop
    gnome-session[10384]: WARNING: Could not parse desktop file /home/kkm/.config/autostart/xfce4-settings-helper-autostart.desktop: Key file does not have key 'Name'
    gnome-session[10384]: WARNING: could not read /home/kkm/.config/autostart/xfce4-settings-helper-autostart.desktop
    gnome-session[10384]: WARNING: Could not parse desktop file /home/kkm/.config/autostart/xfconf-migration-4.6.desktop: Key file does not have key 'Name'
    gnome-session[10384]: WARNING: could not read /home/kkm/.config/autostart/xfconf-migration-4.6.desktop
    GNOME_KEYRING_CONTROL=/tmp/keyring-TQ9ltx
    SSH_AUTH_SOCK=/tmp/keyring-TQ9ltx/ssh
    GNOME_KEYRING_CONTROL=/tmp/keyring-TQ9ltx
    SSH_AUTH_SOCK=/tmp/keyring-TQ9ltx/ssh
    GPG_AGENT_INFO=/tmp/keyring-TQ9ltx/gpg:0:1
    GNOME_KEYRING_CONTROL=/tmp/keyring-TQ9ltx
    SSH_AUTH_SOCK=/tmp/keyring-TQ9ltx/ssh
    GPG_AGENT_INFO=/tmp/keyring-TQ9ltx/gpg:0:1
    GNOME_KEYRING_CONTROL=/tmp/keyring-TQ9ltx
    SSH_AUTH_SOCK=/tmp/keyring-TQ9ltx/ssh
    GPG_AGENT_INFO=/tmp/keyring-TQ9ltx/gpg:0:1
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmXsmpServer: accept_ice_connection()
    ** (gnome-session:10384): DEBUG: GsmXsmpServer: auth_ice_connection()
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Setting up new connection
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: New client '0x15d2950 []'
    ** (gnome-session:10384): DEBUG: GsmStore: Adding object id /org/gnome/SessionManager/Client2 to store
    ** (gnome-session:10384): DEBUG: GsmManager: Client added: /org/gnome/SessionManager/Client2
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Initializing client 0x15d2950 []
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Client '0x15d2950 []' received RegisterClient(10d9e439dccd4de5d5129823366265066300000103840032)
    ** (gnome-session:10384): DEBUG: GsmManager: Adding new client 10d9e439dccd4de5d5129823366265066300000103840032 to session
    ** (gnome-session:10384): DEBUG: GsmManager: ending phase WINDOW_MANAGER
    ** (gnome-session:10384): DEBUG: GsmManager: starting phase PANEL
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App36
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting gnome-panel.desktop: command=gnome-panel startup-id=10d9e439dccd4de5d5129823366265127600000103840033
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10432
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Sending RegisterClientReply to '0x15d2950 [10d9e439dccd4de5d5129823366265066300000103840032]'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Set properties from client '0x15d2950 [10d9e439dccd4de5d5129823366265066300000103840032]'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Program = 'metacity'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: UserID = 'kkm'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: RestartStyleHint = 2
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: ProcessID = '10422'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: CurrentDirectory = '/home/kkm'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: _GSM_Priority = 20
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmXsmpServer: accept_ice_connection()
    ** (gnome-session:10384): DEBUG: GsmXsmpServer: auth_ice_connection()
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Setting up new connection
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: New client '0x15d29f0 []'
    ** (gnome-session:10384): DEBUG: GsmStore: Adding object id /org/gnome/SessionManager/Client3 to store
    ** (gnome-session:10384): DEBUG: GsmManager: Client added: /org/gnome/SessionManager/Client3
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Initializing client 0x15d29f0 []
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Client '0x15d29f0 []' received RegisterClient(10d9e439dccd4de5d5129823366265127600000103840033)
    ** (gnome-session:10384): DEBUG: GsmManager: Adding new client 10d9e439dccd4de5d5129823366265127600000103840033 to session
    ** (gnome-session:10384): DEBUG: GsmManager: ending phase PANEL
    ** (gnome-session:10384): DEBUG: GsmManager: starting phase DESKTOP
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App37
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting nautilus.desktop: command=nautilus startup-id=10d9e439dccd4de5d5129823366265168800000103840034
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10448
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Sending RegisterClientReply to '0x15d29f0 [10d9e439dccd4de5d5129823366265127600000103840033]'
    ** (gnome-session:10384): DEBUG: GsmXsmpServer: accept_ice_connection()
    ** (gnome-session:10384): DEBUG: GsmXsmpServer: auth_ice_connection()
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Setting up new connection
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: New client '0x15d2a90 []'
    ** (gnome-session:10384): DEBUG: GsmStore: Adding object id /org/gnome/SessionManager/Client4 to store
    ** (gnome-session:10384): DEBUG: GsmManager: Client added: /org/gnome/SessionManager/Client4
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Initializing client 0x15d2a90 []
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Client '0x15d2a90 []' received RegisterClient(10d9e439dccd4de5d5129823366265168800000103840034)
    ** (gnome-session:10384): DEBUG: GsmManager: Adding new client 10d9e439dccd4de5d5129823366265168800000103840034 to session
    ** (gnome-session:10384): DEBUG: GsmManager: ending phase DESKTOP
    ** (gnome-session:10384): DEBUG: GsmManager: starting phase APPLICATION
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App12
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App19
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting gnome-power-manager.desktop: command=gnome-power-manager startup-id=10d9e439dccd4de5d5129823366264736100000103840016
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10452
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App16
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting wicd-tray.desktop: command=wicd-gtk startup-id=10d9e439dccd4de5d5129823366264682200000103840013
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10453
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App13
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting polkit-gnome-authentication-agent-1.desktop: command=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 startup-id=10d9e439dccd4de5d5129823366264649200000103840010
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10454
    ** (gnome-session:10384): DEBUG: app /org/gnome/SessionManager/App20 is disabled by Hidden
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App20
    ** (gnome-session:10384): DEBUG: app /org/gnome/SessionManager/App21 not installed or not for GNOME
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App21
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App22
    ** (gnome-session:10384): DEBUG: app /org/gnome/SessionManager/App1 is disabled by X-GNOME-Autostart-enabled
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App1
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App2
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting Tilda.desktop: command=tilda startup-id=10d9e439dccd4de5d5129823366264466100000103840001
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10458
    ** (gnome-session:10384): DEBUG: app /org/gnome/SessionManager/App25 not installed or not for GNOME
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App25
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App4
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting skype.desktop: command=skype startup-id=10d9e439dccd4de5d5129823366264485900000103840002
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10459
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App5
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting alunn.desktop: command=alunn startup-id=10d9e439dccd4de5d5129823366264494000000103840003
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10465
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App6
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting pidgin.desktop: command=pidgin startup-id=10d9e439dccd4de5d5129823366264502300000103840004
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10466
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App7
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting dropbox.desktop: command=/opt/dropbox/dropboxd startup-id=10d9e439dccd4de5d5129823366264512800000103840005
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10467
    ** (gnome-session:10384): DEBUG: app /org/gnome/SessionManager/App8 is disabled by X-GNOME-Autostart-enabled
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App8
    ** (gnome-session:10384): DEBUG: app /org/gnome/SessionManager/App28 is disabled by Hidden
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App28
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App27
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting gnome-screensaver.desktop: command=gnome-screensaver startup-id=10d9e439dccd4de5d5129823366264886000000103840024
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10468
    ** (gnome-session:10384): DEBUG: app /org/gnome/SessionManager/App24 not installed or not for GNOME
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App24
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App23
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting xfconf-migration-4.6.desktop: command=/usr/lib/xfce4/xfconf-migration/xfconf-migration-4.6.pl startup-id=10d9e439dccd4de5d5129823366264820300000103840020
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10472
    ** (gnome-session:10384): DEBUG: app /org/gnome/SessionManager/App10 is disabled by X-GNOME-Autostart-enabled
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App10
    ** (gnome-session:10384): DEBUG: Starting app: /org/gnome/SessionManager/App30
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: starting gdu-notification-daemon.desktop: command=/usr/lib/gnome-disk-utility/gdu-notification-daemon startup-id=10d9e439dccd4de5d5129823366264939200000103840027
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: started pid:10476
    ** (gnome-session:10384): DEBUG: GsmManager: Skipping disabled app: /org/gnome/SessionManager/App11
    ** (gnome-session:10384): DEBUG: GsmManager: ending phase APPLICATION
    ** (gnome-session:10384): DEBUG: GsmManager: starting phase RUNNING
    ** (gnome-session:10384): DEBUG: GsmPresence: adding idle watch
    ** (gnome-session:10384): DEBUG: GSIdleMonitor: creating new alarm for positive transition wait=300000
    ** (gnome-session:10384): DEBUG: GSIdleMonitor: creating new alarm for negative transition wait=300000
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Sending RegisterClientReply to '0x15d2a90 [10d9e439dccd4de5d5129823366265168800000103840034]'
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager interface=org.gnome.SessionManager method=IsInhibited
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager interface=org.gnome.SessionManager method=IsInhibited
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=Get
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager interface=org.gnome.SessionManager method=RegisterClient
    ** (gnome-session:10384): DEBUG: GsmManager: RegisterClient 10d9e439dccd4de5d5129823366264736100000103840016
    ** (gnome-session:10384): DEBUG: GsmManager: Adding new client 10d9e439dccd4de5d5129823366264736100000103840016 to session
    ** (gnome-session:10384): DEBUG: uid = 1000
    ** (gnome-session:10384): DEBUG: pid = 10452
    ** (gnome-session:10384): DEBUG: GsmStore: Adding object id /org/gnome/SessionManager/Client5 to store
    ** (gnome-session:10384): DEBUG: GsmManager: Client added: /org/gnome/SessionManager/Client5
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Set properties from client '0x15d29f0 [10d9e439dccd4de5d5129823366265127600000103840033]'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Program = 'gnome-panel'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: CloneCommand = 'gnome-panel'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: RestartCommand = 'gnome-panel' '--sm-client-id' '10d9e439dccd4de5d5129823366265127600000103840033'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: UserID = 'kkm'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: ProcessID = '10432'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: RestartStyleHint = 2
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Set properties from client '0x15d29f0 [gnome-panel 10d9e439dccd4de5d5129823366265127600000103840033]'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: _GSM_DesktopFile = 'file:///usr/share/applications/gnome-panel.desktop'
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=Get
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=Get
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=Get
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager/Presence interface=org.freedesktop.DBus.Properties method=Get
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: (pid:10468) done (status:0)
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    MCS->Xfconf settings migration complete
    ** (gnome-session:10384): DEBUG: GsmAutostartApp: (pid:10472) done (status:0)
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** Message: Initializing gksu extension...
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Set properties from client '0x15d2a90 [10d9e439dccd4de5d5129823366265168800000103840034]'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Program = 'nautilus'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: CloneCommand = 'nautilus'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: RestartCommand = 'nautilus' '--sm-client-id' '10d9e439dccd4de5d5129823366265168800000103840034'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: UserID = 'kkm'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: ProcessID = '10448'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: RestartStyleHint = 2
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: Set properties from client '0x15d2a90 [nautilus 10d9e439dccd4de5d5129823366265168800000103840034]'
    ** (gnome-session:10384): DEBUG: GsmXSMPClient: _GSM_DesktopFile = 'file:///usr/share/applications/nautilus.desktop'
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager interface=org.gnome.SessionManager method=CanShutdown
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/gnome/SessionManager interface=org.gnome.SessionManager method=CanShutdown
    ** (gnome-session:10384): DEBUG: GsmManager: CanShutdown called
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
    ** (gnome-session:10384): DEBUG: Gsm

  • Simple GUI playing mp3 files

    Hi everyone , i am building a simple GUI playing mp3 files in a certain directory.
    A bug or something wrong with the codes listed down here is very confusing me and makes me desperate. Can anyone help me please ?
    import javax.swing.*;
    import javax.media.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    class PlayMP3Thread
    extends Thread
    private URL url;
    String[] filenames ;
    File[] files ;
    boolean condition=true;
    boolean pause=false;
    int count ;
    public PlayMP3Thread() { }
    public PlayMP3Thread(File[] files)
    //try
              this.files = files;
         filenames = new String[files.length];
         count = -1;
         // this.url = mp3.toURL();
         //catch ( MalformedURLException me )
    public void run()
    try
         while (condition)
              count++;
              if (count > (filenames.length - 1)) {
                        count = 0;
              this.url = files[count].toURL();
    MediaLocator ml = new MediaLocator(url);
    final Player player = Manager.createPlayer(ml);
    /*player.addControllerListener(
    new ControllerListener()
    public void controllerUpdate(ControllerEvent event)
    if (event instanceof EndOfMediaEvent)
    player.stop();
    player.close();
    player.realize();
    player.start();
    catch (Exception e)
    e.printStackTrace();
    public void stops()
    //stop the thread
    condition=false;
    pause=false;
    public void pause()
    while(!pause)
    //pause the thread
    try
    wait();
    catch(Exception ex){}
    pause=true;
    public void resumes()
    while(pause)
    notify();
    pause=false;
    } // end of class MP3Thread
    public class mp3Play extends JFrame {
    JTextField direcText ;
    JFileChooser fc;
    static final String
    TITLE="MP3 PLAYER",
    DIRECTORY="Directory : ",
    BROWSE="Browse...",
    START="Start up",
    STOP="Stop",
    PAUSE="Pause",
    RESUME="Resume",
    EXIT="Exit";
    public static void main(String args[])
         PlayMP3Thread play = new PlayMP3Thread();
         mp3Play pl = new mp3Play();
    } // End of main()
    public mp3Play() {
    setTitle(TITLE);
         Container back = getContentPane();
         back.setLayout(new GridLayout(0,1));
         back.add(new JLabel(new ImageIcon("images/hello.gif")));
         fc = new JFileChooser();
         fc.setFileSelectionMode(fc.DIRECTORIES_ONLY);
         JPanel p1 = new JPanel();
         p1.add(new JLabel(DIRECTORY, new ImageIcon("images/directory.gif"), JLabel.CENTER));
    p1.add(direcText = new JTextField(20));
         JButton browseButton = new JButton(BROWSE, new ImageIcon("images/browse.gif"));
         browseButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int returnVal = fc.showOpenDialog(mp3Play.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
              direcText.setText(fc.getSelectedFile().toString());
              File[] files = (new File(direcText.getText())).listFiles(this);
         p1.add(browseButton);
         back.add(p1);
         JPanel p2 = new JPanel();
              JPanel butPanel = new JPanel();
              butPanel.setBorder(BorderFactory.createLineBorder(Color.black));
              JButton startButton = new JButton(START, new ImageIcon("images/start.gif"));
              startButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
                        PlayMP3Thread play = new PlayMP3Thread(files);
                        play.start();
         butPanel.add(startButton);
         p2.add(butPanel);
         JButton stopButton = new JButton(STOP, new ImageIcon("images/stop.gif"));
         stopButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
              play.stops();
         p2.add(stopButton);
         JButton pauseButton = new JButton(PAUSE, new ImageIcon("images/pause.gif"));
         pauseButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
              play.pause();
         p2.add(pausetButton);
         JButton resumeButton = new JButton(RESUME, new ImageIcon("images/resume.gif"));
              resumeButton.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
                   play.resumes();
         p2.add(resumeButton);
         back.add(p2);
    JButton exitButton = new JButton(EXIT, new ImageIcon("images/exit.gif"));
              exitButton.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
                   System.exit(0);
              p2.add(exitButton);
              back.add(p2);
              addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
         System.exit(0);
              pack();
         setVisible(true);
    }

    Actually I don't know much about fixing technical error or logical error.
    When it compiled , there are 6 errors showed up :
    can't resolve symbol : method listFiles (<anonymous java.awt.event.ActionListener>)
    location: class java.io.File
              File[] files = (new File(direcText.getText())).listFiles(this);
    can't resolve symbol: variable files
                        PlayMP3Thread play = new PlayMP3Thread(files);
    can't resolve symbol: variable play
              play.stops();
    can't resolve symbol: variable play
              play.pause();
    ^
    can't resolve symbol : variable pausetButton
    location: class mp3Play
         p2.add(pausetButton);
    ^
    can't resolve symbol: variable play
                   play.resumes();
    Any suggestions ?

  • How can we put the report which is generated by the program into spool??

    How can we put the report which is generated by the program into spool??
    I had generated a file in Unix which had the report but now the requirement has changed.
    Regards,
    Shashank.

    Hi Shashank,
    If the program is executed in the background and it has the write statement then the spool will automatically generated.
    Reward points if useful.
    Regards,
    Atish

  • How can I put the report generated by a program into a File?

    Hi all,
       How can I put the report generated by a program into a File?It can be in TXT format or excel format which ever is possible.
    I need to export this file to memory,How can I do that??
    Regards,
    Shashank.

    Hello Shashank,
    Please ignore my previous answer... Ofcourse it works...
    There are several ways to do this...
    two of them are
    1. List -> Save -> File and press enter..
        it will ask for the format, then path where to save it. Just give the path.
    2. Using function module 'GUI_DOWNLOAD'.
    I'm giving the example bellow which explains the usage of both GUI_UPLOAD and GUI_DOWNLOAD.
    To do this... you need to have folder with name 'TEST' and a .txt file in it with name 'test'. And contents of it are :
    TEST1             ,BOT 
    TEST2             ,BOT 
    TEST3             ,BUT 
    with spaces.
    REPORT zssr_bdc .
    DATA: BEGIN OF g_t_itab OCCURS 0,
            matnr LIKE mara-matnr,
            maktx LIKE makt-maktx,
          END OF g_t_itab.
    DATA: g_t_bdcdata TYPE TABLE OF bdcdata.
    DATA: path TYPE string,
          path1 type string.
    path = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test.txt'.
    path1 = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test1.txt'.
    *contents of test.txt    *
    *TEST1             ,BOT  *
    *TEST2             ,BOT  *
    *TEST3             ,BUT  *
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename = path
      TABLES
        data_tab                      = g_t_itab.
    LOOP AT g_t_itab.
      WRITE:/1(18) g_t_itab-matnr, 20(40) g_t_itab-maktx.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       filename = path1
       filetype                      = 'ASC'
      TABLES
        data_tab                      = g_t_itab.
    Now you will get one .txt file with name 'TEST1.TXT' in the TEST folder.
    <b>REWARD POINTS IF IT IS HELPFUL</b>
    Regards
    Sasidhar Reddy Matli

  • I am trying to activate my program into my new computer (the old one was run over by a car) and it says I have exceeded my installations.  It's Adobe Audition 3 (you can see I've been using it a long time) and I rely on it for work everyday.  Please advis

    I am trying to activate my program into my new computer (the old one was run over by a car) and it says I have exceeded my installations.  It's Adobe Audition 3 (you can see I've been using it a long time) and I rely on it for work everyday.  Please advise.

    The activation server for Audition 3 was shut down by Adobe several years ago.
    You now need to download the non-activation version provided by Adobe here
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Install then enter the new serial number provided by Adobe at that link. Your existing serial number will no longer work.

  • Reading Txt File into a GUI

    Hi,
    Direction on how to read a text file consisting of rows and columns with 1's and 0's into a GUI would be useful.
    I can ask user for filename and display the file in a DOS window but unsure of how I would use a text box to ask for a filename and then display the contents of it into the GUI.
    Im fairly new to Java, Where do I start?
    Thanks.

    Alternatively, take a look at this:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    class Editor extends JFrame
        private BorderLayout borderLayout1 = new BorderLayout();
        private JScrollPane jScrollPane1 = new JScrollPane();
        private JTextArea jTextArea1 = new JTextArea();
        private JMenuBar jMenuBar1 = new JMenuBar();
        private JMenu jMenu1 = new JMenu();
        private JMenuItem jMenuItem1 = new JMenuItem();
        private JMenuItem jMenuItem2 = new JMenuItem();
        public static void main(String[] args)
            Editor editor=new Editor();
            editor.setBounds(100,100,400,400);
            editor.setVisible(true);
        public Editor()
            try
                jbInit();
            catch(Exception e)
                e.printStackTrace();
            this.pack();
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        private void jbInit() throws Exception
            this.getContentPane().setLayout(borderLayout1);
            this.setJMenuBar(jMenuBar1);
            jMenu1.setText("File");
            jMenuItem1.setText("Open");
            jMenuItem1.addActionListener(new java.awt.event.ActionListener()
                public void actionPerformed(ActionEvent e)
                    jMenuItem1_actionPerformed(e);
            jMenuItem2.setText("Save");
            jMenuItem2.addActionListener(new java.awt.event.ActionListener()
                public void actionPerformed(ActionEvent e)
                    jMenuItem2_actionPerformed(e);
            this.getContentPane().add(jScrollPane1, BorderLayout.CENTER);
            jScrollPane1.getViewport().add(jTextArea1, null);
            jMenuBar1.add(jMenu1);
            jMenu1.add(jMenuItem1);
            jMenu1.add(jMenuItem2);
        void jMenuItem1_actionPerformed(ActionEvent e)
            JFileChooser fileSelectDialog=new JFileChooser();
            fileSelectDialog.setDialogTitle("Open file");
            fileSelectDialog.setFileSelectionMode(JFileChooser.FILES_ONLY);
            fileSelectDialog.setCurrentDirectory(new File("."));
            int result=fileSelectDialog.showDialog(this, null);
            if(result==fileSelectDialog.APPROVE_OPTION)
                File file=fileSelectDialog.getSelectedFile();
                if(file!=null)
                    try
                        FileInputStream fileInputStream=new FileInputStream(file);
                        byte[] data=new byte[(int)file.length()];
                        fileInputStream.read(data);
                        jTextArea1.setText(new String(data));
                    catch(IOException ex)
                        showExceptionMessage(ex);
        void jMenuItem2_actionPerformed(ActionEvent e)
            JFileChooser fileSelectDialog=new JFileChooser();
            fileSelectDialog.setDialogTitle("Save file");
            fileSelectDialog.setDialogType(JFileChooser.SAVE_DIALOG);
            fileSelectDialog.setFileSelectionMode(JFileChooser.FILES_ONLY);
            fileSelectDialog.setCurrentDirectory(new File("."));
            int result=fileSelectDialog.showDialog(this, null);
            if(result==fileSelectDialog.APPROVE_OPTION)
                File file=fileSelectDialog.getSelectedFile();
                if(file!=null)
                    try
                        FileOutputStream fileOutputStream=new FileOutputStream(file,false);
                        fileOutputStream.write(jTextArea1.getText().getBytes());
                    catch(IOException ex)
                        showExceptionMessage(ex);
        public void showExceptionMessage(Exception ex)
            StringWriter stringWriter=new StringWriter();
            PrintWriter printWriter=new PrintWriter(stringWriter);
            ex.printStackTrace(printWriter);
            JOptionPane.showMessageDialog(this,stringWriter.toString().replace('\t',' ').replace('\r',' '),"Exception!",JOptionPane.ERROR_MESSAGE);
    }

Maybe you are looking for

  • How to get the size of uploaded file in sap ABAP MODULE POOL PROGRAMMING

    Hello, I am using a fucntion module GUI UPLOAD to upload a file from pc to SAP . I want to upload the details of the file. i.e TYPE NAME AND SIZE of the file. I am unable to do so. Help me. Gaur Mayank

  • When not to use loopback?

    Hi guys, It seems very simple question, but it made me go thinking and thinking and decided it would be worthwhile to share it here with you. I am building a small network with one core switch doing all inter vlan routing and connecting to two edge r

  • Server Timed Out, Router not detected

    Ever since a heavy thunderstorm I have been unable to pick up wireless Internet on any of my wi-fi devices. I'm no longer able to access 192.168.1.1 through my Internet browser, when I tried to ping 192.168.1.1 it says Server Timed Out, and the LinkS

  • Can someone help me with a DVD burner issue on an HP Pavillion dv6700 series laptop?

    Hello all. I have a HP Pavillion dv6700 laptop with a pioneer dvd rw k17b internal DVD burner drive. I recently have been experiencing issues with burning DVDs. It is saying that my burn speed is too low or the DVD is not compatible with the write sp

  • Adobe Pro 9 and TWAIN driver

    WHen scanning multiple pages from my HP Photosmart C6180 using the TWAIN driver recently installed in an Adobe update, Adobe freezes. HP say it's an Adobe issue.  Any clues on how to sort this out?