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 ...
- 07-31-2007 #1Just 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
- 07-31-2007 #2
you can create a new xorg.conf file with
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.Code:sudo dpkg --reconfigure xorg
- 07-31-2007 #3Just 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
- 07-31-2007 #4Command 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.I can't edit the xorg file manually it need to write script that can add or alter values in the xorg fileIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 07-31-2007 #5
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
- 08-01-2007 #6Just 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
- 08-01-2007 #7
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


Reply With Quote
