Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Quick question: how do you set xorg options with a command?

For example, I have an Xorg entry as follows:

Section "InputClass"
    Identifier  "Marble Mouse"
    MatchProduct "Logitech USB Trackball"
    ...
    Option "VertScrollDelta" "4"
EndSection

and I'd like to change the value of "VertScrollDelta" without restarting my computer. Do you know any command-line interface to it? I've looked into xinput, but the properties of which does not necessary correspond to xorg options.

share|improve this question
    
Have you tried gpointing-device-settings? –  ayan4m1 Nov 10 '10 at 22:47
add comment

2 Answers

xinput is your best bet. I cannot confirm this as working as I do not have similar hardware, but try running:

xinput --set-prop --type=int --format=8 "Logitech USB Trackball" "VertScrollDelta" 4

The --format=8 specifies an 8-bit integer value; using 16 or 32 may work if 8 does not.

You can also use the following to try and troubleshoot this on your own:

xinput --list will show you a list of input devices that xinput can work with

xinput --list-props "Logitech USB Trackball" will show you the current properties for your device

share|improve this answer
    
I already tried xinput --list-props "Logitech USB Trackball" before posting this question, but it did not show VertScrollDelta or anything like it. Your first command did not work in my case. If I can get a mapping between option names in xorg nad xinput property names, it'd help; but I'm not sure if there is. –  Gödel Nov 10 '10 at 20:37
1  
In that case, it would seem that this is a limitation of the X server. Sorry I couldn't be of any assistance. –  ayan4m1 Nov 10 '10 at 22:44
add comment

try to install and use gsynaptics to reconfigure your device:

  $ sudo apt-get install gsynaptics
share|improve this answer
    
It almost has nothing to do with xorg or its setting. –  Gödel Nov 12 '10 at 21:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.