Find the answer to your Linux question:
Results 1 to 7 of 7
Hello, Im changing some software (touchscreen calibration), i want to change values in the xorg.conf, is there an easy way to do this without using instructions like sed and all ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    3

    change value in xorg.conf using an instruction

    Hello,

    Im changing some software (touchscreen calibration), i want to change values in the xorg.conf, is there an easy way to do this without using instructions like sed and all that..
    I think there must be some package that can be used to change the values no ?

    Grts

  2. #2
    Linux Newbie Tutku's Avatar
    Join Date
    Jul 2007
    Location
    Izmir / Turkey
    Posts
    167
    you can create a new xorg.conf file with
    Code:
    sudo dpkg --reconfigure xorg
    command but after creation, you hanve to edit them with a text editör. Also you have some shortcuts, like changing the screen resolution, but again you have to edit by manually.

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    3

    now thats the problem

    I can't edit the xorg file manually it need to write script that can add or alter values in the xorg file

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    I can't edit the xorg file manually it need to write script that can add or alter values in the xorg file
    Command posted by Tutku does the same thing. It accepts values from user and edit xorg.conf file accordingly. If you want to automate input too, you have to write a script for that.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    You will surely need to use awk and sed to modify the file properly. This looks more like a homework question right now, since you are refusing the proper ways to modify the file
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  6. #6
    Just Joined!
    Join Date
    Mar 2007
    Posts
    3

    more info

    What i am trying to accomplish is :
    I'm using this sourforce tool touchcal, this is a piece of software to calibrate a touchscreen, after calibration it gives some parameters like maxX minX maxY and minY.
    I want to change the package so that the parameters directly are added to the xorg.conf.
    I already changed the app so that it creates the whole section "InputDevice", but i also need to add a line to the "ServerLayout" section.
    I guess im doomed to start working with sed indeed...

    Grts

  7. #7
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Is not that hard and pretty nice when you already understand it, both awk and sed
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •